arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.00289cs.LOcs.PL
收藏

综合保护域理论中递归类型的指称语义

Denotational semantics of recursive types in synthetic guarded domain theory

Rasmus E. Møgelberg, Marco Paviotti

摘要:

就像数学的任何其他分支一样,程序设计语言的指称语义应该在类型论中形式化,但是将传统的域理论语义(如最初在经典集合论中制定的)适应类型论已经证明是具有挑战性的。本文是一个项目的一部分,制定指称语义的类型论与保护递归。这样做的好处不仅是提供更简单的语义和充分性等属性的证明,而且有望在未来扩展到具有高级功能的语言,如通用引用,超出了传统域理论技术的范围。工作在保护依赖类型论(GDTT),我们开发的指称语义的FPC,简单类型的λ演算扩展与递归类型,建模的递归类型的FPC使用保护递归类型的GDTT。我们证明了GDTT模型的合理性和计算充分性,使用语法和语义之间的逻辑关系,也使用守护递归类型。指称语义是内涵的,在这个意义上,它计算计算一个项的值所需的展开-折叠约简的数量,但是我们构建了一个关系,该关系涉及外延相等项的指称,即,在不同步骤中计算相同值的项对。最后,我们展示了如何在类型论中执行术语的指称语义,并证明了执行布尔术语的指称计算与FPC的操作语义相同的值。

英文摘要:

Just like any other branch of mathematics, denotational semantics of programming languages should be formalised in type theory, but adapting traditional domain theoretic semantics, as originally formulated in classical set theory to type theory has proven challenging. This paper is part of a project on formulating denotational semantics in type theories with guarded recursion. This should have the benefit of not only giving simpler semantics and proofs of properties such as adequacy, but also hopefully in the future to scale to languages with advanced features, such as general references, outside the reach of traditional domain theoretic techniques. Working in Guarded Dependent Type Theory (GDTT), we develop denotational semantics for FPC, the simply typed lambda calculus extended with recursive types, modelling the recursive types of FPC using the guarded recursive types of GDTT. We prove soundness and computational adequacy of the model in GDTT using a logical relation between syntax and semantics constructed also using guarded recursive types. The denotational semantics is intensional in the sense that it counts the number of unfold-fold reductions needed to compute the value of a term, but we construct a relation relating the denotations of extensionally equal terms, i.e., pairs of terms that compute the same value in a different number of steps. Finally we show how the denotational semantics of terms can be executed inside type theory and prove that executing the denotation of a boolean term computes the same value as the operational semantics of FPC.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑