/-
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.
-/
import FormalConjecturesUtilErdős Problem 20
[ErRa60] Erdős, Paul and Rado, Richard. Intersection theorems for systems of sets. J. London Math. Soc. 35 (1960), 85--90.
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 := ⊢ f 0 1 = 1
α✝:TypeF:Set (Set α✝)hF:(∀ f ∈ F, f.ncard = 0) ∧ 1 ≤ F.ncard⊢ ∃ S ⊆ F, S.ncard = 1 ∧ IsSunflower Sn:ℕhn:n ∈ {m | ∀ {α : Type} (F : Set (Set α)), (∀ f ∈ F, f.ncard = 0) ∧ m ≤ F.ncard → ∃ S ⊆ F, S.ncard = 1 ∧ IsSunflower S}hn₀:n = 0⊢ False
α✝:TypeF:Set (Set α✝)hF:(∀ f ∈ F, f.ncard = 0) ∧ 1 ≤ F.ncard⊢ ∃ S ⊆ F, S.ncard = 1 ∧ IsSunflower S obtain ⟨A, hA⟩ := F.nonempty_of_ncard_ne_zero (α✝:TypeF:Set (Set α✝)hF:(∀ f ∈ F, f.ncard = 0) ∧ 1 ≤ F.ncard⊢ F.ncard ≠ 0 All goals completed! 🐙)
exact ⟨{A}, α✝:TypeF:Set (Set α✝)hF:(∀ f ∈ F, f.ncard = 0) ∧ 1 ≤ F.ncardA:Set α✝hA:A ∈ F⊢ {A} ⊆ F ∧ {A}.ncard = 1 ∧ IsSunflower {A} All goals completed! 🐙⟩
n:ℕhn:n ∈ {m | ∀ {α : Type} (F : Set (Set α)), (∀ f ∈ F, f.ncard = 0) ∧ m ≤ F.ncard → ∃ S ⊆ F, S.ncard = 1 ∧ IsSunflower S}hn₀:n = 0⊢ False obtain ⟨S, hS⟩ := (hn (α := ℕ) {} (n:ℕhn:n ∈ {m | ∀ {α : Type} (F : Set (Set α)), (∀ f ∈ F, f.ncard = 0) ∧ m ≤ F.ncard → ∃ S ⊆ F, S.ncard = 1 ∧ IsSunflower S}hn₀:n = 0⊢ (∀ f ∈ ∅, f.ncard = 0) ∧ n ≤ ∅.ncard All goals completed! 🐙))
All goals completed! 🐙
Is it true that $f(n,k) < c_k^n$ for some constant $c_k>0$ and for all $n > 0$?
@[category research open, AMS 5]
theorem erdos_20 : answer(sorry) ↔ ∃ (c : ℕ → ℕ), ∀ n k, n > 0 → f n k < (c k) ^ n := ⊢ True ↔ ∃ c, ∀ (n k : ℕ), n > 0 → f n k < c k ^ n
All goals completed! 🐙
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]
theorem erdos_20.variants.erdos_rado_bound :
∀ n k, n > 0 → 2 ≤ k → f n k ≤ (k - 1) ^ n * n.factorial + 1 := ⊢ ∀ (n k : ℕ), n > 0 → 2 ≤ k → f n k ≤ (k - 1) ^ n * n.factorial + 1
All goals completed! 🐙
end Erdos20