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.Persistence.Limit.Compactness.CylinderCompactnessFeedJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Construction.RescaledLimitClosedJets |
| 3 | |
| 4 | /-! |
| 5 | # Constructing the partial standard flow from actual surgery cylinders |
| 6 | |
| 7 | All compactness inputs are discharged by the actual normalized physical |
| 8 | cylinder sequence, its growing birth charts, its M36 comparisons, and |
| 9 | the common geometric curvature bound. The limit is constructed on the |
| 10 | whole standard space and includes its exact birth metric and connection. |
| 11 | Morgan--Tian, Claim 16.6, Lemma 16.8 and Corollary 16.9, pp. 371-373; |
| 12 | M44 derivation 88. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M44 |
| 24 | |
| 25 | open SpacetimeBounds |
| 26 | |
| 27 | local notation "E" => StandardCapSpace |
| 28 | |
| 29 | noncomputable local instance cylinderFeedAssemblyCoefficientNorm : |
| 30 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | |
| 32 | noncomputable local instance cylinderFeedAssemblyCoefficientSpace : |
| 33 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | variable {g0 : StandardInitialMetric} {F : ℕ → SurgeryFlowData.{u}} |
| 36 | {a : ℕ → ℝ} {ha : ∀ k, a k ∈ (F k).surgery_times} |
| 37 | [∀ k, Nonempty ((F k).slice (a k)).carrier] |
| 38 | {i : ∀ k, Fin ((F k).event (a k) (ha k)).cap_count} |
| 39 | |
| 40 | /-- The actual growing surgery cylinders construct a partial |
| 41 | standard flow and one common smooth subsequence. The common curvature |
| 42 | bound is the geometric input; no limiting metric, flow, compactness |
| 43 | conclusion or coefficient estimate is assumed. Source: Lemma 16.8, |
| 44 | pp. 372-373; M44 derivation 88. -/ |
| 45 | theorem exists_partial_standard_flow_of_cylinder_sequence |
| 46 | (P : M44CapPersistencePredecessors.{u}) |
| 47 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 48 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 49 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 50 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 51 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 52 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 53 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) : |
| 54 | ∃ sigma : ℕ → ℕ, StrictMono sigma ∧ ∃ S : PartialStandardCapFlow g0, |
| 55 | S.lifetime = T ∧ CompactSmoothConvergenceOn |
| 56 | (fun k => (D (sigma k)).coefficients) |
| 57 | (fun p => (S.flow.metric p.1).euclideanCoefficients p.2) atTop |
| 58 | (Ioo 0 T ×ˢ univ) := by |
| 59 | apply exists_rescaled_partial_flow_from_sequence g0 hT (fun k => (D k).coefficients) |
| 60 | · exact fun R _ => eventually_cylinder_coefficients_smooth D hR hlife R |
| 61 | · intro R hRpos C _hC hCU m |
| 62 | obtain ⟨B, _hB, hbound⟩ := |
| 63 | eventually_cylinder_spacetime_jet_bound P D hR heta hT hK hlife hcurv hRpos m |
| 64 | exact ⟨B, hbound.mono fun _ hk p hp => hk p (hCU hp)⟩ |
| 65 | · exact fun p _ => Eventually.of_forall fun k => (D k).coefficients_symmetric p |
| 66 | · exact fun _ hp => |
| 67 | eventually_cylinder_coefficients_elliptic P D hR heta hT hK hlife hcurv hp |
| 68 | · exact fun _ hp => eventually_cylinder_coefficients_evolution D hR hlife hp |
| 69 | · intro m x |
| 70 | exact (tendstoUniformlyOn_cylinder_initial_spatial_jet D hR heta m |
| 71 | (isCompact_singleton (x := x))).tendsto_at (mem_singleton x) |
| 72 | · intro m C hC |
| 73 | obtain ⟨L, hL, hmod⟩ := |
| 74 | eventually_cylinder_birth_jet_modulus P D hR heta hT hK hlife hcurv m hC |
| 75 | exact ⟨L, hL, fun t ht x hx => hmod.mono fun _ hk => hk t ht x hx⟩ |
| 76 | · intro T0 _hT0 hT0T |
| 77 | refine ⟨K, hK.le, ?_⟩ |
| 78 | intro R _hRpos |
| 79 | exact (eventually_cylinder_coefficient_curvature_bound D hR hcurv R).mono |
| 80 | fun _ hk t ht x hx => hk t ⟨ht.1, ht.2.trans hT0T.le⟩ x hx |
| 81 | |
| 82 | /-- The same actual subsequence has compact-uniform spatial jet |
| 83 | convergence on every closed birth slab. Its uniform time modulus and |
| 84 | initial convergence come from the actual cylinder data. Source: |
| 85 | Corollary 16.9, p. 373; M44 derivation 88. -/ |
| 86 | theorem cylinder_subsequence_closed_spatial_jets |
| 87 | (P : M44CapPersistencePredecessors.{u}) |
| 88 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 89 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 90 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 91 | {T K : ℝ} (hT : 0 < T) (hK : 0 < K) |
| 92 | (hlife : ∀ᶠ k in atTop, T < (D k).lifetime) |
| 93 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Icc (0 : ℝ) T, ∀ y, |
| 94 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 95 | {sigma : ℕ → ℕ} (hsigma : StrictMono sigma) (S : PartialStandardCapFlow g0) |
| 96 | (hconv : CompactSmoothConvergenceOn |
| 97 | (fun k => (D (sigma k)).coefficients) |
| 98 | (fun p => (S.flow.metric p.1).euclideanCoefficients p.2) atTop |
| 99 | (Ioo 0 T ×ˢ univ)) |
| 100 | {T0 : ℝ} (hT0 : 0 ≤ T0) (hT0T : T0 < T) |
| 101 | (m : ℕ) {C : Set E} (hC : IsCompact C) : |
| 102 | TendstoUniformlyOn |
| 103 | (fun k p => iteratedFDeriv ℝ m |
| 104 | (fun y => (D (sigma k)).coefficients (p.1, y)) p.2) |
| 105 | (fun p => iteratedFDeriv ℝ m (S.flow.metric p.1).euclideanCoefficients p.2) |
| 106 | atTop (Icc 0 T0 ×ˢ C) := by |
| 107 | apply tendstoUniformlyOn_rescaled_partial_flow_closed_jets S hT0 hT0T hconv m hC |
| 108 | · intro W hW |
| 109 | exact hsigma.tendsto_atTop.eventually |
| 110 | (tendstoUniformlyOn_cylinder_initial_spatial_jet D hR heta m hC W hW) |
| 111 | · obtain ⟨L, hL, hmod⟩ := |
| 112 | eventually_cylinder_birth_jet_modulus P D hR heta hT hK hlife hcurv m hC |
| 113 | exact ⟨L, hL, hsigma.tendsto_atTop.eventually hmod⟩ |
| 114 | |
| 115 | end PoincareMT.M44 |