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 a parametricity theorem for Church encodings of word and ranked tree languages, which states that every parametric family of elements in the finite standard model is the interpretation of a profinite lambda-term. This result shows that our notion of profinite lambda-term conservatively extends the existing notion of profinite word and provides a natural framework for defining and studying profinite trees.
翻译:结合来自Stone 双轨制和 Reynolds 的理论,我们以一种干净和有原则的方式制定了一个精密的羊羔-术语概念,我们展示了这一概念,在每一种类型中,都概括了来自Agtomatata理论的精通字词的传统概念。我们首先将精通的羊羔-术语的石块空间定义为固定的羊羔-术语的预测范围,认为modulo是一种基于有限标准模式的等同概念。本文的一个主要贡献是,用 Statman 的有限完整性理论来证实,由此形成的精通的羊羔-术语概念来自石本双轨制,与Reynolds 准度原则完全一致。此外,我们展示了精通的羊羔-术语-术语定义概念的概念是构成的。我们通过构建一个木乃伊的封闭类封闭类别,我们确定从羊羔-术语的模-术语模式中嵌入了精通的羊羔-术语定义,最后,我们证明一种对精通性定义的精通性定义的精通性概念的精通性概念定义是每个字形和定式定义的自然定式概念的定式定义。