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 | # The actual oriented radial field on retained limit balls |
| 7 | |
| 8 | The selected cylinder images of fixed limit balls lie in fixed normalized |
| 9 | original balls. The original outward field consequently supplies one unit |
| 10 | direction on the whole retained image, and its actual covariant derivative |
| 11 | tends uniformly to zero there. |
| 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.OrdinaryRealization |
| 21 | |
| 22 | open Uniqueness |
| 23 | |
| 24 | /-- The actual outward field is uniformly almost parallel on the full |
| 25 | image of each fixed limit ball, under the selected cylinders themselves. -/ |
| 26 | theorem blowupSequence_far_tip_radial_field_on_limit_ball |
| 27 | (P : M35StandardCapPredecessors) |
| 28 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 29 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 30 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 31 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 32 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 33 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 34 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 35 | (blowupBackwardInterval ⊤)) (r ε : ℝ) (hε : 0 < ε) : |
| 36 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 37 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 38 | L.limit.carrier.chartedSpace |
| 39 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 40 | ∀ᶠ k in atTop, |
| 41 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 42 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 43 | let G : RiemannianMetric 3 StandardCapSpace := |
| 44 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 45 | let D := M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) Q hQ |
| 46 | let phi : L.limit.sliceCarrier.carrier → StandardCapSpace := |
| 47 | fun z => ((L.embedding k).forward 0 |
| 48 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 49 | ∀ z ∈ (L.limit.flow.metric 0).ball L.limit.base r, |
| 50 | phi z ≠ 0 ∧ G.inner (phi z) (radialUnitField G (phi z)) |
| 51 | (radialUnitField G (phi z)) = 1 ∧ |
| 52 | ∀ w : StandardCapSpace, |
| 53 | G.inner (phi z) (D.connection (radialUnitField G) (phi z) w) |
| 54 | (D.connection (radialUnitField G) (phi z) w) ≤ |
| 55 | ε ^ 2 * G.inner (phi z) w w := by |
| 56 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 57 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 58 | L.limit.carrier.chartedSpace |
| 59 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 60 | have hsource := E.normalized_radial_field_almost_parallel_on_balls |
| 61 | P t x ht hd (2 * r) ε hε |
| 62 | have hsub := L.subsequence_strictMono.tendsto_atTop.eventually hsource |
| 63 | filter_upwards [hsub, blowupSequence_image_ball_bounded P E t x ht hR L r] |
| 64 | with k hk hball |
| 65 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 66 | have hQ : 0 < Q := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 67 | let G : RiemannianMetric 3 StandardCapSpace := |
| 68 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 69 | let D := M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) Q hQ |
| 70 | let phi : L.limit.sliceCarrier.carrier → StandardCapSpace := |
| 71 | fun z => ((L.embedding k).forward 0 |
| 72 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 73 | change ∀ z ∈ (L.limit.flow.metric 0).ball L.limit.base r, |
| 74 | phi z ≠ 0 ∧ G.inner (phi z) (radialUnitField G (phi z)) |
| 75 | (radialUnitField G (phi z)) = 1 ∧ |
| 76 | ∀ w : StandardCapSpace, |
| 77 | G.inner (phi z) (D.connection (radialUnitField G) (phi z) w) |
| 78 | (D.connection (radialUnitField G) (phi z) w) ≤ ε ^ 2 * G.inner (phi z) w w |
| 79 | intro z hz |
| 80 | have hmem := hball ⟨z, hz, rfl⟩ |
| 81 | simp only [blowupSequence_scale] at hmem |
| 82 | simpa only [G, D, Q, M13.scaleLeviCivitaData_connection, blowupSequence_scale] |
| 83 | using hk (phi z) hmem |
| 84 | |
| 85 | end PoincareMT.M35.OrdinaryRealization |