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.AncientKappa.Compactness.Terminal.Completeness |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.MetricComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.CurvatureConvergence |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Inheritance |
| 5 | |
| 6 | /-! |
| 7 | # Assembly of terminal completeness |
| 8 | |
| 9 | The retained embeddings transfer each compact terminal ball to a uniformly |
| 10 | controlled source ball. Pointwise convergence of curvature tensors then gives |
| 11 | the local bounds required by the closed-time completeness criterion. The |
| 12 | reference slice is supplied by the already constructed interior limit. |
| 13 | |
| 14 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229; Topping, Theorem 1.7, |
| 15 | p. 179. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 27 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | |
| 30 | namespace AncientKappaSequence |
| 31 | |
| 32 | local instance assemblyCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 33 | connectedSpace_iff_univ.mpr D.connected |
| 34 | |
| 35 | /-- A closed flow is complete at its included terminal time when the retained |
| 36 | maps transfer terminal balls to uniformly controlled source balls and the |
| 37 | source curvatures converge pointwise through that endpoint. -/ |
| 38 | theorem closedLimit_metricComplete_of_source_bounds |
| 39 | (C : ℕ → FlowCarrier.{0} 3) |
| 40 | (K : ∀ k, AncientKappaSolution 3 (C k).carrier) |
| 41 | (p : ∀ k, (C k).carrier) |
| 42 | (L : FlowCarrier.{0} 3) |
| 43 | (F : RicciFlow 3 L.carrier (Iic 0)) (q : L.carrier) |
| 44 | {τ : ℝ} (hτ : τ ≤ 0) |
| 45 | (hreference : L.metricComplete (F.metric τ)) |
| 46 | (σ : ℕ → ℕ) (e : ∀ k, L.carrier → (C (σ k)).carrier) |
| 47 | (hbase : ∀ᶠ k in atTop, e k q = p (σ k)) |
| 48 | (hsmooth : ∀ A : Set L.carrier, IsCompact A → ∀ᶠ k in atTop, |
| 49 | ∀ x ∈ A, ContMDiffAt (𝓡 3) (𝓡 3) 1 (e k) x) |
| 50 | (hbound : ∀ A : Set L.carrier, IsCompact A → ∀ᶠ k in atTop, |
| 51 | ∀ x ∈ A, ∀ v : L.tangent x, |
| 52 | ((K (σ k)).flow.metric 0).tangentNorm (e k x) |
| 53 | (mfderiv (𝓡 3) (𝓡 3) (e k) x v) ≤ |
| 54 | 2 * (F.metric 0).tangentNorm x v) |
| 55 | (hsource : ∀ A : ℝ, 0 < A → ∃ B : ℝ, 0 ≤ B ∧ |
| 56 | ∀ k t, t ≤ 0 → ∀ x ∈ ((K k).flow.metric 0).ball (p k) A, |
| 57 | |((K k).flow.connection t).curvatureTensorNorm x| ≤ B) |
| 58 | (hconverges : ∀ t : ℝ, t ≤ 0 → ∀ x : L.carrier, |
| 59 | Tendsto (fun k => ((K (σ k)).flow.connection t).curvatureTensorNorm (e k x)) |
| 60 | atTop (𝓝 ((F.connection t).curvatureTensorNorm x))) : |
| 61 | L.metricComplete (F.metric 0) := by |
| 62 | have hball : ∀ A : ℝ, 0 < A → ∀ x ∈ (F.metric 0).ball q A, |
| 63 | ∀ᶠ k in atTop, e k x ∈ ((K (σ k)).flow.metric 0).ball (p (σ k)) (2 * A) := by |
| 64 | intro A hA x hx |
| 65 | exact AncientCompactness.eventually_mem_source_ball_of_compact_pullback_bound |
| 66 | L (fun k => C (σ k)) (F.metric 0) (fun k => (K (σ k)).flow.metric 0) q |
| 67 | (fun k => p (σ k)) e hbase hsmooth hbound hx |
| 68 | have hcurv : ∀ A : ℝ, 0 < A → ∃ B : ℝ, 0 ≤ B ∧ |
| 69 | ∀ t ∈ Icc τ 0, ∀ x ∈ (F.metric 0).ball q A, |
| 70 | (F.connection t).curvatureTensorNorm x ≤ B := by |
| 71 | intro A hA |
| 72 | obtain ⟨B, hB, hbound'⟩ := terminal_curvature_bound_of_source_convergence |
| 73 | C K p L F q σ e hsource hball hconverges A hA |
| 74 | exact ⟨B, hB, fun t ht x hx => hbound' t ht.2 x hx⟩ |
| 75 | exact RicciFlow.metricComplete_terminal_of_local_curvature_bound L F q hτ hreference hcurv |
| 76 | |
| 77 | end AncientKappaSequence |
| 78 | |
| 79 | namespace NormalizedKappaSolutionSequence |
| 80 | |
| 81 | local instance terminalAssemblySourceConnected (C : FlowCarrier.{0} 3) : |
| 82 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 83 | |
| 84 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 85 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 86 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 87 | |
| 88 | /-- The actual closed extension of the retained normalized interior limit |
| 89 | is complete at zero. Both terminal pullback control and curvature convergence |
| 90 | are produced from the original source estimates and unchanged embeddings. -/ |
| 91 | theorem closedLimit_complete_at_zero |
| 92 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 93 | (hF : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) |
| 94 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 95 | (hcontrol : M23AllTimeCurvatureControl S) |
| 96 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 97 | G.limitCarrier.metricComplete (F.metric 0) := by |
| 98 | have hreference : G.limitCarrier.metricComplete (F.metric (-1)) := by |
| 99 | rw [hF (-1) (by norm_num), show (-1 : ℝ) + 1 = 0 by ring] |
| 100 | exact hcomplete |
| 101 | apply AncientKappaSequence.closedLimit_metricComplete_of_source_bounds |
| 102 | (fun k => (S.term k).carrier) (fun k => (S.term k).flow) (fun k => (S.term k).base) |
| 103 | G.limitCarrier F G.base (by norm_num : (-1 : ℝ) ≤ 0) hreference |
| 104 | G.subsequence G.embedding (Eventually.of_forall G.base_preserving) |
| 105 | · intro A hA |
| 106 | exact (S.eventually_embedding_contMDiffAt_on_compact G hA).mono |
| 107 | (fun k hk x hx => (hk x hx).of_le (by simp)) |
| 108 | · intro A hA |
| 109 | exact S.eventually_terminal_pullback_tangentNorm_le_twice G F hF P hcontrol |
| 110 | hcomplete hA (show (0 : ℝ) ≤ 0 from le_refl 0) |
| 111 | · exact hcontrol |
| 112 | · exact S.tendsto_terminal_curvatureTensorNorm G F hF P hcontrol hcomplete |
| 113 | |
| 114 | /-- Every ancient slice, including zero, of the actual retained closed |
| 115 | extension is complete. -/ |
| 116 | theorem closedLimit_complete |
| 117 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 118 | (hF : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) |
| 119 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 120 | (hcontrol : M23AllTimeCurvatureControl S) |
| 121 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 122 | ∀ t : ℝ, t ≤ 0 → G.limitCarrier.metricComplete (F.metric t) := by |
| 123 | intro t ht |
| 124 | rcases lt_or_eq_of_le ht with ht | rfl |
| 125 | · rw [hF t ht] |
| 126 | exact S.interiorLimit_complete G P hcontrol hcomplete (t + 1) (by linarith) |
| 127 | · exact S.closedLimit_complete_at_zero G F hF P hcontrol hcomplete |
| 128 | |
| 129 | end NormalizedKappaSolutionSequence |
| 130 | end PoincareMT |