paperbot · PL 论文追踪

全部论文 待读 收藏

P2 TensorRocq: Enabling Diagrammatic Reasoning in Rocq

TensorRocq:在 Rocq 中实现图示推理
OOPSLA 10(OOPSLA2)2026匹配度 3/10 · 该论文属于定理证明与形式化验证方向,为 Rocq 提供范畴论/字符串图推理工具,与“形式化验证”有宽泛关联;但未涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,因此与用户核心研究画像匹配有限。引用 0 inbox
Ben Caldwell, William Spencer, Aleks Kissinger, Robert Rand
crossref: 2026-10-02

AI 速览

一句话:为 Rocq 提供基于字符串图的张量范畴等价推理与重写工具。

在证明助手中处理对称单体范畴(SMC)时,组合的刚性等式结构会掩盖连接信息,导致证明冗长且充满语法操作。作者为 Rocq 开发了经过验证的图示推理工具,通过在 SMC 项的语法表示与带接口超图之间转换,并保持共同的张量语义,支持项等价推断和模字符串图变形的重写。工具还允许从生成元与关系定义简单 SMC 理论,并对这些系统进行等式推理;其策略可复用于已有将 SMC 视为张量的验证项目。

问题
在 Rocq 等证明助手中对对称单体范畴进行等式推理时,组合的刚性结构掩盖了字符串图关注的连接信息,使证明冗长且充满语法操作。
方法
将 SMC 项与带接口超图互相转换并保持张量语义,实现项等价推断、模图变形的重写,以及从生成元与关系构建 SMC 理论的策略。
评估
在 Rocq 中实现为经过验证的工具与策略,可对简单 SMC 理论进行等式推理,并可集成到已有将 SMC 视为张量的验证项目中。
原文摘要(Abstract)

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, 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 obscures the essential connective information, leading to longer proofs filled with syntactic manipulation. To address the gap between proof assistants and paper proofs, 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 over these systems. Our tactics can also be used in existing verification projects about symmetric monoidal categories that can be treated as tensors.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@article{abs-2604-17592,
  title = {TensorRocq: Enabling Diagrammatic Reasoning in Rocq},
  author = {Ben Caldwell and William Spencer and Aleks Kissinger and Robert Rand},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {OOPSLA2},
  year = {2026},
  doi = {10.1145/3839532}
}