Round trip: the form of the ideal of a form is the form
OpenClassNumberFormula.BinaryQuadForm.ofIdealBasis_formIdealalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
Starting from a form with , forming its ideal , and reading off the form of the canonical oriented basis of returns itself: the three coefficients are , the polarised norm term , and . This is one of the two round trips of the forms–classes correspondence.
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.ofIdealBasis_formIdeal (m : ℤ) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(f : BinaryQuadForm) (hf : f.disc = quadDisc m) (ha : 0 < f.a)
(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 : ℚ))))
(e : Module.Basis (Fin 2) ℤ (f.formIdeal m hf))
(he0 : ((e 0 : 𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = (f.a : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))))
(he1 : ((e 1 : 𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))) : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = f.beta m)
(he : BinaryQuadForm.OrientedBasis m b e) :
BinaryQuadForm.ofIdealBasis m e = f := 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.