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.IntrinsicRadialDistance |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FarTipAngularScale |
| 4 | |
| 5 | /-! |
| 6 | # Actual far-tip centers in the genuine intrinsic coordinate |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The exact distance identity |
| 9 | and metric homothety identify the selected intrinsic radius with the |
| 10 | given scalar-normalized tip distance. The actual angular radius at that |
| 11 | same center is the checked radius with squared limit two. |
| 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 ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | theorem intrinsicWarpingRadius_radialArclength |
| 23 | (g : RiemannianMetric 3 StandardCapSpace) |
| 24 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 25 | ∀ x u v : StandardCapSpace, |
| 26 | g.inner (standardRotation A x) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 29 | (hcomplete : MetricComplete g) (r : ℝ) : |
| 30 | intrinsicWarpingRadius g hrotation hcomplete (radialArclength g r) = |
| 31 | axisWarpingRadius g r := by |
| 32 | change axisWarpingRadius g ((radialArclengthOrderIso g hrotation hcomplete).symm |
| 33 | ((radialArclengthOrderIso g hrotation hcomplete) r)) = _ |
| 34 | rw [OrderIso.symm_apply_apply] |
| 35 | |
| 36 | end PoincareMT.M35.Uniqueness |
| 37 | |
| 38 | namespace PoincareMT.M35.OrdinaryRealization |
| 39 | |
| 40 | open Uniqueness |
| 41 | |
| 42 | /-- Theorem 12.32: the actual normalized intrinsic center escapes |
| 43 | to infinity and has squared intrinsic orbit radius tending to two. -/ |
| 44 | theorem blowupSequence_intrinsic_center_limits |
| 45 | (P : M35StandardCapPredecessors) |
| 46 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 47 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 48 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 49 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 50 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 51 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 52 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 53 | (blowupBackwardInterval ⊤)) : |
| 54 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 55 | let hQ k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 56 | let G (k : ℕ) : RiemannianMetric 3 StandardCapSpace := |
| 57 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) (Q k) (hQ k) |
| 58 | let hrot k := scaleSmoothMetric_rotation_invariant |
| 59 | (E.rotation_invariant (t (L.subsequence k)) (ht _)) (Q k) (hQ k) |
| 60 | let hc k := scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence k))) |
| 61 | (E.complete (t (L.subsequence k)) (ht _)) (Q k) (hQ k) |
| 62 | let a k := radialArclength (G k) ‖x (L.subsequence k)‖ |
| 63 | Tendsto a atTop atTop ∧ Tendsto (fun k => |
| 64 | intrinsicWarpingRadius (G k) (hrot k) (hc k) (a k) ^ 2) atTop (𝓝 2) := by |
| 65 | dsimp only |
| 66 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 67 | have hQ (k : ℕ) : 0 < Q k := |
| 68 | (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 69 | let G (k : ℕ) : RiemannianMetric 3 StandardCapSpace := |
| 70 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) (Q k) (hQ k) |
| 71 | have hrot k := scaleSmoothMetric_rotation_invariant |
| 72 | (E.rotation_invariant (t (L.subsequence k)) (ht _)) (Q k) (hQ k) |
| 73 | have hc k := scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence k))) |
| 74 | (E.complete (t (L.subsequence k)) (ht _)) (Q k) (hQ k) |
| 75 | constructor |
| 76 | · apply (hd.comp L.subsequence_strictMono.tendsto_atTop).congr' |
| 77 | filter_upwards [] with k |
| 78 | have hh := M13.homothety_edist (E.flow.metric (t (L.subsequence k))) (G k) |
| 79 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) (Q k) (hQ k) |
| 80 | (M13.identity_metricHomothety _ (Q k) (hQ k)) 0 (x (L.subsequence k)) |
| 81 | have hn : 0 ≤ radialArclength (G k) ‖x (L.subsequence k)‖ := by |
| 82 | simpa only [radialArclength_zero] using |
| 83 | (radialArclength_strictMono (G k)).monotone (norm_nonneg (x (L.subsequence k))) |
| 84 | change (G k).edist 0 (x (L.subsequence k)) = _ at hh |
| 85 | have h := congrArg ENNReal.toReal hh |
| 86 | rw [edist_zero_eq_radialArclength (G k) (hrot k) (hc k) P, |
| 87 | ENNReal.toReal_ofReal hn, ENNReal.toReal_mul, |
| 88 | ENNReal.toReal_ofReal (Real.sqrt_nonneg _)] at h |
| 89 | rw [show Q k = (E.flow.connection (t (L.subsequence k))).scalarCurvature |
| 90 | (x (L.subsequence k)) from blowupSequence_scale P E t x ht hR (L.subsequence k)] at h |
| 91 | exact (mul_comm _ _).trans h.symm |
| 92 | · have h := blowupSequence_far_tip_normalized_orbit_sq_tendsto_two P E t x ht hR hd L |
| 93 | apply h.congr' |
| 94 | filter_upwards [] with k |
| 95 | rw [intrinsicWarpingRadius_radialArclength, axisWarpingRadius_scale, mul_pow, |
| 96 | Real.sq_sqrt (hQ k).le] |
| 97 | rw [show Q k = (E.flow.connection (t (L.subsequence k))).scalarCurvature |
| 98 | (x (L.subsequence k)) from blowupSequence_scale P E t x ht hR (L.subsequence k)] |
| 99 | |
| 100 | end PoincareMT.M35.OrdinaryRealization |