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.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Boundary.Free.BoundaryTransport |
| 3 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Boundary.CurveLipschitz |
| 4 | import PoincareLib.Geometry.CurveShortening.Ramp.Slope.Slope.Regularity |
| 5 | |
| 6 | /-! |
| 7 | # Actual free-boundary area transport for the supplied C2 curves |
| 8 | |
| 9 | Periodic compactness of the actual speed proves global metric Lipschitz |
| 10 | control. The proved zero-area collars then restore literal boundary maps |
| 11 | at each included time. This is the free-label transport required by |
| 12 | MT2007 Lemma 19.15, pp. 447-449, after a moving variation. |
| 13 | |
| 14 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 15 | 447-449. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | /-- The lift's actual global Lipschitz bound supplies its continuity. Source: Morgan--Tian |
| 32 | (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation |
| 33 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 34 | theorem m64PeriodicDegreeOneLift_continuous_map |
| 35 | (sigma : M64PeriodicDegreeOneLift) : Continuous sigma.map := by |
| 36 | have hLip : LipschitzWith |
| 37 | (NNReal.mk sigma.lipschitz_constant sigma.lipschitz_nonnegative) sigma.map := by |
| 38 | intro x y |
| 39 | have hE := ENNReal.ofReal_le_ofReal (sigma.lipschitz_on x y) |
| 40 | rw [ENNReal.ofReal_mul sigma.lipschitz_nonnegative] at hE |
| 41 | simpa only [edist_dist, Real.dist_eq, ENNReal.coe_nnreal_eq, NNReal.coe_mk] using hE |
| 42 | exact hLip.continuous |
| 43 | |
| 44 | omit [T2Space M] in |
| 45 | /-- A periodic C1 curve has a global Lipschitz constant for the actual Riemannian distance, |
| 46 | obtained from its compact periodic speed range. Source: Morgan--Tian (2007), Lemma 19.15 and |
| 47 | Corollary 19.16, pp. 447-449; project derivation |
| 48 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 49 | theorem m64PeriodicC1Curve_metric_lipschitz (g : RiemannianMetric n M) |
| 50 | {c : ℝ → M} (hc : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 c) |
| 51 | (hperiod : Function.Periodic c curvePeriod) : |
| 52 | ∃ L : ℝ, 0 ≤ L ∧ ∀ x y : ℝ, |
| 53 | g.edist (c x) (c y) ≤ ENNReal.ofReal L * ENNReal.ofReal |x - y| := by |
| 54 | have hvel := m63CurveVelocity_periodic (hc.mdifferentiable one_ne_zero) hperiod |
| 55 | have hspeed : Function.Periodic |
| 56 | (fun x => g.tangentNorm (c x) (curveVelocity c x)) curvePeriod := by |
| 57 | intro x |
| 58 | change g.tangentNorm (c (x + curvePeriod)) (curveVelocity c (x + curvePeriod)) = |
| 59 | g.tangentNorm (c x) (curveVelocity c x) |
| 60 | have hv : curveVelocity c (x + curvePeriod) = curveVelocity c x := hvel x |
| 61 | erw [hv, hperiod x] |
| 62 | have hcont : Continuous (fun x => g.tangentNorm (c x) (curveVelocity c x)) := |
| 63 | M04.continuous_pathSpeed g hc |
| 64 | have hP : curvePeriod ≠ 0 := by unfold curvePeriod; positivity |
| 65 | obtain ⟨B, hB⟩ := (hspeed.compact_of_continuous hP hcont).bddAbove |
| 66 | refine ⟨max B 0, le_max_right _ _, ?_⟩ |
| 67 | apply m60Curve_edist_le_of_speed_bound g hc (le_max_right _ _) |
| 68 | intro x |
| 69 | exact (hB (mem_range_self x)).trans (le_max_left _ _) |
| 70 | |
| 71 | /-- At every included time, the actual C2 curves supply both zero-area collars, so every |
| 72 | free-boundary annulus has a literal-boundary annulus with exactly the same area. Source: |
| 73 | Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation |
| 74 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 75 | theorem m64C2ShrinkingCurves_freeBoundaryAreaTransport |
| 76 | {a b : ℝ} (F : RicciFlow n M (Icc a b)) {c0 c1 : ℝ → ℝ → M} |
| 77 | (hc0 : M63C2ShrinkingCurveOn F c0 (Icc a b)) |
| 78 | (hc1 : M63C2ShrinkingCurveOn F c1 (Icc a b)) |
| 79 | {t : ℝ} (ht : t ∈ Icc a b) : |
| 80 | M64FreeBoundaryAreaTransport (F.metric t) (fun x => c0 x t) (fun x => c1 x t) := by |
| 81 | have h0 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 (fun x => c0 x t) := |
| 82 | (hc0.spatial_regular t ht).of_le (by norm_num) |
| 83 | have h1 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 (fun x => c1 x t) := |
| 84 | (hc1.spatial_regular t ht).of_le (by norm_num) |
| 85 | exact m64FreeBoundaryAreaTransport_of_collars h0.continuous (hc0.periodic t ht) |
| 86 | (m64PeriodicC1Curve_metric_lipschitz (F.metric t) h0 (hc0.periodic t ht)) |
| 87 | h1.continuous (hc1.periodic t ht) |
| 88 | (m64PeriodicC1Curve_metric_lipschitz (F.metric t) h1 (hc1.periodic t ht)) |
| 89 | |
| 90 | omit [T2Space M] in |
| 91 | /-- A free-boundary annulus attaining the original least area also minimizes among its own |
| 92 | literal lifted traces. Every competing lifted annulus is compared by the actual |
| 93 | area-preserving collars. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. |
| 94 | 447-449; project derivation |
| 95 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 96 | theorem m64FreeAnnulus_minimizes_own_boundary |
| 97 | {g : RiemannianMetric n M} {c0 c1 : ℝ → M} |
| 98 | (htransport : M64FreeBoundaryAreaTransport g c0 c1) |
| 99 | (sigma0 sigma1 : M64PeriodicDegreeOneLift) |
| 100 | (A : M64Annulus g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map)) |
| 101 | (hminimum : A.area = m64LeastAnnulusArea g c0 c1) : |
| 102 | A.area = m64LeastAnnulusArea g (c0 ∘ sigma0.map) (c1 ∘ sigma1.map) := by |
| 103 | apply le_antisymm |
| 104 | · apply le_csInf (m64AnnulusAreaRange_nonempty A) |
| 105 | rintro _ ⟨B, rfl⟩ |
| 106 | obtain ⟨C, hC⟩ := htransport sigma0 sigma1 B |
| 107 | calc |
| 108 | A.area = m64LeastAnnulusArea g c0 c1 := hminimum |
| 109 | _ ≤ C.area := m64LeastAnnulusArea_le_annulus C |
| 110 | _ = B.area := hC |
| 111 | · exact m64LeastAnnulusArea_le_annulus A |
| 112 | |
| 113 | end PoincareMT |