arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.14929cs.PLcs.LO
收藏

依赖(子)类型的定义函子性——扩展版

Definitional Functoriality for Dependent (Sub)Types -- Extended version

Théo Laurent, Meven Lennon-Bertrand, Kenji Maillard

AI总结:

本文将函子定律纳入依赖类型论的定义相等,用于支持自动化证明并导出与隐式包含子类型等价的强制子类型,且在 Coq 中机械化证明列表情形的类型检查可判定性。

摘要:

依赖类型证明助手关键地依赖于定义相等,它关联在底层类型论中被自动识别的类型和项。本文以定义函子定律扩展类型论;这些方程由一大类类似容器的类型构造子 $F : \mathrm{Type} \to \mathrm{Type}$ 在命题层面满足,这些构造子配备 $\mathrm{map}_{F} : (A \to B) \to F\\,A \to F\\,B$,例如列表或树。将这些方程提升为定义性方程会增强该理论,从而为函子式类型构造子实现更简洁的证明和更多自动化。该扩展被用于以模块化方式证成一种结构化形式的强制子类型化,以类似 map 的方式通过类型形成子传播子类型关系。我们表明,由于额外的定义性方程,所得的强制子类型概念等价于一种自然且隐式的包含子类型形式。在带有列表函子定律的依赖类型系统中,类型检查可判定性这一关键结果已在 Coq 中完全机械化。这是发表于 ESOP’24 的同名工作的扩展版本。

英文摘要:

Dependently typed proof assistant rely crucially on definitional equality, which relates types and terms that are automatically identified in the underlying type theory. This paper extends type theory with definitional functor laws, equations satisfied propositionally by a large class of container-like type constructors $F : \mathrm{Type} \to \mathrm{Type}$, equipped with a $\mathrm{map}_{F} : (A \to B) \to F\,A \to F\,B$, such as lists or trees. Promoting these equations to definitional ones strengthens the theory, enabling slicker proofs and more automation for functorial type constructors. This extension is used to modularly justify a structural form of coercive subtyping, propagating subtyping through type formers in a map-like fashion. We show that the resulting notion of coercive subtyping, thanks to the extra definitional equations, is equivalent to a natural and implicit form of subsumptive subtyping. The key result of decidability of type-checking in a dependent type system with functor laws for lists has been entirely mechanized in Coq. This is the extended version of the work with the same name published at ESOP'24.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑