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.AnnularEvolution.Plateau.Stabilization.Separation.Evolution |
| 2 | import PoincareLib.Geometry.RicciFlow.Product.Circle.Flow |
| 3 | |
| 4 | /-! Lemma 19.15 and Corollary 19.16 for the actual M63 geometry. |
| 5 | M63 preserves the original ramps. Constructed separated minima, finite |
| 6 | first variation, interval comparison and the actual area limit supply |
| 7 | both evolution estimates, including the initial endpoint. |
| 8 | Source: Morgan--Tian, pp. 447-449. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | set_option autoImplicit false |
| 12 | set_option warningAsError true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Topology ContDiff Manifold |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- Complete annular evolution in every positive base dimension, using only the original M63 |
| 23 | analytic conclusion and actual compact geometry. Source: Morgan--Tian (2007), Lemma 19.15 |
| 24 | and Corollary 19.16, pp. 447-449; project derivation |
| 25 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 26 | theorem m64AnnulusEvolution_of_M63 |
| 27 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 29 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} |
| 30 | (G : M63AmbientGeometry F) (analytic : M63AnalyticConclusion F G) |
| 31 | (hcompact : IsCompact (univ : Set M)) (hn : 1 ≤ n) : |
| 32 | M64AnnulusEvolution G := by |
| 33 | let : CompactSpace M := isCompact_univ_iff.mp hcompact |
| 34 | have hab : a < b := by |
| 35 | obtain ⟨s, hs, t, ht, hst⟩ := F.nontrivial.exists_lt |
| 36 | exact hs.1.trans_lt (hst.trans_le ht.2) |
| 37 | refine { |
| 38 | curvature_bounded := fun _ ht => m64CurvatureRange_bddAbove_of_compact hcompact ht |
| 39 | curvature_nonnegative := fun _ ht => |
| 40 | m64CurvatureSupremum_nonneg (m64CurvatureRange_bddAbove_of_compact hcompact ht) |
| 41 | curvature_continuous := m64CurvatureSupremum_continuous_of_compact hcompact |
| 42 | curves := ?_ } |
| 43 | intro circumference h c0 c1 hc0 hc1 hr0 hr1 _hd0 _hd1 A0 |
| 44 | let P := G.product circumference h |
| 45 | let : Fact (0 < circumference) := ⟨h⟩ |
| 46 | obtain ⟨Q⟩ := M62.nonempty_circleProductData P.flow 1 (by norm_num) |
| 47 | have hramp0 := (analytic.preservation circumference h b hab le_rfl c0 hc0 hr0).positive |
| 48 | have hramp1 := (analytic.preservation circumference h b hab le_rfl c1 hc1 hr1).positive |
| 49 | have hest := M64.auxiliaryCircle_ramp_evolution P Q hn hc0 hc1 |
| 50 | (fun t ht => hramp0 t (Ioo_subset_Icc_self ht)) |
| 51 | (fun t ht => hramp1 t (Ioo_subset_Icc_self ht)) A0 G.nonnegative.1 G.bounds |
| 52 | exact { |
| 53 | nonempty := m64AnnulusFlow_nonempty_of_initial hcompact h P hc0 hc1 A0 |
| 54 | bounded_below := fun _ _ => m64AnnulusAreaRange_bddBelow _ _ _ |
| 55 | nonnegative := m64AnnulusFlow_nonnegative_of_initial hcompact h P hc0 hc1 A0 |
| 56 | continuous := m64AnnulusFlow_continuous_of_initial hcompact h P hc0 hc1 A0 |
| 57 | forward := hest.1 |
| 58 | exponential := hest.2 } |
| 59 | |
| 60 | end PoincareMT |