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.PolygonApproximation.Interpolator.VerticalColumn |
| 2 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.Lipschitz.Derivative |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Infimum |
| 4 | |
| 5 | /-! |
| 6 | # The horizontal column of a metric-Lipschitz annulus |
| 7 | |
| 8 | On the open rectangle, the M60 metric Lipschitz derivative estimate controls |
| 9 | the first coordinate column. The second theorem transports this pointwise |
| 10 | bound to the restricted measure on the closed rectangle, using the fact that |
| 11 | its boundary has measure zero. |
| 12 | |
| 13 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 14 | 450-453. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter MeasureTheory Bundle |
| 21 | open scoped Manifold ContDiff Topology Bundle ENNReal NNReal |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 29 | [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | /-- A rectangle metric-Lipschitz bound controls the horizontal tangent column. The factor |
| 32 | two is the fixed constant in the M60 chart-distance estimate. Source: Auxiliary step for MT |
| 33 | Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project construction in |
| 34 | `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 35 | theorem m64_horizontal_column_of_metric_lipschitz |
| 36 | (g : RiemannianMetric n M) {f : LoopPlane → M} |
| 37 | {L : ℝ} (hL : 0 ≤ L) |
| 38 | (hLip : ∀ x y : m64AnnulusDomain, |
| 39 | g.edist (f x) (f y) ≤ |
| 40 | ENNReal.ofReal L * ENNReal.ofReal ‖(x : LoopPlane) - y‖) |
| 41 | {z : LoopPlane} (hz : z ∈ m64AnnulusInterior) : |
| 42 | g.tangentNorm (f z) |
| 43 | (mfderiv (𝓡 2) (𝓡 n) f z |
| 44 | (EuclideanSpace.basisFun (Fin 2) ℝ 0)) ≤ 2 * L := by |
| 45 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 46 | ⟨g.toRiemannianMetric⟩ |
| 47 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 48 | (TangentSpace (𝓡 n) : M → Type _) := |
| 49 | ⟨⟨g.inner, g.contMDiff.continuous, fun _ _ _ => rfl⟩⟩ |
| 50 | let : LocallyCompactSpace M := |
| 51 | ChartedSpace.locallyCompactSpace (EuclideanSpace ℝ (Fin n)) M |
| 52 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 53 | let : IsRiemannianManifold (𝓡 n) M := ⟨fun _ _ => rfl⟩ |
| 54 | have hS : IsOpen m64AnnulusInterior := isOpen_m64AnnulusInterior |
| 55 | have hSsub : m64AnnulusInterior ⊆ m64AnnulusDomain := by |
| 56 | intro x hx |
| 57 | simp only [m64AnnulusInterior, Set.mem_preimage, Set.mem_pi, Set.mem_univ, |
| 58 | Set.mem_Ioo] at hx |
| 59 | change 0 ≤ x 0 ∧ x 0 ≤ curvePeriod ∧ 0 ≤ x 1 ∧ x 1 ≤ 1 |
| 60 | have h0 := hx 0 trivial |
| 61 | have h1 := hx 1 trivial |
| 62 | simpa using ⟨h0.1.le, h0.2.le, h1.1.le, h1.2.le⟩ |
| 63 | let K : ℝ≥0 := ⟨L, hL⟩ |
| 64 | have hK : LipschitzOnWith K f m64AnnulusInterior := by |
| 65 | intro x hx y hy |
| 66 | have hh := hLip ⟨x, hSsub hx⟩ ⟨y, hSsub hy⟩ |
| 67 | change g.edist (f x) (f y) ≤ |
| 68 | (K : ℝ≥0∞) * edist x y |
| 69 | rw [ENNReal.coe_nnreal_eq, edist_dist, dist_eq_norm] |
| 70 | exact hh |
| 71 | have hb := M60.norm_mfderiv_apply_le_of_lipschitzOn |
| 72 | (F := EuclideanSpace ℝ (Fin n)) (f := f) hS hK hz |
| 73 | (EuclideanSpace.basisFun (Fin 2) ℝ 0) |
| 74 | erw [OrthonormalBasis.norm_eq_one, mul_one] at hb |
| 75 | change ‖mfderiv (𝓡 2) (𝓡 n) f z |
| 76 | (EuclideanSpace.basisFun (Fin 2) ℝ 0)‖ ≤ 2 * L |
| 77 | exact hb |
| 78 | |
| 79 | /-- The horizontal column estimate on the rectangle, in the form consumed by the columnwise |
| 80 | area bound. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. |
| 81 | 450-453; project construction in |
| 82 | `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 83 | theorem m64_horizontal_column_ae_of_metric_lipschitz |
| 84 | (g : RiemannianMetric n M) {f : LoopPlane → M} |
| 85 | {L : ℝ} (hL : 0 ≤ L) |
| 86 | (hLip : ∀ x y : m64AnnulusDomain, |
| 87 | g.edist (f x) (f y) ≤ |
| 88 | ENNReal.ofReal L * ENNReal.ofReal ‖(x : LoopPlane) - y‖) : |
| 89 | ∀ᵐ z ∂volume.restrict m64AnnulusDomain, |
| 90 | g.tangentNorm (f z) |
| 91 | (mfderiv (𝓡 2) (𝓡 n) f z |
| 92 | (EuclideanSpace.basisFun (Fin 2) ℝ 0)) ≤ 2 * L := by |
| 93 | apply (ae_restrict_iff' m64AnnulusDomain_measurableSet).2 |
| 94 | filter_upwards [m64AnnulusDomain_ae_eq_interior] with z hz |
| 95 | intro hzdom |
| 96 | exact m64_horizontal_column_of_metric_lipschitz g hL hLip (hz.mp hzdom) |
| 97 | |
| 98 | /-- Combine the metric horizontal estimate with any independently supplied vertical-column |
| 99 | estimate. This is the direct vanishing-area interface for a short interpolator strip. |
| 100 | Source: Morgan--Tian Definition 19.18 and Claims 19.19-19.22, printed pp. 450-453; exact |
| 101 | construction reviewed in |
| 102 | `proof-work/tasks/M64/reviews/2026-09-27-full-round1-source-review.md`. -/ |
| 103 | theorem m64AnnulusIntegral_le_of_metric_lipschitz_and_ae_vertical |
| 104 | (g : RiemannianMetric n M) {f : LoopPlane → M} |
| 105 | {L K1 : ℝ} (hL : 0 ≤ L) |
| 106 | (hLip : ∀ x y : m64AnnulusDomain, |
| 107 | g.edist (f x) (f y) ≤ |
| 108 | ENNReal.ofReal L * ENNReal.ofReal ‖(x : LoopPlane) - y‖) |
| 109 | (hfinite : volume m64AnnulusInterior ≠ (⊤ : ENNReal)) |
| 110 | (hcol1 : ∀ᵐ z ∂volume.restrict m64AnnulusDomain, |
| 111 | g.tangentNorm (f z) |
| 112 | (mfderiv (𝓡 2) (𝓡 n) f z |
| 113 | (EuclideanSpace.basisFun (Fin 2) ℝ 1)) ≤ K1) : |
| 114 | (∫ z in m64AnnulusDomain, m60AreaDensity g f z) ≤ |
| 115 | (2 * L) * K1 * volume.real m64AnnulusDomain := by |
| 116 | have hcol0 := m64_horizontal_column_ae_of_metric_lipschitz g hL hLip |
| 117 | have hK0 : 0 ≤ 2 * L := by positivity |
| 118 | exact m64AnnulusIntegral_le_of_lipschitzOn_and_ae_column_bounds |
| 119 | g hL hK0 hLip hfinite hcol0 hcol1 |
| 120 | |
| 121 | end PoincareMT |