高阶逻辑中的语法性有副作用可实现性
Syntactic Effectful Realizability in Higher-Order Logic
AI总结:
本文提出 EffHOL 框架,将高阶逻辑的语法可实现性扩展到 monad 化副作用计算,并给出翻译、可靠性证明及语义模型。
摘要:
可实现性将命题解释为编程语言中计算实体的规约。具体而言,语法可实现性是一种强大的机制,它把可实现性处理为从命题到新命题的语法翻译,而这些新命题描述了实现输入命题意味着什么。本文介绍 EffHOL(Effectful Higher-Order Logic,有副作用的高阶逻辑),这是一个新颖框架,扩展了语法可实现性,以统一支持具有副作用的现代编程范式。EffHOL 将高阶多态与一种计算项语言相结合:前者使高阶命题的实现子能够被赋予类型,后者使用 monad 来表示并推理有副作用的计算。我们构造了从(直觉主义的)高阶逻辑(HOL)到 EffHOL 的语法可实现性翻译,并通过构造性可靠性证明确保可计算实现子的提取。EffHOL 以 monad 进行参数化,使得可以为在纯 HOL 中不可证明的命题综合出有副作用的实现子,从而弥合传统计算范式与有副作用计算范式之间的差距。包括续延和记忆化在内的示例展示了 EffHOL 统一多种计算模型的能力,并将传统模型作为特例。为建立语义联系,我们表明 EffHOL 的任意实例都会诱导一个 evidenced frame,后者进一步产生一个 tripos 和一个可实现性 topos。
英文摘要:
Realizability interprets propositions as specifications for computational entities in programming languages. Specifically, syntactic realizability is a powerful machinery that handles realizability as a syntactic translation of propositions into new propositions that describe what it means to realize the input proposition. This paper introduces EffHOL (Effectful Higher-Order Logic), a novel framework that expands syntactic realizability to uniformly support modern programming paradigms with side effects. EffHOL combines higher-kinded polymorphism, enabling typing of realizers for higher-order propositions, with a computational term language that uses monads to represent and reason about effectful computations. We craft a syntactic realizability translation from (intuitionistic) higher-order logic (HOL) to EffHOL, ensuring the extraction of computable realizers through a constructive soundness proof. EffHOL's parameterization by monads allows for the synthesis of effectful realizers for propositions unprovable in pure HOL, bridging the gap between traditional and effectful computational paradigms. Examples, including continuations and memoization, showcase EffHOL's capability to unify diverse computational models, with traditional ones as special cases. For a semantic connection, we show that any instance of EffHOL induces an evidenced frame, which, in turn, yields a tripos and a realizability topos.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。