论文

衡量两个证明的距离:6 族 19 种度量方法在 Lean/Mathlib 中验证

How Far Apart Are Two Proofs? Measuring Proof Dissimilarity in a Proof Kernel and in Lean/Mathlib

精选理由

如果你在玩 Lean 或关注 AI 自动证明,这篇很实用:它给出 19 种量化“两个证明差多远”的方法,能帮你判断模型生成的证明是真新想法还是换皮重复。开源了代码和 Lean 数据,可以直接上手试。

一篇 arXiv 论文沿承 Hilbert 第 24 问题与“证明同一性”问题,提出了衡量同一定理两个证明之间差异程度的系统方法,共定义 6 族 19 种不相似度度量,并给出 10 条度量应满足的性质。

正文

作者在 Curry-Howard 内核中用 5 个机器验证的“素数有无穷多”证明做实验:原始语法无法区分重写与新论证,依赖与结构类度量给出的排序符合直觉(Euclid 改写 < Goldbach < Furstenberg),而语义度量会反转这一排序,因为 Furstenberg 的拓扑证明恰好产生与 Euclid 相同的见证对象。随后在 Lean 4/Mathlib 中用 3 个定理、19 个证明、18 种度量复现实验。

Lean 实验确认依赖闭包类度量最符合直觉,并发现规范形式相等在不同写法间从不成立、引用式证明与被引用论证外观差异大、proof irrelevance 无法区分任意两个证明。作者主张以多层级画像报告证明不相似度,并列举应用场景:检测 AI 生成的重复证明、编排 prover 智能体、以及通过最近的人类可读证明来解读 AI 证明。代码、Lean 源文件与数据已开源。

原文 · arXiv cs.AI

How Far Apart Are Two Proofs? Measuring Proof Dissimilarity in a Proof Kernel and in Lean/Mathlib

We now live in the age of machine-generated mathematics: AI systems produce research-level proofs faster than the human mathematical community can read them. Verification is only part of the challenge. We also need to know whether a "new proof" is indeed new, whether a thousand generated proofs contain one idea or many, and where each sits relative to human mathematics. All of these require measuring distances between proofs. Following Hilbert's 24th problem and the identity-of-proofs problem, we ask how far apart two proofs of one theorem are, and what shape the proof space they inhabit has. We define 19 dissimilarity measures in 6 families (syntactic, structural, dependency & resource, semantic, information-theoretic, higher-categorical) and 10 desirable properties, which we argue are the conditions for safely optimising a measure. In a Curry-Howard kernel, 5 machine-checked proofs that the primes are infinite show that raw syntax cannot tell a rewrite from a new argument, that dependency-based and structural measures reproduce the intuitive ordering (Euclid rewritten < Goldbach < Furstenberg), and that semantic measures invert it: Furstenberg's topological proof produces exactly Euclid's witness. A replication in Lean 4/Mathlib (3 theorems, 19 proofs, 18 measures) confirms that dependency-closure measures track intuition best, and shows that equality of normal forms never holds between differently written versions of the same argument, that proofs by citation look unlike the arguments they cite, and that proof irrelevance cannot distinguish any two proofs. We argue for reporting dissimilarity as a multi-level profile, extend the measures to proofs of different theorems, and discuss uses, from detecting duplicated AI proofs and orchestrating prover agents to interpreting AI proofs via their nearest human-understandable counterparts. Code, Lean sources and data are released.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Lean、Mathlib、形式化证明、Hilbert,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Nikolaos Nikolaou),经 AITOP 多维评分管线结构化提炼。