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

高阶程序等价性的双代数推理

Bialgebraic Reasoning on Higher-Order Program Equivalence

Sergey Goncharov, Stefan Milius, Stelios Tsampas, Henning Urbat

AI总结:

针对高阶程序上下文等价性推理需逐场景构建逻辑关系的问题,本文在高阶数学操作语义框架下提出步索引逻辑关系的通用构造,证明弱操作模型为松弛双代数时逻辑关系自动可靠,且可实例化到多种演算与等价性场景。

摘要:

逻辑关系是推理高阶语言中程序上下文等价性的核心方法。这类方法通常需针对具体场景逐一构建,语言或等价性定义的每一种变体都需要配套新理论。本文在高阶数学操作语义(一种用于建模高阶语言操作语义的高参数化范畴论框架)层面,提出了(步索引)逻辑关系的通用构造方法。我们的核心结果表明:若语言的弱操作模型构成松弛双代数,则其逻辑关系对上下文等价性自动具备可靠性。该抽象理论可实例化应用于组合逻辑、带递归类型的λ演算,以及多种不同形式的上下文等价性。

英文摘要:

Logical relations constitute a key method for reasoning about contextual equivalence of programs in higher-order languages. They are usually developed on a per-case basis, with a new theory required for each variation of the language or of the desired notion of equivalence. In the present paper we introduce a general construction of (step-indexed) logical relations at the level of Higher-Order Mathematical Operational Semantics, a highly parametric categorical framework for modeling the operational semantics of higher-order languages. Our main result asserts that for languages whose weak operational model forms a lax bialgebra, the logical relation is automatically sound for contextual equivalence. Our abstract theory is shown to instantiate to combinatory logics and $λ$-calculi with recursive types, and to different flavours of contextual equivalence.

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

↑