Documentation

RamanujanNagell.Helpers

Algebraic Number Theory Facts #

The following lemmas encode number-theoretic facts about the ring of integers of ℚ(√-7) that are used in the proof of the Ramanujan-Nagell theorem but require algebraic number theory machinery beyond what is currently available in Mathlib.

Reference: These facts can be found in standard algebraic number theory textbooks. The class number of ℚ(√-7) being 1 is part of the Heegner-Stark theorem which classifies all imaginary quadratic fields with class number 1: d = -1, -2, -3, -7, -11, -19, -43, -67, -163.

@[reducible, inline]

The minimal polynomial of θ: X² - X + 2. Its discriminant is -7, so it is irreducible over ℚ.

Equations
Instances For

    Facts about θ #

    blah

    Exercise 3: In the UFD R, if α · β = θ^m · θ'^m and gcd(α, β) = 1, then α = ±θ^m or α = ±θ'^m. This combines two steps: (1) unique factorization (class_number_one) implies α is associate to θ^m or θ'^m, and (2) the only units are ±1 (units_pm_one), pinning down the sign.

    theorem associated_eq_or_neg (α γ : NumberField.RingOfIntegers K) (h : Associated α γ) :
    α = γ α = -γ