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.Extinction.Width.Transport.Event.Geometry |
| 2 | import PoincareLib.Geometry.Riemannian.Metric.Induced.Complete |
| 3 | |
| 4 | /-! |
| 5 | # Pre-surgery metric calibration and comparison maps |
| 6 | |
| 7 | The ordinary transport into the surgery parent preserves the pulled-back |
| 8 | metric. Composing it with an M57 smooth approximant therefore retains that |
| 9 | approximant's distance factor and gives the explicit filling transport used |
| 10 | in Morgan--Tian Claim 18.21, pp. 432--433. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {M P N : Type u} |
| 23 | [TopologicalSpace M] [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 24 | [TopologicalSpace P] [ChartedSpace LoopAmbient P] [IsManifold (𝓡 3) ∞ P] |
| 25 | [TopologicalSpace N] [ChartedSpace LoopAmbient N] [IsManifold (𝓡 3) ∞ N] |
| 26 | |
| 27 | /-- A metric-calibrated precomposition retains the comparison map's distance factor. -/ |
| 28 | theorem m67_distance_bound_comp_of_pullback |
| 29 | (g : RiemannianMetric 3 M) (p : RiemannianMetric 3 P) (h : RiemannianMetric 3 N) |
| 30 | (e : ContinuousMap M P) (he : ContMDiff (𝓡 3) (𝓡 3) ∞ e) |
| 31 | (hmetric : ∀ x v w, p.inner (e x) (mfderiv (𝓡 3) (𝓡 3) e x v) |
| 32 | (mfderiv (𝓡 3) (𝓡 3) e x w) = g.inner x v w) |
| 33 | (f : ContinuousMap P N) {L : ℝ} |
| 34 | (hbound : ∀ x y, h.edist (f x) (f y) ≤ ENNReal.ofReal L * p.edist x y) |
| 35 | (x y : M) : |
| 36 | h.edist ((f.comp e) x) ((f.comp e) y) ≤ ENNReal.ofReal L * g.edist x y := by |
| 37 | exact (hbound (e x) (e y)).trans |
| 38 | (mul_le_mul_right (g.edist_map_le_of_metric_pullback p he |
| 39 | (fun x v w => (hmetric x v w).symm) x y) _) |
| 40 | |
| 41 | /-- The calibrated pre-time comparison gives actual disks with quadratic area loss. -/ |
| 42 | theorem m67_filling_transport_comp_of_pullback [T2Space M] [T2Space N] |
| 43 | (g : RiemannianMetric 3 M) (p : RiemannianMetric 3 P) (h : RiemannianMetric 3 N) |
| 44 | (e : ContinuousMap M P) (he : ContMDiff (𝓡 3) (𝓡 3) ∞ e) |
| 45 | (hmetric : ∀ x v w, p.inner (e x) (mfderiv (𝓡 3) (𝓡 3) e x v) |
| 46 | (mfderiv (𝓡 3) (𝓡 3) e x w) = g.inner x v w) |
| 47 | (f : ContinuousMap P N) (hf : ContMDiff (𝓡 3) (𝓡 3) ∞ f) |
| 48 | (post : M59LoopPostcomposition (f.comp e)) |
| 49 | {L : ℝ} (hL : 0 ≤ L) |
| 50 | (hbound : ∀ x y, h.edist (f x) (f y) ≤ ENNReal.ofReal L * p.edist x y) |
| 51 | (gamma : C1FreeLoopSpace (M := M)) (D : LipschitzSpanningDisk g gamma) : |
| 52 | ∃ E : LipschitzSpanningDisk h (post.map gamma), E.area ≤ L ^ 2 * D.area := |
| 53 | m67_filling_transport_of_lipschitz g h (f.comp e) (hf.comp he) post hL |
| 54 | (m67_distance_bound_comp_of_pullback g p h e he hmetric f hbound) gamma D |
| 55 | |
| 56 | end PoincareMT |