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.LimitFiniteChartBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Analysis.Geometry.RelativeBilinearComparison |
| 4 | |
| 5 | /-! |
| 6 | # Relative metric comparison on one compact chart region |
| 7 | |
| 8 | Actual zeroth-jet convergence and a fixed positive limit ellipticity |
| 9 | constant give one relative quadratic comparison tail. Source: |
| 10 | Morgan--Tian Theorem 5.6, pp. 85-87; M28 derivation 118. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 12 |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28.RegularPointedMetricConvergence |
| 23 | |
| 24 | variable {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 25 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 26 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 27 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} |
| 28 | |
| 29 | /-- The same retained source coefficients are uniformly comparable to |
| 30 | the actual limit coefficients on every fixed compact chart set. Source: |
| 31 | Theorem 5.6, pp. 85-87; M28 derivation 118. -/ |
| 32 | theorem eventually_chart_relative_inner_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 | IsCompact K → K ⊆ (extChartAt (𝓡 n) q).target → |
| 38 | ∀ tau : ℝ, 0 < tau → ∀ᶠ k in atTop, ∀ x ∈ K, |
| 39 | ∀ v : EuclideanSpace ℝ (Fin n), |
| 40 | (1 + tau)⁻¹ * G.limitMetric.pullbackCoefficients |
| 41 | (extChartAt (𝓡 n) q).symm x v v ≤ |
| 42 | (g (G.subsequence k)).pullbackCoefficients |
| 43 | (G.embedding k ∘ (extChartAt (𝓡 n) q).symm) x v v ∧ |
| 44 | (g (G.subsequence k)).pullbackCoefficients |
| 45 | (G.embedding k ∘ (extChartAt (𝓡 n) q).symm) x v v ≤ |
| 46 | (1 + tau) * G.limitMetric.pullbackCoefficients |
| 47 | (extChartAt (𝓡 n) q).symm x v v := by |
| 48 | let := G.limitCarrier.topologicalSpace |
| 49 | let := G.limitCarrier.chartedSpace |
| 50 | let := G.limitCarrier.isManifold |
| 51 | intro q K hK htarget tau htau |
| 52 | obtain ⟨a, _, _, ha, _, _, hbound⟩ := |
| 53 | G.exists_limit_finite_chart_bounds (fun _ : Unit => q) (fun _ => K) |
| 54 | (fun _ => hK) (fun _ => htarget) 0 |
| 55 | have herror : 0 < (tau / (1 + tau)) * a := by positivity |
| 56 | filter_upwards [Metric.tendstoUniformlyOn_iff.mp |
| 57 | (G.tendstoUniformlyOn_chart_coefficients q K hK htarget) _ herror] with k hk |
| 58 | intro x hx v |
| 59 | apply ContinuousLinearMap.relative_quadratic_bounds_of_norm_sub_le _ _ ha htau |
| 60 | (fun w => ((hbound () x hx).1 w).1) _ v |
| 61 | simpa only [dist_eq_norm, norm_sub_rev] using (hk x hx).le |
| 62 | |
| 63 | end PoincareMT.M28.RegularPointedMetricConvergence |