多类别语义用于无类型效果
Multicategorical Semantics for Untyped Effects
AI总结:
本文提出了一种多类别语义框架,用于无类型效果计算,通过引入Freyd操作符和Freyd PROP来处理计算替换,并证明了其代表性和正确性,从而实现了对无类型计算lambda演算的语义解释。
摘要:
在范畴语义中,完备性证明通常通过构建一个语法范畴来实现,其组合由替换给出。对于无类型效果ful的Call-by-Value语言,这遇到了基本障碍:由于评估顺序在语义上具有意义,不存在同时替换计算的规范概念。我们通过将单个计算替换,即绑定步骤,作为基本元素,并用有限序列的连接来表示计算替换,来解决这个问题。我们在一个对象Freyd多范畴设置中正式化了这一想法。我们引入了Freyd操作符,将值的笛卡尔操作符与计算的对称Ren-笛卡尔预操作符分离,并通过Freyd函子连接,从任何Freyd操作符构造相应的Freyd PROP。我们证明了这一构造是可代表的,并且在严格单对象设置中是限制到目标1的左伴随。使用诱导的术语模型,我们解释了带有过程和高阶函数的无类型计算lambda演算,并证明了正确性、初始性和完备性。这产生了一个针对无类型效果计算的范畴语义,并且足够广泛,能够涵盖以实现为导向的模型,如单调组合代数。
英文摘要:
Completeness proofs in categorical semantics usually proceed by building a syntactic category whose composition is given by substitution. For untyped effectful Call-by-Value languages, this runs into a basic obstacle: there is no canonical notion of simultaneous substitution of computations, since evaluation order is semantically meaningful. We address this by taking single computation substitutions, that is, binding steps, as primitive, and representing computation substitution by finite sequential lists composed by concatenation. We formalize this idea in a one-object Freyd-multicategorical setting. We introduce Freyd operads, separating a cartesian operad of values from a symmetric Ren-cartesian preoperad of computations, connected by a Freyd functor, and from any Freyd operad we construct a corresponding Freyd PROP of substitutions. We prove that this construction is representable and, in the strict one-object setting, left adjoint to restriction to codomain 1. Using the induced term model, we interpret untyped computational lambda-calculus with procedures and higher-order functions in weakly closed Freyd operads, and prove soundness, initiality, and completeness. This yields a categorical semantics tailored to untyped effectful computation and broad enough to encompass realizability-oriented models such as monadic combinatory algebras.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。