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.Limit.Flow |
| 2 | import PoincareLib.Geometry.RicciFlow.Limit.SpacetimeJets |
| 3 | |
| 4 | /-! |
| 5 | # Smooth limits of Ricci flows |
| 6 | |
| 7 | A smooth positive metric limit of Ricci flows is an ordinary Ricci flow. |
| 8 | The hypotheses are convergence of scalar coordinate spacetime derivatives |
| 9 | uniformly on compact subsets. Neither Ricci convergence nor limiting |
| 10 | connection data is an input. |
| 11 | |
| 12 | Reference: Morgan--Tian, Proposition 5.14 and its proof, pp. 90--91. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | open Filter Set |
| 19 | |
| 20 | namespace PoincareMT.RicciFlow |
| 21 | |
| 22 | /-- Smooth convergence of positive metric coefficients preserves Ricci flow |
| 23 | on the fixed manifold, without any completeness assumption. -/ |
| 24 | theorem exists_of_smooth_limit |
| 25 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {J : Set ℝ} (Fseq : ℕ → RicciFlow n M J) |
| 28 | (g : ℝ → RiemannianMetric n M) |
| 29 | (hJ : IsOpen J) (hg : RiemannianMetric.IsSmoothFamilyOn g J) |
| 30 | (hjets : ∀ (x : M) (r : ℕ) (a b : Fin n) |
| 31 | (K : Set (ℝ × EuclideanSpace ℝ (Fin n))), IsCompact K → |
| 32 | K ⊆ J ×ˢ (extChartAt (𝓡 n) x).target → |
| 33 | TendstoUniformlyOn |
| 34 | (fun k z => iteratedFDeriv ℝ r |
| 35 | (fun p : ℝ × EuclideanSpace ℝ (Fin n) => |
| 36 | ((Fseq k).metric p.1).pullbackCoefficients (extChartAt (𝓡 n) x).symm p.2 |
| 37 | (EuclideanSpace.basisFun (Fin n) ℝ a) |
| 38 | (EuclideanSpace.basisFun (Fin n) ℝ b)) z) |
| 39 | (fun z => iteratedFDeriv ℝ r |
| 40 | (fun p : ℝ × EuclideanSpace ℝ (Fin n) => |
| 41 | (g p.1).pullbackCoefficients (extChartAt (𝓡 n) x).symm p.2 |
| 42 | (EuclideanSpace.basisFun (Fin n) ℝ a) |
| 43 | (EuclideanSpace.basisFun (Fin n) ℝ b)) z) atTop K) : |
| 44 | ∃ F : RicciFlow n M J, F.metric = g := by |
| 45 | have hj (t : ℝ) (ht : t ∈ J) (x : M) := |
| 46 | RiemannianMetric.spatial_and_time_jets_of_spacetime_jets |
| 47 | (fun k => (Fseq k).metric) g (fun k => (Fseq k).smooth) hg hJ ht x |
| 48 | (fun r _ a b => RiemannianMetric.tendsto_spacetime_jet_of_compact_uniform r |
| 49 | (hjets x r a b) ⟨ht, mem_extChartAt_target x⟩) |
| 50 | exact exists_of_scalar_coordinate_jets Fseq g hJ hg |
| 51 | (fun t ht x => (hj t ht x).1) (fun t ht x => (hj t ht x).2) |
| 52 | |
| 53 | end PoincareMT.RicciFlow |