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.NormalCover |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.FiniteOrder.Pullback |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.PrecompactGauss |
| 5 | |
| 6 | /-! |
| 7 | # Curvature controls the chosen regular-component chart jets |
| 8 | |
| 9 | Apply the lower finite-order Gauss estimate to the actual retained normal |
| 10 | maps. Their targets lie in the lower-regularity component where the |
| 11 | curvature estimates hold. This is the normal-coordinate step of |
| 12 | Morgan--Tian Theorem 5.6, printed pp. 85-87; each requested metric jet uses |
| 13 | only finitely many curvature-derivative tails. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | set_option synthInstance.maxHeartbeats 100000 in |
| 27 | -- Nested metric-jet operator norms need the same instance-search budget as M07 bounds. |
| 28 | /-- Actual regular-component curvature bounds control every chosen chart |
| 29 | jet, uniformly over all covers with the fixed radii. Theorem 5.6, |
| 30 | printed pp. 85-87. There is no all-orders common-tail assumption. -/ |
| 31 | theorem eventually_regular_normalCover_jet_bound_of_curvature |
| 32 | {n : ℕ} {M : ℕ → Type u} [∀ k, TopologicalSpace (M k)] |
| 33 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M k)] |
| 34 | [∀ k, IsManifold (𝓡 n) ∞ (M k)] |
| 35 | {g : ∀ k, RiemannianMetric n (M k)} {p : ∀ k, M k} |
| 36 | (D : ∀ k, LeviCivitaData (g k)) {δ R ρ : ℝ} {N : ℕ} |
| 37 | (hρ : 0 < ρ) (hρR : ρ < R) |
| 38 | (hcurv : ∀ l, ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ k in atTop, |
| 39 | ∀ x ∈ regularComponent (g k) (p k) (2 * δ), |
| 40 | (D k).curvatureDerivativeNorm l x ≤ C) |
| 41 | (m : ℕ) : |
| 42 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 43 | ∀ C : RegularNormalChartCover (g k) (p k) δ R ρ N, |
| 44 | ∀ i : Fin (N + 1), ∀ x ∈ Metric.closedBall 0 ρ, |
| 45 | ‖iteratedFDeriv ℝ m ((g k).pullbackCoefficients (C.chart i)) x‖ ≤ B := by |
| 46 | have hR : 0 < R := hρ.trans hρR |
| 47 | choose B hB hbound using hcurv |
| 48 | obtain ⟨C, hC, hjet⟩ := CoordinateExponential.exists_uniform_pullback_metric_jet_bound |
| 49 | n m hρ hρR B hB |
| 50 | refine ⟨C, hC, ?_⟩ |
| 51 | filter_upwards [(eventually_all_finite (Set.finite_Iic m)).mpr |
| 52 | (fun l _ => hbound l)] with k hk |
| 53 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M k → Type _) := |
| 54 | ⟨(g k).toRiemannianMetric⟩ |
| 55 | intro C i x hx |
| 56 | obtain ⟨L, hL, hderiv⟩ := C.normalized i |
| 57 | have he : ContMDiffOn (𝓡 n) (𝓡 n) ∞ (C.chart i) (Metric.ball 0 R) := by |
| 58 | simpa only [C.source] using (C.chart i).contMDiffOn |
| 59 | have hnorm := (g k).pullbackCoefficients_zero_of_orthonormal (C.centre i) |
| 60 | (he.contMDiffAt (Metric.isOpen_ball.mem_nhds (Metric.mem_ball_self hR))) |
| 61 | (C.map_zero i) hderiv hL |
| 62 | apply hjet (g k) (D k) (C.chart i) he |
| 63 | · intro y hy |
| 64 | exact ⟨((C.chart i).isLocalDiffeomorphAt (𝓡 n) (𝓡 n) ∞ |
| 65 | ((C.source i).symm ▸ hy)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 66 | · exact hnorm |
| 67 | · exact CoordinateExponential.gauss_identity_of_radial_family (g k) he |
| 68 | (C.radial_geodesic i) (fun v hv t ht => |
| 69 | (g k).tangentNorm_radial_of_normalized_exponential (C.centre i) L |
| 70 | (C.map_zero i) hL hderiv (C.radial_geodesic i) hv ht) |
| 71 | · intro l hl y hy |
| 72 | apply hk l hl (C.chart i y) |
| 73 | exact C.target_regular i ((C.chart i).map_source ((C.source i).symm ▸ hy)) |
| 74 | · exact hx |
| 75 | |
| 76 | end PoincareMT.M28 |