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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedCapDistance |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.MetricSpace |
| 4 | |
| 5 | /-! |
| 6 | # Actual forward transport of an inner metric ball |
| 7 | |
| 8 | Morgan-Tian Definition 9.72 in Theorem 12.28, pp. 323-324. |
| 9 | A short path from the center remains inside the original metric ball. |
| 10 | The actual tangent norm upper bound therefore controls its mapped length |
| 11 | and puts the image point in the corresponding target ambient ball. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | /-- Definition 9.72 in Theorem 12.28: a local upper speed bound |
| 22 | transports every point of the inner ball into the corresponding target |
| 23 | ambient ball, by mapping a short path from its center. -/ |
| 24 | theorem image_ball_subset_of_tangentNorm_upper |
| 25 | {M N : Type*} [TopologicalSpace M] [TopologicalSpace N] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] |
| 28 | [IsManifold (𝓡 3) ∞ M] [IsManifold (𝓡 3) ∞ N] |
| 29 | (g : RiemannianMetric 3 M) (h : RiemannianMetric 3 N) (f : M → N) |
| 30 | {U : Set M} (hU : IsOpen U) (hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f U) |
| 31 | {C r : ℝ} (hC : 0 < C) (x : M) (hball : g.ball x r ⊆ U) |
| 32 | (hbound : ∀ z ∈ U, ∀ v : TangentSpace (𝓡 3) z, |
| 33 | h.tangentNorm (f z) (mfderiv (𝓡 3) (𝓡 3) f z v) ≤ C * g.tangentNorm z v) : |
| 34 | f '' g.ball x r ⊆ h.ball (f x) (C * r) := by |
| 35 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 36 | ⟨g.toRiemannianMetric⟩ |
| 37 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : N → Type _) := |
| 38 | ⟨h.toRiemannianMetric⟩ |
| 39 | rintro _ ⟨y, hy, rfl⟩ |
| 40 | obtain ⟨gamma, hzero, hone, hsmooth, hlength⟩ := |
| 41 | Manifold.exists_lt_of_riemannianEDist_lt hy |
| 42 | have hmaps : MapsTo gamma (Icc (0 : ℝ) 1) U := by |
| 43 | intro s hs |
| 44 | apply hball |
| 45 | have hd := Manifold.riemannianEDist_le_pathELength |
| 46 | (hsmooth.mono (Icc_subset_Icc le_rfl hs.2)) hzero rfl hs.1 |
| 47 | exact (hd.trans (Manifold.pathELength_mono le_rfl hs.2)).trans_lt hlength |
| 48 | have hlength' := pathELength_comp_le_of_tangentNorm_le |
| 49 | g h f hU hf hC.le hbound gamma 0 1 hsmooth hmaps |
| 50 | have hd : h.edist (f x) (f y) ≤ h.pathELength (f ∘ gamma) 0 1 := |
| 51 | Manifold.riemannianEDist_le_pathELength |
| 52 | ((hf.of_le (by simp)).comp hsmooth hmaps) |
| 53 | (congrArg f hzero) (congrArg f hone) zero_le_one |
| 54 | apply (hd.trans hlength').trans_lt |
| 55 | rw [ENNReal.ofReal_mul hC.le] |
| 56 | exact ENNReal.mul_lt_mul_right (ENNReal.ofReal_pos.mpr hC).ne' |
| 57 | ENNReal.ofReal_ne_top hlength |
| 58 | |
| 59 | end PoincareMT.M35 |