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.Riemannian.Coordinates.Orthonormal |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.FiniteOrder.Pullback |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.PrecompactGauss |
| 5 | |
| 6 | /-! |
| 7 | # Generic terminal jets of an actual normal chart |
| 8 | |
| 9 | The finite-order Gauss pullback estimate is applied directly to one retained |
| 10 | normal chart. No pointed-flow compactness hypothesis, subsequence, or limit |
| 11 | flow is introduced. Source: Morgan--Tian Theorem 5.6, pp. 86-87, and |
| 12 | the source-diagonal-route review of 2026-09-26. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter Metric |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 27 | normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | set_option maxHeartbeats 800000 in |
| 30 | -- Elaborating the dependent normal-chart pullback and Gauss estimates needs this budget. |
| 31 | /-- For every finite jet order, a curvature-derivative bound on one actual |
| 32 | normal chart gives a bound selected before the manifold, metric, connection, |
| 33 | and chart. The radial geodesic and speed identities supply the Gauss identity |
| 34 | required by the finite-order pullback estimate. Source: Morgan--Tian |
| 35 | Theorem 5.6, pp. 86-87; M28 source-diagonal-route review. -/ |
| 36 | theorem exists_uniform_normal_chart_metric_jet_bound |
| 37 | (n m : ℕ) {rho R : ℝ} (hrho : 0 < rho) (hrhoR : rho < R) |
| 38 | (C : ℕ → ℝ) (hC : ∀ l, 0 ≤ C l) : |
| 39 | ∃ B : ℝ, 0 ≤ B ∧ |
| 40 | ∀ {M : Type u} [TopologicalSpace M] |
| 41 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 42 | [IsManifold (𝓡 n) ∞ M] |
| 43 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (p : M) |
| 44 | (L : EuclideanSpace ℝ (Fin n) ≃L[ℝ] EuclideanSpace ℝ (Fin n)) |
| 45 | (Phi : PartialDiffeomorph (𝓡 n) (𝓡 n) |
| 46 | (EuclideanSpace ℝ (Fin n)) M ∞), |
| 47 | Phi.source = Metric.ball 0 R → |
| 48 | Phi 0 = p → |
| 49 | (∀ v w, g.pullbackCoefficients (extChartAt (𝓡 n) p).symm |
| 50 | (extChartAt (𝓡 n) p p) (L v) (L w) = inner ℝ v w) → |
| 51 | HasFDerivAt (fun w => extChartAt (𝓡 n) p (Phi w)) |
| 52 | L.toContinuousLinearMap 0 → |
| 53 | (∀ v ∈ Metric.ball 0 R, |
| 54 | g.IsGeodesicOn (fun t => Phi (t • v)) |
| 55 | {t : ℝ | t • v ∈ Metric.ball 0 R}) → |
| 56 | (∀ v ∈ Metric.ball 0 R, ∀ t ∈ Icc (0 : ℝ) 1, |
| 57 | g.tangentNorm (Phi (t • v)) |
| 58 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 n) (fun s : ℝ => Phi (s • v)) t 1) = ‖v‖) → |
| 59 | (∀ l ≤ m, ∀ x ∈ Metric.ball 0 R, |
| 60 | D.curvatureDerivativeNorm l (Phi x) ≤ C l) → |
| 61 | ∀ x ∈ Metric.closedBall (0 : EuclideanSpace ℝ (Fin n)) rho, |
| 62 | ‖iteratedFDeriv ℝ m (g.pullbackCoefficients Phi) x‖ ≤ B := by |
| 63 | obtain ⟨B, hB, hbound⟩ := |
| 64 | CoordinateExponential.exists_uniform_pullback_metric_jet_bound |
| 65 | n m hrho hrhoR C hC |
| 66 | refine ⟨B, hB, ?_⟩ |
| 67 | intro M _ _ _ g D p L Phi hsource hzero hL hderiv hgeo hspeed hcurv |
| 68 | let : Bundle.RiemannianBundle |
| 69 | (TangentSpace (𝓡 n) : M → Type _) := ⟨g.toRiemannianMetric⟩ |
| 70 | have hR : 0 < R := hrho.trans hrhoR |
| 71 | have he : ContMDiffOn (𝓡 n) (𝓡 n) ∞ Phi (Metric.ball 0 R) := by |
| 72 | simpa only [hsource] using Phi.contMDiffOn |
| 73 | have hi : ∀ x ∈ Metric.ball 0 R, |
| 74 | (mfderiv (𝓡 n) (𝓡 n) Phi x).IsInvertible := by |
| 75 | intro x hx |
| 76 | exact ⟨(Phi.isLocalDiffeomorphAt (𝓡 n) (𝓡 n) ∞ |
| 77 | (hsource.symm ▸ hx)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 78 | have hnorm := g.pullbackCoefficients_zero_of_orthonormal p |
| 79 | (he.contMDiffAt (Metric.isOpen_ball.mem_nhds (Metric.mem_ball_self hR))) |
| 80 | hzero hderiv hL |
| 81 | apply hbound g D Phi he |
| 82 | · exact hi |
| 83 | · exact hnorm |
| 84 | · exact CoordinateExponential.gauss_identity_of_radial_family |
| 85 | g he hgeo hspeed |
| 86 | · exact hcurv |
| 87 | |
| 88 | end PoincareMT.M28 |