The discriminant of an ideal basis, via the integral basis
OpenClassNumberFormula.BinaryQuadForm.discr_ofIdealBasisalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
For the model field K = ℚ(√m) with ring of integers O_K, an integral basis b of O_K and a ℤ-basis e of a nonzero ideal I, the discriminant of e (as a family in K) is the square of the determinant of the coordinate matrix of e relative to b, times the field discriminant quadDisc m.
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.discr_ofIdealBasis (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 : ℚ))))} (e : Module.Basis (Fin 2) ℤ I) :
Algebra.discr ℚ (fun i => ((e i : 𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) =
(Matrix.det (fun i j => ((b.repr (e j) i : ℤ) : ℚ))) ^ 2 * (quadDisc 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.