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.Generalized.Noncollapse.Cylinder.CylinderFlow |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricComparison.LocalCurvature |
| 3 | import PoincareLib.Geometry.Riemannian.Distance.TangentBound |
| 4 | |
| 5 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Prop8_2_CylinderDistance.lean` at |
| 6 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 7 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Distance comparison on the actual cylinder |
| 11 | |
| 12 | Morgan-Tian Claim 8.5, p. 172, with the initial-time buffer recorded in |
| 13 | `references/ricci-flow/mapher/noncollapse/derivations/2026-09-20-cylinder-distance.md`. |
| 14 | M04 supplies pointwise metric comparison and the M06 distance helper |
| 15 | integrates the resulting bound for the actual terminal source map. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.Generalized.Noncollapse |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 28 | {T r : ℝ} {x : (G.slices T).Point} {K : SpacetimeInterval} |
| 29 | {C : Type u} [TopologicalSpace C] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 31 | [T2Space C] [SecondCountableTopology C] |
| 32 | |
| 33 | /-- The terminal source map has the distance bound from M04's metric |
| 34 | comparison. Source: Claim 8.5, p. 172, and the corrected compact buffer. |
| 35 | The source distance is intrinsic; no completeness is assumed. -/ |
| 36 | theorem actualBallCylinder_terminal_edist_le |
| 37 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 38 | (B : M15ActualBallCylinder G T x r K C) |
| 39 | (F : RicciFlow n C K.domain) (hmetric : F.metric = B.metric.metric) |
| 40 | (hRm : ∀ (t : (G.timeIntervals.interval K).Point) (c : C), |
| 41 | (F.connection t.val).curvatureTensorNorm c = |
| 42 | horizontalCurvatureNorm G.leafwise (B.embedding.toSpacetime (t, c))) |
| 43 | {s : ℝ} (hs : s ∈ K.domain) (c d : C) : |
| 44 | (G.slices T).metricOnPoints.edist (B.source_map c) (B.source_map d) ≤ |
| 45 | ENNReal.ofReal (Real.exp ((n : ℝ) * (r⁻¹) ^ 2 * (T - s))) * |
| 46 | (F.metric s).edist c d := by |
| 47 | have hsT : s ≤ T := by |
| 48 | rw [B.interval_domain] at hs |
| 49 | exact hs.2 |
| 50 | have hsource : ContMDiff (𝓡 n) (𝓡 n) 1 B.source_map := |
| 51 | contMDiffOn_univ.mp (B.source_map_smooth.of_le (by simp)) |
| 52 | apply RiemannianMetric.edist_le_mul_of_tangentNorm_mfderiv_le |
| 53 | (F.metric s) (G.slices T).metricOnPoints hsource (Real.exp_pos _) _ c d |
| 54 | intro z v |
| 55 | have hbound : ∀ τ ∈ Set.Icc s T, |
| 56 | (F.connection τ).curvatureTensorNorm z ≤ (r⁻¹) ^ 2 := by |
| 57 | intro τ hτ |
| 58 | have hτK : τ ∈ K.domain := F.interval.out hs B.base_mem hτ |
| 59 | rw [hRm ⟨τ, hτK⟩ z] |
| 60 | exact B.curvature_bound ⟨τ, hτK⟩ z |
| 61 | have hnorm : (G.slices T).metricOnPoints.tangentNorm (B.source_map z) |
| 62 | (mfderiv (𝓡 n) (𝓡 n) B.source_map z v) = (F.metric T).tangentNorm z v := by |
| 63 | rw [hmetric] |
| 64 | exact congrArg Real.sqrt (actualBallCylinder_terminal_metric_pullback hM12 B z v v) |
| 65 | rw [hnorm] |
| 66 | exact (RicciFlowAnalysis.tangentNorm_comparison_at_of_curvature_bound F hs B.base_mem hsT |
| 67 | (sq_nonneg _) z hbound v).2 |
| 68 | |
| 69 | end PoincareMT.Generalized.Noncollapse |