The basis expansion of
ProvedClassNumberFormula.BinaryQuadForm.beta_eqalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
Let be a form of discriminant in the model , and let be the classical generator of its ideal. Relative to the integral basis of , the generator is when (where is odd) and otherwise (where is even): in both cases is the second basis vector plus an explicit integer. This expansion is what makes the ideal of a form a triangular change of basis away from .
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.beta_eq (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(f : BinaryQuadForm) (hf : f.disc = quadDisc m)
(b : Module.Basis (Fin 2) ℤ (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))))
(hb0 : (b 0 : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = 1)
(hb1 : (b 1 : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = (if m % 4 = 1 then (1 + AdjoinRoot.root (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) / 2 else AdjoinRoot.root (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) :
f.beta m = (b 1 : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) +
((if m % 4 = 1 then (f.b - 1) / 2 else f.b / 2 : ℤ) : 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.