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.Existence.Construction.Curvature.InitialRicciFlow |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Metric.MetricComparisonCompleteness |
| 3 | |
| 4 | /-! |
| 5 | # Completeness of the actual initial-slab flow |
| 6 | |
| 7 | Exponential comparison survives reconstruction as an inequality of the |
| 8 | actual metric forms, including zero. Its lower bound compares path |
| 9 | distances to the prescribed complete metric. No global comparison to |
| 10 | the ambient Euclidean metric is used (Theorem 12.5, p. 297). |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 8 |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | namespace PoincareMT.M34.InteriorCoefficientLimit |
| 21 | |
| 22 | variable {g0 : StandardInitialMetric} {A : CompactCapApproximation g0} |
| 23 | (G : InteriorCoefficientLimit A) |
| 24 | |
| 25 | /-- The actual metric family retains exponential comparison with the |
| 26 | supplied initial metric through time zero (Theorem 12.5, p. 297). -/ |
| 27 | theorem limitMetric_exp_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 28 | {t : ℝ} (ht : t ∈ Ico 0 A.time) (x v : StandardCapSpace) : |
| 29 | Real.exp (-6 * A.curvature_bound 0 * t) * g0.metric.inner x v v ≤ |
| 30 | (G.limitMetric P t).inner x v v ∧ |
| 31 | (G.limitMetric P t).inner x v v ≤ |
| 32 | Real.exp (6 * A.curvature_bound 0 * t) * g0.metric.inner x v v := by |
| 33 | by_cases hzero : t = 0 |
| 34 | · subst t |
| 35 | simp [G.limitMetric_zero] |
| 36 | · have htpos : t ∈ Ioo 0 A.time := ⟨lt_of_le_of_ne ht.1 (Ne.symm hzero), ht.2⟩ |
| 37 | have heq := congrArg (fun B => B x v v) (G.limitMetric_coefficients P t) |
| 38 | dsimp only at heq |
| 39 | rw [G.closedCoefficients_of_mem htpos] at heq |
| 40 | change (G.limitMetric P t).inner x v v = G.coefficients (t, x) v v at heq |
| 41 | rw [heq] |
| 42 | exact G.coefficients_exp_bounds P htpos x v |
| 43 | |
| 44 | /-- Initial tangent lengths are bounded by a uniform multiple of each |
| 45 | included slice's actual tangent lengths (Theorem 12.5, p. 297). -/ |
| 46 | theorem initial_tangentNorm_le_limit (P : RicciFlowCurvatureTheory.{0}) |
| 47 | {t : ℝ} (ht : t ∈ Ico 0 A.time) (x v : StandardCapSpace) : |
| 48 | g0.metric.tangentNorm x v ≤ |
| 49 | Real.exp (3 * A.curvature_bound 0 * t) * (G.limitMetric P t).tangentNorm x v := by |
| 50 | have h := mul_le_mul_of_nonneg_left (G.limitMetric_exp_bounds P ht x v).1 |
| 51 | (Real.exp_nonneg (6 * A.curvature_bound 0 * t)) |
| 52 | have hcancel : Real.exp (6 * A.curvature_bound 0 * t) * |
| 53 | Real.exp (-6 * A.curvature_bound 0 * t) = 1 := by |
| 54 | rw [← Real.exp_add, show 6 * A.curvature_bound 0 * t + |
| 55 | -6 * A.curvature_bound 0 * t = 0 by ring, Real.exp_zero] |
| 56 | have hmetric : g0.metric.inner x v v ≤ Real.exp (6 * A.curvature_bound 0 * t) * |
| 57 | (G.limitMetric P t).inner x v v := by |
| 58 | simpa only [← mul_assoc, hcancel, one_mul] using h |
| 59 | have hexp : Real.exp (6 * A.curvature_bound 0 * t) = |
| 60 | Real.exp (3 * A.curvature_bound 0 * t) ^ 2 := by |
| 61 | rw [← Real.exp_nat_mul] |
| 62 | congr 1 |
| 63 | norm_num |
| 64 | ring |
| 65 | have hsqrt := Real.sqrt_le_sqrt hmetric |
| 66 | rw [hexp, Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq (Real.exp_nonneg _)] at hsqrt |
| 67 | exact hsqrt |
| 68 | |
| 69 | /-- Every included slice is complete for its own Riemannian path |
| 70 | distance (Theorem 12.5, p. 297). -/ |
| 71 | theorem initialFlow_complete (P : RicciFlowCurvatureTheory.{0}) |
| 72 | {t : ℝ} (ht : t ∈ Ico 0 A.time) : MetricComplete ((G.initialFlow P).metric t) := by |
| 73 | exact RiemannianMetric.metricComplete_of_tangentNorm_comparison |
| 74 | g0.metric (G.limitMetric P t) 0 g0.complete (Real.exp_pos _) |
| 75 | (G.initial_tangentNorm_le_limit P ht) |
| 76 | |
| 77 | end PoincareMT.M34.InteriorCoefficientLimit |