Take a finite simple graph, mark some of its edges as wrap edges, and build the ℤ/2 connection Laplacian. This repository formalizes the resulting theory end to end in Lean 4 / Mathlib — the block decomposition into scalar and signed Laplacians, the orientation double cover, and the headline facts that the kernel dimension of the signed Laplacian counts the balanced components and the full connection Laplacian satisfies exact kernel and spectral identities.
Everything on the verified spine is machine-checked from the three standard
Lean axioms (propext, Classical.choice, Quot.sound) and nothing else.
Around the spine sits an explicit verification apparatus — a comparator pass
under a real sandbox, an independent reimplementation of the paper's
definitions, and exhaustive numerical sweeps — documented theorem by theorem
in Hardening/EVIDENCE-MAP.md.
The accompanying paper lives under paper/ and has been submitted as a
candidate to the upcoming FLoC Lisbon cycle.
DOI: https://doi.org/10.5281/zenodo.19695396 (concept DOI). It resolves to the latest archived release; each archived release is a snapshot of this repository at its tag. v.0.0.5 (2026-10-15, version DOI 10.5281/zenodo.23401896) predates the complete cycle-spectrum proofs and the corrections made after 15 October;
.github/release-notes/lists what each later release adds.
Mathlib contribution in progress. The staged Mathlib port field guide explains the reusable signed-graph definitions, energy/kernel proofs, corrected balance invariant, and the separate compilation and upstream-review gates.
| Layer | Contents | Epistemic status |
|---|---|---|
| Verified spine | everything imported by ConnectionLaplacian.lean |
machine-checked Lean proofs, CI-enforced trust boundary |
| Hardening harness | Hardening/ |
comparator challenge/solution modules, convention-anchor battery, run logs, evidence map, review adjudication |
| Numerical cross-checks | findings/ (rounds 2–6, 8–10; see methods note for omitted round 7) |
Python; empirical evidence for the formal statements, not theorems |
| Paper + guides | paper/, docs/ |
manuscript (LaTeX + PDF) and reader companions |
The repository is scoped solely to the ℤ/2 connection-Laplacian kernel-dimension theory: the verified spine, the paper, its numerical cross-checks, and the hardening harness around them. Nothing else is maintained here.
ConnectionLaplacian.lean imports exactly the spine below; every file is
maintained sorry-free and free of user-introduced axioms.
ConnectionLaplacian/Basic.leanConnectionLaplacian/KernelDimension.leanConnectionLaplacian/CycleSpectrum.leanConnectionLaplacian/CycleMultiset.lean(complete scalar and signed cycle spectra)ConnectionLaplacian/CycleGraphTransfer.lean(conditional full connection-spectrum transfer)ConnectionLaplacian/L5_Cover.leanConnectionLaplacian/L6_Cohomology.leanConnectionLaplacian/L8_Recognition.leanConnectionLaplacian/L9_Bounds.leanConnectionLaplacian/L10_CoverCharpoly.leanConnectionLaplacian/L11_Trees.leanConnectionLaplacian/L12_WalkH1.leanConnectionLaplacian/L13_PSD.leanConnectionLaplacian/L14_CycleEw.leanConnectionLaplacian/L15_BridgeMonotone.leanConnectionLaplacian/L16_SpectrumUnion.leanConnectionLaplacian/L17_TracesAndLipschitz.lean
Representative end theorems (plain-language gloss in parentheses):
cover_charpoly_eq_scalar_times_mobius(the cover's characteristic polynomial factors as scalar × signed)isBalanced_iff_closedWalk_wrap_even(balanced ⟺ every closed walk crosses an even number of wrap edges)signedLaplacianMobius_posSemidef(the signed Laplacian is PSD)numBalancedComponents_monotone_remove_nonbridge(deleting a non-bridge edge cannot destroy balanced components; the historicalnumBalancedComponents_monotone_remove_nonwrap_nonbridge, replayed by the comparator, carries an extra unused non-wrap hypothesis)mobius_charpoly_roots_eq_union(the Möbius spectrum is the scalar ⊎ signed multisets)frobenius_laplacian_decomposes(‖L‖²_F splits as scalar + signed parts)trace_mul_scalar_signed_eq(the polarisation identity for the mixed trace)Cycle.scalarCycle_charpoly_realandCycle.signedCycle_charpoly_real(complete cosine characteristic-polynomial products for n ≥ 3)Cycle.scalarCycle_roots_realandCycle.signedCycle_roots_real(exact root multisets, preserving every eigenvalue multiplicity)
These cycle results concern the specialised scalar and one-wrap signed
matrices defined in CycleSpectrum.lean. Five new theorems transfer their
characteristic polynomials and exact root multisets to a ConnGraph
conditional on a supplied vertex bijection and both matrix-reindexing
identities. Constructing those identifications from an abstract cycle-graph
hypothesis remains separate, unproved work.
See docs/cycle-spectrum-multiset-assembly.md.
The author originated the initial mathematical conjectures and designed the research apparatus. AI systems were directed to develop those conjectures, construct formalizations, and implement adversarial tests. The resulting claims were checked against Lean and independent computational evidence. The process, including failures and corrections, is documented in the methodology note. This attribution reflects the author's account; the checks themselves do not establish the originality of the mathematical results.
1. The kernel. Lean's kernel accepts the spine; CI forbids sorry,
admit, native_decide, and project-local axioms via a comment-aware source
audit, and AxiomAudit.lean checks nine earlier selected end theorems, nine
cycle-spectrum proof declarations, five conditional graph-transfer
statements and two theorems added on 2026-10-18 against the explicit
allowlist above. The audit also requires
that every requested theorem actually appear in the Lean audit output.
2. Independent re-checking. The seven end theorems were re-verified with
leanprover/comparator (unmodified): statement equality against the
existing historical Hardening/Challenge.lean file, a transitive axiom
audit, and a full kernel replay of the exported proof terms — 1.32M
export lines, 10,324 theorems. Separately, a fresh agent re-transcribed
the seven statements from the Lean sources without seeing the historical
challenge. The two statement sets were token-identical after expanding
the section variable. The fresh transcription cross-checked the
historical challenge; it was not the comparator's input.
The authoritative run executed under a real landlock sandbox
(landrun on WSL2) with the nanoda external kernel accepting alongside Lean's
own; two deliberately broken controls (a one-token statement tamper, a
smuggled axiom) are rejected as expected. See
Hardening/REPORT.md. The report covers seven
historical theorems only. A separate five-claim cycle-spectrum comparator
challenge passed on 2026-10-16 in run 38863604693, including both
Lean/nanoda acceptance and both negative rejections. The original logs
and exact tested commit are archived under Hardening/runs/38863604693/.
Thus the two runs cover seven + five statements, distinct from the
25 declarations selected for the current Lean axiom audit (18 before
graph transfer, 23 before the two theorems added on 2026-10-18). The cycle run records real landrun invocation but no
standalone OS denial probe. Its scope is documented separately in
Hardening/CYCLE-COMPARATOR.md.
3. Empirical falsification pressure. The findings/ rounds (2–6, 8–10) attack the
theorems numerically — exhaustive enumeration of all graphs × all wrap sets at
n ≤ 5–6 (rounds 2–3), adversarial negators (rounds 3–5), randomized gap
checks at n = 7 (round 6), and round 8, which adds an implementation written
from the paper alone (no Lean sources consulted), a Lean-verified convention
battery (148 equalities tying the formalization's matrices to that
implementation on 74 concrete graphs), and a bounded-exhaustive n = 8 sweep —
7,246,819 configurations, zero failures. Round 10 independently tests both
cycle Fourier bases and full eigenvalue multisets at n = 3,...,64,
including a wrong-basis negative control. Another round-10 script
tests 124 canonical cycle matrix identities, 372 reindexed matrix
identities and 62 wrong-seam negative controls in exact integer
arithmetic, with no dependencies beyond Python. These scripts are
empirical evidence, not verified Lean results.
The theorem-by-theorem chain — claim → Lean theorem → axiom audit → numerical
check → comparator result → remaining gap — is tabulated in
Hardening/EVIDENCE-MAP.md, together with the
current errata ledger for the paper.
Prerequisite: elan on your PATH (the toolchain is pinned by
lean-toolchain; don't run lake update, it would re-resolve Mathlib away
from the pinned v4.11.0).
lake exe cache get # fetch prebuilt Mathlib oleans (optional but recommended)
lake buildCheck one file:
lake env lean ConnectionLaplacian/L13_PSD.leanThe local hardening harness is outside the default target; build it
explicitly if you want it (see Hardening/REPORT.md for the comparator
toolchain):
lake build Hardening.Challenge Hardening.Solution Hardening.ConventionAnchor \
Hardening.BatteryA Hardening.BatteryB Hardening.BatteryC Hardening.BatteryD
lake build Hardening.CycleChallenge Hardening.CycleSolution \
Hardening.CycleNegative.BadChallenge Hardening.CycleNegative.BadSolution
python3 scripts/audit_cycle_comparator.pyAdditional build guidance: BUILD.md.
docs/thesis-guide.md— thesis-style narrative, theorem map, reading order.docs/graph-examples.md— small graphs showing balanced vs. unbalanced wrap data.docs/infographic.md— one-page overview of the proof pipeline and kernel-dimension formulas.docs/methods-note.md— the methodology note: how the AI-assisted development was made trustworthy (untrusted generation, heterogeneous critics, kernel-verified residue, published errata ledger).docs/cycle-spectrum-multiset-assembly.md— the fully checked Fourier diagonalisation, real-root multisets, conditional graph transfer, and precise scope limits.Hardening/argon4-review-adjudication-2026-10-18.md— point-by-point adjudication of an external review of the v.0.0.5 manuscript, with the resulting fixes.Hardening/CYCLE-COMPARATOR.md— comparator challenges, negative controls, reproduction and an explicit verified-vs-pending evidence ledger.
- Source:
paper/paper.tex· PDF:paper/paper.pdf - Title: Kernel Dimension of the ℤ/2 Connection Laplacian on a Finite Simple Graph (A Formalisation in Lean 4 / Mathlib v4.11.0)
- Author: Jesús Vilela Jato (Independent)
- Bibliography is embedded in
paper.tex(no separate.bibfile).
Build with a LaTeX engine supporting amsart, e.g. tectonic paper/paper.tex.
Machine-readable metadata is in CITATION.cff (used by GitHub's Cite this
repository panel).
Vilela Jato, J. Connection Laplacian — verified spectral/balance stack (Lean 4 / Mathlib v4.11.0), 2026 (cite the release version given in
CITATION.cff).
DOI: 10.5281/zenodo.19695396
https://github.com/jesusvilela/connection_laplacian_lean
- Code and formalization artifacts: Apache-2.0 (
LICENSE) - Paper artifacts: CC BY 4.0 (
LICENSE-paper)
See LICENSING.md for full rationale and attribution guidance.