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.Modulus.FreeBoundaryTransport |
| 2 | |
| 3 | /-! |
| 4 | # Exact annular area ranges under monotone boundary relabeling |
| 5 | |
| 6 | The zero-area scalar collars transport every annulus in both directions |
| 7 | between the original and independently relabeled boundaries. Consequently |
| 8 | the full area ranges, their infima, and existence of minimizers agree. |
| 9 | The lifts may collapse intervals; no inverse lift is used. |
| 10 | |
| 11 | This is boundary bookkeeping for Morgan--Tian Lemma 19.15, pp. 447-449, |
| 12 | and Lemma 19.31, pp. 464-466. See the auxiliary derivation at |
| 13 | `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M64 |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | {g : RiemannianMetric n M} {c0 c1 : ℝ → M} |
| 27 | |
| 28 | section Lipschitz |
| 29 | |
| 30 | variable (hc0 : Continuous c0) (hp0 : Function.Periodic c0 curvePeriod) |
| 31 | (hL0 : ∃ L : ℝ, 0 ≤ L ∧ ∀ x y : ℝ, |
| 32 | g.edist (c0 x) (c0 y) ≤ ENNReal.ofReal L * ENNReal.ofReal |x - y|) |
| 33 | (hc1 : Continuous c1) (hp1 : Function.Periodic c1 curvePeriod) |
| 34 | (hL1 : ∃ L : ℝ, 0 ≤ L ∧ ∀ x y : ℝ, |
| 35 | g.edist (c1 x) (c1 y) ≤ ENNReal.ofReal L * ENNReal.ofReal |x - y|) |
| 36 | (sigma0 sigma1 : M64PeriodicDegreeOneLift) |
| 37 | |
| 38 | include hc0 hp0 hL0 hc1 hp1 hL1 |
| 39 | |
| 40 | /-- Reverse the first zero-area collar and retain the second one to relabel both boundaries |
| 41 | at exactly the original area. This supplies the fixed-to-free direction needed in MT2007 |
| 42 | Lemma 19.31, pp. 464-466. Source: Morgan--Tian (2007), Lemma 19.15, pp. 447-449, and Lemma |
| 43 | 19.31, pp. 464-466; project derivation |
| 44 | `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. -/ |
| 45 | theorem annulus_exists_relabel_boundaries (A : M64Annulus g c0 c1) : |
| 46 | ∃ B : M64Annulus g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map), B.area = A.area := by |
| 47 | obtain ⟨C0, _hmap0, harea0⟩ := m64_zero_area_boundary_collar g c0 sigma0.map |
| 48 | hc0 hp0 hL0 (m64PeriodicDegreeOneLift_continuous_map sigma0) sigma0.period_shift |
| 49 | ⟨sigma0.lipschitz_constant, sigma0.lipschitz_nonnegative, sigma0.lipschitz_on⟩ |
| 50 | obtain ⟨C1, _hmap1, harea1⟩ := m64_zero_area_boundary_collar g c1 sigma1.map |
| 51 | hc1 hp1 hL1 (m64PeriodicDegreeOneLift_continuous_map sigma1) sigma1.period_shift |
| 52 | ⟨sigma1.lipschitz_constant, sigma1.lipschitz_nonnegative, sigma1.lipschitz_on⟩ |
| 53 | obtain ⟨D, _hmapD, hareaD⟩ := m64Annulus_join_with_area (m64Annulus_reverse C0) A |
| 54 | obtain ⟨B, _hmapB, hareaB⟩ := m64Annulus_join_with_area D C1 |
| 55 | refine ⟨B, ?_⟩ |
| 56 | rw [hareaB, hareaD, m64Annulus_reverse_area, harea0, harea1, zero_add, add_zero] |
| 57 | |
| 58 | /-- Monotone Lipschitz degree-one boundary lifts preserve the entire set of admissible |
| 59 | annular areas, including when it is empty. The two actual collar constructions implement |
| 60 | MT2007 pp. 464-466. Source: Morgan--Tian (2007), Lemma 19.15, pp. 447-449, and Lemma 19.31, |
| 61 | pp. 464-466; project derivation |
| 62 | `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. -/ |
| 63 | theorem annulusAreaRange_comp_lifts : |
| 64 | m64AnnulusAreaRange g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map) = |
| 65 | m64AnnulusAreaRange g c0 c1 := by |
| 66 | ext x |
| 67 | constructor |
| 68 | · rintro ⟨A, rfl⟩ |
| 69 | obtain ⟨B, hB⟩ := m64FreeBoundaryAreaTransport_of_collars |
| 70 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 71 | exact ⟨B, hB⟩ |
| 72 | · rintro ⟨A, rfl⟩ |
| 73 | obtain ⟨B, hB⟩ := annulus_exists_relabel_boundaries |
| 74 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 75 | exact ⟨B, hB⟩ |
| 76 | |
| 77 | /-- The least annular area is unchanged by the boundary lifts because |
| 78 | the full area ranges coincide, not by unguarded infimum arithmetic. |
| 79 | Source: MT2007 Lemma 19.15, pp. 447-449. -/ |
| 80 | theorem leastAnnulusArea_comp_lifts : |
| 81 | m64LeastAnnulusArea g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map) = |
| 82 | m64LeastAnnulusArea g c0 c1 := by |
| 83 | unfold m64LeastAnnulusArea |
| 84 | rw [annulusAreaRange_comp_lifts hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1] |
| 85 | |
| 86 | /-- Existence of an actual annulus is equivalent for the original and lifted boundaries. |
| 87 | This guards the geometric use of the infima in MT2007 Lemma 19.15, pp. 447-449. Source: |
| 88 | Morgan--Tian (2007), Lemma 19.15, pp. 447-449, and Lemma 19.31, pp. 464-466; project |
| 89 | derivation `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. -/ |
| 90 | theorem nonempty_annulus_comp_lifts_iff : |
| 91 | Nonempty (M64Annulus g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map)) ↔ |
| 92 | Nonempty (M64Annulus g c0 c1) := by |
| 93 | constructor |
| 94 | · rintro ⟨A⟩ |
| 95 | obtain ⟨B, _hB⟩ := m64FreeBoundaryAreaTransport_of_collars |
| 96 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 97 | exact ⟨B⟩ |
| 98 | · rintro ⟨A⟩ |
| 99 | obtain ⟨B, _hB⟩ := annulus_exists_relabel_boundaries |
| 100 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 101 | exact ⟨B⟩ |
| 102 | |
| 103 | /-- Existence of an attained admissible minimum is invariant under |
| 104 | monotone boundary lifts. The transported map is only asserted to be |
| 105 | Lipschitz; no smoothness or conformality is inferred from the collars. |
| 106 | Source: MT2007 Lemma 19.31, pp. 464-466. -/ |
| 107 | theorem exists_minimum_comp_lifts_iff : |
| 108 | (∃ A : M64Annulus g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map), |
| 109 | A.area = m64LeastAnnulusArea g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map)) ↔ |
| 110 | (∃ A : M64Annulus g c0 c1, A.area = m64LeastAnnulusArea g c0 c1) := by |
| 111 | have hinf := leastAnnulusArea_comp_lifts hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 |
| 112 | constructor |
| 113 | · rintro ⟨A, hA⟩ |
| 114 | obtain ⟨B, hB⟩ := m64FreeBoundaryAreaTransport_of_collars |
| 115 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 116 | exact ⟨B, hB.trans (hA.trans hinf)⟩ |
| 117 | · rintro ⟨A, hA⟩ |
| 118 | obtain ⟨B, hB⟩ := annulus_exists_relabel_boundaries |
| 119 | hc0 hp0 hL0 hc1 hp1 hL1 sigma0 sigma1 A |
| 120 | exact ⟨B, hB.trans (hA.trans hinf.symm)⟩ |
| 121 | |
| 122 | end Lipschitz |
| 123 | |
| 124 | /-- Periodic C1 curves supply their own global metric Lipschitz bounds, so area-range |
| 125 | invariance needs no separate distance estimate in the smooth-boundary application of MT2007 |
| 126 | Lemma 19.31, pp. 464-466. Source: Morgan--Tian (2007), Lemma 19.15, pp. 447-449, and Lemma |
| 127 | 19.31, pp. 464-466; project derivation |
| 128 | `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. -/ |
| 129 | theorem annulusAreaRange_comp_lifts_of_C1 |
| 130 | (hc0 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 c0) |
| 131 | (hp0 : Function.Periodic c0 curvePeriod) |
| 132 | (hc1 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 c1) |
| 133 | (hp1 : Function.Periodic c1 curvePeriod) |
| 134 | (sigma0 sigma1 : M64PeriodicDegreeOneLift) : |
| 135 | m64AnnulusAreaRange g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map) = |
| 136 | m64AnnulusAreaRange g c0 c1 := |
| 137 | annulusAreaRange_comp_lifts hc0.continuous hp0 |
| 138 | (m64PeriodicC1Curve_metric_lipschitz g hc0 hp0) hc1.continuous hp1 |
| 139 | (m64PeriodicC1Curve_metric_lipschitz g hc1 hp1) sigma0 sigma1 |
| 140 | |
| 141 | /-- The periodic C1 version of the exact least-area identity used when free boundary labels |
| 142 | are selected in MT2007 pp. 447-449 and 464-466. Source: Morgan--Tian (2007), Lemma 19.15, |
| 143 | pp. 447-449, and Lemma 19.31, pp. 464-466; project derivation |
| 144 | `proof-work/tasks/M64/auxiliary/2026-09-25-boundary-relabel/DERIVATION.md`. -/ |
| 145 | theorem leastAnnulusArea_comp_lifts_of_C1 |
| 146 | (hc0 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 c0) |
| 147 | (hp0 : Function.Periodic c0 curvePeriod) |
| 148 | (hc1 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 c1) |
| 149 | (hp1 : Function.Periodic c1 curvePeriod) |
| 150 | (sigma0 sigma1 : M64PeriodicDegreeOneLift) : |
| 151 | m64LeastAnnulusArea g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map) = |
| 152 | m64LeastAnnulusArea g c0 c1 := by |
| 153 | unfold m64LeastAnnulusArea |
| 154 | rw [annulusAreaRange_comp_lifts_of_C1 hc0 hp0 hc1 hp1 sigma0 sigma1] |
| 155 | |
| 156 | end PoincareMT.M64 |