Module

QuadraticIntegralCoordinates.lean

Nyll.SawinTotallyRealTowers.QuadraticIntegralCoordinates
2 declarations indexed from sourceView source ↗

Integral coordinates in a quadratic number field

The trace and norm of an algebraic integer are integral. For a square-root generator of signed squarefree square d, these identities force both coordinates to be half-integers and give the congruence modulo four. Conversely, the congruence supplies a monic integer polynomial.

Declarations

ClassFieldTower.Sawin.exists_int_quadratic_coordinates_of_isIntegral

An integral element in squarefree quadratic coordinates has half-integer coordinates satisfying the norm congruence modulo four.

Source context 2 commands

Surrounding namespaces, section variables, and local commands at this declaration.

universe u
namespace ClassFieldTower.Sawin
theorem exists_int_quadratic_coordinates_of_isIntegral
    (L : Type u) [Field L] [Algebra ℚ L] [Algebra.IsQuadraticExtension ℚ L]
    (d : ℤ) (hd : Squarefree d.natAbs) (a b : ℚ) (α : L)
    (hSquare : α ^ 2 = algebraMap ℚ L (d : ℚ))
    (hGenerate : IntermediateField.adjoin ℚ ({α} : Set L) = ⊤)
    (hx : IsIntegral ℤ (algebraMap ℚ L a + algebraMap ℚ L b * α)) :
    ∃ m n : ℤ, 2 * a = (m : ℚ) ∧ 2 * b = (n : ℚ) ∧ 4 ∣ m ^ 2 - d * n ^ 2
ClassFieldTower.Sawin.isIntegral_quadratic_coordinates_iff

Integrality in squarefree quadratic coordinates is equivalent to half-integer coordinates satisfying the norm congruence modulo four.

Source context 2 commands

Surrounding namespaces, section variables, and local commands at this declaration.

universe u
namespace ClassFieldTower.Sawin
theorem isIntegral_quadratic_coordinates_iff
    (L : Type u) [Field L] [Algebra ℚ L] [Algebra.IsQuadraticExtension ℚ L]
    (d : ℤ) (hd : Squarefree d.natAbs) (a b : ℚ) (α : L)
    (hSquare : α ^ 2 = algebraMap ℚ L (d : ℚ))
    (hGenerate : IntermediateField.adjoin ℚ ({α} : Set L) = ⊤) :
    IsIntegral ℤ (algebraMap ℚ L a + algebraMap ℚ L b * α) ↔
      ∃ m n : ℤ, 2 * a = (m : ℚ) ∧ 2 * b = (n : ℚ) ∧ 4 ∣ m ^ 2 - d * n ^ 2