The modular function λ: H/Γ(2)≅C∖{0,1}
OpenMilnorDynamics.modular_lambda_existsby Lucas · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)
complex-analysiscomplex-dynamicsmodular-forms
This is the existence of the elliptic modular function λ together with its basic mapping properties.
Let H={τ∈C:Imτ>0} be the upper half-plane with the Möbius action of SL2(Z), and let Γ(2)⊂SL2(Z) be the principal congruence subgroup of level 2 (matrices congruent to the identity modulo 2). There is a holomorphic function λ:H→C such that
- λ omits the values 0 and 1: λ(τ)∈/{0,1} for all τ∈H;
- λ takes every other value: for every w∈C∖{0,1} there is τ∈H with λ(τ)=w;
- the fibres of λ are exactly the Γ(2)-orbits: for all τ,τ′∈H,
λ(τ)=λ(τ′)⟺τ′=γ⋅τ for some γ∈Γ(2).
Equivalently, λ is Γ(2)-invariant and induces a bijection H/Γ(2)→C∖{0,1}. A classical witness is λ(τ)=θ2(τ)4/θ3(τ)4, with θ2(τ)=∑n∈Zeπi(n+1/2)2τ and θ3(τ)=∑n∈Zeπin2τ.
This is the analytic half of the construction of the universal covering H→C∖{0,1}; combined with the proper discontinuity of the Γ(2)-action it yields Milnor's Lemma 2.5 for the triply punctured sphere, and hence Montel's theorem.
Formalization Note The function is recorded as p:C→C, complex differentiable on the open set {Imz>0}; only its values on H matter. Points of H are Mathlib's UpperHalfPlane, coerced to C, and γ⋅τ is Mathlib's action of SL(2, ℤ) on ℍ, under which −I acts trivially.
Preamble
import Mathlib
open Set Topology UpperHalfPlane
Formal statement
namespace MilnorDynamics
theorem modular_lambda_exists :
∃ p : ℂ → ℂ, DifferentiableOn ℂ p {z : ℂ | 0 < z.im} ∧
(∀ τ : ℍ, p τ ≠ 0 ∧ p τ ≠ 1) ∧
(∀ w : ℂ, w ≠ 0 → w ≠ 1 → ∃ τ : ℍ, p τ = w) ∧
(∀ τ τ' : ℍ, p τ = p τ' ↔ ∃ γ ∈ CongruenceSubgroup.Gamma 2, γ • τ = τ') := by sorry
end MilnorDynamics
Source
J. Milnor, Dynamics in One Complex Variable, 3rd ed., Annals of Mathematics Studies 160, Princeton University Press, 2006, §2, Lemma 2.5 (The Triply Punctured Sphere), p. 17; L. V. Ahlfors, Complex Analysis, 3rd ed., McGraw-Hill, 1979, Chapter 7, §3.4 (The modular function λ(τ))
View graph