How Far Apart Are Two Proofs? Measuring Proof Dissimilarity in a Proof Kernel and in Lean/Mathlib
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.LO, cs.AI, cs.LG
Related papers
Tableau Consequence under Positive Contexts: A Reconstruction of Walukiewicz's Completeness Proof
Shared title terminologycs.LOKuniaki Tamura
TPTL-dist: A Formalised Calculus with Proof Automation for Verifying Real-Time Distributed Systems
Shared title terminologycs.LOJavier Enríquez Mendoza, Sam Speight, Vincent Rahli
Proof Checking Continuous Reachability
Shared title terminologycs.LOLong Qian, André Platzer
Proof-Relevant Interpolation for Circular Proofs in Linear Logic
Shared title terminologycs.LODaniel Osorio-Valencia, Alexis Saurin
Canonical Proof Nets for Intuitionistic Multiplicative Linear Logic
Shared title terminologycs.LOMatteo Acclavio, Willem Heijltjes, Dominic J. D. Hughes
Towards Understanding the Complexity of CAQE: A Proof-Theoretic Analysis of its Core Procedure
Shared title terminologycs.LOBenjamin Böhm, Olaf Beyersdorff