  Validation is a major challenge in differentiable programming. The state of
the art is based on algorithmic differentiation. Consistency of first-order
tangent and adjoint programs is defined by a well-known first-order
differential invariant. This paper generalizes the approach through derivation
of corresponding differential invariants of arbitrary order.
