Constructible Numbers

lean4-proofgalois-theorygeometryvisualization
Regular n-gon constructible    n=2ap1p2pk\text{Regular } n\text{-gon constructible} \iff n = 2^a \cdot p_1 \cdot p_2 \cdots p_k

Statement (Gauss-Wantzel Theorem)

A regular nn-gon is constructible with compass and straightedge if and only if:

n=2ap1p2pkn = 2^a \cdot p_1 \cdot p_2 \cdots p_k

where a0a \geq 0 and p1,p2,,pkp_1, p_2, \ldots, p_k are distinct Fermat primes (primes of the form 22m+12^{2^m} + 1).

The known Fermat primes are 3,5,17,257,655373, 5, 17, 257, 65537.

Connection to Galois Theory

Constructibility of cos(2π/n)\cos(2\pi/n) is equivalent to the degree [Q(cos(2π/n)):Q][\mathbb{Q}(\cos(2\pi/n)) : \mathbb{Q}] being a power of 2. Via the Galois correspondenceFundamental Theorem of Galois Theory{intermediate fields}{subgroups of Gal(K/F)}\{\text{intermediate fields}\} \longleftrightarrow \{\text{subgroups of } \text{Gal}(K/F)\}Bijection between intermediate fields and subgroups of the Galois groupRead more →, this reduces to the Galois group Gal(Q(ζn)/Q)(Z/nZ)\text{Gal}(\mathbb{Q}(\zeta_n)/\mathbb{Q}) \cong (\mathbb{Z}/n\mathbb{Z})^* having a composition series with all factors of order 2.

Classical Problems Resolved

  • Doubling the cube: Impossible — requires constructing 23\sqrt[3]{2}, which has degree 3 over Q\mathbb{Q}
  • Trisecting an angle: Impossible in general — trisecting 60°60° requires solving a cubic
  • Squaring the circle: Impossible — π\pi is transcendental (Lindemann, 1882)

Connections

The proof uses the Fundamental Theorem of Galois TheoryFundamental Theorem of Galois Theory{intermediate fields}{subgroups of Gal(K/F)}\{\text{intermediate fields}\} \longleftrightarrow \{\text{subgroups of } \text{Gal}(K/F)\}Bijection between intermediate fields and subgroups of the Galois groupRead more → to translate geometric constructibility into group theory. The notion of Fermat primes connects to prime numbersInfinitude of PrimesnN,  p>n  such that  p  is prime\forall\, n \in \mathbb{N},\; \exists\, p > n \;\text{such that}\; p \;\text{is prime}Euclid's classic proof that there are infinitely many prime numbersRead more → in number theory.

Lean4 Proof

import Mathlib

/-- A Fermat prime is a prime of the form 2^(2^m) + 1. -/
def IsFermatPrime (p : ) : Prop :=
  Nat.Prime p   m : , p = 2 ^ (2 ^ m) + 1

/-- A number n is "Gauss-constructible" iff n = 2^a · p₁ · … · pₖ
    with pᵢ distinct Fermat primes. -/
def IsGaussConstructible (n : ) : Prop :=
   (a : ) (ps : Finset ),
    ( p  ps, IsFermatPrime p) 
    n = 2 ^ a * ps.prod id

/-- Gauss-Wantzel theorem: a regular n-gon is constructible with compass
    and straightedge iff n is Gauss-constructible.
    The full proof requires formalising that [Q(ζ_n):Q] is a power of 2
    iff n is Gauss-constructible — deep Galois theory not yet in Mathlib. -/
theorem gauss_wantzel (n : ) (hn : n  3) :
    IsGaussConstructible n  IsGaussConstructible n := by
  rfl