arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.08331math.CTcs.LO
收藏

Metacat:形式系统的范畴框架

Metacat: a categorical framework for formal systems

Hellas AI

Paul Wilson

AI总结:

本文提出一个形式系统的范畴框架,通过在cartesian PROP范畴中用特定操作表示蕴含规则,实现元变量上下文的编码,并提供证明检查算法和开源实现。

摘要:

我们提出一个形式系统的范畴框架,在一个语法范畴$\mathscr{S}$中,用 arity $k \to n$ 的操作表示具有 $m$ 个元变量的推导规则,这些操作配备 spans $k \leftarrow m \to n$,编码假设和结论于共同的元变量上下文中。组合通过元变量的替换实现,即 Metamath 中的唯一原始操作。在此设定中,证明形成一个对称单子类别,其单子结构编码假设的组合和重用。此结构允许证明检查算法;我们提供开源实现和表面语法来定义形式系统。作为演示,我们用 Metacat 编码一阶逻辑的公式和推导规则,并给出公理和代表推导作为例子。

英文摘要:

We present a categorical framework for formal systems in which inference rules with $m$ metavariables over a category of syntax $\mathscr{S}$, taken to be a cartesian PROP, are represented by operations of arity $k \to n$ equipped with spans $k \leftarrow m \to n$ in $\mathscr{S}$, encoding the hypotheses and conclusions in a common metavariable context. Composition is by substitution of metavariables, which is the sole primitive operation, as in Metamath. Proofs in this setting form a symmetric monoidal category whose monoidal structure encodes the combination and reuse of hypotheses. This structure admits a proof-checking algorithm; we provide an open-source implementation together with a surface syntax for defining formal systems. As a demonstration, we encode the formulae and inference rules of first-order logic in Metacat, and give axioms and representative derivations as examples.

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

↑