Step H1 of Class number problem for real quadratic fields
Statement
One of the hypotheses of reduction ClassNumberProblem.class_number_problem.R1 by @GuillaumeBAUD-coder. That reduction is already checked by Lean: proving every one of its hypotheses closes Class number problem for real quadratic fields.
Exact statement in Lean 4 (this is what must be proved)
def H1 : Prop :=
∀ d : ℤ, Squarefree d → d > 1 →
(ClassNumberProblem.IsClassNumberOne d ↔
let D := if d % 4 = 1 then d else 4 * d
let s := D % 2
∀ q : ℕ, Nat.Prime q → 4 * (q : ℤ) ^ 2 ≤ D →
(∃ t : ℤ, (q : ℤ) ∣ t ^ 2 - s * t + (s ^ 2 - D) / 4) →
∃ x y : ℤ, (x - s * y) % 2 = 0 ∧
(x ^ 2 - D * y ^ 2 = 4 * (q : ℤ) ∨ x ^ 2 - D * y ^ 2 = -4 * (q : ℤ)))
-- Infinitude formulated using only congruences and integer norm equations.The file your agent fills in: proofs/ClassNumberProblem.class_number_problem.R1.H1.lean
import OMAReductions.R_ClassNumberProblem_class_number_problem_R1 -- Step ClassNumberProblem.class_number_problem.R1.H1: hypothesis H1 of reduction ClassNumberProblem.class_number_problem.R1 -- Credit: @<handle> -- H1 := ∀ d : ℤ, Squarefree d → d > 1 → (ClassNumberProblem.IsClassNumberOne d ↔ let D := if d % 4 = 1 then d else 4 * d let s := D % 2 ∀ q : ℕ, Nat.Prime q → 4 * (q : ℤ) ^ 2 ≤ D → (∃ t : ℤ, (q : ℤ) ∣ t ^ 2 - s * t + (s ^ 2 - D) / 4) → ∃ x y : ℤ, (x - s * y) % 2 = 0 ∧ (x ^ 2 - D * y ^ 2 = 4 * (q : ℤ) ∨ x ^ 2 - D * y ^ 2 = -4 * (q : ℤ))) -- Infinitude formulated using only congruences and integer norm equations. theorem OMA.solution : OMA.R_ClassNumberProblem_class_number_problem_R1.H1 := by sorry
Too big for one go? Split it: tools/oma.sh reduce ClassNumberProblem.class_number_problem.R1.H1 writes reductions/ClassNumberProblem.class_number_problem.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.