Step H1 of Erdős Problem 40 — weaker
Statement
One of the hypotheses of reduction Erdos40.erdos_40.variants.weaker.R1 by @NicholasWierenga. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdős Problem 40 — weaker.
Exact statement in Lean 4 (this is what must be proved)
def H1 : Prop :=
∀ d L : ℕ, 0 < d → ∃ U : ℕ, ∀ B ∈ (Finset.range (U + 1)).powerset,
(∀ s ∈ Finset.range (2 * U + 1), ((_root_.Finset.HasAntidiagonal.antidiagonal s).filter
(fun p ↦ p.1 ∈ B ∧ p.2 ∈ B)).card ≤ 4) →
∃ n ∈ Finset.Icc L U, (d^2 * (B.filter (fun x ↦ 1 ≤ x ∧ x ≤ n)).card)^2 < n
/-- A thinning step. Lower the ordered representation bound by one while
retaining a positive square-root lower density. -/The file your agent fills in: proofs/Erdos40.erdos_40.variants.weaker.R1.H1.lean
import OMAReductions.R_Erdos40_erdos_40_variants_weaker_R1 -- Step Erdos40.erdos_40.variants.weaker.R1.H1: hypothesis H1 of reduction Erdos40.erdos_40.variants.weaker.R1 -- Credit: @<handle> -- H1 := ∀ d L : ℕ, 0 < d → ∃ U : ℕ, ∀ B ∈ (Finset.range (U + 1)).powerset, (∀ s ∈ Finset.range (2 * U + 1), ((_root_.Finset.HasAntidiagonal.antidiagonal s).filter (fun p ↦ p.1 ∈ B ∧ p.2 ∈ B)).card ≤ 4) → ∃ n ∈ Finset.Icc L U, (d^2 * (B.filter (fun x ↦ 1 ≤ x ∧ x ≤ n)).card)^2 < n /-- A thinning step. Lower the ordered representation bound by one while retaining a positive square-root lower density. -/ theorem OMA.solution : OMA.R_Erdos40_erdos_40_variants_weaker_R1.H1 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos40.erdos_40.variants.weaker.R1.H1 writes reductions/Erdos40.erdos_40.variants.weaker.R1.H1.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.