Documentation

RamanujanNagell.QuadraticIntegers.FieldIsomorphism

The field isomorphism K' ≃ₐ[ℚ] K #

We construct an explicit ℚ-algebra isomorphism between K' = QuadraticAlgebra ℚ (-7) 0 (ω' satisfies (ω')² = -7) K = QuadraticAlgebra ℚ (-2) 1 (ω satisfies ω² = -2 + ω)

The isomorphism sends ω' ↦ 2ω - 1 (in K), since: (2ω - 1)² = 4ω² - 4ω + 1 = 4(-2 + ω) - 4ω + 1 = -8 + 4ω - 4ω + 1 = -7 ✓

The inverse sends ω ↦ (ω' + 1)/2 (in K').

The ℚ-algebra map K' → K sending ω' ↦ 2ω - 1.

Equations
Instances For

    The ℚ-algebra map K → K' sending ω ↦ (ω' + 1)/2.

    Equations
    Instances For

      The field isomorphism K' ≃ₐ[ℚ] K.

      Equations
      Instances For

        The isomorphism sends ω' to 2ω - 1.

        Every element of QuadraticAlgebra ℤ a b is generated by ω as a ℤ-algebra.

        QuadraticAlgebra ℤ (-2) 1 is an integral closure of ℤ in K, via the algebra map OK_to_K (sending ω ↦ ω). This is the transport of ring_of_integers_neg7 along fieldIso : K' ≃ₐ[ℚ] K.

        The explicit hypothesis h_omega pins down the algebra map algebraMap A K by requiring it sends ω to ω; at the call site (Helpers.lean), this is satisfied by OK_to_K.toAlgebra.