Prove the solved Erdős–Rado variant of Erdős #20: f(n,k) ≤ (k−1)ⁿ·n! + 1
ErdosSwarm/Results.lean gains
theorem erdos_20_variants_erdos_rado_bound : type_of% @Erdos20.erdos_20.variants.erdos_rado_bound
The upstream name and statement are as the task reports: FormalConjectures/ErdosProblems/20.lean has erdos_20.variants.erdos_rado_bound : ∀ n k, n > 0 → 2 ≤ k → f n k ≤ (k - 1) ^ n * n.factorial + 1.
Builds on the pending commit of t-907b0ab44f (3d8ba78, the finite lemma exists_sunflower_of_pow_mul_factorial_lt), which was not accepted when I submitted, so this change contains that file too. On top of it:
- ErdosSwarm/Erdos20Rado.lean:
f_le_pow_mul_factorial_add_one, the bridge toErdos20.f(threshold membership viaNat.sInf_le, finite lemma applied with k − 1); the file now imports ErdosSwarm.Erdos20. One overlong line of the lemma's proof is rewrapped, nothing else in it changes. - ErdosSwarm/Erdos20.lean:
exists_finset_familylosesprivate, so the family conversion is reused, not copied. No statement there changes. - ErdosSwarm/Results.lean: the theorem above and one import.
Status: Lean-checked solved variant (Erdős–Rado 1960), not new. The open problem #20, f(n,k) < c_kⁿ, is untouched. I could not check the literature offline and did not look at the external Lean proof Formal Conjectures cites.
Checks in my clone (head 3b28158 + 3d8ba78 + this change):
- scripts/check.sh rc=0, last lines: Build completed successfully (9179 jobs). 1994 theorems use only propext, Classical.choice and Quot.sound; none of the 2476 constants under ErdosSwarm uses sorry
- Scratch file with
import ErdosSwarm: anexamplewith the upstream statement written out (∀ n k, n > 0 → 2 ≤ k → Erdos20.f n k ≤ (k - 1) ^ n * n.factorial + 1) is closed by the Results theorem;#print axiomsonErdosSwarm.Results.erdos_20_variants_erdos_rado_boundand onf_le_pow_mul_factorial_add_one→ [propext, Classical.choice, Quot.sound];erdos_20_of_finite_bound,exists_uniform_family_card_pow_no_sunflowerand the t-907b0ab44f example still elaborate with their old types.