paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality Saturation

走向交互式定理证明器中纸笔风格的等式推理:基于等式饱和的方法
POPL 10(POPL)2026匹配度 4/10 · 论文属于交互式定理证明与形式化验证方向,使用 e-graph/等式饱和实现 Lean tactic,与用户关心的形式化验证有间接关联;但它不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,也不是静态分析在 ML/Agentic 程序中的应用,因此匹配度有限。引用 2 inbox
Marcus Rossel, Rudi Schneider, Thomas Kœhler, Michel Steuwer, Andrés Goens
crossref: 2026-09-10

AI 速览

一句话:将定理解释为条件重写规则,用 e-graph 等式饱和在 Lean 中实现纸笔风格的等式推理 tactic。

数学家在纸笔等式推理中常依据上下文省略等式成立的条件,而交互式定理证明器要求显式给出所有细节,阻碍了抽象层面的推理。本文提出将定理解释为条件重写规则,借助 e-graph 上的等式饱和(equality saturation)自动搜索并推导等式证明,并将无法自动证明的条件作为证明义务呈现给用户。作者处理了命题条件、类型类等超出简单语法重写的方面,刻画了可这样解释的一类重要定理。该方法在 Lean 中以 tactic 形式实现,复用 egg 库的等式饱和能力,并通过四个用例展示了这一更高抽象层次在等式推理中的有效性。

问题
交互式定理证明器要求等式推理的每一个前提条件都被显式证明,与数学家依据上下文省略条件的纸笔推理习惯相冲突,阻碍了在抽象层面进行等式推理。
方法
把定理解释为条件重写规则,用 e-graph 上的等式饱和自动搜索并推导等式证明,无法自动证明的条件被作为证明义务暴露;在 Lean 中以 tactic 形式实现,并处理命题条件与类型类等超出语法重写的情形。
评估
在 Lean 中基于 egg 库实现该 tactic,并通过四个用例展示该抽象层次在等式推理中的有效性。
原文摘要(Abstract)

Equations are ubiquitous in mathematical reasoning. Often, however, they only hold under certain conditions. As these conditions are usually clear from context, mathematicians regularly omit them when performing equational reasoning on paper. In contrast, interactive theorem provers pedantically insist on every detail to be convinced that a theorem holds, hindering equational reasoning at the more abstract level of pen-andpaper mathematics. In this paper, we address this issue by raising the level of equational reasoning to enable pen-and-paper style in interactive theorem provers. We achieve this by interpreting theorems as conditional rewrite rules, and use equality saturation to automatically derive equational proofs. Conditions that cannot be automatically proven may be surfaced as proof obligations. Concretely, we present how to interpret theorems as conditional rewrite rules for a significant class of theorems. Handling these theorems goes beyond simple syntactic rewriting, and deals with aspects like propositional conditions and type classes. We evaluate our approach by implementing it as a tactic in Lean, using the egg library for equality saturation with e-graphs. We show four use cases demonstrating the efficacy of this higher level of abstraction for equational reasoning.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{RosselSKSG26,
  title = {Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality Saturation},
  author = {Marcus Rossel and Rudi Schneider and Thomas Kœhler and Michel Steuwer and Andrés Goens},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {POPL},
  year = {2026},
  doi = {10.1145/3776667}
}