Integral basis of for squarefree
ProvedClassNumberFormula.quadratic_integral_basisalgebraic-number-theorynumber-fieldsnumber-theory
Let be a squarefree integer, , and let
. Then the ring of integers of has the integral basis
when , and
when .
The content beyond exhibiting two algebraic integers is the maximality: every
algebraic integer of is an integral combination of the two basis elements,
which is the usual trace-and-norm denominator argument. Together with
ClassNumberFormula.quadratic_discr_of_integral_basis this computes the
discriminant of .
Preamble
import Mathlib import Definitions.Def_ClassNumberFormula_Kronecker open NumberField NumberField.InfinitePlace
Formal statement
namespace ClassNumberFormula
theorem quadratic_integral_basis (m : ℤ) (hm : Squarefree m) (hm0 : m ≠ 0) (hm1 : m ≠ 1)
[Fact (Irreducible (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))] :
∃ b : Module.Basis (Fin 2) ℤ (𝓞 (AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ)))),
(b 0 : AdjoinRoot (Polynomial.X ^ 2 - Polynomial.C (m : ℚ))) = 1 ∧
(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 : ℚ))) := by sorry
end ClassNumberFormulaSource
Standard algebraic number theory: ring of integers of a quadratic field; see e.g. Marcus, Number Fields, Ch. 2, Thm. 11, or Narkiewicz, Ch. 2.