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.RadialEndSlope |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Construction |
| 4 | |
| 5 | /-! |
| 6 | # Actual radial quantities under scalar normalization |
| 7 | |
| 8 | Constant metric scaling multiplies actual radial arclength and orbit radius |
| 9 | by the square root of the scale. Differentiating the already proved radius |
| 10 | identities shows that the intrinsic slope is unchanged and that the second |
| 11 | derivative and mixed sectional factor have their geometric scaling laws. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | /-- Actual orbit radius has the square-root metric scaling law. -/ |
| 23 | theorem axisWarpingRadius_scale (g : RiemannianMetric 3 StandardCapSpace) |
| 24 | (Q : ℝ) (hQ : 0 < Q) (r : ℝ) : |
| 25 | axisWarpingRadius (M13.scaleSmoothMetric g Q hQ) r = |
| 26 | Real.sqrt Q * axisWarpingRadius g r := by |
| 27 | unfold axisWarpingRadius axisAngularCoefficient |
| 28 | rw [M13.scaleSmoothMetric_inner, Real.sqrt_mul hQ.le] |
| 29 | ring |
| 30 | |
| 31 | /-- The actual original-coordinate radial speed has the same square-root |
| 32 | metric scaling law. -/ |
| 33 | theorem axisRadialSpeed_scale (g : RiemannianMetric 3 StandardCapSpace) |
| 34 | (Q : ℝ) (hQ : 0 < Q) (r : ℝ) : |
| 35 | axisRadialSpeed (M13.scaleSmoothMetric g Q hQ) r = |
| 36 | Real.sqrt Q * axisRadialSpeed g r := by |
| 37 | unfold axisRadialSpeed axisRadialCoefficient |
| 38 | rw [M13.scaleSmoothMetric_inner, Real.sqrt_mul hQ.le] |
| 39 | |
| 40 | /-- The actual intrinsic orbit slope is unchanged by scalar metric |
| 41 | normalization. -/ |
| 42 | theorem axisWarpingSlope_scale (g : RiemannianMetric 3 StandardCapSpace) |
| 43 | (Q : ℝ) (hQ : 0 < Q) {r : ℝ} (hr : 0 < r) : |
| 44 | axisWarpingSlope (M13.scaleSmoothMetric g Q hQ) r = axisWarpingSlope g r := by |
| 45 | have hscaled := axisWarpingRadius_hasDerivAt (M13.scaleSmoothMetric g Q hQ) hr |
| 46 | have heq : axisWarpingRadius (M13.scaleSmoothMetric g Q hQ) = |
| 47 | fun s => Real.sqrt Q * axisWarpingRadius g s := |
| 48 | funext (axisWarpingRadius_scale g Q hQ) |
| 49 | rw [heq] at hscaled |
| 50 | have h := hscaled.unique ((axisWarpingRadius_hasDerivAt g hr).const_mul (Real.sqrt Q)) |
| 51 | rw [axisRadialSpeed_scale] at h |
| 52 | have hfactor : Real.sqrt Q * axisRadialSpeed g r ≠ 0 := |
| 53 | mul_ne_zero (Real.sqrt_pos.mpr hQ).ne' (axisRadialSpeed_pos g r).ne' |
| 54 | apply mul_left_cancel₀ hfactor |
| 55 | simpa only [mul_assoc] using h |
| 56 | |
| 57 | /-- The actual intrinsic orbit-radius second derivative scales by the |
| 58 | inverse square root of the metric factor. -/ |
| 59 | theorem axisWarpingSecond_scale (g : RiemannianMetric 3 StandardCapSpace) |
| 60 | (Q : ℝ) (hQ : 0 < Q) {r : ℝ} (hr : 0 < r) : |
| 61 | axisWarpingSecond (M13.scaleSmoothMetric g Q hQ) r = |
| 62 | axisWarpingSecond g r / Real.sqrt Q := by |
| 63 | have heq : axisWarpingSlope (M13.scaleSmoothMetric g Q hQ) =ᶠ[𝓝 r] |
| 64 | axisWarpingSlope g := by |
| 65 | filter_upwards [eventually_gt_nhds hr] with s hs |
| 66 | exact axisWarpingSlope_scale g Q hQ hs |
| 67 | have hscaled := (axisWarpingSlope_hasDerivAt |
| 68 | (M13.scaleSmoothMetric g Q hQ) hr).congr_of_eventuallyEq heq.symm |
| 69 | have h := hscaled.unique (axisWarpingSlope_hasDerivAt g hr) |
| 70 | rw [axisRadialSpeed_scale] at h |
| 71 | apply (eq_div_iff (Real.sqrt_pos.mpr hQ).ne').mpr |
| 72 | have hspeed := (axisRadialSpeed_pos g r).ne' |
| 73 | apply mul_left_cancel₀ hspeed |
| 74 | nlinarith only [h] |
| 75 | |
| 76 | /-- The actual mixed sectional factor scales by the inverse scalar |
| 77 | normalization factor. -/ |
| 78 | theorem radialMixedSectional_scale (g : RiemannianMetric 3 StandardCapSpace) |
| 79 | (Q : ℝ) (hQ : 0 < Q) {r : ℝ} (hr : 0 < r) : |
| 80 | radialMixedCurvatureFactor (M13.scaleSmoothMetric g Q hQ) r / |
| 81 | axisRadialCoefficient (M13.scaleSmoothMetric g Q hQ) r = |
| 82 | (radialMixedCurvatureFactor g r / axisRadialCoefficient g r) / Q := by |
| 83 | rw [radialMixedCurvatureFactor_eq_warping _ hr, |
| 84 | radialMixedCurvatureFactor_eq_warping g hr, axisWarpingSecond_scale _ _ _ hr, |
| 85 | axisWarpingRadius_scale] |
| 86 | have hsqrt := (Real.sqrt_pos.mpr hQ).ne' |
| 87 | have hradius := (axisWarpingRadius_pos g hr).ne' |
| 88 | field_simp [hsqrt, hradius, hQ.ne'] |
| 89 | rw [Real.sq_sqrt hQ.le] |
| 90 | |
| 91 | end PoincareMT.M35.Uniqueness |