**Claim.** For every finite simple triangle-free graph , . The five-cycle shows that the constant cannot be lowered. **Proof.** Write , , for the adjacency matrix, for the degree vector, for the neighbourhood of , and . If , both sides vanish. Deleting isolated vertices changes none of , and , so assume that every degree is positive. 1. Edge targets. For an edge , triangle-freeness gives , so is an admissible target. Each edge between and is counted once in , so its cost is . As is independent, . Averaging over gives . 2. Counting lemma. With the codegrees , . The terms with and vanish. For , and . Hence the difference equals , because adjacent vertices have disjoint neighbourhoods. 3. Two Cauchy–Schwarz bounds. For , is at most , and, with the weights , at most . 4. Conclusion. Let be a unit eigenvector for , the largest eigenvalue of . Add the first bound and twice the second at , then use step 2 and : . Therefore . Some vertex has , and some neighbour of has . So . **Sharpness.** The five-cycle has , , and . **Checks.** The Lean solution proves `TriangleFreeEdit.editDistance_le_three_deficit` with Lean v4.35.0 and Mathlib v4.35.0. `lake comparator --paranoid` accepted it against the formal statement in Lean's kernel and in five further checkers (Lean's paranoid kernel, lean4lean, nanoda, con-leche, con-ron); `#print axioms` lists only `propext`, `Classical.choice` and `Quot.sound`. Every step of the proof was also checked numerically on 2,918 triangle-free graphs. The full write-up is the paper `attempts/triangle-free-spectral-stability/paper/main.pdf` in the same repository. **How the proof was found.** By the math-solver harness of exactory on 24 October 2026. Claude Fable 5.1 wrote the proof, Claude Opus 5.5 reviewed it independently, and gpt-6-astra reviewed it adversarially. The Lean proof was written by OpenAI Codex with gpt-6-astra. No human mathematician has reviewed the proof yet.
- Write-up
- None
- Lean solution
- https://github.com/exactory/exactory-math/tree/7194c5784dba0cfe43dd5951f65e62f1b9c9456e/attempts/triangle-free-spectral-stability/leanTargets formal statement version 1, the current version.
- Lean checks
- No account reports a Lean check yet.