归纳定义的阐述
Elaborating Inductive Definitions
摘要:
我们提出了一个归纳定义的阐述下到一个宇宙的数据。数据域是类型论中严格正族的内部表示。通过将一个归纳定义--一个句法人工产物--细化到它的代码--它的语义--我们得到了一个在类型论本身内部的归纳解释:我们声称关于归纳定义的推理可以在类型论中进行,而不是像通常那样在元理论中进行。此外,我们给出了一个形式化的详细说明过程。因此,它也服从形式推理。我们证明了我们的翻译的合理性,并暗示其正确性与科克的归纳定义。这种方法的实际好处是多方面的。对于类型理论家来说,这是迈向自举的一小步。在类型论本身中实现归纳片段。对于程序员来说,这意味着更好地支持泛型编程:我们将提出一个轻量级的派生机制,完全由程序员定义,因此不需要对类型论进行任何扩展。
英文摘要:
We present an elaboration of inductive definitions down to a universe of datatypes. The universe of datatypes is an internal presentation of strictly positive families within type theory. By elaborating an inductive definition -- a syntactic artifact -- to its code -- its semantics -- we obtain an internalized account of inductives inside the type theory itself: we claim that reasoning about inductive definitions could be carried in the type theory, not in the meta-theory as it is usually the case. Besides, we give a formal specification of that elaboration process. It is therefore amenable to formal reasoning too. We prove the soundness of our translation and hint at its correctness with respect to Coq's Inductive definitions. The practical benefits of this approach are numerous. For the type theorist, this is a small step toward bootstrapping, ie. implementing the inductive fragment in the type theory itself. For the programmer, this means better support for generic programming: we shall present a lightweight deriving mechanism, entirely definable by the programmer and therefore not requiring any extension to the type theory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。