Findings¶
Results of the source audits behind CODES. Each finding is tied to a file and line in a pinned clone of the system’s repository (see the system cards for links).
Truth-foundation audit (November 2026)¶
The audit asked one question of every system: what must be trusted for a certified statement to be true?
LeanEuclid’s automation rests on an inconsistent axiom.
euclid_finishcloses goals withaxiom SMT_VERIF (P : Prop) : P(SystemE/Meta/Smt/Solver.lean:44-54). When the solver times out, the goal is closed withsorry. The SMT background theory (Meta/Smt/EuclidTheory.lean) is written by hand, not derived from the Lean axioms. Kernel checking therefore covers the rule applications but not the premises the oracle discharges, which places LeanEuclid at L3 on the Truth Ladder, not L4.mathlib4 is the only surveyed system with no geometric axioms.
Geometry/EuclideanandLinearAlgebra/AffineSpacecontain noaxiom,sorry, ornative_decide. Geometry is defined from real inner-product spaces (L5).GeoCoq makes its axioms explicit as type-class hypotheses. Every theorem is relative to its class: Tarski, Hilbert, or Euclid/Beeson. The classes are proved to interpret one another and to hold over any real closed field.
The rule engines decide their side conditions numerically. AlphaGeometry decides
ncoll,npara,nperpandsamesideon a random float diagram (dd.py:864-892) and resamples it until the goal holds (graph.py:500-523). Newclid checks every predicate numerically first, withREL_TOL = 0.001.geometor.model is exact on almost every path, with one numeric acceptance branch.
zero_test(algebra.py:160-253) decides by exact expansion, ℚ(φ)/ℚ(√φ) field arithmetic, andminimal_polynomial. For large constant expressions, however, it accepts|evalf(80)| < 1e-65as zero (algebra.py:247-251). This is a candidate for a strict mode ingeometor.model.CindyJS’s “prover” is randomized. It guesses incidences within
1e-6, perturbs the free elements three times, and keeps the conjectures that survive (libgeo/Prover.js). This places it at L0.An exact instance becomes a generic proof once the coordinates are free. The showcase lifts four
geometor.modelwitnesses (I.5, I.47, III.31, Simson) from L1 to L2. Each uses free symbolic parameters, and its conclusion polynomial reduces exactly to zero. Pasch cannot be lifted this way: it is a statement about order, which needs an ordered field.
Headline forensic discoveries (2025 survey)¶
Unverified Trust Oracle & Six Missing Lemmas in LeanEuclid:
LeanEuclid(Murphy2024) faithfully separates constructive steps (euclid_apply) from diagrammatic topology, and its 7 rules inIntersections.leancorrespond 1-to-1 withgeometor.model.intersect’s selectors (side_of,between,beyond). Yet source inspection ofSystemE/Meta/Smt/Solver.lean:44-55reveals thateuclid_finishcloses goals viaprivate axiom SMT_VERIF (P : Prop) : Pwithout reconstructing proof terms in the Lean 4 kernel, whileBook/Prop47.lean:25-60isolates six topological square-orientation lemmas missed by Euclid in the Bride’s Chair proof.Metatheoretic Gold & Classical Gaps in GeoCoq: Across 481 Coq files and 4,671 kernel-checked lemmas (Boutry2019),
GeoCoqproves bidirectional equivalences between Tarski, Hilbert, and Euclid, 34 equivalent parallel postulates, neutral-geometry midpoint existence without circles, and an explicit proof ofFalsewhen non-collinearity is omitted from cut-and-paste area axioms—yet omits the Nine-Point CircleX(5), Steiner circle power, radical axes, circle inversion, pole–polar reciprocity, conics, and the golden ratio.Dimension-Polymorphic Elegance vs. Noncomputable Projective Gaps in Mathlib4:
Mathlib/Geometry/Euclidean/(Mathlib2020) generalizes the orthocenter (mongePoint), the \(3(n+1)\)-point Feuerbach sphere,Sphere.power,inversion, and 1-line La Hire pole–polar reciprocity to arbitrary dimension \(n\)—yet is pervasivelynoncomputable, lacks a constructiveEuclid I.1theorem, documents a 20-line cyclic-orderTODOinSphere/Ptolemy.lean:22-41, and contains zeroradicalAxis,crossRatio,Menelaus,Pappus, orDesargues.Log-Ratio Bug & Expressiveness Walls in AlphaGeometry / Newclid: Source audit of
alphageometry/ar.py:425-431, 570-574(Trinh2024) uncovers a live bug whereRatioTable.add_const_ratioencodes \(m \log|s_1| - n \log|s_2| = 0\) (\(|s_1|^m = |s_2|^n\) instead of \(|s_1|/|s_2| = m/n\)), alongside silent drops of unprefixed post-;clauses in 12defs.txtstanzas. Architecturally, pureDD+ARcannot state \(a^2 + b^2 = c^2\) or disjoint radical axes (fixed in C++Yuclid’s squared-length AR) and cannot prove Pappus or Desargues without auxiliary parallel lines (forcingNewclidto hardcodeR44_PAPPUS_THEOREMandR70_PROJECTIVE_HARMONIC_CONJUGATEas axioms).The Unfinished Area Method in JGEX: Shang-Ching Chou, Xiao-Shan Gao, and Jing-Zhong Zhang’s coordinate-free Area Method (ChouGaoZhang1994) proves Pythagoras in 0 steps (
P_BAC = 0by definition), Orthocenter in 0 steps (Jacobi identity), and Pappus/La Hire/Cross-Ratio with zero auxiliary points—yet inJava-Geometry-Expert’s Java codebase,Area.java(213 lines) is an unfinished port whose GUI tab is commented out inPanelProve.java:112-116(TODO: Implement the area method).Clifford Dual Traps in GAlgebra vs. Conformal Triumphs in Kingdon:
galgebracrashes withAttributeErroron.dual()for every degenerate Projective Geometric Algebra (\(I^2 = 0\)), omits the regressive join&, and overloads>>as a commutator rather than a sandwich product. By contrast,kingdoncompiles exact SymPy polynomial blades where 2D CGA circle power is-2*(kappa | P), radical axis iskappa1 - kappa2, circumcenter isC * ni * ~C, and circle inversion isC >> P.Live Symbolic Bugs in SymPy Geometry (`1.14.0`): Source inspection of
sympy/geometry/reveals (a) a double live bug in ``Triangle.excenters`` (polygon.py:2714-2726: missing numerator parentheses-a*x[0] + b*x[1] + c*x[2]/(-a+b+c)plus wrong side-vertex pairing) and (b) a 2-digit float zero-test bug in ``Point.affine_rank`` (point.py:331-335:abs(x.n(2)) < 1e-12) causing exact rational non-collinear points to falsely test collinear, alongsidesolve()bottlenecks and missingHyperbola,inversion,radical_axis,polar, andcross_ratio.Byrne’s Pointer-Free Visual Pseudocode & The Universal Golden Blind Spot: Across
LeanEuclid,GeoCoq,mathlib4Geometry,AlphaGeometry, andNewclid, the Golden Ratio (\(\phi\)) and Book XIII Platonic Solids have zero geometric coverage. Remarkably, Oliver Byrne’s 1847 Coloured Euclid (Byrne1847; revived interactively by Nicholas Rougeux, Rougeux2018) not only pioneered pointer-free visual pseudocode (Given / To Prove / Construction / Proof with inline chromatic value-tokens), it also formalized Book II gnomons, Book III circle power, Book IV pentagons, and Book VI golden-ratio cuts—directly inspiring GEOMETOR’s synthesis of exact symbolic identifiers with interactive visual tokens.