Erdős Problems 552 and 85:
A Formal Proof of Chen's Bound, an Equivalence, and Three Corrections
Erdős Problems 552 and 85 concern the Ramsey number \(R(C_4,K_{1,n})\): the least \(N\) such that every graph on \(N\) vertices contains a 4-cycle or has a vertex with at least \(n\) non-neighbours. Both problems remain open. We report four things. (1) A Lean 4 proof, checked by the kernel with Lean's standard axioms only, of Chen's 1997 theorem \(R(C_4,K_{1,n+1})\le R(C_4,K_{1,n})+2\) for \(n\ge1\), which answers a question listed under Problem 552. (2) A short proof that Problem 85 is equivalent to the statement that \(R(C_4,K_{1,s+1})=R(C_4,K_{1,s})\) for only finitely many \(s\), the negative answer to another question listed under Problem 552. (3) Three corrections to the public records of these problems, including an explicit 15-vertex graph showing that a bound stated on the Problem 85 page fails. (4) Exact checks of every claim. We do not solve either main problem.
1. The problems
Write \(R(n)=R(C_4,K_{1,n})\). Equivalently, \(R(n)\) is the least \(N\) such that every \(C_4\)-free graph on \(N\) vertices has a vertex with at least \(n\) non-neighbours. Problem 552 (Burr, Erdős, Faudree, Rousseau and Schelp; a $100 prize) asks to determine \(R(n)\), and in particular whether \(R(n)\le n+\sqrt n-c\) for infinitely many \(n\), for every \(c>0\). It is known that \(n+\sqrt n-6n^{11/40}\le R(n)\le n+\lceil\sqrt n\rceil+1\), and the exact value is known for \(n\le38\) (OEIS A006672; Boza, arXiv:2409.12770). The page also asks whether \(R(n+1)=R(n)\) infinitely often, and whether \(R(n+1)\le R(n)+2\) for all \(n\).
Problem 85 lets \(f(n)\) be the least \(k\) such that every graph on \(n\) vertices with minimum degree at least \(k\) contains a \(C_4\), and asks whether \(f(n+1)\ge f(n)\) for all large \(n\).
2. Chen's bound, formally verified
Proof. Let \(N=R(n)\) and let \(H\) be a \(C_4\)-free graph on \(N+2\) vertices. Two distinct vertices of \(H\) have at most one common neighbour. If some pair \(x\ne y\) has none, delete it: the remaining \(N\) vertices contain a vertex \(w\) with at least \(n\) non-neighbours, and \(w\) is not adjacent to both \(x\) and \(y\), so \(w\) has at least \(n+1\) non-neighbours in \(H\). Otherwise every pair has exactly one common neighbour, so by the friendship theorem some vertex \(p\) is adjacent to all others. Any other vertex \(u\) is adjacent only to \(p\) and to the common neighbour of \(u\) and \(p\), so it has at least \(N-1\ge n+1\) non-neighbours, since \(N\ge n+2\) (a star on \(n+1\) vertices has no \(C_4\), and in its complement every vertex has fewer than \(n\) neighbours). ∎
The bound fails for \(n=0\): \(R(1)=4\) and \(R(0)=1\). Chen's theorem answers the question "is \(R(n+1)\le R(n)+2\) for all \(n\)?" listed under Problem 552; Boza cites it as Lemma 1. We found the argument above independently and then found Chen's paper while checking priority.
The Lean statement uses SimpleGraph.graphRamsey, copied verbatim from Google DeepMind's formal-conjectures, so it is the statement used there:
theorem erdos_552.variants.succ_le_add_two (n : ℕ) (hn : 1 ≤ n) :
SimpleGraph.graphRamsey (SimpleGraph.cycleGraph 4)
(completeBipartiteGraph (Fin 1) (Fin (n + 1))) ≤
SimpleGraph.graphRamsey (SimpleGraph.cycleGraph 4)
(completeBipartiteGraph (Fin 1) (Fin n)) + 2
- The source is agnt-gg/erdos-lean (commit
8e5972f) and in the archive. The friendship theorem comes from Mathlib'sArchive. #print axiomsreports onlypropext,Classical.choiceandQuot.sound. There is nosorryand no custom axiom. It builds on Lean v4.33.1 with Mathlib v4.33.1 (commit0df444a), with warnings treated as errors.- Negative control: without the hypothesis \(n\ge1\), the proof fails.
- The file also proves that \(2n+2\) vertices always suffice, so the Ramsey number is finite, and that \(R(n)\ge n+2\).
- Submitted to formal-conjectures as a solved variant of Problem 552: pull request #6904.
3. Problem 85 is a question about plateaus of \(R\)
Proof. \(f(n)\le k\) means that every \(C_4\)-free graph on \(n\) vertices has a vertex of degree at most \(k-1\), that is, with at least \(n-k\) non-neighbours. That holds exactly when \(R(n-k)\le n\). Since \(R\) is non-decreasing, the least such \(k\) is \(n-g(n)\). ∎
Proof. By the lemma, \(f(n+1)
So Problem 85 holds if and only if the answer to the Problem 552 question "is \(R(n+1)=R(n)\) infinitely often?" is no. Among the 38 known values the only plateau is \(R(1)=R(2)=4\), which corresponds to \(n=3\), below the range of Problem 85. Table 1 gives \(f(n)\) for \(4\le n\le44\), computed from the known values with the lemma; it never decreases.
| n | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| f(n) | 2 | 3 | 3 | 3 | 3 | 3 | 4 | 4 | 4 | 4 | 4 | 5 | 5 | 5 |
| n | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
| f(n) | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 6 | 6 | 6 | 6 | 6 | 6 |
| n | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | |
| f(n) | 6 | 6 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 |
If \(R(n)\in\{n+\lceil\sqrt n\rceil,\,n+\lceil\sqrt n\rceil+1\}\) for all \(n\ge2\), as Zhang, Chen and Cheng speculate, then a plateau needs \(\lceil\sqrt{s+1}\rceil=\lceil\sqrt s\rceil\) with \(R(s)=s+\lceil\sqrt s\rceil+1\) and \(R(s+1)=s+1+\lceil\sqrt{s+1}\rceil\). We have no proof that this pattern occurs, or that it occurs only finitely often.
4. Three corrections
- Problem 85: the formula. The page gives \(f(n)=\min\{m: m\ge R(C_4,K_{1,n-m})\}\). This does not reproduce the page's own value \(f(4)=2\). The correct relation is the lemma of §3. A brute-force search over all graphs on at most 7 vertices gives \(f(4),\dots,f(7)=2,3,3,3\); the lemma reproduces them and the page's formula gives none, 4, 4, 5. The page's other relation, \(R(C_4,K_{1,n})=\min\{m: f(m)\le m-n\}\), is correct.
- Problem 85: the bound \(f(n)<\sqrt n+1\). It fails at \(n=15\). The 4-regular graph below has 15 vertices, 30 edges and no \(C_4\), so \(f(15)\ge5>\sqrt{15}+1\approx4.873\). It was found with the z3 solver and checked separately without it. From the known Ramsey values, the bound also fails at \(n=16,34,35,36\); even "\(\le\)" fails at \(n=15,34,35\). The bound holds only asymptotically, as \(f(n)=(1+o(1))\sqrt n\).
0-1 0-2 0-7 0-8 1-3 1-8 1-14 2-5 2-7 2-12 3-10 3-11 3-14 4-6 4-7 4-9 4-14 5-9 5-10 5-12 6-7 6-11 6-13 8-9 8-13 9-10 10-11 11-13 12-13 12-14
- Problem 552: the prize and a settled question. The community database listed no prize, though the problem carries Erdős's $100. The question "is \(R(n+1)\le R(n)+2\) for all \(n\)?" is answered by Chen's theorem (§2).
These are submitted as pull request #456 and issue #457 to the community database maintained by Thomas Bloom and Terence Tao.
5. Verification
| Check | Method | Status |
|---|---|---|
| Chen's bound | Lean 4 kernel, standard axioms only; negative control without \(n\ge1\) | PASS |
| \(R(n)\) for \(n\le4\), Chen's bound, \(R(n)\ge n+2\), finiteness, \(f(4..7)\) | brute force over all graphs on at most 7 vertices (battery_552.py); agrees with OEIS | PASS |
| \(f(n)\) for \(4\le n\le44\), plateaus, the \(\sqrt n+1\) bound | from the 38 known values (f85_from_ramsey.py) | PASS |
| The 15-vertex graph | z3, then an independent check of degrees and common neighbours (witness_f85.py) | PASS |
6. What remains open
Problem 552 asks for \(R(n)\) itself, and whether \(R(n)\le n+\sqrt n-c\) infinitely often for every \(c\). Problem 85, by §3, asks whether \(R\) has only finitely many plateaus. Both are open. One sufficient condition is elementary. Suppose some \(C_4\)-free graph on \(R(s)-1\) vertices, in which every vertex has fewer than \(s\) non-neighbours, contains a set \(S\) of at least \(R(s)-1-s\) vertices, no two with a common neighbour. Join a new vertex to \(S\). The result has \(R(s)\) vertices, has no \(C_4\) (a 4-cycle through the new vertex needs two members of \(S\) with a common neighbour), and every vertex has at most \(s\) non-neighbours. So \(R(s+1)>R(s)\), and there is no plateau at \(s\). Whether such witnesses always exist is the question we intend to study next.
7. Reproduction
python -m pip install networkx z3-solver python battery_552.py # brute force, all graphs on at most 7 vertices python f85_from_ramsey.py # f(n), plateaus and the sqrt bound from OEIS A006672 python witness_f85.py 15 4 # the 15-vertex graph, found and checked # Lean: in lean/ of the archive, or a clone of agnt-gg/erdos-lean lake exe cache get lake build
8. Artifact ledger
| Artifact | Purpose |
|---|---|
| agnt-gg/erdos-lean · archived copy | Lean 4 proof of Chen's bound |
| battery_552.py · output | Brute force from the definitions |
| f85_from_ramsey.py · output | \(f(n)\), plateaus and the \(\sqrt n+1\) bound |
| witness_f85.py · graph · output | The 15-vertex \(C_4\)-free graph of minimum degree 4 |
| claim-ledger.json | Claim-by-claim evidence map |
| SHA256SUMS.txt | Integrity ledger |
Principal hash: lean/Erdos/Erdos552.lean 48d6293771ee532d7e079904798f1bfb7f93e81614bf0011cc5c7290f55ea350.
References
- S. Burr, P. Erdős, R. J. Faudree, C. C. Rousseau and R. H. Schelp, "Some complete bipartite graph-tree Ramsey numbers," Annals of Discrete Mathematics 41 (1989), 79–89.
- Chen Guantao, "A result on \(C_4\)-star Ramsey numbers," Discrete Mathematics 163 (1997), 243–246.
- T. D. Parsons, "Ramsey graphs and block designs I," Transactions of the AMS 209 (1975), 33–44.
- X. Zhang, Y. Chen and T. C. E. Cheng, "Some values of Ramsey numbers for \(C_4\) versus stars," Finite Fields and Their Applications 45 (2017), 73–85.
- L. Boza, "Exact values and bounds for Ramsey numbers of \(C_4\) versus a star graph," arXiv:2409.12770 (2024–2026).
- T. F. Bloom, Erdős Problems #552 and #85; OEIS A006672.
- N. Wilbanks and Annie, "erdos-lean," GitHub, 2026, agnt-gg/erdos-lean, commit 8e5972f.
- The mathlib Community, "The Lean Mathematical Library," CPP 2020, 367–381; friendship theorem in Mathlib's
Archive/Wiedijk100Theorems/FriendshipGraphs.lean.
This is what the product is for
AGNT Labs publishes its working out. The same discipline runs through the product: every agent run produces a receipt showing what it did, what it read, and why — so a result can be checked rather than trusted. AGNT runs on your own machine and is free to use.