Documentation

RamanujanNagell.QuadraticIntegers.RingOfIntegers

The field ℚ(√-7) presented as QuadraticAlgebra ℚ (-7) 0 #

In this presentation ω' satisfies (ω')² = -7 + 0·ω' = -7, so ω' = √(-7).

Algebra instance: QuadraticAlgebra ℤ (-2) 1 → K' #

The ring map sends the ℤ-generator ω_int (satisfying ω_int² = -2 + ω_int) to (1 + ω')/2 in K', where ω' satisfies (ω')² = -7. Indeed: ((1 + ω')/2)² = (1 + 2ω' + (ω')²)/4 = (1 + 2ω' - 7)/4 = (-6 + 2ω')/4 = -3/2 + ω'/2 -2 + 1·((1 + ω')/2) = -2 + 1/2 + ω'/2 = -3/2 + ω'/2 ✓ This is QuadraticInteger.d_1's algebra instance at d = -7, e = -2.

@[simp]

The algebra map sends ω to (1+ω')/2.

The ring of integers of K' #

Specialisation of QuadraticInteger.d_1 at d = -7, e = -2:

This is exactly the ring ℤ[θ] in our main file (where θ satisfies θ² = θ - 2), which is the ring of integers of ℚ(√-7) since disc(θ² - θ + 2) = 1 - 8 = -7.