Sunflowers and the sunflower threshold
DefinitionErdos20_defsLet be any type (ground set). For a family of subsets of and a set :
- is a sunflower with kernel if for all distinct .
- is a sunflower if it is a sunflower with some kernel . In particular the empty family and every one-member family are sunflowers.
For natural numbers the sunflower threshold is
That is, is the least such that every -uniform family with at least members contains a -sunflower. These are the basic objects of the Erdős–Rado sunflower problem (Erdős Problem 20).
Formalization Note Sizes are Set.ncard, which is for infinite sets, so for only finite members count as -element and the size condition with only concerns finite families. The minimum is sInf on , which would be if no admissible existed. Ground types range over Type (universe 0).
import Mathlib
namespace Erdos20
/-- A family `F` is a sunflower with kernel `S` if any two distinct members of `F`
intersect exactly in `S`. -/
def IsSunflowerWithKernel {α : Type*} (F : Set (Set α)) (S : Set α) : Prop :=
F.Pairwise (fun A B => A ∩ B = S)
/-- A family `F` is a sunflower if all pairwise intersections of distinct members coincide. -/
def IsSunflower {α : Type*} (F : Set (Set α)) : Prop :=
∃ S, IsSunflowerWithKernel F S
theorem isSunflower_empty {α : Type*} : IsSunflower (∅ : Set (Set α)) :=
⟨∅, by simp [IsSunflowerWithKernel]⟩
theorem isSunflower_singleton {α : Type*} (A : Set α) : IsSunflower {A} :=
⟨∅, by simp [IsSunflowerWithKernel]⟩
/-- `f n k` is the least `m` such that every family of `n`-element sets with at least `m`
members contains a `k`-sunflower. -/
noncomputable def f (n k : ℕ) : ℕ :=
sInf {m | ∀ {α : Type}, ∀ (F : Set (Set α)),
((∀ A ∈ F, A.ncard = n) ∧ m ≤ F.ncard) → ∃ S ⊆ F, S.ncard = k ∧ IsSunflower S}
end Erdos20
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements; non-blind
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements of this proposal (not by a blind auditor with a fresh context), and that agent had seen the source material and knew the intended meaning while writing it. Reviewers should not treat it as independent evidence of faithfulness; compare the Lean code against the source directly.
The file defines three notions and proves two small facts, all for an arbitrary type .
Sunflower with kernel. For a family of subsets of and a subset , " is a sunflower with kernel " means: for all with , . No condition is imposed when has fewer than two members, so the empty family and every singleton family are sunflowers with every kernel .
Sunflower. " is a sunflower" means there exists some such that is a sunflower with kernel . No bound on the number of members and no finiteness of the members is required.
Proved facts. (i) The empty family is a sunflower. (ii) For every set , the family is a sunflower.
Threshold . For natural numbers , is the infimum (in , with the convention that the infimum of the empty set is ) of the set of all with the following property: for every type in the lowest universe and every family of subsets of , if every has and , then there is a subfamily with that is a sunflower. Here is the number of elements of a finite set and is for every infinite set. Consequences of this convention: when , infinite sets satisfy and so count as "size-" members; an infinite family has , so for it never meets the hypothesis; and forces to be finite when . The value is admissible exactly when every family (including the empty one) of size- sets contains a -element sunflower subfamily.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.