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.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Lipschitz.ChartLipschitz |
| 2 | |
| 3 | /-! |
| 4 | # Coordinate Lipschitz representatives |
| 5 | |
| 6 | Intrinsic local Lipschitz regularity gives a genuine Lipschitz representative |
| 7 | on an open neighborhood in each fixed coordinate chart. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped Manifold ContDiff Bundle Topology NNReal ENNReal |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.ReducedVolume |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] [T3Space M] |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false in |
| 23 | /-- A fixed inverse chart turns intrinsic local Lipschitz regularity into coordinate regularity. -/ |
| 24 | theorem locallyLipschitz_in_coordinates (g : RiemannianMetric n M) {f : M → ℝ} |
| 25 | (hf : |
| 26 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 27 | ⟨g.toRiemannianMetric⟩ |
| 28 | letI : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 29 | (TangentSpace (𝓡 n) : M → Type _) := |
| 30 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 31 | letI : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 32 | LocallyLipschitz f) (q : M) : |
| 33 | ∃ S : Set (EuclideanSpace ℝ (Fin n)), IsOpen S ∧ extChartAt (𝓡 n) q q ∈ S ∧ |
| 34 | S ⊆ (extChartAt (𝓡 n) q).target ∧ |
| 35 | ∃ K : ℝ≥0, LipschitzOnWith K (f ∘ (extChartAt (𝓡 n) q).symm) S := by |
| 36 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 37 | ⟨g.toRiemannianMetric⟩ |
| 38 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 39 | (TangentSpace (𝓡 n) : M → Type _) := |
| 40 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 41 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 42 | change LocallyLipschitz f at hf |
| 43 | obtain ⟨K, U, hU, hLip⟩ := hf q |
| 44 | obtain ⟨r, hr, htarget, C, hchart⟩ := inverseChart_local_lipschitz g q |
| 45 | have hpre : (extChartAt (𝓡 n) q).symm ⁻¹' U ∈ 𝓝 (extChartAt (𝓡 n) q q) := by |
| 46 | apply (continuousAt_extChartAt_symm (I := 𝓡 n) q).preimage_mem_nhds |
| 47 | simpa only [extChartAt_to_inv] using hU |
| 48 | obtain ⟨s, hs, hsub⟩ := Metric.mem_nhds_iff.mp |
| 49 | (inter_mem (Metric.ball_mem_nhds _ hr) hpre) |
| 50 | refine ⟨Metric.ball (extChartAt (𝓡 n) q q) s, Metric.isOpen_ball, |
| 51 | Metric.mem_ball_self hs, fun x hx ↦ htarget (hsub hx).1, K * C, ?_⟩ |
| 52 | exact hLip.comp (hchart.mono (fun _ hx ↦ (hsub hx).1)) |
| 53 | (fun _ hx ↦ (hsub hx).2) |
| 54 | |
| 55 | end PoincareMT.ReducedVolume |