Erdős #588 in Lean (sharp f₃, part c2): n² − 3n ≤ 6 f₃(n) for every n, and the FC variants sylvester and three_lower.
What changed (diff against accepted head 4e4f178 is exactly these three files):
- NEW ErdosSwarm/Erdos588Sylvester.lean, namespace ErdosSwarm.Erdos588:
sq_sub_le_six_mul_numLinesWithPointsMax_three (n : ℕ) : n ^ 2 - 3 * n ≤ 6 * _root_.Erdos588.numLinesWithPointsMax 3 n (the task's statement; natural subtraction), and the same without subtraction, sq_le_six_mul_numLinesWithPointsMax_three_add : n ^ 2 ≤ 6 * f₃(n) + 3 * n.
six_mul_numLinesWithPointsMax_three_le (n) : 6 * f₃(n) ≤ n * (n - 1) (from the accepted numLinesWithPointsMax_le_of_forall / ncard_linesWithPointsFor_mul_le).
- The configuration:
sylvesterSet n = {P(t_j) : j < n} with sylvesterSet_ncard (= n), sylvesterSet_nonCollinearFor (no four on a line), sylvesterPoint_mem_line_iff (l on line i j ⟺ l ∈ {i, j} or n ∣ i + j + l + 1), sq_le_six_mul_ncard_linesWithPointsFor_sylvesterSet (n² ≤ 6·#three-point lines + 3n).
sylvester_isBigO, three_lower_eventually: the two upstream statements, written out.
- ErdosSwarm/Results.lean: one import and two new theorems,
erdos_588_variants_sylvester : type_of% @Erdos588.erdos_588.variants.sylvester and erdos_588_variants_three_lower : type_of% @Erdos588.erdos_588.variants.three_lower. No other statement there changes (diff is +12 lines and the import).
- ErdosSwarm.lean:
import ErdosSwarm.Erdos588Sylvester.
Both upstream variants do follow from the finite bounds n² − 3n ≤ 6 f₃(n) ≤ n² − n: sylvester with constant 1 for every n (−n/2 ≤ f₃(n) − n²/6 ≤ 0), three_lower for n ≥ 1/(2ε). three_lower is proved directly, not through starter t-32ebb385d7.
Proof as in the task: good ordered pair (i, j) ↦ line through P(t_i), P(t_j); that line is in linesWithPointsFor 3 (sylvesterSet n) by part a's acnodal_line_mem_linesWithPointsFor at part b's parameters; every fibre lies in the off-diagonal of {i, j, sylvesterThird n i j}, so has at most 6 elements (Finset.card_le_mul_card_image); then c1's sq_le_card_goodPairs_add and the accepted ncard_le_numLinesWithPointsMax. Uses the accepted parts by name, no private copies: a (acnodalPoint_injective, acnodal_nonCollinearFor, acnodalPoint_mem_line_iff, acnodal_line_mem_linesWithPointsFor), b (sylvesterParam_eq_iff, sylvesterParam_mul_add_eq_one_iff), c1 (goodPairs, mem_goodPairs, sq_le_card_goodPairs_add, sylvesterThird_lt, dvd_add_iff_eq_sylvesterThird). No sorry, axiom, native_decide or set_option in the new file.
Status: Lean-checked solved variants at k = 3 (Sylvester; Burr–Grünbaum–Sloane / Füredi–Palásti lower bound). Nothing is proved about the open case k ≥ 4. I did not check the literature (no network).
Checks on 4e4f178 + this change (2026-12-04 10:29 UTC):
- scripts/check.sh rc=0. Last lines: "Build completed successfully (9259 jobs)." / "6379 theorems use only propext, Classical.choice and Quot.sound; none of the 10722 constants under ErdosSwarm uses sorry".
- A scratch file after
import ErdosSwarm (lean rc=0): example : (n : ℕ) → n ^ 2 - 3 * n ≤ 6 * Erdos588.numLinesWithPointsMax 3 n := ErdosSwarm.Erdos588.sq_sub_le_six_mul_numLinesWithPointsMax_three; both Results theorems against type_of% and against the upstream statements written out by hand; sylvesterSet n equals the image of j ↦ !₂[1 + tan θ_j ², tan θ_j (1 + tan θ_j ²)], θ_j = π/6 + (n+1)π/(3n) + jπ/n, over Set.Iio n by rfl; #print axioms on the finite bound, the upper bound, sylvester_isBigO, three_lower_eventually and both Results theorems: [propext, Classical.choice, Quot.sound].
head 8404f96a23 on b87ce80862