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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.AngularCollapse |
| 3 | |
| 4 | /-! |
| 5 | # Actual radial slope control away from the cap tip |
| 6 | |
| 7 | Morgan-Tian Section 12.6 and Theorem 12.32. Nonnegative radial |
| 8 | sectional curvature makes the orbit radius concave in arclength. |
| 9 | Completeness forces its slope to be nonnegative, and integration from |
| 10 | the actual smooth tip bounds that slope by radius divided by arclength. |
| 11 | These statements use the retained metric and curvature, not a supplied |
| 12 | warped-product ansatz. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | variable {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 23 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 24 | ∀ x u v : StandardCapSpace, |
| 25 | g.inner (standardRotation A x) |
| 26 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 28 | (hsec : D.NonnegativeSectionalCurvature) |
| 29 | |
| 30 | include D hrotation hsec |
| 31 | |
| 32 | /-- Section 12.6: the actual orbit radius is concave in radial arclength. -/ |
| 33 | theorem axisWarpingSecond_nonpos {r : ℝ} (hr : 0 < r) : |
| 34 | axisWarpingSecond g r ≤ 0 := by |
| 35 | apply div_nonpos_of_nonpos_of_nonneg |
| 36 | · exact mul_nonpos_of_nonpos_of_nonneg |
| 37 | (neg_nonpos.mpr (axisWarpingRadius_pos g hr).le) |
| 38 | (radialMixedCurvatureFactor_nonneg D hrotation hsec hr) |
| 39 | · exact (axisRadialCoefficient_pos g r).le |
| 40 | |
| 41 | /-- Theorem 12.32: complete nonnegative radial geometry forces every |
| 42 | actual orbit-radius slope to be nonnegative. -/ |
| 43 | theorem axisWarpingSlope_nonneg (hcomplete : MetricComplete g) |
| 44 | {r : ℝ} (hr : 0 < r) : 0 ≤ axisWarpingSlope g r := |
| 45 | weighted_radial_derivative_nonneg |
| 46 | (fun _ hu => axisWarpingRadius_pos g hu) |
| 47 | (fun _ hu => axisWarpingRadius_hasDerivAt g hu) |
| 48 | (fun _ hu => axisWarpingSlope_hasDerivAt g hu) |
| 49 | (fun u _ => radialArclength_hasDerivAt g u) |
| 50 | (fun u _ => axisRadialSpeed_pos g u) |
| 51 | (radialArclength_tendsto_atTop g hcomplete) |
| 52 | (fun _ hu => axisWarpingSecond_nonpos D hrotation hsec hu) hr |
| 53 | |
| 54 | /-- Section 12.6: actual nonnegative angular sectional curvature |
| 55 | bounds the intrinsic orbit-radius slope above by one. -/ |
| 56 | theorem axisWarpingSlope_le_one {r : ℝ} (hr : 0 < r) : |
| 57 | axisWarpingSlope g r ≤ 1 := by |
| 58 | let e (i : Fin 3) : StandardCapSpace := EuclideanSpace.single i 1 |
| 59 | have h := hsec (r • e 2) (e 0) (e 1) |
| 60 | rw [(rotational_sectional_numerators_axis D hrotation hr).1] at h |
| 61 | have hfactor := nonneg_of_mul_nonneg_right h (axisAngularCoefficient_pos g r) |
| 62 | have hquot := div_nonneg hfactor (axisAngularCoefficient_pos g r).le |
| 63 | rw [radialTangentialCurvatureFactor_eq_warping g hr] at hquot |
| 64 | have hnum : 0 ≤ 1 - axisWarpingSlope g r ^ 2 := by |
| 65 | have h := mul_nonneg hquot (sq_nonneg (axisWarpingRadius g r)) |
| 66 | simpa only [div_mul_cancel₀ _ |
| 67 | (sq_pos_of_pos (axisWarpingRadius_pos g hr)).ne'] using h |
| 68 | nlinarith |
| 69 | |
| 70 | /-- Section 12.6: completeness makes the actual orbit radius |
| 71 | nondecreasing in the original radial coordinate. -/ |
| 72 | theorem axisWarpingRadius_monotoneOn (hcomplete : MetricComplete g) : |
| 73 | MonotoneOn (axisWarpingRadius g) (Ioi 0) := |
| 74 | monotoneOn_of_hasDerivWithinAt_nonneg (convex_Ioi 0) |
| 75 | (fun _ hu => (axisWarpingRadius_hasDerivAt g hu).continuousAt.continuousWithinAt) |
| 76 | (fun _ hu => (axisWarpingRadius_hasDerivAt g (interior_subset hu)).hasDerivWithinAt) |
| 77 | (fun u hu => mul_nonneg (axisRadialSpeed_pos g u).le |
| 78 | (axisWarpingSlope_nonneg D hrotation hsec hcomplete (interior_subset hu))) |
| 79 | |
| 80 | /-- Theorem 12.32: the actual scalar controls the nonnegative angular |
| 81 | sectional contribution at every radial point. -/ |
| 82 | theorem scalar_mul_axisWarpingRadius_sq_ge {r : ℝ} (hr : 0 < r) : |
| 83 | 2 * (1 - axisWarpingSlope g r ^ 2) ≤ |
| 84 | D.scalarCurvature (r • EuclideanSpace.single (2 : Fin 3) 1) * |
| 85 | axisWarpingRadius g r ^ 2 := by |
| 86 | have hrad := div_nonneg (radialMixedCurvatureFactor_nonneg D hrotation hsec hr) |
| 87 | (axisRadialCoefficient_pos g r).le |
| 88 | have hscalar := rotational_scalar_axis D hrotation hr |
| 89 | have hangular : 2 * (1 - axisWarpingSlope g r ^ 2) / axisWarpingRadius g r ^ 2 ≤ |
| 90 | D.scalarCurvature (r • EuclideanSpace.single (2 : Fin 3) 1) := by |
| 91 | rw [hscalar] |
| 92 | calc |
| 93 | _ = 2 * (radialTangentialCurvatureFactor g r / axisAngularCoefficient g r) := by |
| 94 | rw [radialTangentialCurvatureFactor_eq_warping g hr] |
| 95 | ring |
| 96 | _ ≤ 2 * (radialTangentialCurvatureFactor g r / axisAngularCoefficient g r) + |
| 97 | 4 * (radialMixedCurvatureFactor g r / axisRadialCoefficient g r) := |
| 98 | le_add_of_nonneg_right (mul_nonneg (by norm_num) hrad) |
| 99 | _ = _ := by ring |
| 100 | exact (div_le_iff₀ (sq_pos_of_pos (axisWarpingRadius_pos g hr))).mp hangular |
| 101 | |
| 102 | /-- Section 12.6: the actual radial slope is nonincreasing away from the tip. -/ |
| 103 | theorem axisWarpingSlope_antitoneOn : AntitoneOn (axisWarpingSlope g) (Ioi 0) := |
| 104 | antitoneOn_of_hasDerivWithinAt_nonpos (convex_Ioi 0) |
| 105 | (fun _ hu => (axisWarpingSlope_hasDerivAt g hu).continuousAt.continuousWithinAt) |
| 106 | (fun _ hu => (axisWarpingSlope_hasDerivAt g (interior_subset hu)).hasDerivWithinAt) |
| 107 | (fun u hu => mul_nonpos_of_nonneg_of_nonpos (axisRadialSpeed_pos g u).le |
| 108 | (axisWarpingSecond_nonpos D hrotation hsec (interior_subset hu))) |
| 109 | |
| 110 | /-- Theorem 12.32: the slope at a positive radius is bounded by the |
| 111 | average orbit-radius growth from the actual smooth tip. -/ |
| 112 | theorem axisWarpingSlope_mul_arclength_le {r : ℝ} (hr : 0 < r) : |
| 113 | axisWarpingSlope g r * radialArclength g r ≤ axisWarpingRadius g r := by |
| 114 | let F (u : ℝ) := axisWarpingRadius g u - axisWarpingSlope g r * radialArclength g u |
| 115 | have hf : Continuous (axisWarpingRadius g) := |
| 116 | continuous_id.mul (axisAngularCoefficient_contDiff g).continuous.sqrt |
| 117 | have hs : Continuous (radialArclength g) := |
| 118 | continuous_iff_continuousAt.mpr (fun u => (radialArclength_hasDerivAt g u).continuousAt) |
| 119 | have hF : Continuous F := hf.sub (continuous_const.mul hs) |
| 120 | have hd (u : ℝ) (hu : 0 < u) : HasDerivAt F |
| 121 | (axisRadialSpeed g u * (axisWarpingSlope g u - axisWarpingSlope g r)) u := by |
| 122 | convert! (axisWarpingRadius_hasDerivAt g hu).sub |
| 123 | ((radialArclength_hasDerivAt g u).const_mul (axisWarpingSlope g r)) using 1 |
| 124 | dsimp only [axisRadialSpeed] |
| 125 | ring |
| 126 | have hmono : MonotoneOn F (Icc 0 r) := |
| 127 | monotoneOn_of_hasDerivWithinAt_nonneg (convex_Icc 0 r) hF.continuousOn |
| 128 | (fun u hu => by |
| 129 | have hu' : u ∈ Ioo 0 r := by simpa only [interior_Icc] using hu |
| 130 | exact (hd u hu'.1).hasDerivWithinAt) |
| 131 | (fun u hu => by |
| 132 | have hu' : u ∈ Ioo 0 r := by simpa only [interior_Icc] using hu |
| 133 | exact mul_nonneg (axisRadialSpeed_pos g u).le (sub_nonneg.mpr |
| 134 | (axisWarpingSlope_antitoneOn D hrotation hsec hu'.1 hr hu'.2.le))) |
| 135 | have h := hmono ⟨le_rfl, hr.le⟩ ⟨hr.le, le_rfl⟩ hr.le |
| 136 | dsimp only [F] at h |
| 137 | simpa only [axisWarpingRadius, zero_mul, radialArclength_zero, |
| 138 | mul_zero, sub_zero, sub_nonneg] using h |
| 139 | |
| 140 | /-- Theorem 12.32: radius divided by intrinsic distance quantitatively |
| 141 | controls the actual slope along the end. -/ |
| 142 | theorem axisWarpingSlope_le_radius_div_arclength {r : ℝ} (hr : 0 < r) : |
| 143 | axisWarpingSlope g r ≤ axisWarpingRadius g r / radialArclength g r := by |
| 144 | have hs : 0 < radialArclength g r := by |
| 145 | simpa only [radialArclength_zero] using radialArclength_strictMono g hr |
| 146 | exact (le_div_iff₀ hs).mpr (axisWarpingSlope_mul_arclength_le D hrotation hsec hr) |
| 147 | |
| 148 | end PoincareMT.M35.Uniqueness |