Coq表示之间的实用同构证明:应用于双项族
Pragmatic isomorphism proofs between Coq representations: application to lambda-term families
摘要:
在类型论(如Coq的依赖类型论)中,有几种方法可以形式化地表示数据族,如lambda项。数学表示是非常紧凑的,通常依赖于依赖类型的使用,但在实践中往往很难处理。相反,基于更大(且更简单)的数据结构并结合限制属性的实现更容易处理。在这项工作中,我们研究了几个家庭相关的lambda条款,其中Motzkin树,被视为lambda术语骨架,可关闭的Motzkin树,对应于封闭的lambda条款,和一个参数化的家庭开放的lambda条款。对于这些家庭中的每一个,我们定义了两个不同的表示,表明它们是同构的,并提供工具,从一个表示切换到另一个。所有这些数据库及其相关转换都在Coq证明助手中实现。此外,我们实现随机生成器为每个表示,使用QuickChick插件。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。