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.Riemannian.LoopSpace.Area.Infimum |
| 3 | |
| 4 | /-! |
| 5 | # Filling-infimum arithmetic for the two gluing directions |
| 6 | |
| 7 | The geometric collar construction supplies both directions with an arbitrary |
| 8 | positive slack. This file records the separate order-theoretic passage from |
| 9 | those witnesses to the absolute filling-area bound. The two nonemptiness |
| 10 | hypotheses are kept explicit because `fillingArea` is a totalized infimum. |
| 11 | |
| 12 | Morgan--Tian context: Section 19.6, Lemmas 19.30-19.31, printed pp. 461-466. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 25 | {g : RiemannianMetric 3 M} |
| 26 | {gamma0 gamma1 : C1FreeLoopSpace (M := M)} |
| 27 | |
| 28 | /-! A forward gluing estimate, with arbitrary positive slack, controls the |
| 29 | first filling infimum. -/ |
| 30 | /-- A quantified forward disk-gluing estimate bounds the upper filling infimum using a |
| 31 | genuine near-minimizer. Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual |
| 32 | half-disk collar in `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 33 | theorem m64FillingArea_le_add_of_forward |
| 34 | {q : ℝ} |
| 35 | (hD0 : Nonempty (LipschitzSpanningDisk g gamma0)) |
| 36 | (hforward : ∀ eta : ℝ, 0 < eta → |
| 37 | ∀ D0 : LipschitzSpanningDisk g gamma0, |
| 38 | ∃ D1 : LipschitzSpanningDisk g gamma1, |
| 39 | D1.area ≤ D0.area + q + eta) : |
| 40 | fillingArea g gamma1 ≤ fillingArea g gamma0 + q := by |
| 41 | apply le_of_forall_pos_le_add |
| 42 | intro epsilon hepsilon |
| 43 | obtain ⟨D0⟩ := hD0 |
| 44 | obtain ⟨Dnear, hnear⟩ := m60FillingArea_near_minimizer_of_disk g gamma0 D0 |
| 45 | (half_pos hepsilon) |
| 46 | obtain ⟨D1, hglue⟩ := hforward (epsilon / 2) (half_pos hepsilon) Dnear |
| 47 | have hle := m60FillingArea_le_disk g gamma1 D1 |
| 48 | have hq' : D1.area < fillingArea g gamma0 + q + epsilon := by |
| 49 | calc |
| 50 | D1.area ≤ Dnear.area + q + epsilon / 2 := hglue |
| 51 | _ < (fillingArea g gamma0 + epsilon / 2) + q + epsilon / 2 := by |
| 52 | linarith |
| 53 | _ = fillingArea g gamma0 + q + epsilon := by ring |
| 54 | have hq : D1.area ≤ fillingArea g gamma0 + q + epsilon := hq'.le |
| 55 | linarith |
| 56 | |
| 57 | /-! The reverse direction is the same estimate with the boundary labels |
| 58 | exchanged. -/ |
| 59 | /-- The reverse gluing estimate gives the opposite guarded filling-infimum inequality. |
| 60 | Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual half-disk collar in |
| 61 | `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 62 | theorem m64FillingArea_le_add_of_reverse |
| 63 | {q : ℝ} |
| 64 | (hD1 : Nonempty (LipschitzSpanningDisk g gamma1)) |
| 65 | (hreverse : ∀ eta : ℝ, 0 < eta → |
| 66 | ∀ D1 : LipschitzSpanningDisk g gamma1, |
| 67 | ∃ D0 : LipschitzSpanningDisk g gamma0, |
| 68 | D0.area ≤ D1.area + q + eta) : |
| 69 | fillingArea g gamma0 ≤ fillingArea g gamma1 + q := by |
| 70 | apply le_of_forall_pos_le_add |
| 71 | intro epsilon hepsilon |
| 72 | obtain ⟨D1⟩ := hD1 |
| 73 | obtain ⟨Dnear, hnear⟩ := m60FillingArea_near_minimizer_of_disk g gamma1 D1 |
| 74 | (half_pos hepsilon) |
| 75 | obtain ⟨D0, hglue⟩ := hreverse (epsilon / 2) (half_pos hepsilon) Dnear |
| 76 | have hle := m60FillingArea_le_disk g gamma0 D0 |
| 77 | have hq' : D0.area < fillingArea g gamma1 + q + epsilon := by |
| 78 | calc |
| 79 | D0.area ≤ Dnear.area + q + epsilon / 2 := hglue |
| 80 | _ < (fillingArea g gamma1 + epsilon / 2) + q + epsilon / 2 := by |
| 81 | linarith |
| 82 | _ = fillingArea g gamma1 + q + epsilon := by ring |
| 83 | have hq : D0.area ≤ fillingArea g gamma1 + q + epsilon := hq'.le |
| 84 | linarith |
| 85 | |
| 86 | /-! The guarded infimum comparison used by `M64DiskGluingConclusion`. -/ |
| 87 | /-- Both actual disk-gluing estimates bound the absolute difference of filling areas by the |
| 88 | collar area. Source: Auxiliary step for MT Lemma 19.30, p. 462; the actual half-disk collar |
| 89 | in `proof-work/tasks/M64/reports/2026-09-24-sharp-polar-collar.md`. -/ |
| 90 | theorem m64FillingArea_abs_sub_le_of_gluing |
| 91 | {q : ℝ} |
| 92 | (hD0 : Nonempty (LipschitzSpanningDisk g gamma0)) |
| 93 | (hD1 : Nonempty (LipschitzSpanningDisk g gamma1)) |
| 94 | (hforward : ∀ eta : ℝ, 0 < eta → |
| 95 | ∀ D0 : LipschitzSpanningDisk g gamma0, |
| 96 | ∃ D1 : LipschitzSpanningDisk g gamma1, |
| 97 | D1.area ≤ D0.area + q + eta) |
| 98 | (hreverse : ∀ eta : ℝ, 0 < eta → |
| 99 | ∀ D1 : LipschitzSpanningDisk g gamma1, |
| 100 | ∃ D0 : LipschitzSpanningDisk g gamma0, |
| 101 | D0.area ≤ D1.area + q + eta) : |
| 102 | |fillingArea g gamma1 - fillingArea g gamma0| ≤ q := by |
| 103 | have h01 := m64FillingArea_le_add_of_forward hD0 hforward |
| 104 | have h10 := m64FillingArea_le_add_of_reverse hD1 hreverse |
| 105 | rw [abs_le] |
| 106 | constructor <;> linarith |
| 107 | |
| 108 | end PoincareMT |