CHAD for expressive total languages

From MaRDI portal
Publication:6149934

DOI10.1017/S096012952300018XarXiv2110.00446OpenAlexW3203610362MaRDI QIDQ6149934FDOQ6149934


Authors: Fernando Lucatelli Nunes, Matthijs Vákár Edit this on Wikidata


Publication date: 5 March 2024

Published in: Mathematical Structures in Computer Science (Search for Journal in Brave)

Abstract: We show how to apply forward and reverse mode Combinatory Homomorphic Automatic Differentiation (CHAD) to total functional programming languages with expressive type systems featuring the combination of - tuple types; - sum types; - inductive types; - coinductive types; - function types. We achieve this by analysing the categorical semantics of such types in Sigma-types (Grothendieck constructions) of suitable categories. Using a novel categorical logical relations technique for such expressive type systems, we give a correctness proof of CHAD in this setting by showing that it computes the usual mathematical derivative of the function that the original program implements. The result is a principled, purely functional and provably correct method for performing forward and reverse mode automatic differentiation (AD) on total functional programming languages with expressive type systems.


Full work available at URL: https://arxiv.org/abs/2110.00446







Cites Work


Cited In (1)





This page was built for publication: CHAD for expressive total languages

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6149934)