Erdős 20
Is it true that for some constant and for all ?
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem erdos_20 : ∃ (c : ℕ → ℕ), ∀ n k, n > 0 → f n k < (c k) ^ nIs it true that for some constant and for all ?
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
theorem erdos_20 : ∃ (c : ℕ → ℕ), ∀ n k, n > 0 → f n k < (c k) ^ n/-
Copyright 2025 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 20
*References:*
* [erdosproblems.com/20](https://www.erdosproblems.com/20)
* [Wikipedia](https://en.wikipedia.org/wiki/Sunflower_(mathematics))
* [ErRa60] Erdős, Paul and Rado, Richard. Intersection theorems for systems of sets.
J. London Math. Soc. 35 (1960), 85--90.
-/
@[expose] public section
namespace Erdos20
/--
Let $f(n,k)$ be minimal such that every $F$ family of $n$-uniform sets with $|F| \ge f(n,k)$
contains a $k$-sunflower.
-/
noncomputable def f (n k : ℕ) : ℕ :=
sInf {m | ∀ {α : Type}, ∀ (F : Set (Set α)),
((∀ f ∈ F, f.ncard = n) ∧ m ≤ F.ncard) → ∃ S ⊆ F, S.ncard = k ∧ IsSunflower S}
@[category test, AMS 5]
theorem f_0_1 : f 0 1 = 1 := by
refine IsLeast.csInf_eq ⟨fun F hF ↦ ?_, fun n hn ↦ n.pos_of_ne_zero fun hn₀ ↦ ?_⟩
· obtain ⟨A, hA⟩ := F.nonempty_of_ncard_ne_zero (by omega)
exact ⟨{A}, by simpa using ⟨hA, isSunflower_singleton _⟩⟩
· obtain ⟨S, hS⟩ := (hn (α := ℕ) {} (by simpa))
simp_all [bot_unique hS.1]
/--
Is it true that $f(n,k) < c_k^n$ for some constant $c_k>0$ and for all $n > 0$?
-/
@[category research open, question, AMS 5]
theorem erdos_20 : ∃ (c : ℕ → ℕ), ∀ n k, n > 0 → f n k < (c k) ^ n := by
sorry
-- TODO(firsching): add the various known bounds as variants.
set_option linter.style.formal_proof_palomar false in
/--
Erdős and Rado [ErRa60] proved the factorial upper bound for the $k$-sunflower
threshold: any family of $n$-uniform sets with more than $(k-1)^n \, n!$ members
contains a $k$-sunflower, hence $f(n,k) \le (k-1)^n \, n! + 1$.
-/
@[category research solved, AMS 5,
formal_proof using lean4 at "https://github.com/HowieHwong/lean-erdos-proofs/blob/b8b641ba2d00dc4d1fe205a078a4159372672459/Erdos/P20.lean#L202"]
theorem erdos_20.variants.erdos_rado_bound :
∀ n k, n > 0 → 2 ≤ k → f n k ≤ (k - 1) ^ n * n.factorial + 1 := by
sorry
end Erdos20