Extensional equality preservation and verified generic programming
Nicola Botta, Nuria Brede, Patrik Jansson, Tim Richter

TL;DR
This paper investigates how preserving extensional equality in functors and monads within intensional type theories can enable simpler, verified generic proofs and applications in dynamical systems and control theory.
Contribution
It introduces a minimalist approach to extensional equality in intensional type theories, facilitating verified generic programming without complex setoid constructions.
Findings
Enables simple generic proofs of monadic laws
Provides verified results in dynamical systems and control theory
Avoids tedious code duplication and ad-hoc proofs
Abstract
In verified generic programming, one cannot exploit the structure of concrete data types but has to rely on well chosen sets of specifications or abstract data types (ADTs). Functors and monads are at the core of many applications of functional programming. This raises the question of what useful ADTs for verified functors and monads could look like. The functorial map of many important monads preserves extensional equality. For instance, if are extensionally equal, that is, , then and are also extensionally equal. This suggests that preservation of extensional equality could be a useful principle in verified generic programming. We explore this possibility with a minimalist approach: we deal with (the lack of) extensional equality in Martin-L\"of's intensional type theories…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
