arXiv Science⌕ Search

arXiv · 2611.31811

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nikolaos Nikolaou. 2026-11-24. How Far Apart Are Two Proofs? Measuring Proof Dissimilarity in a Proof Kernel and in Lean/Mathlib. https://arxiv.science/abs/2611.31811

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

The Gentzen-style monadic translation of Gödel's System T revisited

We revisit the Gentzen-style monadic translation of Gödel's System T. The translation is parametrized by a nucleus, a monad-like structure that need not satisfy the monad laws. A fundamental theorem of logical relations provides a uniform correctness argument for its instances. By choosing suitable nuclei, we obtain majorants, moduli of pointwise continuity on Baire space and of uniform continuity on its pointwise bounded subsets, Church encodings of dialogue trees, and general bar recursors, all represented by terms of T. For the lifting nucleus, we give a uniform construction of generic elements at arbitrary finite types and use its type-2 instance to prove sequential continuity of T-definable functionals of type 3. We also extend the translation and its fundamental theorem to sums and finite lists. Lastly, we prove a fundamental theorem of logical relations for the Kuroda-style translation and use it to verify the extracted moduli of pointwise continuity.

cs.LO↗

The Failure of the Uniform Interpolation Property of Intuitionistic Epistemic Logic IEL

We prove that neither intuitionistic epistemic logic IEL nor its weaker variant IEL$^{-}$, obtained by omitting the weak factivity axiom $\Boxφ\to\neg\negφ$, has the uniform interpolation property. More precisely, the formula $((q\to p)\land(\Box p\to p))\land(p\to r)$ has no uniform post-interpolant, and the formula $(((q\to p)\land(\Box p\to p))\land(p\to r))\to r$ has no uniform pre-interpolant, both with respect to the same propositional variable $p$. The counterexamples work in every logic between IEL$^{-}$ and IEL. The proof is syntactic and uses the cut-free sequent calculus of Krupski and Yatmanov.

cs.LO↗

From Proof Construction to Independent Checking: Reproducing the Lean Verification of RH and Dirichlet GRH on AArch64

Constructing a formal proof and checking a completed one are distinct computational tasks. We examine their practical separation through a reproduction of the compact Lean formalization of RH and Dirichlet GRH. On an NVIDIA DGX Spark (AArch64), with execution restricted to logical CPUs 0--7, the source build finished in 48 min 44 s and the sandboxed paranoid Comparator workflow in 3 h 47 min 15 s. The five formal targets passed the Comparator's checks, and seven checker invocations accepted the exported solution. Pinned source revisions, logs, and checksums document the result: a full multi-checker verification conducted on a single workstation.

cs.LO↗