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.ReducedGeometry.ReducedVolume.Regularity.Lipschitz.SpacetimeLipschitz |
| 2 | |
| 3 | /-! |
| 4 | # Local Lipschitz regularity on each fixed slice |
| 5 | |
| 6 | Restriction of the actual spacetime estimate to a fixed interior time is |
| 7 | locally Lipschitz for the terminal metric. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped Manifold ContDiff Bundle Topology NNReal ENNReal |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.ReducedVolume |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | [ConnectedSpace M] [T3Space M] |
| 22 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false in |
| 25 | /-- Every interior slice is locally Lipschitz in the same terminal metric. -/ |
| 26 | theorem reducedLength_slice_locallyLipschitz |
| 27 | (hL : LGeodesicTheory F T τmax) |
| 28 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 29 | (hwindow : Icc (T - τmax) T ⊆ J) (p : M) |
| 30 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 31 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 32 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 33 | letI : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 34 | (TangentSpace (𝓡 n) : M → Type _) := |
| 35 | ⟨⟨(F.metric T).inner, (F.metric T).toContinuousRiemannianMetric.continuous, |
| 36 | fun _ _ _ ↦ rfl⟩⟩ |
| 37 | letI : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 38 | LocallyLipschitz (fun q ↦ reducedLength F T p q τ) := by |
| 39 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 40 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 41 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 42 | (TangentSpace (𝓡 n) : M → Type _) := |
| 43 | ⟨⟨(F.metric T).inner, (F.metric T).toContinuousRiemannianMetric.continuous, |
| 44 | fun _ _ _ ↦ rfl⟩⟩ |
| 45 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 46 | have hfull := reducedLength_locallyLipschitz hL hDifferential hwindow p |
| 47 | change LocallyLipschitzOn (univ ×ˢ Ioo 0 τmax) |
| 48 | (fun z : M × ℝ ↦ reducedLength F T p z.1 z.2) at hfull |
| 49 | intro q |
| 50 | obtain ⟨K, U, hU, hLip⟩ := hfull (x := (q, τ)) ⟨mem_univ _, hτ, hmax⟩ |
| 51 | rw [nhdsWithin_eq_nhds.mpr ((isOpen_univ.prod isOpen_Ioo).mem_nhds |
| 52 | (show (q, τ) ∈ (univ : Set M) ×ˢ Ioo 0 τmax from ⟨mem_univ _, hτ, hmax⟩))] at hU |
| 53 | refine ⟨K, (fun x : M ↦ (x, τ)) ⁻¹' U, |
| 54 | (continuous_id.prodMk continuous_const).continuousAt.preimage_mem_nhds hU, ?_⟩ |
| 55 | simpa only [mul_one, Function.comp_def] using |
| 56 | hLip.comp (LipschitzWith.prodMk_right τ).lipschitzOnWith (mapsTo_preimage _ _) |
| 57 | |
| 58 | end PoincareMT.ReducedVolume |