A quadratic field is determined by its discriminant
OpenClassNumberFormula.exists_algEquiv_adjoinRoot_of_discr_eqalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
A number field of degree whose discriminant is (for a squarefree kernel ) is isomorphic to the model : the discriminant determines a quadratic field up to isomorphism, since for its own kernel and forces .
Together with the invariance of the class number under isomorphism, this reduces the forms–classes bridge for an arbitrary quadratic field to the bridge for the concrete model.
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_algEquiv_adjoinRoot_of_discr_eq (K : Type*) [Field K] [NumberField K]
(hK : Module.finrank ℚ K = 2) (m : ℤ) (hm : Squarefree m) (hm0 : m ≠ 0) (hm1 : m ≠ 1)
[Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(hdK : discr K = quadDisc m) :
Nonempty (K ≃ₐ[ℚ] 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.