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.ReducedLength.Minimum.Variational.Regularity.Euler |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variational.Regularity |
| 3 | |
| 4 | /-! |
| 5 | # Smooth local minimizers on ancient surfaces |
| 6 | |
| 7 | Square time maps the entire real line into the ancient flow domain, including |
| 8 | the initial endpoint. The actual scalar potential is smooth by the frozen |
| 9 | ancient-flow hypotheses, so the coordinate Euler regularity applies. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 17 | |
| 18 | namespace PoincareMT.AncientKappaSolution |
| 19 | |
| 20 | open ReducedLengthMinimum.Variational |
| 21 | |
| 22 | variable {M : Type*} [MetricSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 24 | [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] [ConnectedSpace M] |
| 25 | |
| 26 | /-- Every actual local H1 chart minimizer on an ancient surface is smooth, |
| 27 | including both endpoints in the square-time parameter. -/ |
| 28 | theorem chart_minimum_contMDiffOn (K : AncientKappaSolution 2 M) |
| 29 | {a b : ℝ} (hab : a < b) (x : M) (γ : ℝ → M) |
| 30 | (hγ : ContinuousOn γ (Icc a b)) |
| 31 | (hsrc : MapsTo γ (Icc a b) (chartAt (EuclideanSpace ℝ (Fin 2)) x).source) |
| 32 | (w : IntervalL2 (EuclideanSpace ℝ (Fin 2)) a b) |
| 33 | (hw : ∀ s ∈ Icc a b, extChartAt (𝓡 2) x (γ s) = |
| 34 | extChartAt (𝓡 2) x (γ a) + ∫ r in a..s, w r) |
| 35 | (hmin : IsChartH1Minimizer K.flow 0 x a b γ w) : |
| 36 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 2) ∞ γ (Icc a b) := by |
| 37 | have hpre : ((fun r : ℝ => 0 - r ^ 2) ⁻¹' Iic (0 : ℝ)) = univ := by |
| 38 | ext r |
| 39 | simp only [mem_preimage, mem_Iic, mem_univ, iff_true] |
| 40 | nlinarith [sq_nonneg r] |
| 41 | have htime (s : ℝ) (_hs : s ∈ Icc a b) : |
| 42 | s ∈ interior ((fun r : ℝ => 0 - r ^ 2) ⁻¹' Iic (0 : ℝ)) := by |
| 43 | rw [hpre, interior_univ] |
| 44 | exact mem_univ s |
| 45 | have hchart := (chart_minimum_smooth_momentum K.flow 0 |
| 46 | K.regularizedPotential_contMDiff hab x γ hγ hsrc htime w hw hmin).1 |
| 47 | let e := extChartAt (𝓡 2) x |
| 48 | have hsrc' : MapsTo γ (Icc a b) e.source := by |
| 49 | simpa only [e, extChartAt_source] using hsrc |
| 50 | have htarget : MapsTo (e ∘ γ) (Icc a b) e.target := |
| 51 | fun s hs => e.map_source (hsrc' hs) |
| 52 | have hcomp := (contMDiffOn_extChartAt_symm (I := 𝓡 2) x).comp |
| 53 | hchart.contMDiffOn htarget |
| 54 | apply hcomp.congr |
| 55 | intro s hs |
| 56 | exact (e.left_inv (hsrc' hs)).symm |
| 57 | |
| 58 | end PoincareMT.AncientKappaSolution |