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.Sweep.Annulus.Join |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Sweep.Swept.Annulus |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Elementary.Fields |
| 4 | |
| 5 | /-! |
| 6 | # Evolving annulus admissibility from the initial annulus |
| 7 | |
| 8 | Transport the given annulus to the target metric and attach the two actual |
| 9 | C2 boundary sweeps. This constructs an admissible annulus at every included |
| 10 | time, so the guarded infimum has nonempty, bounded-below, nonnegative fields. |
| 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 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} |
| 29 | |
| 30 | /-- An actual initial annulus and the two C2 boundary sweeps construct an admissible annulus |
| 31 | at every included time. Source: MT Lemma 19.15, pp. 447-449, its weak minimum and sweep |
| 32 | construction. -/ |
| 33 | theorem m64Annulus_nonempty_of_c2_sweeps |
| 34 | (hcompact : IsCompact (univ : Set M)) |
| 35 | {c0 c1 : ℝ → ℝ → M} |
| 36 | (hc0 : M63C2ShrinkingCurveOn F c0 (Icc a b)) |
| 37 | (hc1 : M63C2ShrinkingCurveOn F c1 (Icc a b)) |
| 38 | {s t : ℝ} (hs : s ∈ Icc a b) (ht : t ∈ Icc a b) |
| 39 | (A : M64Annulus (F.metric s) (fun x => c0 x s) (fun x => c1 x s)) : |
| 40 | Nonempty (M64Annulus (F.metric t) (fun x => c0 x t) (fun x => c1 x t)) := by |
| 41 | obtain ⟨B, _⟩ := m64Annulus_transport_time F hcompact hs ht A |
| 42 | obtain ⟨S0, _⟩ := m64Annulus_of_c2_sweep hc0 (F.metric t) ht hs |
| 43 | obtain ⟨S1, _⟩ := m64Annulus_of_c2_sweep hc1 (F.metric t) hs ht |
| 44 | obtain ⟨C, _⟩ := m64Annulus_join S0 B |
| 45 | obtain ⟨D, _⟩ := m64Annulus_join C S1 |
| 46 | exact ⟨D⟩ |
| 47 | |
| 48 | /-- Initial admissibility propagates nonemptiness of the annulus class throughout the closed |
| 49 | flow interval. Source: MT Lemma 19.15, pp. 447-449, its weak minimum and sweep construction. -/ |
| 50 | theorem m64AnnulusFlow_nonempty_of_initial |
| 51 | (hcompact : IsCompact (univ : Set M)) |
| 52 | {circumference : ℝ} (hcirc : 0 < circumference) |
| 53 | (P : M62.CircleProductData F circumference) |
| 54 | {c0 c1 : ℝ → ℝ → P.charts.Point} |
| 55 | (hc0 : M63C2ShrinkingCurveOn P.flow c0 (Icc a b)) |
| 56 | (hc1 : M63C2ShrinkingCurveOn P.flow c1 (Icc a b)) |
| 57 | (A : M64Annulus (P.flow.metric a) (fun x => c0 x a) (fun x => c1 x a)) : |
| 58 | ∀ t ∈ Icc a b, Nonempty (M64Annulus (P.flow.metric t) |
| 59 | (fun x => c0 x t) (fun x => c1 x t)) := by |
| 60 | let : CompactSpace M := isCompact_univ_iff.mp hcompact |
| 61 | let : Fact (0 < circumference) := ⟨hcirc⟩ |
| 62 | have hcompactP : IsCompact (univ : Set P.charts.Point) := isCompact_univ |
| 63 | intro t ht |
| 64 | exact m64Annulus_nonempty_of_c2_sweeps hcompactP hc0 hc1 |
| 65 | ⟨le_rfl, ht.1.trans ht.2⟩ ht A |
| 66 | |
| 67 | /-- The nonempty annulus-flow area infimum is nonnegative at every included time. Source: MT |
| 68 | Lemma 19.15, pp. 447-449, its weak minimum and sweep construction. -/ |
| 69 | theorem m64AnnulusFlow_nonnegative_of_initial |
| 70 | (hcompact : IsCompact (univ : Set M)) |
| 71 | {circumference : ℝ} (hcirc : 0 < circumference) |
| 72 | (P : M62.CircleProductData F circumference) |
| 73 | {c0 c1 : ℝ → ℝ → P.charts.Point} |
| 74 | (hc0 : M63C2ShrinkingCurveOn P.flow c0 (Icc a b)) |
| 75 | (hc1 : M63C2ShrinkingCurveOn P.flow c1 (Icc a b)) |
| 76 | (A : M64Annulus (P.flow.metric a) (fun x => c0 x a) (fun x => c1 x a)) : |
| 77 | ∀ t ∈ Icc a b, 0 ≤ m64FlowAnnulusArea P c0 c1 t := |
| 78 | (m64AnnulusFlow_elementary_fields |
| 79 | (m64AnnulusFlow_nonempty_of_initial hcompact hcirc P hc0 hc1 A)).2.2 |
| 80 | |
| 81 | end PoincareMT |