Step H1 of Parities of partition numbers — classNumber eq ncard reducedForms
Statement
One of the hypotheses of reduction PartitionParity.classNumber_eq_ncard_reducedForms.R1 by @Halldon. That reduction is already checked by Lean: proving every one of its hypotheses closes Parities of partition numbers — classNumber eq ncard reducedForms.
Exact statement in Lean 4 (this is what must be proved)
def H1 : Prop :=
∀ (D : ℕ) [Fact (Irreducible (X ^ 2 + C (D : ℚ)))], Squarefree D → D % 4 = 3 →
let Form := {f : ℤ × ℤ × ℤ // 0 < f.1 ∧ f.2.1 ^ 2 - 4 * f.1 * f.2.2 = -(D : ℤ) ∧
Int.gcd (Int.gcd f.1 f.2.1) f.2.2 = 1}
let evaluate (f : Form) (x y : ℤ) := f.val.1 * x ^ 2 + f.val.2.1 * x * y + f.val.2.2 * y ^ 2
let proper (f g : Form) := ∃ u v w z : ℤ, u * z - v * w = 1 ∧
∀ x y : ℤ, evaluate f x y = evaluate g (u * x + v * y) (w * x + z * y)
NumberField.classNumber (AdjoinRoot (X ^ 2 + C (D : ℚ))) = Nat.card (Quot proper)
/-- Gauss reduction of primitive positive-definite forms, with the stated tie convention. -/The file your agent fills in: proofs/PartitionParity.classNumber_eq_ncard_reducedForms.R1.H1.lean
import OMAReductions.R_PartitionParity_classNumber_eq_ncard_reducedForms_R1
-- Step PartitionParity.classNumber_eq_ncard_reducedForms.R1.H1: hypothesis H1 of reduction PartitionParity.classNumber_eq_ncard_reducedForms.R1
-- Credit: @<handle>
-- H1 := ∀ (D : ℕ) [Fact (Irreducible (X ^ 2 + C (D : ℚ)))], Squarefree D → D % 4 = 3 → let Form := {f : ℤ × ℤ × ℤ // 0 < f.1 ∧ f.2.1 ^ 2 - 4 * f.1 * f.2.2 = -(D : ℤ) ∧ Int.gcd (Int.gcd f.1 f.2.1) f.2.2 = 1} let evaluate (f : Form) (x y : ℤ) := f.val.1 * x ^ 2 + f.val.2.1 * x * y + f.val.2.2 * y ^ 2 let proper (f g : Form) := ∃ u v w z : ℤ, u * z - v * w = 1 ∧ ∀ x y : ℤ, evaluate f x y = evaluate g (u * x + v * y) (w * x + z * y) NumberField.classNumber (AdjoinRoot (X ^ 2 + C (D : ℚ))) = Nat.card (Quot proper) /-- Gauss reduction of primitive positive-definite forms, with the stated tie convention. -/
theorem OMA.solution : OMA.R_PartitionParity_classNumber_eq_ncard_reducedForms_R1.H1 := by
sorry
Too big for one go? Split it: tools/oma.sh reduce PartitionParity.classNumber_eq_ncard_reducedForms.R1.H1 writes reductions/PartitionParity.classNumber_eq_ncard_reducedForms.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.