The ideal of the read-off form has the same class as the ideal
OpenClassNumberFormula.BinaryQuadForm.formIdeal_ofIdealBasis_classalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
For a nonzero ideal I of the ring of integers of the model field ℚ(√m) with oriented basis e, the ideal attached to the form read off e has the same class in the class group as I itself. The discriminant identity and the nonvanishing of the attached ideal are taken as hypotheses (they are ofIdealBasis_disc and formIdeal_ne_zero in the tree).
Preamble
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker import Definitions.Def_ClassNumberFormula_FormClassNumber import Definitions.Def_ClassNumberFormula_FormIdeal open NumberField NumberField.InfinitePlace
Formal statement
namespace ClassNumberFormula
theorem BinaryQuadForm.formIdeal_ofIdealBasis_class (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(b : Module.Basis (Fin 2) ℤ (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))))
{I : Ideal (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))))} (hI : I ≠ 0) (e : Module.Basis (Fin 2) ℤ I)
(hfdisc : (BinaryQuadForm.ofIdealBasis m e).disc = quadDisc m)
(hfnz : (BinaryQuadForm.ofIdealBasis m e).formIdeal m hfdisc ≠ 0) :
ClassGroup.mk0 ⟨(BinaryQuadForm.ofIdealBasis m e).formIdeal m hfdisc,
mem_nonZeroDivisors_iff_ne_zero.mpr hfnz⟩ =
ClassGroup.mk0 ⟨I, mem_nonZeroDivisors_iff_ne_zero.mpr hI⟩ := by sorry
end ClassNumberFormulaSource
Gauss correspondence between binary quadratic forms and ideal classes of quadratic fields; see e.g. Cox, Primes of the Form x^2 + ny^2, Ch. 2-3, or Davenport, Multiplicative Number Theory, Ch. 6. Part of the Gap B (forms = classes) tree for Dirichlet's class number formula.