We give a formal treatment of simple type theories, such as the simply-typed $λ$-calculus, using the framework of abstract clones. Abstract clones traditionally describe first-order structures, but by equipping them with additional algebraic structure, one can further axiomatize second-order, variable-binding operators. This provides a syntax-independent representation of simple type theories. We describe multisorted second-order presentations, such as the presentation of the simply-typed $λ$-calculus, and their clone-theoretic algebras; free algebras on clones abstractly describe the syntax of simple type theories quotiented by equations such as $β$- and $η$-equality. We give a construction of free algebras and derive a corresponding induction principle, which facilitates syntax-independent proofs of properties such as adequacy and normalization for simple type theories. Working only with clones avoids some of the complexities inherent in presheaf-based frameworks for abstract syntax.
The Next 700 Challenge Problems for Reasoning with Higher-Order Abstract Syntax Representations: Part 1-A Common Infrastructure for Benchmarks
各种逻辑框架支持使用高阶抽象语法(HOAS)来表示形式化系统。虽然这些系统表面上看起来是相同的,但它们在许多方面不同;例如,它们如何处理假设的上下文,以及关于给定形式系统的哪些定理可以简洁地表达和证明。我们在本文中的贡献是三方面的:1)我们开发了一个共同的基础设施,用于表示基准的系统支持推理与绑定器,2)我们提出了几个具体的基准,突出了各种不同方面的推理的背景下的假设,和3)我们设计了一个开放的知识库ORBI,(开放的挑战问题库系统支持推理与绑定器)。我们的工作为不同系统的定性比较奠定了基础。这使我们能够回顾和调查最先进的技术,我们在本文的第2部分中对四个系统进行了详细的介绍(Festival et al,2015)。它还使我们能够概述未来的基础研究问题,关于元推理系统的设计和实现。
我们给出了一类简单类型语言(如PCF语言)的语法和语义的代数刻画:我们刻画了简单类型绑定语法,通过一个普适属性,即作为某个类别的初始对象,配备了归约规则。为了这个目的,我们采用了在以前的两个工作中开发的技术:在[2]中,我们在不同类型集上对语言之间的句法翻译建模,作为一类模型中的初始态射。在[1]中,我们在一类模型中用归约规则刻画了无类型语法作为初始对象。在目前的工作中,我们表明,这些技术是模块化的,足以结合起来:因此,我们的特点是简单类型的语法与减少规则的初始对象在一个类别。泛属性产生了一个操作符,它允许在可能不同的类型集上指定语言之间的翻译-通过构造在语义上忠实。我们通过2-签名来指定一种语言,也就是说,在两个级别上的签名:语法级别指定语言的类型和术语,并将类型与每个术语相关联。语义层通过不等式指定语言术语的归约规则。对于任何给定的2-签名,我们关联一类模型。我们证明了这个范畴有一个初始对象,它集成了由2-签名自由生成的类型和项,以及由给定不等式生成的这些项的约化关系。我们称这个对象为由2-签名生成的(编程)语言。[1]Ahrens,B.:Modules over relative monads for syntax and semantics(2011),arXiv:1107.5252,to be published in Math. Struct. in Comp. Sci…