一句话:用范畴模型初始对象统一刻画带变量绑定的简单类型语法及其归约规则,并构造保持归约语义的翻译。
本文为带变量绑定和归约规则的简单类型语言(如 PCF)给出代数/范畴刻画。作者结合前期关于类型语言间翻译和未类型语法归约规则的工作,将简单类型语法连同归约规则刻画为某类模型范畴的初始对象,以泛性质统一语法与操作语义。该泛性质导出翻译算子,可构造不同类型集合语言之间按构造保持语义的翻译。实例中,作者为 PCF 和未类型 λ 演算指定归约语义,并把 λ 演算装备为 PCF 的模型;由初始性得到从 PCF 到 λ 演算的翻译,且该翻译对源和目标的归约语义忠实。
We give an algebraic characterization of the syntax and operational semantics of a class of simply-typed languages, such as the language PCF: we characterize simply-typed syntax with variable binding and equipped with reduction rules via a universal property, namely as the initial object of some category of models. For this purpose, we employ techniques developed in two previous works: in the first work we model syntactic translations between languages over different sets of types as initial morphisms in a category of models. In the second work we characterize untyped syntax with reduction rules as initial object in a category of models. In the present work, we combine the techniques used earlier in order to characterize simply-typed syntax with reduction rules as initial object in a category. The universal property yields an operator which allows to specify translations---that are semantically faithful by construction---between languages over possibly different sets of types. As an example, we upgrade a translation from PCF to the untyped lambda calculus, given in previous work, to account for reduction in the source and target. Specifically, we specify a reduction semantics in the source and target language through suitable rules. By equipping the untyped lambda calculus with the structure of a model of PCF, initiality yields a translation from PCF to the lambda calculus, that is faithful with respect to the reduction semantics specified by the rules. This paper is an extended version of an article published in the proceedings of WoLLIC 2012. Comment: Extended version of arXiv:1206.4547, proves a variant of a result of PhD thesis arXiv:1206.4556