LibNDT: Towards a Formal Library on Spreadable Properties over Linked Nested Datatypes
Mathieu Montin (Universit\'e de Lorraine, Loria, CNRS, Inria, France),, Am\'elie Ledein (Universit\'e Paris-Saclay, ENS Paris-Saclay, LMF, CNRS,, Inria, France), Catherine Dubois (ENSIIE, Samovar, IP Paris, France)

TL;DR
This paper introduces LibNDT, a formal library in Agda and Coq for spreadable properties over Linked Nested DataTypes, enabling formal reasoning about recursive polymorphic datatypes with practical applications.
Contribution
It presents a novel library for formal manipulation of spreadable properties over Linked Nested DataTypes in dependently typed languages.
Findings
LibNDT supports spreadable functions like folds and maps.
LibNDT models properties such as map congruence and predicate satisfaction.
The library is implemented in both Agda and Coq.
Abstract
Nested datatypes have been widely studied in the past 25 years, both theoretically using category theory, and practically in programming languages such as Haskell. They consist in recursive polymorphic datatypes where the type parameter changes throughout the recursion. They have a variety of applications such as modelling memory or modelling constraints over regular datatypes without relying on dependent types. In this work, we focus on a specific subset of nested datatypes which we call Linked Nested DataTypes (LNDT). We show that some usual datatypes such has List and Maybe, as well as some well-known nested datatypes such as Nest and even Bush can be built as various instances of LNDT. We proceed by presenting LibNDT, a library, developed both in Agda and Coq, which focuses on the set of constructs that can be spread directly from the parameter on which a LNDT is built, to the LNDT…
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.
