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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.RegularSets.FiniteChartBounds |
| 3 | |
| 4 | /-! |
| 5 | # Fixed finite atlas bounds for the retained limit metric |
| 6 | |
| 7 | Passing the eventual finite-atlas bounds to the actual coefficient limits |
| 8 | retains their positive ellipticity and finite jet constants. The constants |
| 9 | precede all chart points and vectors. Source: Morgan--Tian Proposition 9.79, |
| 10 | pp. 232-234, and Proposition 10.7, p. 253; M28 derivation 109. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M28.RegularPointedMetricConvergence |
| 22 | |
| 23 | variable {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 24 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 25 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 26 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} |
| 27 | {ι : Type*} [Finite ι] |
| 28 | |
| 29 | /-- The actual limit metric has positive uniform ellipticity and bounded |
| 30 | finite jets on every fixed finite compact atlas. An empty atlas is allowed. |
| 31 | Source: Proposition 10.7, p. 253; M28 derivation 109. -/ |
| 32 | theorem exists_limit_finite_chart_bounds (G : RegularPointedMetricConvergence g p) : |
| 33 | letI := G.limitCarrier.topologicalSpace |
| 34 | letI := G.limitCarrier.chartedSpace |
| 35 | letI := G.limitCarrier.isManifold |
| 36 | ∀ (q : ι → G.limitCarrier.carrier) (K : ι → Set (EuclideanSpace ℝ (Fin n))), |
| 37 | (∀ i, IsCompact (K i)) → (∀ i, K i ⊆ (extChartAt (𝓡 n) (q i)).target) → |
| 38 | ∀ m : ℕ, ∃ a b B : ℝ, 0 < a ∧ 0 < b ∧ 1 ≤ B ∧ |
| 39 | ∀ i x, x ∈ K i → |
| 40 | (∀ v : EuclideanSpace ℝ (Fin n), |
| 41 | a * ‖v‖ ^ 2 ≤ G.limitMetric.pullbackCoefficients |
| 42 | (extChartAt (𝓡 n) (q i)).symm x v v ∧ |
| 43 | G.limitMetric.pullbackCoefficients |
| 44 | (extChartAt (𝓡 n) (q i)).symm x v v ≤ b * ‖v‖ ^ 2) ∧ |
| 45 | ∀ r ≤ m, ‖iteratedFDeriv ℝ r (G.limitMetric.pullbackCoefficients |
| 46 | (extChartAt (𝓡 n) (q i)).symm) x‖ ≤ B := by |
| 47 | let := G.limitCarrier.topologicalSpace |
| 48 | let := G.limitCarrier.chartedSpace |
| 49 | let := G.limitCarrier.isManifold |
| 50 | intro q K hK htarget m |
| 51 | obtain ⟨a, b, B, ha, hb, hB, htail⟩ := |
| 52 | G.exists_eventual_finite_chart_bounds q K hK htarget m |
| 53 | refine ⟨a, b, B, ha, hb, hB, ?_⟩ |
| 54 | intro i x hx |
| 55 | constructor |
| 56 | · intro v |
| 57 | have hcoeff := (G.tendstoUniformlyOn_chart_coefficients |
| 58 | (q i) (K i) (hK i) (htarget i)).tendsto_at hx |
| 59 | have heval : Continuous (fun B : EuclideanSpace ℝ (Fin n) →L[ℝ] |
| 60 | EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ => B v v) := |
| 61 | (continuous_id.clm_apply continuous_const).clm_apply continuous_const |
| 62 | have hvalue := heval.continuousAt.tendsto.comp hcoeff |
| 63 | exact ⟨ge_of_tendsto hvalue (htail.mono fun k hk => (hk i x hx).1 v |>.1), |
| 64 | le_of_tendsto hvalue (htail.mono fun k hk => (hk i x hx).1 v |>.2)⟩ |
| 65 | · intro r hr |
| 66 | exact le_of_tendsto |
| 67 | (((G.metric_jets (q i) r (K i) (hK i) (htarget i)).tendsto_at hx).norm) |
| 68 | (htail.mono fun k hk => (hk i x hx).2 r hr) |
| 69 | |
| 70 | end PoincareMT.M28.RegularPointedMetricConvergence |