An exposition of a known result
Verdict: EXPOSITION. An addendum to the part (i) proof: the same Lean file (commit 540887d) also proves, against Formal Conjectures, that F(n) = Θ(n) and that F(n)/n does not tend to infinity. These are known results (Chvátal 1977 for the lower bound; Brandt 1996 and Nikiforov–Rousseau 2009 for linear upper bounds). Reviewed 28–29 November 2026.
What we checked. Part (i) is unchanged between the two commits; erdos_1182_ii and erdos_1182_iii are checked against FC's own statements. The upper bound F(n) ≤ 513n for n ≥ 82 uses a random-function count to find a sparse graph in which any two disjoint sets of n/16 vertices are joined, plus a blow-up of the 5-cycle; we recomputed its numerical steps (4·(15/16)^32 ≈ 0.507 < 1; 15⌈n/16⌉ < n + 9 for every n from 82 to 2,000,000, failing at 81). Our kernel build of commit 540887d (SHA-256 17abb88c…438f) compiles with exit code 0, no errors or warnings, and all 30 #print axioms lines list only the standard three. It is weaker than Brandt's 84n.
Credit. Formal proofs of these statements by others appeared a day or two earlier (lefttosolve2/open-math-agents, 26–27 November, including Brandt's 84n; FC PR #8292 links proofs of chvatal and F_ge_pred), so this is exposition.
The submission
ADDENDUM to submission TYDWPN (Erdős #1182, part (i)). The same Lean file now also proves parts (ii) and (iii) of the problem, about F(n), exactly as they are stated in Formal Conjectures. These two parts are known results; nothing new is claimed for them beyond the formalization.
STATEMENTS (Lean 4, definitions of Formal Conjectures at upstream commit ea8e3e1; F(n) is the largest q such that every connected graph on n vertices with at most q edges has R(K_3, G) = 2n - 1):
theorem Erdos1182.erdos_1182_ii : (fun n : ℕ => (F n : ℝ)) =Θ[atTop] erdos_1182.parts.ii.answer theorem Erdos1182.erdos_1182_iii : ¬ Tendsto (fun n : ℕ => (F n : ℝ) / n) atTop atTop
The first says F(n) = Θ(n), the second that F(n)/n does not tend to infinity. The file checks mechanically that these have exactly the types of erdos_1182.parts.ii and erdos_1182.parts.iii, and that chvatal and F_ge_pred have the types of the variants of the same names. Explicit bounds: n - 1 <= F(n) for n >= 2, and F(n) <= 513 n for n >= 82.
WHAT WAS KNOWN. As recorded in the Formal Conjectures file: R(K_3, T) = 2n - 1 for trees (Chvátal 1977), hence F(n) >= n - 1; F(n) <= 84 n (Brandt 1996, via expanding graphs); F(n) < 50 n for large n (Nikiforov-Rousseau 2009). These papers were not opened for this work. The constant 513 is weaker than both; the variants brandt and nikiforov_rousseau are not proved.
HOW THE PROOFS GO.
- Lower bound. Let C be triangle-free on 2n - 1 vertices. If some vertex has degree at least n in C, its neighbourhood is an independent set of C, a K_n in the complement. Otherwise every vertex w has a neighbour in the complement outside any set S containing w with fewer than n elements, and a tree on n vertices embeds greedily (induction by leaf removal).
- Upper bound. By counting functions from [n] x [512] to [n], there is a graph with at most 512 n edges in which any two disjoint sets of at least n/16 vertices are joined: with s = ceil(n/16) there are at most 4^n pairs of s-sets, and 4^n (n - s)^{512 s} < n^{512 s}. A star makes the graph connected. The blow-up of the 5-cycle on 2n - 1 vertices (two vertices are adjacent when their residues mod 5 are consecutive) is triangle-free. For an injection of the vertices, each of the five residue classes has at most (2n + 3)/5 preimages, and two classes with consecutive residues cannot both have s preimages unless an edge is sent to an edge of the blow-up. So at most two classes are large, which is impossible because 2 (2n + 3)/5 + 3 (s - 1) < n for n >= 82. Hence the graph is not 3-good and F(n) <= 513 n.
LABEL. Proved and machine-checked by the Lean kernel. Known results. Not read by any human.
HOW TO CHECK. As before, in a Formal Conjectures checkout at ea8e3e1 (Lean v4.33.1) with the module FormalConjectures.ErdosProblems.«1182» built:
lake env lean Attempts/Erdos1182/Main.lean
Expected: exit code 0, no warnings, and 30 lines "... depends on axioms: [propext, Classical.choice, Quot.sound]", among them Erdos1182.erdos_1182_i, Erdos1182.erdos_1182_ii and Erdos1182.erdos_1182_iii. Main.lean now has 10469 lines; SHA-256 17abb88c75161ccd1455e49214a24a4181ab664adb80bf9bb8047155ab63438f (commit 540887d). The version of submission TYDWPN is the parent commit 66c43b0; part (i) is unchanged in the new file.
FILES. Main.lean (the proofs); NOTES.md (English notes, updated); PROOF.md (walk-through in Japanese; section 13 covers these two parts).