Pragmatic isomorphism proofs between Coq representations: application to lambda-term families

12/20/2022
by   Catherine Dubois, et al.
0

There are several ways to formally represent families of data, such as lambda terms, in a type theory such as the dependent type theory of Coq. Mathematical representations are very compact ones and usually rely on the use of dependent types, but they tend to be difficult to handle in practice. On the contrary, implementations based on a larger (and simpler) data structure combined with a restriction property are much easier to deal with. In this work, we study several families related to lambda terms, among which Motzkin trees, seen as lambda term skeletons, closable Motzkin trees, corresponding to closed lambda terms, and a parameterized family of open lambda terms. For each of these families, we define two different representations, show that they are isomorphic and provide tools to switch from one representation to another. All these datatypes and their associated transformations are implemented in the Coq proof assistant. Furthermore we implement random generators for each representation, using the QuickChick plugin.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/29/2017

Constrained Type Families

We present an approach to support partiality in type-level computation w...
research
06/16/2020

Decomposable Families of Itemsets

The problem of selecting a small, yet high quality subset of patterns fr...
research
01/27/2020

Understanding Profunctor Optics: a representation theorem

Optics, aka functional references, are classes of tools that allow compo...
research
09/13/2017

On Uniquely Closable and Uniquely Typable Skeletons of Lambda Terms

Uniquely closable skeletons of lambda terms are Motzkin-trees that prede...
research
11/23/2019

On sequences associated to the invariant theory of rank two simple Lie algebras

We study two families of sequences, listed in the On-Line Encyclopedia o...
research
01/22/2020

Profunctor optics and traversals

Optics are bidirectional accessors of data structures; they provide a po...
research
05/18/2021

Binomial Determinants for Tiling Problems Yield to the Holonomic Ansatz

We present and prove closed form expressions for some families of binomi...

Please sign up or login with your details

Forgot password? Click here to reset