Step H2 of Erdős Problem 1191 — i
Statement
One of the hypotheses of reduction Erdos1191.erdos_1191.parts.i.R1 by @kenanwienberg. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdős Problem 1191 — i.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ L R₀ : ℕ, 16 ≤ R₀ → 1 ≤ L →
∃ K : ℕ, 2 * R₀ + L ≤ K ∧
∀ S : Finset ℕ, (↑S : Set ℕ) ⊆ Set.Icc 1 (2 ^ K) → IsSidon (↑S : Set ℕ) →
(∃ R ∈ Set.Icc R₀ (K - L), (S.filter (· ≤ 2 ^ R)).card ^ 2 * R ≤ 512 * 2 ^ R) →
∃ R ∈ Set.Icc R₀ (K - L),
(S.filter (· ≤ 2 ^ R)).card ^ 2 * R ≤ 512 * 2 ^ R ∧
2 ^ L * (S.filter (fun a => 2 ^ R < a ∧ a ≤ 2 ^ (R + L))).card ^ 2 * (R + L) ≤
2 ^ (R + L)The file your agent fills in: proofs/Erdos1191.erdos_1191.parts.i.R1.H2.lean
import OMAReductions.R_Erdos1191_erdos_1191_parts_i_R1 -- Step Erdos1191.erdos_1191.parts.i.R1.H2: hypothesis H2 of reduction Erdos1191.erdos_1191.parts.i.R1 -- Credit: @<handle> -- H2 := ∀ L R₀ : ℕ, 16 ≤ R₀ → 1 ≤ L → ∃ K : ℕ, 2 * R₀ + L ≤ K ∧ ∀ S : Finset ℕ, (↑S : Set ℕ) ⊆ Set.Icc 1 (2 ^ K) → IsSidon (↑S : Set ℕ) → (∃ R ∈ Set.Icc R₀ (K - L), (S.filter (· ≤ 2 ^ R)).card ^ 2 * R ≤ 512 * 2 ^ R) → ∃ R ∈ Set.Icc R₀ (K - L), (S.filter (· ≤ 2 ^ R)).card ^ 2 * R ≤ 512 * 2 ^ R ∧ 2 ^ L * (S.filter (fun a => 2 ^ R < a ∧ a ≤ 2 ^ (R + L))).card ^ 2 * (R + L) ≤ 2 ^ (R + L) theorem OMA.solution : OMA.R_Erdos1191_erdos_1191_parts_i_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos1191.erdos_1191.parts.i.R1.H2 writes reductions/Erdos1191.erdos_1191.parts.i.R1.H2.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.