arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.08688cs.LO
收藏

非确定性迭代与测试的统一范畴论视角

A Unifying Categorical View of Nondeterministic Iteration and Tests

Sergey Goncharov, Tarmo Uustalu

AI总结:

本文从范畴论视角分离并分析Kleene迭代,提出含余积与测试的Kleene迭代范畴,证明其兼容异常、存储、并发等特性,并将自由模型刻画为非确定性有理树。

摘要:

我们在范畴论背景下研究Kleene迭代。Kozen提出的一个著名完备性结果将Kleene代数(含测试)引入为关于程序等价性的轻量推理的普遍工具,然而,此后出现了众多变体以满足对更精细语义风味的需求,如状态化、并发、异常、混合、分支时间等。我们将Kleene迭代从Kleene代数中分离出来,并从范畴论角度对其进行分析。我们得到的概念是Kleene迭代范畴(含余积与测试),我们证明其在兼容编程语言特性(如异常、存储、并发行为等)方面具有一般性和稳健性。我们针对各种衡量标准验证了所提出的概念,最重要的是,通过将自由模型刻画为某类(非确定性)有理树来验证。

英文摘要:

We study Kleene iteration in the categorical context. A celebrated completeness result by Kozen introduced Kleene algebra (with tests) as a ubiquitous tool for lightweight reasoning about program equivalence, and yet, numerous variants of it came along afterwards to answer the demand for more refined flavors of semantics, such as stateful, concurrent, exceptional, hybrid, branching time, etc. We detach Kleene iteration from Kleene algebra and analyze it from the categorical perspective. The notion, we arrive at is that of Kleene-iteration category (with coproducts and tests), which we show to be general and robust in the sense of compatibility with programming language features, such as exceptions, store, concurrent behavior, etc. We attest the proposed notion w.r.t. various yardsticks, most importantly, by characterizing the free model as a certain category of (nondeterministic) rational trees.

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

↑