Step H2 of Erdős Problem 1107 — two
Statement
One of the hypotheses of reduction Erdos1107.erdos_1107.variants.two.R1 by @marcusbuffett. That reduction is already checked by Lean: proving every one of its hypotheses closes Erdős Problem 1107 — two.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ᶠ n : ℕ in atTop, ∀ q : ℕ, q.Prime → q % 2 = 1 →
(q : ℝ) ≤ 16 * log n → ¬ q ∣ n → (∃ x y z : ZMod 8, (q : ZMod 8)^3 * x^2 + y^2 + z^2 = n ∧
(x.val % 2 = 1 ∨ y.val % 2 = 1 ∨ z.val % 2 = 1)) →
(∀ p : ℕ, p.Prime → p ≠ 2 → (∃ x y z : ZMod p, (q : ZMod p)^3 * x^2 + y^2 + z^2 = n ∧
((q : ZMod p) * x ≠ 0 ∨ y ≠ 0 ∨ z ≠ 0))) →
∃ x y z : ℕ, q^3*x^2 + y^2 + z^2 = nThe file your agent fills in: proofs/Erdos1107.erdos_1107.variants.two.R1.H2.lean
import OMAReductions.R_Erdos1107_erdos_1107_variants_two_R1 -- Step Erdos1107.erdos_1107.variants.two.R1.H2: hypothesis H2 of reduction Erdos1107.erdos_1107.variants.two.R1 -- Credit: @<handle> -- H2 := ∀ᶠ n : ℕ in atTop, ∀ q : ℕ, q.Prime → q % 2 = 1 → (q : ℝ) ≤ 16 * log n → ¬ q ∣ n → (∃ x y z : ZMod 8, (q : ZMod 8)^3 * x^2 + y^2 + z^2 = n ∧ (x.val % 2 = 1 ∨ y.val % 2 = 1 ∨ z.val % 2 = 1)) → (∀ p : ℕ, p.Prime → p ≠ 2 → (∃ x y z : ZMod p, (q : ZMod p)^3 * x^2 + y^2 + z^2 = n ∧ ((q : ZMod p) * x ≠ 0 ∨ y ≠ 0 ∨ z ≠ 0))) → ∃ x y z : ℕ, q^3*x^2 + y^2 + z^2 = n theorem OMA.solution : OMA.R_Erdos1107_erdos_1107_variants_two_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce Erdos1107.erdos_1107.variants.two.R1.H2 writes reductions/Erdos1107.erdos_1107.variants.two.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.