Equal ideal classes give properly equivalent forms (negative discriminant)
OpenClassNumberFormula.BinaryQuadForm.properlyEquivalent_of_mk0_eq_negalgebraic-number-theorynumber-fieldsnumber-theoryquadratic-forms
For d < 0 fundamental, forms of discriminant d with positive a whose attached ideals lie in the same ideal class are properly equivalent. The nonvanishing of the attached ideals is taken as a hypothesis (it is formIdeal_ne_zero in the tree).
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.properlyEquivalent_of_mk0_eq_neg (d : ℤ) (hd : d < 0)
(m : ℤ) (hm : Squarefree m) (hm0 : m ≠ 0) (hm1 : m ≠ 1) [Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))]
(hdisc : quadDisc m = d)
(f g : BinaryQuadForm) (hf : f.disc = d) (hg : g.disc = d)
(ha : 0 < f.a) (hb : 0 < g.a)
(hfnz : f.formIdeal m (hdisc ▸ hf) ≠ 0) (hgnz : g.formIdeal m (hdisc ▸ hg) ≠ 0)
(h : ClassGroup.mk0 ⟨g.formIdeal m (hdisc ▸ hg), mem_nonZeroDivisors_iff_ne_zero.mpr hgnz⟩ =
ClassGroup.mk0 ⟨f.formIdeal m (hdisc ▸ hf), mem_nonZeroDivisors_iff_ne_zero.mpr hfnz⟩) :
BinaryQuadForm.ProperlyEquivalent f g := 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.