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.Uniqueness |
| 4 | |
| 5 | /-! |
| 6 | # Vanishing actual radial shape jets on a retained coordinate set |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The actual shape value tends |
| 9 | uniformly to zero on every retained ball. The closed radial system bounds |
| 10 | all its coordinate jets, so smooth compactness identifies their common |
| 11 | limit with the zero function. This is the actual radial-collar input. |
| 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.OrdinaryRealization |
| 21 | |
| 22 | open Uniqueness Poincare.Analysis.Calculus |
| 23 | |
| 24 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | /-- The actual radial shape of the scalar-normalized slice, evaluated |
| 27 | through the selected cylinder and a fixed spatial coordinate map. -/ |
| 28 | noncomputable def selectedCoordinateRadialShape |
| 29 | (P : M35StandardCapPredecessors) |
| 30 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 31 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 32 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 33 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 34 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 35 | (blowupBackwardInterval ⊤)) |
| 36 | (coordinate : V → L.limit.sliceCarrier.carrier) (k : ℕ) (z : V) : ℝ := |
| 37 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 38 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 39 | let G := M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 40 | let p := ((L.embedding k).forward 0 |
| 41 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ (coordinate z)).val |
| 42 | axisWarpingSlope G ‖p‖ / axisWarpingRadius G ‖p‖ |
| 43 | |
| 44 | /-- Theorem 12.32, pp. 326-327: every actual radial shape jet tends to |
| 45 | zero along the full selected sequence on every compact subset of the chart. -/ |
| 46 | theorem blowupSequence_coordinate_radial_shape_jets_zero |
| 47 | (P : M35StandardCapPredecessors) |
| 48 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 49 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 50 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 51 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 52 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 53 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 54 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 55 | (blowupBackwardInterval ⊤)) : |
| 56 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 57 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 58 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 59 | ∀ (coordinate : V → L.limit.sliceCarrier.carrier) |
| 60 | (_hc : ContMDiff (𝓡 3) (𝓡 3) ∞ coordinate) |
| 61 | (_hi : ∀ z, (mfderiv (𝓡 3) (𝓡 3) coordinate z).IsInvertible) |
| 62 | (g : RiemannianMetric 3 V) |
| 63 | (_hg : g.euclideanCoefficients = (L.limit.flow.metric 0).pullbackCoefficients coordinate) |
| 64 | (Ω : Set V) (_hΩ : IsOpen Ω) (_hcompact : IsCompact (closure Ω)), |
| 65 | ∀ (m : ℕ) (K : Set V), IsCompact K → K ⊆ Ω → |
| 66 | TendstoUniformlyOn (fun k y => iteratedFDeriv ℝ m |
| 67 | (selectedCoordinateRadialShape P E t x ht hR L coordinate k) y) |
| 68 | (fun _ => 0) 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 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 73 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 74 | intro coordinate hc hi g hg Ω hΩ hcompact |
| 75 | let S := selectedCoordinateRadialShape P E t x ht hR L coordinate |
| 76 | have hs : ∀ᶠ k in atTop, ContDiffOn ℝ ∞ (S k) Ω := by |
| 77 | filter_upwards [blowupSequence_coordinate_radial_domain P E t x ht hR hd L |
| 78 | coordinate hc hi (closure Ω) hcompact] with k hk |
| 79 | intro z hz |
| 80 | have h := (hk z (subset_closure hz)).1.self_of_nhds |
| 81 | have hf := contMDiffAt_iff_contDiffAt.mp h.1 |
| 82 | exact ((radial_shape_contDiffAt _ h.2.2).comp z hf).contDiffWithinAt |
| 83 | have hb : LocallyEventuallyBoundedDerivatives Ω S := by |
| 84 | intro K hK _hKΩ m |
| 85 | obtain ⟨C, hC⟩ := blowupSequence_coordinate_radial_projected_jets_bounded |
| 86 | P E t x ht hR hd L coordinate hc hi g hg K hK m |
| 87 | (ContinuousLinearMap.snd ℝ V ℝ) |
| 88 | exact ⟨C, hC⟩ |
| 89 | have hvalue (z : V) : Tendsto (fun k => S k z) atTop (𝓝 0) := by |
| 90 | let G := L.limit.flow.metric 0 |
| 91 | let r := (G.edist L.limit.base (coordinate z)).toReal + 1 |
| 92 | have hz : coordinate z ∈ G.ball L.limit.base r := by |
| 93 | apply (ENNReal.lt_ofReal_iff_toReal_lt (G.edist_ne_top _ _)).mpr |
| 94 | exact lt_add_of_pos_right _ zero_lt_one |
| 95 | apply Metric.tendsto_nhds.mpr |
| 96 | intro epsilon hepsilon |
| 97 | filter_upwards [blowupSequence_far_tip_radial_shape_on_limit_ball |
| 98 | P E t x ht hR hd L r (epsilon / 2) (half_pos hepsilon)] with k hk |
| 99 | have h := hk (coordinate z) hz |
| 100 | change |S k z| ≤ epsilon / 2 at h |
| 101 | simpa only [dist_zero_right, Real.norm_eq_abs] using |
| 102 | h.trans_lt (half_lt_self hepsilon) |
| 103 | intro m K hK hKΩ |
| 104 | have hconv := tendstoUniformlyOn_iteratedFDeriv_of_eventually_smooth hΩ |
| 105 | (fun z _ => hvalue z) hs hb m hK hKΩ |
| 106 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_def, S] using hconv |
| 107 | |
| 108 | end PoincareMT.M35.OrdinaryRealization |