Step H3 of Erdős Problem 17.
Statement
One of the hypotheses of reduction Erdos17.erdos_17.R2 by @desenyon. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdős Problem 17..
Exact statement in Lean 4 (this is what must be proved)
def H3 : Prop :=
∀ N : ℕ, ∃ k ≥ N, ∃ S : Finset ℕ, k < S.card ∧
(∀ p ∈ S, k ^ 4 ≤ p ∧ p ≤ 2 * k ^ 4 ∧ p.Prime ∧
∀ t : ℕ, 3 ≤ t → t ≤ (Nat.log2 (k ^ 4) + 1) ^ 3 → t ≤ p →
Odd t → ¬ t.Prime → ∃ r : ℕ, r.Prime ∧ (p - t + r).Prime ∧ r ≤ t) ∧
∀ p ∈ S, ∀ q ∈ S, p < q → p + 2 * k ^ 2 ≤ q
/-- A prime failing the cluster tests has an even difference for which
every pair of witnesses overshoots the endpoint. -/The file your agent fills in: proofs/Erdos17.erdos_17.R2.H3.lean
import OMAReductions.R_Erdos17_erdos_17_R2 -- Step Erdos17.erdos_17.R2.H3: hypothesis H3 of reduction Erdos17.erdos_17.R2 -- Credit: @<handle> -- H3 := ∀ N : ℕ, ∃ k ≥ N, ∃ S : Finset ℕ, k < S.card ∧ (∀ p ∈ S, k ^ 4 ≤ p ∧ p ≤ 2 * k ^ 4 ∧ p.Prime ∧ ∀ t : ℕ, 3 ≤ t → t ≤ (Nat.log2 (k ^ 4) + 1) ^ 3 → t ≤ p → Odd t → ¬ t.Prime → ∃ r : ℕ, r.Prime ∧ (p - t + r).Prime ∧ r ≤ t) ∧ ∀ p ∈ S, ∀ q ∈ S, p < q → p + 2 * k ^ 2 ≤ q /-- A prime failing the cluster tests has an even difference for which every pair of witnesses overshoots the endpoint. -/ theorem OMA.solution : OMA.R_Erdos17_erdos_17_R2.H3 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos17.erdos_17.R2.H3 writes reductions/Erdos17.erdos_17.R2.H3.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.