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.RicciFlow.Surgery.Metric.Standard.Radial.RadialInverse |
| 2 | |
| 3 | /-! |
| 4 | # Polar coordinates and the clipped radial map |
| 5 | |
| 6 | These are the coordinate maps in Morgan--Tian Claim 13.1, pp. 331-332. |
| 7 | The collapse is continuous across the collapsed tail and smooth before |
| 8 | that tail. No metric contraction or distance formula is asserted here. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Topology |
| 14 | |
| 15 | namespace PoincareMT.MetricSurgery |
| 16 | |
| 17 | noncomputable def radialPolarPoint (g₀ : StandardInitialMetric) |
| 18 | (z : StandardCylinderSpace) : StandardCapSpace := |
| 19 | radialEuclideanRadius g₀ z.2 • z.1.1 |
| 20 | |
| 21 | theorem radialPolarPoint_contMDiff (g₀ : StandardInitialMetric) : |
| 22 | ContMDiff ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ (radialPolarPoint g₀) := by |
| 23 | let : Fact (Module.finrank ℝ StandardCapSpace = 2 + 1) := ⟨by simp⟩ |
| 24 | have hs : ContMDiff ((𝓡 2).prod 𝓘(ℝ, ℝ)) 𝓘(ℝ, ℝ) ∞ |
| 25 | (fun z : StandardCylinderSpace => radialEuclideanRadius g₀ z.2) := |
| 26 | (radialEuclideanRadius_contDiff g₀).contMDiff.comp contMDiff_snd |
| 27 | have ht : ContMDiff ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 28 | (fun z : StandardCylinderSpace => z.1.1) := |
| 29 | (contMDiff_coe_sphere (E := StandardCapSpace) (n := 2)).comp contMDiff_fst |
| 30 | exact hs.smul ht |
| 31 | |
| 32 | theorem radialPolarPoint_continuous (g₀ : StandardInitialMetric) : |
| 33 | Continuous (radialPolarPoint g₀) := (radialPolarPoint_contMDiff g₀).continuous |
| 34 | |
| 35 | theorem radialPolarPoint_zero (g₀ : StandardInitialMetric) (theta : UnitTwoSphere) : |
| 36 | radialPolarPoint g₀ (theta, 0) = 0 := by |
| 37 | simp [radialPolarPoint, radialEuclideanRadius_zero] |
| 38 | |
| 39 | theorem radialPolarPoint_norm (g₀ : StandardInitialMetric) |
| 40 | (z : StandardCylinderSpace) (hs : 0 ≤ z.2) : |
| 41 | ‖radialPolarPoint g₀ z‖ = radialEuclideanRadius g₀ z.2 := by |
| 42 | have hnorm : ‖z.1.1‖ = 1 := by simp |
| 43 | have hr : 0 ≤ radialEuclideanRadius g₀ z.2 := by |
| 44 | simpa only [radialEuclideanRadius_zero] using |
| 45 | (radialEuclideanRadius_strictMono g₀).monotone hs |
| 46 | simp [radialPolarPoint, norm_smul, hnorm, abs_of_nonneg hr] |
| 47 | |
| 48 | theorem radialArclength_norm_polar (g₀ : StandardInitialMetric) |
| 49 | (z : StandardCylinderSpace) (hs : 0 ≤ z.2) : |
| 50 | radialArclength g₀ ‖radialPolarPoint g₀ z‖ = z.2 := by |
| 51 | rw [radialPolarPoint_norm g₀ z hs, radialArclength_euclideanRadius] |
| 52 | |
| 53 | theorem radialPolarPoint_injOn (g₀ : StandardInitialMetric) : |
| 54 | Set.InjOn (radialPolarPoint g₀) (Set.univ ×ˢ Set.Ioi (0 : ℝ)) := by |
| 55 | intro z hz w hw h |
| 56 | have hs := congrArg (fun x : StandardCapSpace => radialArclength g₀ ‖x‖) h |
| 57 | rw [radialArclength_norm_polar g₀ z hz.2.le, |
| 58 | radialArclength_norm_polar g₀ w hw.2.le] at hs |
| 59 | apply Prod.ext _ hs |
| 60 | apply Subtype.ext |
| 61 | have hr : radialEuclideanRadius g₀ z.2 ≠ 0 := |
| 62 | ((radialEuclideanRadius_pos_iff g₀ z.2).mpr hz.2).ne' |
| 63 | apply smul_right_injective StandardCapSpace hr |
| 64 | simpa only [radialPolarPoint, ← hs] using h |
| 65 | |
| 66 | noncomputable def clippedRadialCollapse (g₀ : StandardInitialMetric) |
| 67 | (A : ℝ) (z : StandardCylinderSpace) : StandardCapSpace := |
| 68 | radialPolarPoint g₀ (z.1, max (A - z.2) 0) |
| 69 | |
| 70 | theorem clippedRadialCollapse_continuous (g₀ : StandardInitialMetric) (A : ℝ) : |
| 71 | Continuous (clippedRadialCollapse g₀ A) := |
| 72 | (radialPolarPoint_continuous g₀).comp |
| 73 | (continuous_fst.prodMk ((continuous_const.sub continuous_snd).max continuous_const)) |
| 74 | |
| 75 | theorem clippedRadialCollapse_of_lt (g₀ : StandardInitialMetric) (A : ℝ) |
| 76 | (z : StandardCylinderSpace) (hz : z.2 < A) : |
| 77 | clippedRadialCollapse g₀ A z = radialPolarPoint g₀ (z.1, A - z.2) := by |
| 78 | simp [clippedRadialCollapse, max_eq_left (sub_pos.mpr hz).le] |
| 79 | |
| 80 | theorem clippedRadialCollapse_of_le (g₀ : StandardInitialMetric) (A : ℝ) |
| 81 | (z : StandardCylinderSpace) (hz : A ≤ z.2) : |
| 82 | clippedRadialCollapse g₀ A z = 0 := by |
| 83 | simp [clippedRadialCollapse, max_eq_right (sub_nonpos.mpr hz), radialPolarPoint_zero] |
| 84 | |
| 85 | theorem clippedRadialCollapse_contMDiffOn (g₀ : StandardInitialMetric) (A : ℝ) : |
| 86 | ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 87 | (clippedRadialCollapse g₀ A) {z | z.2 < A} := by |
| 88 | have h : ContMDiff ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 89 | (fun z : StandardCylinderSpace => radialPolarPoint g₀ (z.1, A - z.2)) := |
| 90 | (radialPolarPoint_contMDiff g₀).comp |
| 91 | (contMDiff_fst.prodMk (contMDiff_const.sub contMDiff_snd)) |
| 92 | apply h.contMDiffOn.congr |
| 93 | intro z hz |
| 94 | exact clippedRadialCollapse_of_lt g₀ A z hz |
| 95 | |
| 96 | theorem radialArclength_norm_collapse (g₀ : StandardInitialMetric) (A : ℝ) |
| 97 | (z : StandardCylinderSpace) : |
| 98 | radialArclength g₀ ‖clippedRadialCollapse g₀ A z‖ = max (A - z.2) 0 := |
| 99 | radialArclength_norm_polar g₀ _ (le_max_right _ _) |
| 100 | |
| 101 | end PoincareMT.MetricSurgery |