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.Plateau.Weak.AnnulusClass |
| 2 | import PoincareLib.Geometry.Riemannian.Distance.TangentBound |
| 3 | import PoincareLib.Geometry.Riemannian.Comparison.Injectivity.PullbackGeodesics |
| 4 | |
| 5 | /-! |
| 6 | # Lipschitz observation of admissible annuli |
| 7 | |
| 8 | Compactness bounds the actual differential of the smooth observation. |
| 9 | Integration along target paths transfers this to distances, so the |
| 10 | admissible annulus has a Lipschitz Euclidean observation on its rectangle. |
| 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 | noncomputable section |
| 20 | |
| 21 | open Set MeasureTheory |
| 22 | open scoped Topology Manifold ContDiff ENNReal NNReal Bundle |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | /-- A compact-target differential bound controls the actual observation distances by |
| 30 | intrinsic target distance. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 31 | theorem m64_observation_edist_bound [CompactSpace M] |
| 32 | (g : RiemannianMetric n M) (e : M → EuclideanSpace ℝ (Fin m)) |
| 33 | (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) : |
| 34 | ∃ C : ℝ≥0, ∀ x y, edist (e x) (e y) ≤ C * g.edist x y := by |
| 35 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 36 | ⟨g.toRiemannianMetric⟩ |
| 37 | obtain ⟨B, hB, hbound⟩ := M60.exists_uniform_mfderiv_bound g e he |
| 38 | let C : ℝ≥0 := ⟨B + 1, by positivity⟩ |
| 39 | refine ⟨C, fun x y => ?_⟩ |
| 40 | have hnorm (q : M) (v : TangentSpace (𝓡 n) q) : |
| 41 | (RiemannianMetric.euclideanMetric m).tangentNorm (e q) |
| 42 | (mfderiv (𝓡 n) (𝓡 m) e q v) ≤ (B + 1) * g.tangentNorm q v := by |
| 43 | rw [RiemannianMetric.euclideanMetric_tangentNorm, |
| 44 | ← norm_tangentSpace_vectorSpace (x := e q)] |
| 45 | change ‖mfderiv (𝓡 n) (𝓡 m) e q v‖ ≤ (B + 1) * ‖v‖ |
| 46 | exact ((mfderiv (𝓡 n) (𝓡 m) e q).le_opNorm v).trans |
| 47 | (mul_le_mul_of_nonneg_right ((hbound q).trans (by linarith)) (norm_nonneg v)) |
| 48 | have hd := RiemannianMetric.edist_le_mul_of_tangentNorm_mfderiv_le |
| 49 | g (RiemannianMetric.euclideanMetric m) he (by positivity : 0 < B + 1) hnorm x y |
| 50 | rw [ENNReal.coe_nnreal_eq] |
| 51 | change edist (e x) (e y) ≤ ENNReal.ofReal (B + 1) * g.edist x y |
| 52 | simpa only [RiemannianMetric.euclideanMetric_edist] using hd |
| 53 | |
| 54 | /-- Every admissible annulus has an actual Lipschitz Euclidean observation on its original |
| 55 | rectangle. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 56 | theorem m64Annulus_observed_lipschitzOn [CompactSpace M] |
| 57 | {g : RiemannianMetric n M} {c0 c1 : ℝ → M} (A : M64Annulus g c0 c1) |
| 58 | (e : M → EuclideanSpace ℝ (Fin m)) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) : |
| 59 | ∃ K : ℝ≥0, LipschitzOnWith K (e ∘ A.map) m64AnnulusDomain := by |
| 60 | obtain ⟨C, hC⟩ := m64_observation_edist_bound g e he |
| 61 | let L : ℝ≥0 := ⟨A.lipschitz_constant, A.lipschitz_nonnegative⟩ |
| 62 | refine ⟨C * L, fun x hx y hy => ?_⟩ |
| 63 | calc |
| 64 | edist (e (A.map x)) (e (A.map y)) ≤ C * g.edist (A.map x) (A.map y) := hC _ _ |
| 65 | _ ≤ C * (ENNReal.ofReal A.lipschitz_constant * ENNReal.ofReal ‖x - y‖) := by |
| 66 | gcongr |
| 67 | exact A.lipschitz_on_domain ⟨x, hx⟩ ⟨y, hy⟩ |
| 68 | _ = (C * L : ℝ≥0) * edist x y := by |
| 69 | rw [ENNReal.coe_mul, ENNReal.coe_nnreal_eq L, edist_dist, dist_eq_norm] |
| 70 | exact (mul_assoc _ _ _).symm |
| 71 | |
| 72 | end PoincareMT |