Combining ideas coming from Stone duality and Reynolds parametricity, we formulate in a clean and principled way a notion of profinite lambda-term which, we show, generalizes at every type the traditional notion of profinite word coming from automata theory. We start by defining the Stone space of profinite lambda-terms as a projective limit of finite sets of usual lambda-terms, considered modulo a notion of equivalence based on the finite standard model. One main contribution of the paper is to establish that, somewhat surprisingly, the resulting notion of profinite lambda-term coming from Stone duality lives in perfect harmony with the principles of Reynolds parametricity. In addition, we show that the notion of profinite lambda-term is compositional by constructing a cartesian closed category of profinite lambda-terms, and we establish that the embedding from lambda-terms modulo beta-eta-conversion to profinite lambda-terms is faithful using Statman's finite completeness theorem. Finally, we prove that the traditional Church encoding of finite words into lambda-terms can be extended to profinite words, and leads to a homeomorphism between the space of profinite words and the space of profinite lambda-terms of the corresponding Church type.
翻译:结合自Stone对偶和Reynolds参数性的思想,我们以一种清晰和有原则的方式制定了一种Profinite Lambda项的概念,我们展示了这种概念在每种类型上都能概括来自自动机理论的传统Profinite word的概念。我们从定义Profinite Lambda项的Stone空间开始,它被视为常规Lambda项的有限集的项目极限,常规Lambda项受限于基于有限标准模型的等价性概念。本文的一个主要贡献是确定了由Stone对偶得出的Profinite Lambda项的概念与Reynolds参数性原则完美协调的一些想法。此外,我们通过构造Profinite Lambda项的笛卡尔闭范畴来展示Profinite Lambda项的概念是可组合的,并使用Statman的有限完备性定理证明了从出发点Lambda项模beta-eta-conversion到Profinite Lambda项的嵌入是准确的。最后,我们证明了将有限单词从传统的Church编码扩展到Profinite单词是可能的,并且这将导致一个同构,它是相应的Church类型的Profinite Lambda项空间和Profinite单词空间之间的同构。