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.Compactness.Ancient.Restriction |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Convergence.Scalar |
| 3 | |
| 4 | /-! |
| 5 | # Scalar curvature at the basepoint of the actual ancient limit |
| 6 | |
| 7 | A finite window preserves the given ancient metric and connection. Scalar |
| 8 | curvature convergence on that window therefore applies to a tail of the |
| 9 | stored subsequence; removing the fixed shift recovers the original indexing. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | namespace PoincareMT.AncientPointedGeometricConvergence |
| 19 | |
| 20 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 21 | FlowCarrier.isManifold |
| 22 | |
| 23 | /-- Time-zero scalar curvature at the source basepoints converges along the |
| 24 | actual stored subsequence to the scalar curvature of the given ancient limit. -/ |
| 25 | theorem tendsto_scalarCurvature_at_zero_base |
| 26 | {n : ℕ} {C : ℕ → FlowCarrier.{0} n} {J : ℕ → Set ℝ} |
| 27 | (F : ∀ k, RicciFlow n (C k).carrier (J k)) |
| 28 | {p : ∀ k, (C k).carrier} {T : ℝ} |
| 29 | (G : AncientPointedGeometricConvergence C (fun k => (F k).metric) p T) |
| 30 | (hT : 0 < T) |
| 31 | (htime : ∀ a b : ℝ, b < T → ∀ᶠ k in atTop, Icc a b ⊆ J k) : |
| 32 | Tendsto (fun k : ℕ => ((F (G.subsequence k)).connection 0).scalarCurvature |
| 33 | (p (G.subsequence k))) atTop |
| 34 | (𝓝 ((G.limitFlow.connection 0).scalarCurvature G.base)) := by |
| 35 | obtain ⟨a, b, ha, hb, hbT, _⟩ := exists_ancient_window_of_isCompact hT |
| 36 | isCompact_singleton (singleton_subset_iff.mpr hT) |
| 37 | obtain ⟨N, hN⟩ := exists_source_window_tail |
| 38 | (G.subsequence_strictMono.tendsto_atTop.eventually (htime a b hbT)) |
| 39 | let W := G.window F (ha.trans hb) hbT.le N hN |
| 40 | apply (tendsto_add_atTop_iff_nat N).mp |
| 41 | exact W.tendsto_scalarCurvature_at_zero_base ⟨ha, hb⟩ |
| 42 | |
| 43 | end PoincareMT.AncientPointedGeometricConvergence |