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.CapGeometry.RadialSectionalDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialIntervals |
| 4 | |
| 5 | /-! |
| 6 | # Actual radial curvature forces an intrinsic slope drop |
| 7 | |
| 8 | A bound for the retained first covariant curvature derivative keeps a positive |
| 9 | mixed sectional curvature positive on an outward intrinsic interval. The |
| 10 | actual warping equation then lowers the nonnegative orbit slope by a definite |
| 11 | amount. This is the geometric estimate used to rule out a nonzero radial |
| 12 | sectional limit at centers whose slopes tend to zero. |
| 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 | private noncomputable abbrev e2 : StandardCapSpace := EuclideanSpace.single (2 : Fin 3) 1 |
| 23 | |
| 24 | /-- Positive actual radial curvature at the inner endpoint forces a slope |
| 25 | drop if its retained first curvature derivative is bounded on the interval. -/ |
| 26 | theorem radialMixedSectional_slope_drop |
| 27 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 28 | (hD : D.CurvatureTensorCalculus) |
| 29 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 30 | ∀ x u v : StandardCapSpace, |
| 31 | g.inner (standardRotation A x) |
| 32 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 33 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 34 | (hsec : D.NonnegativeSectionalCurvature) (hcomplete : MetricComplete g) |
| 35 | {a b L ε : ℝ} (ha : 0 < a) (hab : a ≤ b) (hL : 0 ≤ L) (hε : 0 < ε) |
| 36 | (hbound : ∀ r ∈ Icc a b, D.curvatureDerivativeNorm 1 (r • e2) ≤ L) |
| 37 | (hpositive : ε ≤ radialMixedCurvatureFactor g a / axisRadialCoefficient g a) |
| 38 | (hlength : L * (radialArclength g b - radialArclength g a) ≤ ε / 2) : |
| 39 | axisWarpingRadius g a * (ε / 2) * |
| 40 | (radialArclength g b - radialArclength g a) ≤ axisWarpingSlope g a := by |
| 41 | let K (r : ℝ) := radialMixedCurvatureFactor g r / axisRadialCoefficient g r |
| 42 | let c := axisWarpingRadius g a * (ε / 2) |
| 43 | have hfloor (r : ℝ) (hr : r ∈ Icc a b) : ε / 2 ≤ K r := by |
| 44 | have hdiff := abs_radialMixedSectional_sub_le_arclength D hrotation hD ha hr.1 |
| 45 | (fun s hs => hbound s ⟨hs.1, hs.2.trans hr.2⟩) |
| 46 | have hmono := (radialArclength_strictMono g).monotone hr.2 |
| 47 | have hlen := mul_le_mul_of_nonneg_left |
| 48 | (show radialArclength g r - radialArclength g a ≤ |
| 49 | radialArclength g b - radialArclength g a by linarith) hL |
| 50 | have hlow := (abs_le.mp hdiff).1 |
| 51 | dsimp only [K] |
| 52 | linarith |
| 53 | have hsecond (r : ℝ) (hr : r ∈ Icc a b) : axisWarpingSecond g r ≤ -c := by |
| 54 | have hr0 := ha.trans_le hr.1 |
| 55 | have hrho := axisWarpingRadius_monotoneOn D hrotation hsec hcomplete ha hr0 hr.1 |
| 56 | have hmul := mul_le_mul hrho (hfloor r hr) (half_pos hε).le |
| 57 | (axisWarpingRadius_pos g hr0).le |
| 58 | have heq : axisWarpingSecond g r = -axisWarpingRadius g r * K r := by |
| 59 | dsimp only [axisWarpingSecond, K] |
| 60 | ring |
| 61 | rw [heq] |
| 62 | dsimp only [c] |
| 63 | linarith |
| 64 | let F (r : ℝ) := axisWarpingSlope g r + c * radialArclength g r |
| 65 | have hd (r : ℝ) (hr : r ∈ Icc a b) : |
| 66 | HasDerivAt F (axisRadialSpeed g r * (axisWarpingSecond g r + c)) r := by |
| 67 | convert! (axisWarpingSlope_hasDerivAt g (ha.trans_le hr.1)).add |
| 68 | ((radialArclength_hasDerivAt g r).const_mul c) using 1 |
| 69 | dsimp only [axisRadialSpeed] |
| 70 | ring |
| 71 | have hanti : AntitoneOn F (Icc a b) := |
| 72 | antitoneOn_of_hasDerivWithinAt_nonpos (convex_Icc a b) |
| 73 | (fun r hr => (hd r hr).continuousAt.continuousWithinAt) |
| 74 | (fun r hr => (hd r (interior_subset hr)).hasDerivWithinAt) |
| 75 | (fun r hr => mul_nonpos_of_nonneg_of_nonpos (axisRadialSpeed_pos g r).le |
| 76 | (by linarith [hsecond r (interior_subset hr)])) |
| 77 | have h := hanti ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab |
| 78 | have hb := axisWarpingSlope_nonneg D hrotation hsec hcomplete (ha.trans_le hab) |
| 79 | dsimp only [F, c] at h |
| 80 | linarith |
| 81 | |
| 82 | end PoincareMT.M35.Uniqueness |