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.Polar.Inverse |
| 2 | import PoincareLib.Topology.Manifold.Schoenflies.CompactExtension |
| 3 | |
| 4 | /-! One inverse chart near an entire embedded regular radial segment. |
| 5 | Source: MT Claim 19.41, p. 471; short-geodesic-digons derivation, Section 8. |
| 6 | Only injectivity on that compact segment, not on a tangent ball, is used. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | set_option backward.isDefEq.respectTransparency false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Topology ContDiff Manifold |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | /-- An embedded radial segment with nonsingular differential has one |
| 18 | smooth inverse chart near its full closed image, including both endpoints. |
| 19 | Source: MT Claim 19.41, p. 471; digon derivation, Section 8. -/ |
| 20 | theorem m64Intrinsic_exists_compact_radial_inverse |
| 21 | {e : AnnulusCoordinates → AnnulusCoordinates} {Omega : Set AnnulusCoordinates} |
| 22 | (hOmega : IsOpen Omega) (he : ContMDiffOn (𝓡 2) (𝓡 2) ∞ e Omega) |
| 23 | {v : AnnulusCoordinates} |
| 24 | (hsub : ∀ t ∈ Icc (0 : ℝ) 1, t • v ∈ Omega) |
| 25 | (hinj : InjOn (fun t : ℝ => e (t • v)) (Icc (0 : ℝ) 1)) |
| 26 | (hreg : ∀ t ∈ Icc (0 : ℝ) 1, |
| 27 | Function.Injective (mfderiv (𝓡 2) (𝓡 2) e (t • v))) : |
| 28 | ∃ F : OpenPartialHomeomorph AnnulusCoordinates AnnulusCoordinates, |
| 29 | (fun t : ℝ => t • v) '' Icc (0 : ℝ) 1 ⊆ F.source ∧ |
| 30 | (fun t : ℝ => e (t • v)) '' Icc (0 : ℝ) 1 ⊆ F.target ∧ |
| 31 | EqOn F e F.source ∧ |
| 32 | ContMDiffOn (𝓡 2) (𝓡 2) ∞ F F.source ∧ |
| 33 | ContMDiffOn (𝓡 2) (𝓡 2) ∞ F.symm F.target := by |
| 34 | let S : Set AnnulusCoordinates := (fun t : ℝ => t • v) '' Icc (0 : ℝ) 1 |
| 35 | have hS : IsCompact S := isCompact_Icc.image (continuous_id.smul continuous_const) |
| 36 | have hSi : InjOn e S := by |
| 37 | rintro _ ⟨s, hs, rfl⟩ _ ⟨t, ht, rfl⟩ heq |
| 38 | exact congrArg (fun a : ℝ => a • v) (hinj hs ht heq) |
| 39 | have hlocal : ∀ x ∈ S, IsLocalDiffeomorphAt (𝓡 2) (𝓡 2) ∞ e x := by |
| 40 | rintro _ ⟨t, ht, rfl⟩ |
| 41 | obtain ⟨F, hxF, _, hF, hFs, hFi⟩ := |
| 42 | m64Intrinsic_exists_smooth_polar_inverse hOmega he (hsub t ht) (hreg t ht) |
| 43 | refine ⟨{ toPartialEquiv := F.toPartialEquiv |
| 44 | open_source := F.open_source |
| 45 | open_target := F.open_target |
| 46 | contMDiffOn_toFun := contMDiffOn_iff_contDiffOn.mpr hFs |
| 47 | contMDiffOn_invFun := contMDiffOn_iff_contDiffOn.mpr hFi }, hxF, ?_⟩ |
| 48 | intro x _ |
| 49 | exact (congrFun hF x).symm |
| 50 | obtain ⟨F, hsource, htarget, hF, hFs, hFi⟩ := |
| 51 | Poincare.exists_openPartialHomeomorph_of_injOn_compact hS hSi hlocal |
| 52 | refine ⟨F, hsource, ?_, hF, hFs, hFi⟩ |
| 53 | rintro _ ⟨t, ht, rfl⟩ |
| 54 | exact htarget ⟨t • v, ⟨t, ht, rfl⟩, rfl⟩ |
| 55 | |
| 56 | end PoincareMT |