通过零元内部参数化实现的标称类型论
Nominal Type Theory by Nullary Internal Parametricity
AI总结:
本文提出一种结合零元内部参数化类型论、名称类型和标称数据类型的类型论,恢复标称框架中的匹配能力及其他特征,并给出合成Kripke参数化的示例。
摘要:
有许多方式表示带有绑定器的语言语法。特别是,标称框架是元语言,其中包含(除其他外)名称抽象类型,可用于指定绑定器的类型。由此产生的语法表示,即标称数据类型,使得alpha等价项相等,具有封闭归纳原理,并且在弱化方面表现良好。已知名称抽象类型可以表示为名称上的存在量化或全称量化。存在名称抽象支持名称绑定模式的匹配,但具有繁琐的类型规则;全称名称抽象具有清晰的规则,但显然没有这种标称匹配。在这项工作中,我们展示了这种匹配能力和其他标称特征在由以下组成的类型论中得以恢复:(1) 零元内部参数化类型论(零元PTT),(2) 名称类型和一种新的名称归纳原理,(3) 标称数据类型。该类型论是一个合法的标称框架:它具有全称和(非原始)存在名称抽象、新鲜类型构造子、受限名称交换和局部作用域操作。标称模式匹配通过项相关的零元参数化得以恢复。我们提供了一个涉及合成Kripke参数化的示例。
英文摘要:
There are many ways to represent the syntax of a language with binders. In particular, nominal frameworks are metalanguages that feature (among others) name abstraction types, which can be used to specify the type of binders. The resulting syntax representation, nominal data types, makes alpha-equivalent terms equal, has a closed induction principle and is well-behaved w.r.t. weakening. It is known that name abstraction types can be presented either as an existential or as a universal quantification on names. Existential name abstractions support matching on name-binding patterns but have cumbersome typing rules; universal ones have clean rules but apparently no such nominal matching. In this work we show that this matching ability and other nominal features are recovered in a type theory consisting of (1) Nullary ($0$-ary) Internally Parametric Type Theory (nullary PTT), (2) a type of names and a novel name induction principle, (3) nominal data types. This type theory is a legitimate nominal framework: it has universal and (non-primitive) existential name abstractions, a freshness type former, restricted name swapping and local-scope operations. Nominal pattern matching is recovered via term-relevant nullary parametricity. We provide an example involving synthetic Kripke parametricity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。