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.RawFlow.ArclengthTimeIntegral |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialUnitRicci |
| 4 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts |
| 5 | |
| 6 | /-! |
| 7 | # The radial velocity is the actual arclength time derivative |
| 8 | |
| 9 | Morgan-Tian Section 12.6, pp. 309-313, and the corrected radial-gauge |
| 10 | erratum. Differentiate the genuine arclength integral in the raw fixed |
| 11 | coordinates. Its radial Ricci trace and actual change of arclength variable |
| 12 | identify the result with the constructed intrinsic velocity, exactly once. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | variable {g₀ : StandardInitialMetric} (G : PartialStandardCapFlow g₀) |
| 23 | |
| 24 | /-- The actual radial Ricci trace is the constructed intrinsic |
| 25 | acceleration, multiplied by the genuine change-of-variable speed. -/ |
| 26 | theorem rawAxisSpeedTimeDerivative_eq_intrinsic {t : ℝ} |
| 27 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 28 | ∀ x u v : StandardCapSpace, |
| 29 | (G.flow.metric t).inner (standardRotation A x) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 31 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = |
| 32 | (G.flow.metric t).inner x u v) |
| 33 | (hcomplete : MetricComplete (G.flow.metric t)) {r : ℝ} (hr : 0 < r) : |
| 34 | rawAxisSpeedTimeDerivative G t r = |
| 35 | intrinsicRadialAcceleration (G.flow.metric t) hrotation hcomplete |
| 36 | (radialArclength (G.flow.metric t) r) * axisRadialSpeed (G.flow.metric t) r := by |
| 37 | let g := G.flow.metric t |
| 38 | have hpos : 0 < radialArclength g r := by |
| 39 | simpa only [radialArclength_zero] using (radialArclength_strictMono g) hr |
| 40 | have hinv : (radialArclengthOrderIso g hrotation hcomplete).symm |
| 41 | (radialArclength g r) = r := |
| 42 | (radialArclengthOrderIso g hrotation hcomplete).symm_apply_apply r |
| 43 | rw [rawAxisSpeedTimeDerivative, |
| 44 | rotational_axis_radial_ricci (G.flow.connection t) hrotation hr, |
| 45 | intrinsicRadialAcceleration_eq_sectional g hrotation hcomplete hpos, hinv] |
| 46 | unfold axisRadialSpeed |
| 47 | change -(2 * radialMixedCurvatureFactor g r) / Real.sqrt (axisRadialCoefficient g r) = |
| 48 | -2 * (radialMixedCurvatureFactor g r / axisRadialCoefficient g r) * |
| 49 | Real.sqrt (axisRadialCoefficient g r) |
| 50 | field_simp [(axisRadialCoefficient_pos g r).ne', |
| 51 | (Real.sqrt_pos.mpr (axisRadialCoefficient_pos g r)).ne'] |
| 52 | rw [Real.sq_sqrt (axisRadialCoefficient_pos g r).le] |
| 53 | |
| 54 | /-- The moving arclength speed is exactly v in the corrected gauge |
| 55 | equation; it is not an independently supplied drift coefficient. -/ |
| 56 | theorem raw_radialArclength_hasDerivAt_velocity {t : ℝ} |
| 57 | (ht : t ∈ Ioo 0 G.lifetime) |
| 58 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 59 | ∀ x u v : StandardCapSpace, |
| 60 | (G.flow.metric t).inner (standardRotation A x) |
| 61 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 62 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = |
| 63 | (G.flow.metric t).inner x u v) |
| 64 | (hcomplete : MetricComplete (G.flow.metric t)) {r : ℝ} (hr : 0 ≤ r) : |
| 65 | HasDerivAt (fun s => radialArclength (G.flow.metric s) r) |
| 66 | (intrinsicRadialVelocity (G.flow.metric t) hrotation hcomplete |
| 67 | (radialArclength (G.flow.metric t) r)) t := by |
| 68 | let g := G.flow.metric t |
| 69 | have hint : (∫ a in (0 : ℝ)..r, rawAxisSpeedTimeDerivative G t a) = |
| 70 | intrinsicRadialVelocity g hrotation hcomplete (radialArclength g r) := by |
| 71 | calc |
| 72 | _ = ∫ a in (0 : ℝ)..r, |
| 73 | intrinsicRadialAcceleration g hrotation hcomplete (radialArclength g a) * |
| 74 | axisRadialSpeed g a := intervalIntegral.integral_congr_Ioo_of_le hr |
| 75 | (fun a ha => rawAxisSpeedTimeDerivative_eq_intrinsic G hrotation hcomplete ha.1) |
| 76 | _ = _ := by |
| 77 | have hh := intervalIntegral.integral_comp_mul_deriv (a := (0 : ℝ)) (b := r) |
| 78 | (fun a _ => radialArclength_hasDerivAt g a) |
| 79 | (axisRadialCoefficient_contDiff g).continuous.sqrt.continuousOn |
| 80 | (intrinsicRadialAcceleration_contDiff g hrotation hcomplete).continuous |
| 81 | simpa only [radialArclength_zero, intrinsicRadialVelocity, Function.comp_apply, |
| 82 | axisRadialSpeed] using hh |
| 83 | rw [← hint] |
| 84 | exact raw_radialArclength_hasDerivAt_integral G ht hr |
| 85 | |
| 86 | end PoincareMT.M35.Uniqueness |