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

TensorRocq: 在Rocq中实现图解推理

TensorRocq: Enabling diagrammatic reasoning in Rocq

University of Chicago(芝加哥大学);University of Oxford(牛津大学)

Benjamin Caldwell, William Spencer, Aleks Kissinger, Robert Rand

AI总结:

本文提出TensorRocq,通过在Rocq证明助手中将对称幺半范畴的语法表示与带接口的超图相互转换,并保持张量语义,实现了图解推理,从而弥合了形式化证明与纸笔证明之间的差距。

摘要:

对称幺半范畴(SMCs)是推理计算的一个通用框架,侧重于操作的并行和顺序组合性。字符串图是推理SMC中等式的一个普遍且强大的工具,它通过省略组合的细节来关注连接性。然而,在证明助手中处理SMC时,组合的严格等式结构掩盖了关键的连接信息,导致证明冗长且充满无信息的语法操作。为了弥合证明助手与纸笔证明之间的差距,我们开发了在Rocq中进行图解推理的验证工具,包括推断项等价以及模字符串图变形的重写。这是通过将SMC项的语法表示与带接口的超图相互转换,同时保持共同的张量语义来实现的。我们提供了从生成元和关系开发简单SMC理论的工具,并在这些系统中进行等式推理。我们还使得我们的策略能够用于关于SMC的现有验证项目中,这些项目可以赋予张量表达式的语义。

英文摘要:

Symmetric monoidal categories (SMCs) are a common framework for reasoning about computation, focusing on the parallel and sequential compositionality of operations. String diagrams are a ubiquitous and powerful tool for reasoning about equations in SMCs, leveraging eliding the fine details of compositionality to focus on connectivity. However, when working with SMCs in a proof assistant, the rigid equational structure of composition occludes the essential connective information, longer proofs filled with uninformative syntactic manipulation. To address the gap between proof assistants and paper proof, we have developed verified tools for diagrammatic reasoning in Rocq, including inferring term equivalence and rewriting modulo the deformation of string diagrams. This is achieved by converting between syntactic representations of SMC terms and hypergraphs with interfaces, while preserving a common tensor semantics. We provide tools to develop simple SMC theories from generators and relations, and perform equational reasoning these systems. We also enable our tactics to be used in existing verification projects about SMCs which can be given semantics as tensor expressions.

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

↑