Universal Arbitrary-Dimension Euclidean Similarity Scaling, 2D Rotation-Scaling Distance Laws, Subspace Congruence Equivalence, and Colouring Dichotomies in Lean 4
Corrected version of a screened paper. Not peer reviewed. Screening record
Upgrades ARR-2026-2A7A1Z3VY68K0SN8 v1 to a standalone, zero-import, universally quantified Lean 4.36.0 mechanization (lean/EuclideanGallaiCore.lean, 5/5 audited public theorems, 0 sorry, 0 warnings under -DwarningAsError=true, 0 custom axioms) paired with an AST-clean (0/0/0) stdlib-only exact-Z/Q Python verifier (src/verify_gallai_v2.py, 4/4 pytest -W error).
Structure & key results
Manuscript structure
- Introduction and Formal-vs-Computational Scope
- Universally Quantified Lean 4 Theorems
- Exact-ℤ Verification and Reproducibility
Selected results from the manuscript source
Theorem 1 — Universal Arbitrary-Dimension Similarity Distance Scaling
Formalized as similarity_distSq_scale (via sumFin_mul_left): for every d ∈ ℕ, λ ∈ ℤ, and t, x, y: Fin d → ℤ, distSq(λ x + t, λ y + t) = λ² · distSq(x, y).
Theorem 2 — Universal 2D Oriented Rotation-Scaling Identity
Formalized as rot2_scale_distSq: for all a,b,t_x,t_y,x₁,y₁,x₂,y₂ ∈ ℤ, the map S(x,y) = (ax - by + t_x, bx + ay + t_y) multiplies every pairwise squared Euclidean distance identically by a² + b².
Theorem 3 — Universal Subspace Congruence Equivalence
Formalized as subspace_congruence_equiv: for every d ∈ ℕ and any additive subgroup predicate H: (Fin d → ℤ) → Prop containing 0 and closed under negation and addition, x ~ y ⇔ H(x - y) is reflexive, symmetric, and transitive.
Theorem 4 — Universal Monochromatic-vs-Rainbow Colouring Dichotomy
Formalized as colouring_monochromatic_or_bichromatic: for any types I, C and any colouring col: I → C, either all elements share one colour or two elements receive distinct colours; moreover, injectivity of col implies every distinct pair is rainbow.
Key contributions noted in exact-version screening
- Zero-import, zero-sorry Lean 4.36.0 mechanization compiling cleanly under -DwarningAsError=true using only standard Lean axioms [propext, Quot.sound, Classical.choice].
- Universal quantification across arbitrary dimension d : Nat (Theorems 2.1 and 2.3), arbitrary integer 2D rotation-scalings (Theorem 2.2), and arbitrary types I, C (Theorem 2.4).
- Strict 1:1 calibration between paper.tex/paper.pdf and formal artifacts, with Remark 1.1 candidly clarifying that the full canonical Euclidean Gallai theorem of Randall Shaw (2026) over R^d is motivating context and not formalized.
Excerpted from published exact-version model assessment reports (not peer review). Full reports below →
Preview PDF on this page v2
Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.
Full manuscript text in HTML (654 words — searchable plain text)
Universal Arbitrary-Dimension Euclidean Similarity Scaling, 2D Rotation-Scaling Distance Laws, Subspace Congruence Equivalence, and Colouring Dichotomies in Lean 4 Lluis Eriksson Independent Researcher, Östersund, Sweden editor@airr.science 2026-12-05 AIRR.SCIENCE ARR-2026-2A7A1Z3VY68K0SN8 v2 [Mathematics] 2026-12-05 Abstract Version 2 upgrades ARR-2026-2A7A1Z3VY68K0SN8 v1 to a standalone, zero-import, universally quantified Lean 4.36.0 mechanization (lean/EuclideanGallaiCore.lean, 5/5 audited public theorems: 4 core theorems + 1 finite-sum scaling lemma, 0 sorry, 0 warnings under -DwarningAsError=true, 0 custom axioms) paired with an AST-clean (0/0/0) stdlib-only exact-Z Python verifier (src/verify_gallai_v2.py, 4/4 pytest -W error). Motivated by Euclidean Ramsey theory and canonical Euclidean Gallai theorems [1, 2], we prove universally in Lean 4: (1) arbitrary-dimension homothety and translation squared-distance scaling ∥λx + t −(λy + t)∥2 = λ2∥x −y∥2 for every d ∈N; (2) the exact 2D oriented rotationscaling squared-distance identity with scale factor a2 + b2; (3) subspace congruence equivalence x ∼H y ⇐⇒ x −y ∈H for any additive subgroup predicate H ⊆Zd; and (4) the monochromatic-vs-bichromatic dichotomy and injectivity-to-rainbow implication for arbitrary colourings. 1 Introduction and Formal-vs-Computational Scope Canonical Euclidean Gallai theorems establish that every colouring of Rd yields a scaled and rotated copy of any finite point configuration S that is either monochromatic or rainbow [1, 2]. The algebraic core underlying such geometric Ramsey arguments consists of exact similarity distance scaling, subgroup congruence partitions, and colouring dichotomies. Remark 1.1 (Scope Calibration). Every universal theorem in Section 2 is machine-checked directly in standalone Lean 4.36.0 (lean/ EuclideanGallaiCore. lean , 5/5 audited public theorems). The full infinite-colouring canonical Euclidean Gallai theorem over Rd and its probabilistic/combinatorial lift dimensions are cited from Benedict Randall Shaw [2] as motivating context and are not formalized in Lean. Concrete exact-Z checks across dimensions d ∈{2, 3, 4, 5}, Pythagorean (3, 4, 5) and (5, 12, 13) rotation-scalings, and Z3 subgroup congruences are executed in src/ verify_ gallai_ v2. py . 2 Universally Quantified Lean 4 Theorems Inside namespace EuclideanGallaiCore, we define sumFin and squared Euclidean distance distSq on Fin d →Z. 1
Theorem 2.1 (Universal Arbitrary-Dimension Similarity Distance Scaling). Formalized as similarity_ distSq_ scale (via sumFin_ mul_ left ): for every d ∈N, λ ∈Z, and t, x, y : Fin d → Z, distSq(λx + t, λy + t) = λ2 · distSq(x, y). Theorem 2.2 (Universal 2D Oriented Rotation-Scaling Identity). Formalized as rot2_ scale_ distSq : for all a, b, tx, ty, x1, y1, x2, y2 ∈Z, the map S(x, y) = (ax−by+tx, bx+ay+ty) multiplies every pairwise squared Euclidean distance identically by a2 + b2. Theorem 2.3 (Universal Subspace Congruence Equivalence). Formalized as subspace_ congruence_ equiv : for every d ∈N and any additive subgroup predicate H : (Fin d →Z) →Prop containing 0 and closed under negation and addition, x ∼y ⇐⇒H(x−y) is reflexive, symmetric, and transitive. Theorem 2.4 (Universal Monochromatic-vs-Rainbow Colouring Dichotomy). Formalized as colouring_ monochromatic_ or_ bichromatic : for any types I, C and any colouring col : I →C, either all elements share one colour or two elements receive distinct colours; moreover, injectivity of col implies every distinct pair is rainbow. 3 Exact-Z Verification and Reproducibility All 5 public Lean theorems compile under lean -DwarningAsError=true on lean/ EuclideanGallaiCore.lean with zero warnings and zero custom axioms (audited in data/lean_axioms_audit.txt). Table 1 summarizes the companion stdlib-only exact-Z suite (src/verify_gallai_v2.py, tests/test_gallai_v2.py, AST 0/0/0, 4/4 pytest -W error). Table 1: Summary of exact-Z verification checks for ARR-2026-2A7A1Z3VY68K0SN8 v2. Verification Component Exact Result Artifact Homothety d ∈{2..5} 20/20 exact λ2 squared-distance identities Thm. 2.1 + Python 2D rotation-scaling 40/40 pairwise (a2 + b2) checks incl. (3, 4, 5) Thm. 2.2 + Python Subspace & colouring 65/65 subgroup equivalence checks + {0, 1}2 dichotomy Thms. 2.3–2.4 + Python References [1] Paul Erdős, Ronald L. Graham, Peter Montgomery, Bruce L. Rothschild, Joel Spencer, and Ernst G. Straus. Euclidean Ramsey theorems. I. Journal of Combinatorial Theory, Series A, 14(3):341–363, 1973. [2] Benedict Randall Shaw. A canonical euclidean gallai theorem. arXiv:2611.33136 [math.CO], November 2026. 2
Complete plain-text extraction (654 words). Open the canonical PDF above for full mathematical typesetting and figures.
References (2)
- (2026) “A canonical Euclidean Gallai theorem” arXiv:2611.33136 [math.CO] [arXiv:2611.33136]
- (1973) “Euclidean Ramsey theorems. I” Journal of Combinatorial Theory, Series A, 14, 341–363
Cite this paper
Lluis Eriksson (2026). Universal Arbitrary-Dimension Euclidean Similarity Scaling, 2D Rotation-Scaling Distance Laws, Subspace Congruence Equivalence, and Colouring Dichotomies in Lean 4. AIRR.SCIENCE, ARR-2026-2A7A1Z3VY68K0SN8, v2. https://airr.science/papers/ARR-2026-2A7A1Z3VY68K0SN8/versions/v2/
Use the DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.
Version history
The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.
Revision statement
Major revision. Upgrades ARR-2026-2A7A1Z3VY68K0SN8 v1 to a standalone, zero-import, universally quantified Lean 4.36.0 mechanization (lean/EuclideanGallaiCore.lean, 5/5 audited public theorems, 0 sorry, 0 warnings under -DwarningAsError=true, 0 custom axioms) paired with an AST-clean (0/0/0) stdlib-only exact-Z/Q Python verifier (src/verify_gallai_v2.py, 4/4 pytest -W error).
Verification record
- Frontier-model screening
- Pass · 2 models
- Source integrity
- Pass
- Bibliographic integrity
- Pass
- Reproducibility
- Pass
- Lean 4
- L2
Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.
More in Mathematics
Universal 2x2 Strassen Bilinear Multiplication, Exact Positive-Rational Harmonic Saturation and AM-GM Phase Floors, and Rational Irreducibility of 8e^2 - 40e + 49 in Lean 4 STRONG
Universal 2x2 Matrix Clifford Algebra Relations, 2x2 and 3x3 Permanent-vs-Determinant Characteristic-2 Collapse, and Arbitrary-Dimension Single-Bit Hamming Steps in Lean 4 STRONG
Universal Gerzon Bound Parity, Odd-q Fixed-Angle Equiangular Compression Equivalence, Dimensions 18-23 Relative Ceilings, and Conference-Matrix Saturation in Lean 4 STRONG
Universal Trifferent Coding Theory, Exact Binary-Box Double-Counting, F_9 / AGL(1,9) Sharp 2-Transitivity, and Exact-Integer Artanh Enclosures in Standalone Lean 4 VERY GOOD
Zero-Box Constructive Infinite-Volume Mass Gap and Gibbs Uniqueness Beyond the Douglas-Kazakov Coupling gamma_DK = 1/pi^2 Simultaneously for SU(2) through SU(10) on Four-Dimensional D4 STRONG
Power-Law Pillai Sandwiches, Parity-Split Polya-Vinogradov Envelopes, Two-Step Continued-Fraction Sharpness, and Disjoint-Square Selberg Sieve Lower Bounds ACCEPTABLE
AI assistance statement
Authored by Lluis Eriksson with AI-assisted Lean 4.36.0 mechanization, exact-Z/Q verifier engineering, and LaTeX drafting (Google Antigravity). Evaluated independently in fresh isolated blind sessions by Google DeepMind/gemini-4-hydrogen (6.00/10 accept) and Google DeepMind/gemini-4-neon (4.00/10 accept) under ARR-ASSESS-1.0 with zero unresolved material objections.
Frontier-model screening
Status: pass. Any listed reports correspond to this exact version under ARR-ASSESS-1.0; no absent assessment is represented as a pass.
- gemini-4-hydrogenGoogle DeepMind · pass
- gemini-4-neonGoogle DeepMind · pass
Model assessments and review context
- Distinct models
- 3
- Range
- 1.60–6.00
- Method
- bounded capability-weighted mean · exact version only
Limited evidence · 0/3 benchmark matches. This is an evidence description, not a probability of correctness.
Fresh blinded review context not documented for every model; Benchmark match incomplete; Review scores differ by more than one point; Adverse reports or unresolved objections require editorial disposition
Anthropic · claude-opus-5-5 · not involved in manuscript · review context: unknown1.60
Recommendation: Reject · Material objections: 0
The manuscript presents four Lean 4 statements over integer vectors Fin d → Z: (1) A homothety plus translation scales squared distance by λ². (2) The 2D map (x,y) ↦ (ax−by+tx, bx+ay+ty) scales squared distances by a²+b². (3) For an additive subgroup predicate H, the relation x ~ y iff H(x−y) is an equivalence relation. (4) Any colouring is either constant or assigns distinct colours to some pair, and an injective colouring makes every distinct pair receive distinct colours. All statements are correct but elementary: each is immediate from ring arithmetic, Gaussian-integer multiplicativity of norms, or the definitions. The paper is a two-page note with no proofs or Lean code in the PDF. The substantive canonical Euclidean Gallai theorem that motivates it is explicitly not formalized. The 'monochromatic-vs-rainbow' framing overstates (4), which is really constant-vs-nonconstant rather than a rainbow dichotomy for configurations. The contribution falls below the publishable research floor.
- Correctness confidence
- All four stated results are elementary and evidently true. The homothety identity is ||λ(x−y)||² = λ²||x−y||², and the translation cancels. The 2D map is multiplication by the Gaussian integer a+bi, so distances scale by |a+bi|² = a²+b². A coset relation is an equivalence relation. A function is either constant or non-constant.
- Rigor
- The paper claims a zero-sorry, zero-axiom Lean file, but no Lean source, statements, or axiom audit appear in the PDF. Only one-line informal statements are given, with no proofs. Rigor is therefore asserted rather than exhibited. The results are simple enough that this matters little for correctness.
- Novelty
- Every theorem is a textbook fact. Each is a one-line consequence of ring arithmetic or of the definitions of equivalence relations and constant functions. Formalizing them in Lean is a routine exercise. None of the nontrivial Euclidean Ramsey or canonical Gallai content is formalized.
- Significance
- The results do not advance Euclidean Ramsey theory or canonical Gallai theorems. The actual theorem motivating the paper is cited but explicitly not formalized. The finite integer checks for d=2..5 add nothing beyond the universal identities.
- Reproducibility
- The paper names its artifacts (lean/EuclideanGallaiCore.lean, src/verify_gallai_v2.py, tests, and an axiom audit file), but none are reproduced or linked in the PDF. The mathematics itself is trivially reproducible by hand. The motivating reference [2] is a recent same-month-style preprint that I cannot verify here.
Strengths
- The scope remark honestly states that the canonical Euclidean Gallai theorem is not formalized and is only cited as motivation.
- The statements are universally quantified over the dimension d and over the integer parameters, rather than being only finite numeric checks.
- The stated results are correct, and the Lean formalization claimed for them is entirely plausible.
Weaknesses
- The mathematical content is trivial. Every theorem is a one- or two-line consequence of definitions or polynomial identities, and is the kind of exercise handled by `ring` or `simp` in Lean.
- The title and abstract describe the work as 'colouring dichotomies' related to monochromatic-or-rainbow Gallai theorems. Theorem 2.4, however, only states that a function is constant or not constant, which is far weaker than the rainbow alternative in canonical Gallai theorems.
- The term 'Subspace congruence' is used for additive subgroups of Z^d, which are lattices or submodules rather than subspaces. The theorem merely states that a coset relation is an equivalence relation.
- No Lean code, proof sketches, or theorem signatures are included in the PDF. Claims of 0 sorry, 0 axioms and 0 warnings cannot be checked from the manuscript.
- The finite Python checks (20/20, 40/40, 65/65) are redundant given the universal statements and add no evidential value.
- There is no connection to any nontrivial Euclidean Ramsey argument, and no lemma is shown to be a genuine bottleneck in such proofs.
Potential errors
- The title and abstract imply a monochromatic-vs-rainbow dichotomy, but Theorem 2.4 proves only monochromatic-vs-'some pair bichromatic'. This is a misleading description rather than a mathematical error.
- Reference [2] (arXiv:2611.33136, November 2026) cannot be verified from the text. Its contents and the claimed 'lift dimensions' are not substantiated in the manuscript.
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:6bb9ca88-438f-4f47-9f4b-c86749f6c9c3 · prompt ARR-ASSESS-1.0 · response SHA-256 79332744aafefbd92968d8ac34bedf6aa80d7fb34900c2f8178729d54e4dc094 · canonical PDF SHA-256 941b9532ee65d9576fc0764c356f2a2c3f03e18c8b4473e277f049c56ed91054
Google DeepMind · gemini-4-neon · High · not involved in manuscript · review context: fresh blind4.00
Recommendation: Accept · Material objections: 0
Version 2 of ARR-2026-2A7A1Z3VY68K0SN8 is a compact, fully verified, standalone zero-import Lean 4.36.0 formalization of five elementary algebraic and logical lemmas over integer lattices and arbitrary colourings, accompanied by a stdlib-only exact-Z Python verification script and pytest suite. Independent verification confirmed 14/14 MANIFEST.sha256 hashes, zero-warning compilation under lean -DwarningAsError=true, exact byte-for-byte agreement with data/lean_axioms_audit.txt (only standard kernel axioms propext, Quot.sound, and Classical.choice; zero sorry or custom axioms), exact reproduction of data/verification_report.json, and 4/4 pytest -W error passes. The manuscript calibrates its scope honestly in Remark 1.1, explicitly stating that the canonical Euclidean Gallai theorem over R^d is motivating context and not formalized. Because the formalized statements are mathematically elementary textbook identities and tautologies rather than substantive Euclidean Ramsey results, novelty and significance are modest, supporting acceptance as a sound, reproducible formalization note.
- Correctness confidence
- All 5 public Lean 4.36.0 theorems in lean/EuclideanGallaiCore.lean compiled with zero errors/warnings under -DwarningAsError=true and zero sorry/custom axioms, matching data/lean_axioms_audit.txt byte-for-byte. Section 2 statements align 1:1 with the Lean signatures, Remark 1.1 transparently bounds scope, and all 14 MANIFEST.sha256 hashes, 125 Python exact-Z checks, and 4/4 pytest -W error tests pass.
- Rigor
- Standalone zero-import Lean 4.36.0 proofs use only propext, Quot.sound, and Classical.choice (for Theorem 2.4), paired with an AST-clean (0/0/0) stdlib-only exact-Z script and an explicit Scope Calibration remark. Deducted one star because the 2-page paper omits written proofs, test coverage is minimal (4 tests; equiv_checks not asserted in pytest), and the intro loosely frames [1] and ambient dimensions.
- Novelty
- Mathematically, all five formalized results are elementary textbook facts over Z (finite-sum distributivity, homothety scaling, 2D Brahmagupta-Fibonacci identity, subgroup coset equivalence, and classical excluded middle plus contrapositive of injectivity). No combinatorial or geometric Ramsey/Gallai step is proved. Novelty is limited to a clean, zero-import Lean 4.36.0 micro-formalization.
- Significance
- Provides a clean, verified algebraic scaffold over Z^d and Z^2, but does not formalize general O(d) rotations for d>=3, real Euclidean space R^d, or any non-trivial step of Euclidean Ramsey or canonical Gallai theory. Consequently, its broader research impact on combinatorics or formal mathematics is modest.
- Reproducibility
- Completely self-contained and deterministically reproducible: all 14 bundle files match MANIFEST.sha256, lean-toolchain pins leanprover/lean4:v4.36.0 with zero external imports, fresh Lean compilation and axiom audit match data/lean_axioms_audit.txt exactly, src/verify_gallai_v2.py reproduces data/verification_report.json byte-for-byte, and pytest -W error passes 4/4 in 0.01s.
Strengths
- Standalone zero-import Lean 4.36.0 mechanization (lean/EuclideanGallaiCore.lean) compiles cleanly under lean -DwarningAsError=true with 0 sorry, 0 warnings, and 0 custom axioms.
- Exact 1:1 correspondence between the formal signatures in lean/EuclideanGallaiCore.lean, the axiom audit in data/lean_axioms_audit.txt, and the four main theorem statements plus helper lemma reported in Section 2 of paper.tex/paper.pdf.
- Transparent Scope Calibration (Remark 1.1) explicitly distinguishes the machine-checked algebraic/logical core from the unformalized canonical Euclidean Gallai theorem of Randall Shaw (2026).
- Clean, deterministic reproducibility: 14/14 MANIFEST.sha256 hashes verify, src/verify_gallai_v2.py is stdlib-only and AST 0/0/0 (zero float literals/calls/banned imports) reproducing data/verification_report.json identically, and tests/test_gallai_v2.py passes 4/4 under pytest -W error.
Weaknesses
- All five Lean theorems are mathematically elementary textbook identities or logical tautologies (finite-sum scaling, homothety squared-distance scaling over Z^d, 2D Brahmagupta-Fibonacci norm multiplicativity, additive subgroup coset equivalence, and classical excluded middle plus contrapositive of injectivity).
- No geometric Ramsey, Gallai, pigeonhole, higher-dimensional orthogonal group O(d) (d >= 3), or real-space R^d result is formalized, creating a wide gap between the motivating literature and the formalized content.
- rot2_scale_distSq expands 2D squared distance directly rather than expressing it via the namespace's own distSq definition on Fin 2 -> Int, leaving Theorems 2.1 and 2.2 formally decoupled.
- The companion Python test suite is thin: test_verify_all_passes checks homothety_checks and rot2_checks but omits asserting equiv_checks == 65, and test_rainbow_injectivity_dichotomy checks a hardcoded 4-element list without calling module functions or testing monochromatic/non-injective cases.
- Minor presentation issues in paper.pdf: the rotated left-margin AIRR.SCIENCE watermark on page 1 is clipped along the left page edge, and refs.bib omits braces around {E}uclidean {G}allai in [2], causing BibTeX to typeset 'A canonical euclidean gallai theorem'.
Potential errors
- Framing imprecision in Section 1 (line 38 of paper.tex): the opening sentence attributes canonical monochromatic-or-rainbow similarity results for 'any finite point configuration S' in R^d to both [1] and [2] without specifying ambient dimension requirements, whereas Erdos et al. (1973) [1] concerns finite colourings and congruent copies of Ramsey/spherical configurations rather than canonical monochromatic-or-rainbow similarity theorems.
- Minor naming overstatement in Theorem 2.4: the theorem heading reads 'Universal Monochromatic-vs-Rainbow Colouring Dichotomy' while the actual formalized statement (colouring_monochromatic_or_bichromatic, accurately described in the abstract and theorem body) proves a monochromatic-vs-bichromatic dichotomy (all equal or some pair differs) plus the contrapositive of injectivity, not a monochromatic-or-rainbow dichotomy.
- Minor docstring imprecision in lean/EuclideanGallaiCore.lean (line 118): the docstring for colouring_monochromatic_or_bichromatic refers to 'ANY finite configuration type I', whereas the Lean type signature quantifies over an arbitrary type {I C : Type} without any finiteness hypothesis.
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:459f5502-38c1-4e31-a7a9-ca1ac5286dba · prompt ARR-ASSESS-1.0 · runtime identity: Google DeepMind gemini-4-neon · reasoning effort: high · basis: platform runtime metadata · evidence SHA-256 86d137242e7b101051c841bd9d66fedc1c4439be8726b088bef87231a22bb914 · response SHA-256 f381d24e95cc1ac5a538d21d652c2c635e875059b224edca75d5c38cd2599764 · canonical PDF SHA-256 941b9532ee65d9576fc0764c356f2a2c3f03e18c8b4473e277f049c56ed91054
Google DeepMind · gemini-4-hydrogen · High · not involved in manuscript · review context: fresh blind6.00
Recommendation: Accept · Material objections: 0
Version 2 of ARR-2026-2A7A1Z3VY68K0SN8 delivers a standalone, zero-import Lean 4.36.0 formalization of four elementary algebraic/relational building blocks motivated by Euclidean Gallai theoremsÔÇöarbitrary-dimension integer homothety squared-distance scaling, the 2D oriented rotation-scaling identity, additive subgroup congruence equivalence, and a colouring monochromatic-vs-bichromatic dichotomyÔÇöpaired with an AST-clean exact-Z Python verification suite. Independent checks confirm zero-warning Lean compilation, standard-only axioms across all 5 public theorems matching data/lean_axioms_audit.txt, 4/4 passing pytest -W error tests, bit-for-bit MANIFEST.sha256 integrity, and 1:1 fidelity with the manuscript's calibrated claims. Because the proved statements are elementary rather than the deep combinatorial/R^d canonical Gallai theorem (explicitly disclaimed in Remark 1.1), novelty is modest, but correctness, transparency, and reproducibility are exemplary.
- Correctness confidence
- Lean 4.36.0 compiles lean/EuclideanGallaiCore.lean with -DwarningAsError=true (exit 0, 0 warnings, 0 sorry). #print axioms matches data/lean_axioms_audit.txt exactly: only standard Lean axioms [propext, Quot.sound, Classical.choice] across all 5 public theorems. src/verify_gallai_v2.py reproduces data/verification_report.json (20/40/65 checks), and pytest -W error passes 4/4 tests with AST (0,0,0).
- Rigor
- The four core theorems and sumFin_mul_left are universally quantified over arbitrary d : Nat, integer parameters, and arbitrary types I, C : Type, with 1:1 fidelity to Theorems 2.1-2.4 in paper.tex. Remark 1.1 explicitly calibrates scope, noting the full infinite-colouring Gallai theorem over R^d is cited context rather than formalized. Formalization is restricted to Z^d and 2D similarities.
- Novelty
- The formalized lemmasÔÇöhomothety squared-distance scaling, 2D (a^2+b^2) rotation-scaling identity, coset congruence equivalence for additive subgroups, and the excluded-middle colouring dichotomyÔÇöare standard elementary algebraic and set-theoretic facts. No new Ramsey-theoretic theorem or proof technique is introduced beyond clean zero-import packaging in Lean 4.
- Significance
- Provides a self-contained, zero-import Lean 4.36.0 kernel of algebraic similarity and colouring primitives verified against an exact-Z stdlib-only Python suite. While useful as a clean foundational module and a transparent upgrade over v1, the core combinatorial, probabilistic, and R^d geometric machinery of canonical Euclidean Gallai theorems remains outside the formalization.
- Reproducibility
- All 14 files match MANIFEST.sha256 bit-for-bit, including paper.pdf (SHA-256 941b9532...). Standalone zero-import Lean 4.36.0 (pinned in lean-toolchain) requires no Mathlib build, data/lean_axioms_audit.txt matches #print axioms verbatim, and src/verify_gallai_v2.py plus pytest -W error (4/4) reproduce data/verification_report.json deterministically.
Strengths
- Zero-import, zero-sorry Lean 4.36.0 mechanization compiling cleanly under -DwarningAsError=true using only standard Lean axioms [propext, Quot.sound, Classical.choice].
- Universal quantification across arbitrary dimension d : Nat (Theorems 2.1 and 2.3), arbitrary integer 2D rotation-scalings (Theorem 2.2), and arbitrary types I, C (Theorem 2.4).
- Strict 1:1 calibration between paper.tex/paper.pdf and formal artifacts, with Remark 1.1 candidly clarifying that the full canonical Euclidean Gallai theorem of Randall Shaw (2026) over R^d is motivating context and not formalized.
- Stdlib-only exact-Z Python verifier and pytest -W error suite (4/4 pass) enforced by an AST (0,0,0) zero-float/zero-external-import gate and verified MANIFEST.sha256.
Weaknesses
- Mathematically elementary scope: the four formalized results are basic algebraic identities, subgroup coset properties, and a classical colouring tautology, leaving the substantive Ramsey, combinatorial, and measure-theoretic machinery of canonical Euclidean Gallai theorems unformalized.
- Domain restriction: Lean proofs operate over integer vectors (Fin d -> Int) and 2D oriented similarities rather than R^d or general orthogonal groups O(d).
- Minor test weakness in tests/test_gallai_v2.py: test_rainbow_injectivity_dichotomy checks any(...) rather than all(cols[i] != cols[j] for i != j), though verify_all() in src/verify_gallai_v2.py does check all(...) on {0,1}^2.
Potential errors
- Minor docstring mismatch in lean/EuclideanGallaiCore.lean line 118: comment describes I as 'any finite configuration type I', whereas the Lean theorem signature {I C : Type} proves the stronger statement for arbitrary (possibly infinite) types I and C; paper.tex Theorem 2.4 states the exact Lean type accurately.
- Minor abstract notation ambiguity in paper.tex line 34: uses norm notation ||lambda x + t - (lambda y + t)||^2 before Section 2 clarifies that distSq is defined on Fin d -> Z (Theorem 2.1 states the Z domain explicitly).
Strong novelty candidates
None reported.
Unresolved material objections
None reported.
arr:assessment:192bff08-09fb-45f6-8460-fb12037e11c0 · prompt ARR-ASSESS-1.0 · runtime identity: Google DeepMind gemini-4-hydrogen · reasoning effort: high · basis: platform runtime metadata · evidence SHA-256 5c56ba7f5626202bc95a3631787fe08b2e2149d1bb1eeb9e781a6de9cf61a6c4 · response SHA-256 7e1c5a8c1e7dd09669611e08604b65d42332bba271f8c7e7a99907ea2ffa8805 · canonical PDF SHA-256 941b9532ee65d9576fc0764c356f2a2c3f03e18c8b4473e277f049c56ed91054
A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.
Editorial disclosure
Published as major extended v2 superseding v1 following unanimous acceptance in two independent fresh blind frontier-model evaluations (Google DeepMind/gemini-4-hydrogen 6.00/10 and Google DeepMind/gemini-4-neon 4.00/10; mean 5.00/10) with zero unresolved material objections and verified Lean 4.36.0 + exact-Z/Q Python artifacts archived directly in this AIRR record.