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.SelectedRadialFieldBounds |
| 3 | import PoincareLib.Analysis.Calculus.SmoothCompactness |
| 4 | |
| 5 | /-! |
| 6 | # A common smooth limit of the actual selected radial fields |
| 7 | |
| 8 | One retained compact coordinate closure supplies a common smooth tail. |
| 9 | The actual radial-system bounds then give one subsequence converging in all |
| 10 | jets throughout the open chart, including both points of a reflected pair. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter VectorField |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | open Uniqueness Poincare.Analysis.Calculus |
| 22 | |
| 23 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | /-- The actual scalar-normalized outward radial field pulled through the |
| 26 | selected cylinder and the fixed spatial coordinate map. -/ |
| 27 | noncomputable def selectedCoordinateRadialField |
| 28 | (P : M35StandardCapPredecessors) |
| 29 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 30 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 31 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 32 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 33 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 34 | (blowupBackwardInterval ⊤)) |
| 35 | (coordinate : V → L.limit.sliceCarrier.carrier) (k : ℕ) : V → V := |
| 36 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 37 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 38 | let G := M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 39 | let f : V → StandardCapSpace := fun z => ((L.embedding k).forward 0 |
| 40 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ (coordinate z)).val |
| 41 | pullback ℝ f (radialUnitField G) |
| 42 | |
| 43 | /-- The actual selected fields have one smooth common subsequential |
| 44 | limit on any open coordinate set with compact closure. -/ |
| 45 | theorem blowupSequence_coordinate_radial_smooth_subsequence |
| 46 | (P : M35StandardCapPredecessors) |
| 47 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 48 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 49 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 50 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 51 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 52 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 53 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 54 | (blowupBackwardInterval ⊤)) : |
| 55 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 56 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 57 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 58 | ∀ (coordinate : V → L.limit.sliceCarrier.carrier) |
| 59 | (_hc : ContMDiff (𝓡 3) (𝓡 3) ∞ coordinate) |
| 60 | (_hi : ∀ z, (mfderiv (𝓡 3) (𝓡 3) coordinate z).IsInvertible) |
| 61 | (g : RiemannianMetric 3 V) |
| 62 | (_hg : g.euclideanCoefficients = (L.limit.flow.metric 0).pullbackCoefficients coordinate) |
| 63 | (Ω : Set V) (_hΩ : IsOpen Ω) (_hcompact : IsCompact (closure Ω)), |
| 64 | ∃ (sigma : ℕ → ℕ) (Z : V → V), StrictMono sigma ∧ ContDiffOn ℝ ∞ Z Ω ∧ |
| 65 | ∀ (m : ℕ) (K : Set V), IsCompact K → K ⊆ Ω → |
| 66 | TendstoUniformlyOn (fun k y => iteratedFDeriv ℝ m |
| 67 | (selectedCoordinateRadialField P E t x ht hR L coordinate (sigma k)) y) |
| 68 | (iteratedFDeriv ℝ m Z) atTop K := by |
| 69 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 70 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 71 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 72 | intro coordinate hc hi g hg Ω hΩ hcompact |
| 73 | let Zseq := selectedCoordinateRadialField P E t x ht hR L coordinate |
| 74 | obtain ⟨N, hN⟩ := eventually_atTop.mp |
| 75 | (blowupSequence_coordinate_radial_domain P E t x ht hR hd L |
| 76 | coordinate hc hi (closure Ω) hcompact) |
| 77 | let mu (k : ℕ) := k + N |
| 78 | have hmu : StrictMono mu := fun i j hij => Nat.add_lt_add_right hij N |
| 79 | have hs (k : ℕ) : ContDiffOn ℝ ∞ (Zseq (mu k)) Ω := by |
| 80 | intro z hz |
| 81 | have h := (hN (mu k) (Nat.le_add_left N k) z (subset_closure hz)).1.self_of_nhds |
| 82 | have hf := contMDiffAt_iff_contDiffAt.mp h.1 |
| 83 | let f : V → StandardCapSpace := fun y => ((L.embedding (mu k)).forward 0 |
| 84 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (mu k)).le, le_rfl⟩ (coordinate y)).val |
| 85 | have hif : (fderiv ℝ f z).IsInvertible := by |
| 86 | simpa only [mfderiv_eq_fderiv] using h.2.1 |
| 87 | exact (euclidean_radial_pullback_contDiffAt _ hf hif h.2.2).contDiffWithinAt |
| 88 | have hb : LocallyEventuallyBoundedDerivatives Ω (fun k => Zseq (mu k)) := by |
| 89 | intro K hK _hKΩ m |
| 90 | obtain ⟨C, hC⟩ := blowupSequence_coordinate_radial_jets_bounded P E t x ht hR hd L |
| 91 | coordinate hc hi g hg K hK m |
| 92 | exact ⟨C, hmu.tendsto_atTop.eventually hC⟩ |
| 93 | obtain ⟨H⟩ := exists_smoothSubsequenceExtraction hΩ (fun k => Zseq (mu k)) hs hb |
| 94 | refine ⟨mu ∘ H.subsequence, H.limit, |
| 95 | hmu.comp H.subsequence_strictMono, H.limit_contDiffOn, ?_⟩ |
| 96 | exact H.iteratedFDeriv_tendsto_uniformlyOn |
| 97 | |
| 98 | end PoincareMT.M35.OrdinaryRealization |