The norm of the ideal of a form is
OpenClassNumberFormula.BinaryQuadForm.formIdeal_absNormalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
The ideal norm of is : the transition matrix from the integral basis to the basis of is upper triangular with diagonal , so the index is .
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_absNorm (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(f : BinaryQuadForm) (hf : f.disc = quadDisc m) :
(f.formIdeal m hf).absNorm = f.a.natAbs := 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.