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

S4模态sequent演算作为中间逻辑和中间语言

S4 modal sequent calculus as intermediate logic and intermediate language

École Normale Supérieure — PSL(巴黎高等师范学院);INRIA(法国国家信息与自动化研究所);LS2N CNRS(南特国立高等研究院计算机科学实验室)

Jean Caspar, Guillaume Munch-Maccagnoni

AI总结:

本文提出了一种基于S4模态逻辑的极化sequent演算,并通过操作机器模型研究了其可堆叠性属性,作为中间逻辑和中间语言的桥梁。

摘要:

在本文中,我们主张延续基于的中间语言对应于中间逻辑。中间语言的目标是作为编译器中间表示的基础,允许表示有表达力的程序转换以进行优化和编译,同时保持使程序能够高效编译的性质,如延续的'可堆叠性'。中间逻辑是在直觉逻辑和经典逻辑之间的逻辑,以可证性为标准。在基于CPS的中间语言中使用的第二类延续对应于带有附加限制的经典模态逻辑S4,即蕴含可能只能返回模态类型。这确实对应于一个中间逻辑,由于戈德尔-麦克金塞-塔尔斯基定理指出S4的模态片段的直觉性质。我们引入了三种类型的极化sequent演算用于S4,以及一个操作机器模型,该模型将堆栈分离为堆和栈。通过此模型,我们研究了S4的模态片段的可堆叠性属性。

英文摘要:

In this short paper, we advocate for the idea that continuation-based intermediate languages correspond to intermediate logics. The goal of intermediate languages is to serve as a basis for compiler intermediate representations, allowing to represent expressive program transformations for optimisation and compilation, while preserving the properties that make programs compilable efficiently in the first place, such as the "stackability" of continuations. Intermediate logics are logics between intuitionistic and classical logic in terms of provability. Second-class continuations used in CPS-based intermediate languages correspond to a classical modal logic S4 with the added restriction that implications may only return modal types. This indeed corresponds to an intermediate logic, owing to the Gödel-McKinsey-Tarski theorem which states the intuitionistic nature of the modal fragment of S4. We introduce a three-kinded polarised sequent calculus for S4, together with an operational machine model that separates a heap from a stack. With this model we study a stackability property for the modal fragment of S4.

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

↑