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.CurveShortening.Ramp.Adapters |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.CurveEstimates.Smooth.Relabeling |
| 3 | |
| 4 | /-! |
| 5 | # Intrinsic jets through a shorter final endpoint |
| 6 | |
| 7 | A genuine smooth solution on a larger slab supplies all intrinsic |
| 8 | jets on every positive closed subslab of a strictly shorter one. |
| 9 | MT2007 Lemma 19.24, p. 455; |
| 10 | `2026-09-22-smooth-local-existence-assembly.md`, statement 1. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M63 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | {a b : ℝ} |
| 25 | |
| 26 | /-- A larger actual smooth slab covers the intrinsic jets at every |
| 27 | included positive time of a strictly shorter slab. MT2007 Lemma |
| 28 | 19.24, p. 455; smooth local existence assembly, statement 1. -/ |
| 29 | theorem intrinsic_regularity_on_shorter_smooth_slab |
| 30 | (F : RicciFlow n M (Icc a b)) (c : ℝ → ℝ → M) |
| 31 | {S T : ℝ} (haS : a < S) (hST : S < T) (hTb : T ≤ b) |
| 32 | (hc : M63SmoothShrinkingCurveOn F c (Icc a T)) : |
| 33 | M63IntrinsicRegularityOn F c (Icc a S) := by |
| 34 | have haT : a < T := haS.trans hST |
| 35 | have hsub : Icc a T ⊆ Icc a b := fun _ ht => ⟨ht.1, ht.2.trans hTb⟩ |
| 36 | let F' := m63RestrictClosedFlow F a T hsub haT |
| 37 | have hc' : M62ShrinkingCurve F' c := m63SmoothRestriction hc a T Subset.rfl haT |
| 38 | have hjet (i : ℕ) : m63CurvatureJet F' c i = m63CurvatureJet F c i := by |
| 39 | induction i with |
| 40 | | zero => rfl |
| 41 | | succ i ih => |
| 42 | funext t x |
| 43 | simp only [m63CurvatureJet, ih] |
| 44 | rfl |
| 45 | have hj (i : ℕ) : ContMDiffOn 𝓘(ℝ, ℝ × ℝ) (𝓡 n).tangent ∞ |
| 46 | (fun z : ℝ × ℝ => |
| 47 | (⟨c z.1 z.2, m63CurvatureJet F c i z.2 z.1⟩ : TangentBundle (𝓡 n) M)) |
| 48 | (univ ×ˢ Ioo a T) := by |
| 49 | simpa only [hjet] using curvatureJet_joint_contMDiff F' c hc' i |
| 50 | refine ⟨?_, ?_⟩ |
| 51 | · intro i |
| 52 | rw [interior_Icc] |
| 53 | exact ((hj i).of_le (by simp)).mono |
| 54 | (fun _ hz => ⟨hz.1, hz.2.1, hz.2.2.trans hST⟩) |
| 55 | · intro s R has _hsR hinside i |
| 56 | apply (hj i).continuousOn.mono |
| 57 | intro z hz |
| 58 | exact ⟨hz.1, has.trans_le hz.2.1, (hinside hz.2).2.trans_lt hST⟩ |
| 59 | |
| 60 | end PoincareMT.M63 |