关系参数化的一般框架
A General Framework for Relational Parametricity
摘要:
Reynolds最初的关系参数性理论是为了捕捉多态类型的System F程序保留输入之间的所有关系的想法。但正如雷诺兹自己后来所表明的,他的理论只能形式化为一个具有不可预测宇宙的元理论,如归纳构造演算。邓菲和雷迪从雷诺兹的思想中抽象出来,开发了他们著名的参数化框架,该框架在自反图类别中使用参数限制,旨在子化各种参数模型。然而,正如我们所观察到的,他们的理论并不足够普遍,不足以取代激发参数性的模型,即雷诺的原始模型,在类型论中表达。为了纠正这一点,我们开发了一个抽象的框架,关系参数化,概括了自反图类别的概念,并提供雷诺兹的模型作为一个直接的实例,在一个自然的方式。这个框架是统一的元理论的选择,这使我们能够获得著名的PER模型的Longo和Moggi作为一个直接的例子,在一个自然的方式。此外,我们提供了两个新的系统F的关系参数模型:i)雷诺模型的范畴版本,其中类型是函的同构和所有多态函数尊重函的行动,和ii)证明相关的雷诺模型的范畴版本(Orsanigo之后),其中,另外,证人的相关性本身是适当相关的。我们表明,与以前存在的参数化框架,我们认识到这两个新的模型在一个自然的方式。因此,我们的框架是描述性的,因为它占众所周知的模型,以及规定性的,因为它确定了抽象的属性,良好的模型的关系参数应该满足,并建议新的建设这样的模型。
英文摘要:
Reynolds' original theory of relational parametricity was intended to capture the idea that polymorphically typed System F programs preserve all relations between inputs. But as Reynolds himself later showed, his theory can only be formalized in a meta-theory with an impredicative universe, such as the Calculus of Inductive Constructions. Abstracting from Reynolds' ideas, Dunphy and Reddy developed their well-known framework for parametricity that uses parametric limits in reflexive graph categories and aims to subsume a variety of parametric models. As we observe, however, their theory is not sufficiently general to subsume the very model that inspired parametricity, namely Reynolds' original model, expressed inside type theory. To correct this, we develop an abstract framework for relational parametricity that generalizes the notion of a reflexive graph categories and delivers Reynolds' model as a direct instance in a natural way. This framework is uniform with respect to a choice of meta-theory, which allows us to obtain the well-known PER model of Longo and Moggi as a direct instance in a natural way as well. In addition, we offer two novel relationally parametric models of System F: i) a categorical version of Reynolds' model, where types are functorial on isomorphisms and all polymorphic functions respect the functorial action, and ii) a proof-relevant categorical version of Reynolds' model (after Orsanigo), where, additionally, witnesses of relatedness are themselves suitably related. We show that, unlike previously existing frameworks for parametricity, ours recognizes both of these new models in a natural way. Our framework is thus descriptive, in that it accounts for well-known models, as well as prescriptive, in that it identifies abstract properties that good models of relational parametricity should satisfy and suggests new constructions of such models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。