Mathematics / Formalization Note / Combinatorics & Graph Theory

Erdős Problem 570 in Lean 4: The Cycle-Versus-Graph Ramsey Bound for Every Cycle Length

Direct Lean 4 proof (PR #39105) of Erdos570.erdos_570, accepted by the Left to Solve Lean checker; Left to Solve credits the root solution to aliuyar1234. No sorry and no native_decide; the PR body reports a local axiom audit of [propext, Classical.choice, Quot.sound]. For odd k >= 5 the proof follows the induction of Cambie et al. and proves inside the file the sparse connected case that they cite from Burr et al. (1982) and Fan-Lin (2025). For even k (including k = 4) and for k = 5 it takes its own route rather than the original proofs of Erdős et al. and of Jayawardene.

Author
Ali Uyar
DOI
10.5281/zenodo.24765160
Scope
Direct proof
Status
Merged on Left to Solve
Original theorem
Erdos Problem 570, a question of Erdos, Faudree, Rousseau and Schelp (Combin. Probab. Comput. 1993). Proved for even k by Erdos-Faudree-Rousseau-Schelp (1993); for k = 3 independently by Goddard-Kleitman (Discrete Math. 1994) and Sidorenko (J. Combin. Theory Ser. B 1993); for k = 5 by Jayawardene (Ph.D. thesis, University of Memphis, 1999); and for all remaining odd k >= 7 by Cambie, Freschi, Morawski, Petrova and Pokrovskiy (arXiv:2601.10238, 2026), completing the proof for every k.
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/23-erdos-570-cycle-ramsey

Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.

Summary

A single 5,083-line Lean 4 file proves Erdős Problem 570 in full: for every fixed k >= 3 and all sufficiently large m, every graph H with m edges and no isolated vertices satisfies R(C_k, H) <= 2m + floor((k-1)/2); matchings show the bound is tight. It proves the formal-conjectures statement directly and was accepted by the Left to Solve Lean checker as PR #39105. The question, posed by Erdős, Faudree, Rousseau and Schelp, was answered case by case: even k by Erdős-Faudree-Rousseau-Schelp (1993), k = 3 by Goddard-Kleitman (1994) and Sidorenko (1993), k = 5 by Jayawardene (1999), and odd k >= 7 by Cambie, Freschi, Morawski, Petrova and Pokrovskiy (arXiv:2601.10238, 2026). The Lean file treats k = 4 for all m >= 2 by edge induction in C_4-free hosts, k = 3 by an induction in the style of Goddard-Kleitman with edge contraction and convex falling-factorial averaging, dense targets with |V(H)|^5 <= m^3 by a cycle-versus-clique bound of order k r^(3/2), even k >= 6 with many vertices by its own two-step-walk counting and slack embedding, and odd k >= 5 with many vertices by the Cambie et al. induction. It proves the sparse connected case, which Cambie et al. import, via the suspended-path-versus-leaves dichotomy of Burr et al. as refined by Fan-Lin.

Context

Erdős 570 was settled for every cycle length only in 2026, more than thirty years after the question was posed. This file checks the complete statement, all k at once, in Lean 4; it formalizes the sparse connected case that Cambie et al. take from Burr et al. and Fan-Lin, and it proves the even-cycle case by its own argument.

Root problems on Left to Solve

  • LTS Erdos570.erdos_570 closed; Left to Solve credits the solution to aliuyar1234

Credits

Mathematics: Erdos, Faudree, Rousseau and Schelp (question; even k), Goddard and Kleitman and Sidorenko (k = 3), Jayawardene (k = 5), Cambie, Freschi, Morawski, Petrova and Pokrovskiy (odd k >= 7; induction followed for odd k), Burr, Erdos, Faudree, Rousseau and Schelp and Fan and Lin (sparse connected case). Lean proof produced with AI coding agents operated by the author (PR body: agent t3-code, model gpt-6.2-astra). The Lean file has no credit lines for adapted code, and a comparison with other participants' Erdos 570 files merged before the PR found no overlap. The PR body records no other contributors.

Pull request ledger (1)

  • #39105 Erdos570.erdos_570 merged

Cite

@misc{uyar2026_erdos_570_cycle_ramsey_lean4,
  author    = {Uyar, Ali},
  title     = {Erdős Problem 570 in Lean 4: The Cycle-Versus-Graph Ramsey Bound for Every Cycle Length},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765160},
  url       = {https://doi.org/10.5281/zenodo.24765160},
  note      = {Lean 4 formalization technical note (Erdos Problem 570, a question of Erdos, Faudree, Rousseau and Schelp (Combin. Probab. Comput. 1993). Proved for even k by Erdos-Faudree-Rousseau-Schelp (1993); for k = 3 independently by Goddard-Kleitman (Discrete Math. 1994) and Sidorenko (J. Combin. Theory Ser. B 1993); for k = 5 by Jayawardene (Ph.D. thesis, University of Memphis, 1999); and for all remaining odd k >= 7 by Cambie, Freschi, Morawski, Petrova and Pokrovskiy (arXiv:2601.10238, 2026), completing the proof for every k.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/23-erdos-570-cycle-ramsey}
}