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.SelectedBallImage |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FarTipUnitField |
| 4 | |
| 5 | /-! |
| 6 | # Actual retained shape values at a far-tip blowup |
| 7 | |
| 8 | The actual scalar-normalized distance from the tip diverges. The checked |
| 9 | concavity estimate therefore makes the actual radial shape uniformly small |
| 10 | on every fixed normalized ball and on each selected limit-ball image. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 18 | |
| 19 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 20 | |
| 21 | open M35.Uniqueness |
| 22 | |
| 23 | /-- The actual scalar-normalized shape tends uniformly to zero on |
| 24 | every fixed ball whose center escapes from the original tip. -/ |
| 25 | theorem normalized_radial_shape_small_on_balls |
| 26 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 27 | (E : RepairedStandardCapExistenceData g₀) |
| 28 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 29 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 30 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 31 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 32 | (R ε : ℝ) (hε : 0 < ε) : |
| 33 | ∀ᶠ k in atTop, |
| 34 | let Q := (E.flow.connection (t k)).scalarCurvature (x k) |
| 35 | let G : RiemannianMetric 3 StandardCapSpace := |
| 36 | M13.scaleSmoothMetric (E.flow.metric (t k)) Q (E.scalar_pos (ht k) (x k)) |
| 37 | ∀ y ∈ G.ball (x k) R, |
| 38 | |axisWarpingSlope G ‖y‖ / axisWarpingRadius G ‖y‖| ≤ ε := by |
| 39 | let Q k := (E.flow.connection (t k)).scalarCurvature (x k) |
| 40 | have hQ k : 0 < Q k := E.scalar_pos (ht k) (x k) |
| 41 | let G (k : ℕ) : RiemannianMetric 3 StandardCapSpace := |
| 42 | M13.scaleSmoothMetric (E.flow.metric (t k)) (Q k) (hQ k) |
| 43 | let D (k : ℕ) : LeviCivitaData (G k) := |
| 44 | M13.scaleLeviCivitaData (E.flow.connection (t k)) (Q k) (hQ k) |
| 45 | have heq k : ((G k).edist 0 (x k)).toReal = |
| 46 | ((E.flow.metric (t k)).edist 0 (x k)).toReal * Real.sqrt (Q k) := by |
| 47 | have h := M13.homothety_edist (E.flow.metric (t k)) (G k) |
| 48 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) (Q k) (hQ k) |
| 49 | (M13.identity_metricHomothety (E.flow.metric (t k)) (Q k) (hQ k)) 0 (x k) |
| 50 | change (G k).edist 0 (x k) = _ at h |
| 51 | rw [h, ENNReal.toReal_mul, ENNReal.toReal_ofReal (Real.sqrt_nonneg _)] |
| 52 | exact mul_comm _ _ |
| 53 | have hd' : Tendsto (fun k => ((G k).edist 0 (x k)).toReal) atTop atTop := by |
| 54 | simpa only [heq, Q] using hd |
| 55 | filter_upwards [hd'.eventually (eventually_gt_atTop (R + 1 / ε))] with k hk |
| 56 | have hfar : R < ((G k).edist 0 (x k)).toReal := |
| 57 | lt_trans (lt_add_of_pos_right R (one_div_pos.mpr hε)) hk |
| 58 | have hsmall : 1 / (((G k).edist 0 (x k)).toReal - R) ≤ ε := by |
| 59 | apply (div_le_iff₀ (sub_pos.mpr hfar)).mpr |
| 60 | have h := (div_lt_iff₀ hε).mp |
| 61 | (show 1 / ε < ((G k).edist 0 (x k)).toReal - R by linarith) |
| 62 | nlinarith only [h] |
| 63 | change ∀ y ∈ (G k).ball (x k) R, |
| 64 | |axisWarpingSlope (G k) ‖y‖ / axisWarpingRadius (G k) ‖y‖| ≤ ε |
| 65 | intro y hy |
| 66 | have hb := radial_shape_bound_on_ball (D k) |
| 67 | (scaleSmoothMetric_rotation_invariant (E.rotation_invariant (t k) (ht k)) (Q k) (hQ k)) |
| 68 | P (scaleLeviCivitaData_nonnegative_sectional (E.flow.connection (t k)) |
| 69 | (E.nonnegative_sectional (t k) (ht k)) (Q k) (hQ k)) |
| 70 | (scaleSmoothMetric_complete (E.flow.metric (t k)) |
| 71 | (E.complete (t k) (ht k)) (Q k) (hQ k)) (x k) R hfar hy |
| 72 | rw [abs_of_nonneg hb.2.1] |
| 73 | exact hb.2.2.trans hsmall |
| 74 | |
| 75 | end PoincareMT.RepairedStandardCapExistenceData |
| 76 | |
| 77 | namespace PoincareMT.M35.OrdinaryRealization |
| 78 | |
| 79 | open Uniqueness |
| 80 | |
| 81 | /-- The actual selected cylinders retain the same uniformly vanishing |
| 82 | shape value throughout every fixed limit ball. -/ |
| 83 | theorem blowupSequence_far_tip_radial_shape_on_limit_ball |
| 84 | (P : M35StandardCapPredecessors) |
| 85 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 86 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 87 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 88 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 89 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 90 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 91 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 92 | (blowupBackwardInterval ⊤)) (r ε : ℝ) (hε : 0 < ε) : |
| 93 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 94 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 95 | L.limit.carrier.chartedSpace |
| 96 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 97 | ∀ᶠ k in atTop, |
| 98 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 99 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 100 | let G := M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 101 | let phi : L.limit.sliceCarrier.carrier → StandardCapSpace := |
| 102 | fun z => ((L.embedding k).forward 0 |
| 103 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 104 | ∀ z ∈ (L.limit.flow.metric 0).ball L.limit.base r, |
| 105 | |axisWarpingSlope G ‖phi z‖ / axisWarpingRadius G ‖phi z‖| ≤ ε := by |
| 106 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 107 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 108 | L.limit.carrier.chartedSpace |
| 109 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 110 | have hsource := E.normalized_radial_shape_small_on_balls P t x ht hd (2 * r) ε hε |
| 111 | filter_upwards [L.subsequence_strictMono.tendsto_atTop.eventually hsource, |
| 112 | blowupSequence_image_ball_bounded P E t x ht hR L r] with k hk hball |
| 113 | dsimp only |
| 114 | intro z hz |
| 115 | have hmem := hball ⟨z, hz, rfl⟩ |
| 116 | simp only [blowupSequence_scale] at hmem |
| 117 | simpa only [blowupSequence_scale] using hk _ hmem |
| 118 | |
| 119 | end PoincareMT.M35.OrdinaryRealization |