“…In these works, correctness of automatic differentiation is proved in the context of first order languages [1], or higher order functional languages [3,11,21,40,43]. Calculi that use logical relations to prove the correctness of derivative evaluation, a key aspect of our work, are provided in [7,15]. In several of these works, the semantics of differentiation is given using a categorical setting, [3,29,40], in contrast to using the more concrete space of real numbers or its extension in domain theory.…”