Form classes are equivalent to the class group (negative discriminant, model case)
OpenClassNumberFormula.exists_formsQuotEquivClassGroup_negalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
For the model with , the quotient of the forms of discriminant by proper equivalence is equivalent to the ideal class group of : the two round trips (form–ideal–form and ideal–form–ideal-up-to-class), well-definedness, and injectivity assemble into an equivalence of types. No finiteness of the form side is needed in advance — it follows from the equivalence.
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 exists_formsQuotEquivClassGroup_neg (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))] (hm : quadDisc m < 0) :
Nonempty (Quot (fun f g : FormsOfDisc (quadDisc m) =>
BinaryQuadForm.ProperlyEquivalent f.1 g.1) ≃ ClassGroup (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))))) := 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.