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.Comparison.AnnulusTheory |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Infimum |
| 3 | |
| 4 | /-! |
| 5 | # Forward difference from minimal-annulus competitors |
| 6 | |
| 7 | The first-variation producer supplies an admissible annulus at time `t + h` |
| 8 | whose area is bounded by the attained minimum at time `t` plus an `O(h)` |
| 9 | error. This file performs only the guarded infimum reduction; existence, |
| 10 | regularity, and the first-variation estimate remain explicit producer inputs. |
| 11 | |
| 12 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 13 | 447-449. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 27 | [IsManifold (𝓡 n) ∞ M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Set.Icc a b)} |
| 29 | |
| 30 | /-- Actual future competitors above an attained infimum imply the stated positive-increment |
| 31 | upper forward bound. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. |
| 32 | 447-449; project derivation |
| 33 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 34 | theorem m64AnnulusForward_of_minimal_competitors |
| 35 | {circumference : ℝ} {P : M62.CircleProductData F circumference} |
| 36 | {c0 c1 : ℝ → ℝ → P.charts.Point} {t rate : ℝ} |
| 37 | (A : M64Annulus (P.flow.metric t) |
| 38 | (fun x => c0 x t) (fun x => c1 x t)) |
| 39 | (hmin : A.area = m64FlowAnnulusArea P c0 c1 t) |
| 40 | (hcomp : ∀ eta : ℝ, 0 < eta → ∀ᶠ h : ℝ in 𝓝[>] 0, |
| 41 | ∃ B : M64Annulus (P.flow.metric (t + h)) |
| 42 | (fun x => c0 x (t + h)) (fun x => c1 x (t + h)), |
| 43 | B.area ≤ A.area + h * (rate + eta)) : |
| 44 | AnnulusForwardDerivativeBound (m64FlowAnnulusArea P c0 c1) rate t := by |
| 45 | intro eta heta |
| 46 | filter_upwards [hcomp eta heta, self_mem_nhdsWithin] with h hB hh |
| 47 | obtain ⟨B, hB⟩ := hB |
| 48 | have hleast := m64LeastAnnulusArea_le_annulus B |
| 49 | have hquot : |
| 50 | (m64FlowAnnulusArea P c0 c1 (t + h) - |
| 51 | m64FlowAnnulusArea P c0 c1 t) / h ≤ rate + eta := by |
| 52 | have hleast' : m64FlowAnnulusArea P c0 c1 (t + h) ≤ B.area := by |
| 53 | exact hleast |
| 54 | rw [hmin] at hB |
| 55 | dsimp only [m64FlowAnnulusArea] at hleast' hB ⊢ |
| 56 | rw [div_le_iff₀ hh] |
| 57 | linarith |
| 58 | exact hquot |
| 59 | |
| 60 | end PoincareMT |