Ramanujan's Notebooks, shared: modularDegree
DefinitionRamanujanNotebooks_shared_modularDegreemodularDegree n α β: the modulus √β has degree n over the modulus √α in the sense
of Part III, Chapter 18, (24.13), and Chapter 19, pp. 229–230: 0 < α < 1, 0 < β < 1 and
n · K'(√α)/K(√α) = K'(√β)/K(√β). With the nome F(x) = exp(-π K'/K) of the shared definitions
(ellipticNome) this is written F(β) = F(α)^n. Equivalently α = x(q) and β = x(q^n) for one
q ∈ (0, 1), where x(q) = 1 - φ(-q)⁴/φ(q)⁴. A relation between α and β valid under this
hypothesis is what Ramanujan calls a modular equation of degree n; the multiplier is
m = z(α)/z(β) with z(x) = ₂F₁(1/2, 1/2; 1; x).
The four inequalities are part of the definition, so the junk value 1 that ellipticNome takes
for x ≤ 0 and x ≥ 1 cannot satisfy it. For n = 1 it says α = β; for n = 0 it is false.
Reference: n = 3: α = (2 + √3)/4, β = (2 - √3)/4 (nomes e^{-π/√3}, e^{-π√3}).
import Mathlib
import Definitions.Def_RamanujanNotebooks_shared_ellipticNome
namespace RamanujanNotebooks
/-- `modularDegree n α β`: the modulus `√β` has degree `n` over the modulus `√α` in the sense
of Part III, Chapter 18, (24.13), and Chapter 19, pp. 229–230: `0 < α < 1`, `0 < β < 1` and
`n · K'(√α)/K(√α) = K'(√β)/K(√β)`. With the nome `F(x) = exp(-π K'/K)` of the shared definitions
(`ellipticNome`) this is written `F(β) = F(α)^n`. Equivalently `α = x(q)` and `β = x(q^n)` for one
`q ∈ (0, 1)`, where `x(q) = 1 - φ(-q)⁴/φ(q)⁴`. A relation between `α` and `β` valid under this
hypothesis is what Ramanujan calls a modular equation of degree `n`; the multiplier is
`m = z(α)/z(β)` with `z(x) = ₂F₁(1/2, 1/2; 1; x)`.
The four inequalities are part of the definition, so the junk value `1` that `ellipticNome` takes
for `x ≤ 0` and `x ≥ 1` cannot satisfy it. For `n = 1` it says `α = β`; for `n = 0` it is false.
Reference: `n = 3`: `α = (2 + √3)/4`, `β = (2 - √3)/4` (nomes `e^{-π/√3}`, `e^{-π√3}`). -/
def modularDegree (n : ℕ) (α β : ℝ) : Prop :=
0 < α ∧ α < 1 ∧ 0 < β ∧ β < 1 ∧ ellipticNome β = ellipticNome α ^ n
end RamanujanNotebooks