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.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Local.Geometry.LocalShiHomothetyCurvature |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.CurvatureNaturality |
| 5 | |
| 6 | /-! |
| 7 | # Covariant curvature derivatives of an ordinary parabolic rescaling |
| 8 | |
| 9 | The chosen M13 flow has the exact metric scaling at every real time. |
| 10 | Local-isometry naturality compares its genuine connection with the |
| 11 | constant-scale connection, giving the factor `sqrt(Q)^(-(m+2))`. |
| 12 | Morgan--Tian Definition 3.40, p. 61, and Proposition 5.14, pp. 90-91; |
| 13 | M28 derivation 74. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 27 | [IsManifold (𝓡 n) ∞ M] [T2Space M] |
| 28 | {I : SpacetimeInterval} {F : RicciFlow n M I.domain} |
| 29 | {Q a : ℝ} {hQ : 0 < Q} |
| 30 | |
| 31 | /-- All covariant-curvature derivative norms have the exact parabolic |
| 32 | scale factor, for the actual selected M13 connection (derivation 74). -/ |
| 33 | theorem ordinaryRescaling_curvatureDerivativeNorm |
| 34 | (R : OrdinaryParabolicRescaling F Q hQ a) (s : ℝ) (m : ℕ) (x : M) : |
| 35 | (R.flow.connection s).curvatureDerivativeNorm m x = |
| 36 | (Real.sqrt Q)⁻¹ ^ (m + 2) * |
| 37 | (F.connection (parabolicTimeInv Q a s)).curvatureDerivativeNorm m x := by |
| 38 | let D := F.connection (parabolicTimeInv Q a s) |
| 39 | let DQ := M13.scaleLeviCivitaData D Q hQ |
| 40 | have hinv : ∀ y ∈ (univ : Set M), |
| 41 | (mfderiv (𝓡 n) (𝓡 n) (id : M → M) y).IsInvertible := by |
| 42 | intro y _ |
| 43 | rw [mfderiv_id] |
| 44 | exact ⟨ContinuousLinearEquiv.refl ℝ _, rfl⟩ |
| 45 | have hmetric : ∀ y ∈ (univ : Set M), ∀ v w : TangentSpace (𝓡 n) y, |
| 46 | (R.flow.metric s).inner y v w = |
| 47 | (M13.scaleSmoothMetric (F.metric (parabolicTimeInv Q a s)) Q hQ).inner y |
| 48 | (mfderiv (𝓡 n) (𝓡 n) (id : M → M) y v) |
| 49 | (mfderiv (𝓡 n) (𝓡 n) (id : M → M) y w) := by |
| 50 | intro y _ v w |
| 51 | simp only [mfderiv_id] |
| 52 | change (R.flow.metric s).inner y v w = |
| 53 | Q * (F.metric (parabolicTimeInv Q a s)).inner y v w |
| 54 | exact R.metric_eq s y v w |
| 55 | have hlocal := (R.flow.connection s).curvatureDerivativeNorm_eq_pullback DQ |
| 56 | isOpen_univ contMDiff_id.contMDiffOn hinv hmetric m (mem_univ x) |
| 57 | change (R.flow.connection s).curvatureDerivativeNorm m x = |
| 58 | DQ.curvatureDerivativeNorm m x at hlocal |
| 59 | rw [hlocal, scale_curvatureDerivativeNorm_eq] |
| 60 | have hcancel : Q * (Real.sqrt Q)⁻¹ ^ 2 = 1 := by |
| 61 | rw [inv_pow, Real.sq_sqrt hQ.le, mul_inv_cancel₀ hQ.ne'] |
| 62 | rw [show 4 + m = 2 + (m + 2) by omega, pow_add, ← mul_assoc Q, hcancel, one_mul] |
| 63 | |
| 64 | end PoincareMT.M28 |