Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import Mathlib.Analysis.Normed.Module.Basic |
| 2 | |
| 3 | /-! Elementary endpoint uniqueness along the same positive radial direction. |
| 4 | The two radial intervals are allowed different lengths. This is used in |
| 5 | the compact first-meeting proof of MT Claim 19.41, p. 471; see the |
| 6 | short-geodesic-digons derivation, Section 7. -/ |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | |
| 10 | open Set |
| 11 | |
| 12 | namespace PoincareMT |
| 13 | |
| 14 | /-- Positive affine rescaling transfers radial injectivity from the unit interval to the |
| 15 | original length interval. Source: MT Claim 19.41; digon derivation, Section 7. |
| 16 | Source/construction: proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, |
| 17 | Section 7. -/ |
| 18 | theorem m64_radial_injOn_of_positive_rescale |
| 19 | {E X : Type*} [AddCommGroup E] [Module ℝ E] |
| 20 | (e : E → X) {theta : E} {B : ℝ} (hB : 0 < B) |
| 21 | (hi : InjOn (fun t : ℝ => e (t • B • theta)) (Icc (0 : ℝ) 1)) : |
| 22 | InjOn (fun s : ℝ => e (s • theta)) (Icc 0 B) := by |
| 23 | intro s hs t ht heq |
| 24 | have hscaled := hi |
| 25 | ⟨div_nonneg hs.1 hB.le, (div_le_one hB).mpr hs.2⟩ |
| 26 | ⟨div_nonneg ht.1 hB.le, (div_le_one hB).mpr ht.2⟩ |
| 27 | (by simpa only [smul_smul, div_mul_cancel₀ _ hB.ne'] using heq) |
| 28 | exact (div_left_inj' hB.ne').mp hscaled |
| 29 | |
| 30 | /-- Injectivity of the two actual radial segments identifies their vectors when the vectors |
| 31 | have the same positive direction and the endpoints agree. Source: MT Claim 19.41; digon |
| 32 | derivation, Section 7. Source/construction: |
| 33 | proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, Section 7. -/ |
| 34 | theorem m64_radial_same_direction_endpoint_eq |
| 35 | {E X : Type*} [AddCommGroup E] [Module ℝ E] |
| 36 | (e : E → X) {theta v : E} {B s c : ℝ} |
| 37 | (hs : s ∈ Icc 0 B) (hc : 0 < c) (hv : v = c • theta) |
| 38 | (hi : InjOn (fun t : ℝ => e (t • v)) (Icc (0 : ℝ) 1)) |
| 39 | (hj : InjOn (fun t : ℝ => e (t • theta)) (Icc (0 : ℝ) B)) |
| 40 | (he : e v = e (s • theta)) : v = s • theta := by |
| 41 | rcases le_total c s with hcs | hsc |
| 42 | · have h : c = s := hj ⟨hc.le, hcs.trans hs.2⟩ hs (by simpa only [← hv] using he) |
| 43 | simpa only [h] using hv |
| 44 | · have ht : s / c ∈ Icc (0 : ℝ) 1 := |
| 45 | ⟨div_nonneg hs.1 hc.le, (div_le_one hc).mpr hsc⟩ |
| 46 | have hscaled : (s / c) • v = s • theta := by |
| 47 | rw [hv, smul_smul, div_mul_cancel₀ _ hc.ne'] |
| 48 | have heq : s / c = 1 := hi ht ⟨zero_le_one, le_rfl⟩ (by |
| 49 | simpa only [hscaled, one_smul] using he.symm) |
| 50 | have h : s = c := (div_eq_one_iff_eq hc.ne').mp heq |
| 51 | simpa only [h] using hv |
| 52 | |
| 53 | /-- A positive prefix of a noncanonical embedded ray cannot equal a positive canonical |
| 54 | radial vector. Its endpoint condition would identify the whole ray vector with the canonical |
| 55 | one. Source: MT Claim 19.41; digon derivation, Section 7. Source/construction: |
| 56 | proof-work/tasks/M64/derivations/2026-09-27-short-geodesic-digons.md, Section 7. -/ |
| 57 | theorem m64_radial_noncanonical_prefix_ne |
| 58 | {E X : Type*} [AddCommGroup E] [Module ℝ E] |
| 59 | (e : E → X) {theta v : E} {B s t u : ℝ} |
| 60 | (hs : s ∈ Icc 0 B) (ht : 0 < t) (hu : 0 < u) |
| 61 | (hi : InjOn (fun a : ℝ => e (a • v)) (Icc (0 : ℝ) 1)) |
| 62 | (hj : InjOn (fun a : ℝ => e (a • theta)) (Icc (0 : ℝ) B)) |
| 63 | (he : e v = e (s • theta)) (hne : v ≠ s • theta) : t • v ≠ u • theta := by |
| 64 | intro heq |
| 65 | have hv : v = (u / t) • theta := by |
| 66 | have h := congrArg (fun w : E => t⁻¹ • w) heq |
| 67 | simpa only [smul_smul, inv_mul_cancel₀ ht.ne', one_smul, |
| 68 | div_eq_mul_inv, mul_comm] using h |
| 69 | exact hne (m64_radial_same_direction_endpoint_eq e hs (div_pos hu ht) hv hi hj he) |
| 70 | |
| 71 | end PoincareMT |