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 PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Closed.RadialGeodesic |
| 2 | |
| 3 | /-! The selected radial prefixes as actual smooth unit geodesic arcs. |
| 4 | Source: MT Claim 19.41, p. 471; short-geodesic-digons derivation, Section 9. |
| 5 | The original endpoint contacts and terminal differential vectors are retained. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- Two nonzero radial prefixes with only endpoint contacts have smooth |
| 17 | unit representatives on their actual length intervals. Every incidence and |
| 18 | both terminal derivatives are identified with the original exponential. |
| 19 | Source: MT Claim 19.41, p. 471; digon derivation, Section 9. -/ |
| 20 | theorem m64Intrinsic_exists_radial_digon_geodesics |
| 21 | (N : IntrinsicAnnulus) |
| 22 | {e : AnnulusCoordinates → AnnulusCoordinates} {Omega : Set AnnulusCoordinates} |
| 23 | (hOmega : IsOpen Omega) (hzeroOmega : (0 : AnnulusCoordinates) ∈ Omega) |
| 24 | (he : ContMDiffOn (𝓡 2) (𝓡 2) ∞ e Omega) |
| 25 | (hmetric : ∀ v w : AnnulusCoordinates, |
| 26 | N.metric.inner (e 0) (mfderiv (𝓡 2) (𝓡 2) e 0 v) |
| 27 | (mfderiv (𝓡 2) (𝓡 2) e 0 w) = inner ℝ v w) |
| 28 | (hgeo : ∀ v ∈ Omega, N.metric.IsGeodesicOn (fun t : ℝ => e (t • v)) |
| 29 | {t : ℝ | t • v ∈ Omega}) |
| 30 | (hstar : ∀ v ∈ Omega, ∀ t ∈ Icc (0 : ℝ) 1, t • v ∈ Omega) |
| 31 | {v theta : AnnulusCoordinates} {s : ℝ} (hv : v ∈ Omega) (hvne : v ≠ 0) |
| 32 | (htheta : ‖theta‖ = 1) (hs : 0 < s) (hsv : s • theta ∈ Omega) |
| 33 | (hpoint : e v = e (s • theta)) |
| 34 | (hcontacts : ∀ t ∈ Icc (0 : ℝ) 1, ∀ u ∈ Icc 0 s, |
| 35 | e (t • v) = e (u • theta) → (t = 0 ∧ u = 0) ∨ (t = 1 ∧ u = s)) : |
| 36 | ∃ alpha beta : ℝ → AnnulusCoordinates, |
| 37 | ContDiff ℝ ∞ alpha ∧ ContDiff ℝ ∞ beta ∧ |
| 38 | N.metric.IsGeodesicOn alpha (Icc 0 ‖v‖) ∧ N.metric.IsGeodesicOn beta (Icc 0 s) ∧ |
| 39 | (∀ t ∈ Icc 0 ‖v‖, N.metric.inner (alpha t) (deriv alpha t) (deriv alpha t) = 1) ∧ |
| 40 | (∀ t ∈ Icc 0 s, N.metric.inner (beta t) (deriv beta t) (deriv beta t) = 1) ∧ |
| 41 | alpha 0 = e 0 ∧ beta 0 = e 0 ∧ alpha ‖v‖ = e v ∧ beta s = e v ∧ |
| 42 | (∀ t ∈ Icc 0 ‖v‖, alpha t = e ((t / ‖v‖) • v)) ∧ |
| 43 | (∀ t ∈ Icc 0 s, beta t = e (t • theta)) ∧ |
| 44 | (∀ t ∈ Icc 0 ‖v‖, ∀ u ∈ Icc 0 s, |
| 45 | alpha t = beta u → (t = 0 ∧ u = 0) ∨ (t = ‖v‖ ∧ u = s)) ∧ |
| 46 | deriv alpha ‖v‖ = fderiv ℝ e v (‖v‖⁻¹ • v) ∧ |
| 47 | deriv beta s = fderiv ℝ e (s • theta) theta := by |
| 48 | have hell : 0 < ‖v‖ := norm_pos_iff.mpr hvne |
| 49 | have hsnorm : ‖s • theta‖ = s := by |
| 50 | rw [norm_smul, Real.norm_of_nonneg hs.le, htheta, mul_one] |
| 51 | have hsne : s • theta ≠ 0 := by |
| 52 | intro hz |
| 53 | exact hs.ne' (by simpa only [hz, norm_zero] using hsnorm.symm) |
| 54 | obtain ⟨alpha, ha, hga, hua, ha0, haT, hav, _, had⟩ := |
| 55 | m64Intrinsic_exists_closed_radial_unit_geodesic N hOmega hzeroOmega he |
| 56 | hmetric hgeo hstar hv hvne |
| 57 | obtain ⟨beta, hb, hgb, hub, hb0, hbT, hbv, _, hbd⟩ := |
| 58 | m64Intrinsic_exists_closed_radial_unit_geodesic N hOmega hzeroOmega he |
| 59 | hmetric hgeo hstar hsv hsne |
| 60 | rw [hsnorm] at hgb hub hbT hbv hbd |
| 61 | have hbeta (t : ℝ) (ht : t ∈ Icc 0 s) : beta t = e (t • theta) := by |
| 62 | simpa only [smul_smul, div_mul_cancel₀ _ hs.ne'] using hbv t ht |
| 63 | refine ⟨alpha, beta, ha, hb, hga, hgb, hua, hub, ha0, hb0, haT, |
| 64 | hbT.trans hpoint.symm, hav, hbeta, ?_, had, ?_⟩ |
| 65 | · intro t ht u hu hmeet |
| 66 | have hscale : t / ‖v‖ ∈ Icc (0 : ℝ) 1 := |
| 67 | ⟨div_nonneg ht.1 hell.le, (div_le_one hell).mpr ht.2⟩ |
| 68 | rcases hcontacts _ hscale u hu ((hav t ht).symm.trans (hmeet.trans (hbeta u hu))) with h | h |
| 69 | · exact Or.inl ⟨(div_eq_zero_iff.mp h.1).resolve_right hell.ne', h.2⟩ |
| 70 | · exact Or.inr ⟨(div_eq_one_iff_eq hell.ne').mp h.1, h.2⟩ |
| 71 | · simpa only [smul_smul, inv_mul_cancel₀ hs.ne', one_smul] using hbd |
| 72 | |
| 73 | end PoincareMT |