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.RadialUnitField |
| 3 | |
| 4 | /-! |
| 5 | # The actual radial shape coefficient has a retained differential |
| 6 | |
| 7 | The first-order equation for the radial shape coefficient is |
| 8 | lambda' = -(K_rad + lambda^2) in intrinsic radial arclength. Together |
| 9 | with the actual unit-field equation, it bounds one additional field jet |
| 10 | on retained compact sets using the actual curvature bound. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | namespace PoincareMT.M35.Uniqueness |
| 19 | |
| 20 | /-- The actual radial shape coefficient satisfies its intrinsic Riccati |
| 21 | equation, with the retained mixed sectional curvature quotient. -/ |
| 22 | theorem radial_shape_hasDerivAt |
| 23 | (g : RiemannianMetric 3 StandardCapSpace) {r : ℝ} (hr : 0 < r) : |
| 24 | HasDerivAt (fun s => axisWarpingSlope g s / axisWarpingRadius g s) |
| 25 | (-axisRadialSpeed g r * (radialMixedCurvatureFactor g r / axisRadialCoefficient g r + |
| 26 | (axisWarpingSlope g r / axisWarpingRadius g r) ^ 2)) r := by |
| 27 | have h := (axisWarpingSlope_hasDerivAt g hr).div (axisWarpingRadius_hasDerivAt g hr) |
| 28 | (axisWarpingRadius_pos g hr).ne' |
| 29 | convert! h using 1 |
| 30 | unfold axisWarpingSecond |
| 31 | field_simp [(axisWarpingRadius_pos g hr).ne', (axisRadialCoefficient_pos g r).ne'] |
| 32 | ring |
| 33 | |
| 34 | /-- The metric covector of the actual radial unit field is exactly the |
| 35 | intrinsic speed times the differential of the original Euclidean radius. -/ |
| 36 | theorem radialUnitField_inner |
| 37 | (g : RiemannianMetric 3 StandardCapSpace) |
| 38 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 39 | ∀ x u v : StandardCapSpace, |
| 40 | g.inner (standardRotation A x) |
| 41 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 42 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 43 | {x : StandardCapSpace} (hx : x ≠ 0) (w : StandardCapSpace) : |
| 44 | g.inner x (radialUnitField g x) w = |
| 45 | axisRadialSpeed g ‖x‖ / ‖x‖ * inner ℝ x w := by |
| 46 | simp only [radialUnitField, map_smul, smul_apply, smul_eq_mul] |
| 47 | rw [rotational_inner_position g hrotation hx] |
| 48 | unfold axisRadialSpeed |
| 49 | field_simp [norm_ne_zero_iff.mpr hx, |
| 50 | (Real.sqrt_pos.mpr (axisRadialCoefficient_pos g ‖x‖)).ne'] |
| 51 | rw [Real.sq_sqrt (axisRadialCoefficient_pos g ‖x‖).le] |
| 52 | |
| 53 | private theorem radius_hasFDerivAt {x : StandardCapSpace} (hx : x ≠ 0) : |
| 54 | HasFDerivAt (fun y : StandardCapSpace => ‖y‖) |
| 55 | (‖x‖⁻¹ • innerSL ℝ x) x := by |
| 56 | have hn : ‖x‖ ≠ 0 := norm_ne_zero_iff.mpr hx |
| 57 | have h := (hasStrictFDerivAt_norm_sq x).hasFDerivAt.sqrt (pow_ne_zero 2 hn) |
| 58 | simp only [Real.sqrt_sq_eq_abs, abs_norm] at h |
| 59 | convert! h using 1 |
| 60 | ext w |
| 61 | simp [smul_eq_mul] |
| 62 | ring |
| 63 | |
| 64 | /-- The actual shape coefficient varies only in the oriented radial |
| 65 | direction, with differential controlled by actual radial curvature. -/ |
| 66 | theorem radial_shape_hasFDerivAt |
| 67 | (g : RiemannianMetric 3 StandardCapSpace) |
| 68 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 69 | ∀ x u v : StandardCapSpace, |
| 70 | g.inner (standardRotation A x) |
| 71 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 72 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 73 | {x : StandardCapSpace} (hx : x ≠ 0) : |
| 74 | HasFDerivAt (fun y => axisWarpingSlope g ‖y‖ / axisWarpingRadius g ‖y‖) |
| 75 | (-(radialMixedCurvatureFactor g ‖x‖ / axisRadialCoefficient g ‖x‖ + |
| 76 | (axisWarpingSlope g ‖x‖ / axisWarpingRadius g ‖x‖) ^ 2) • |
| 77 | g.euclideanCoefficients x (radialUnitField g x)) x := by |
| 78 | have h := (radial_shape_hasDerivAt g (norm_pos_iff.mpr hx)).comp_hasFDerivAt x |
| 79 | (radius_hasFDerivAt hx) |
| 80 | convert! h using 1 |
| 81 | ext w |
| 82 | simp only [smul_apply, smul_eq_mul, innerSL_apply_apply] |
| 83 | change -(radialMixedCurvatureFactor g ‖x‖ / axisRadialCoefficient g ‖x‖ + |
| 84 | (axisWarpingSlope g ‖x‖ / axisWarpingRadius g ‖x‖) ^ 2) * |
| 85 | g.inner x (radialUnitField g x) w = _ |
| 86 | rw [radialUnitField_inner g hrotation hx] |
| 87 | ring |
| 88 | |
| 89 | end PoincareMT.M35.Uniqueness |