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.ExistenceData |
| 2 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Metric.MetricComparisonCompleteness |
| 4 | |
| 5 | /-! |
| 6 | # Completeness of every partial standard-cap flow |
| 7 | |
| 8 | The frozen partial-flow curvature bound and metric comparison imply a |
| 9 | global lower comparison with the prescribed complete initial metric on |
| 10 | each available slab. This proves completeness without restricting to the |
| 11 | particular approximation limit (Morgan-Tian Theorem 12.5, p. 297). |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | variable {g0 : StandardInitialMetric} (F : PartialStandardCapFlow g0) |
| 22 | |
| 23 | /-- Every partial flow is exponentially comparable to its prescribed |
| 24 | initial metric on a curvature-bounded slab (Theorem 12.5, p. 297). -/ |
| 25 | theorem partialFlow_exp_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 26 | {t K : ℝ} (ht : t ∈ Ico 0 F.lifetime) (hK : 0 ≤ K) |
| 27 | (hfull : ∀ s ∈ Icc 0 t, ∀ x : StandardCapSpace, |
| 28 | (F.flow.connection s).curvatureTensorNorm x ≤ K) (x v : StandardCapSpace) : |
| 29 | Real.exp (-6 * K * t) * g0.metric.inner x v v ≤ (F.flow.metric t).inner x v v ∧ |
| 30 | (F.flow.metric t).inner x v v ≤ Real.exp (6 * K * t) * g0.metric.inner x v v := by |
| 31 | have h := P.metric_comparison 3 StandardCapSpace (Ico 0 F.lifetime) F.flow |
| 32 | 0 t K ⟨le_rfl, F.lifetime_pos⟩ ht ht.1 hK hfull x v |
| 33 | rw [F.initial_metric] at h |
| 34 | norm_num at h ⊢ |
| 35 | exact h |
| 36 | |
| 37 | /-- A partial flow's tangent lengths control those of the complete initial |
| 38 | metric throughout each available slab (Theorem 12.5, p. 297). -/ |
| 39 | theorem partialFlow_initial_tangentNorm_le (P : RicciFlowCurvatureTheory.{0}) |
| 40 | {t K : ℝ} (ht : t ∈ Ico 0 F.lifetime) (hK : 0 ≤ K) |
| 41 | (hfull : ∀ s ∈ Icc 0 t, ∀ x : StandardCapSpace, |
| 42 | (F.flow.connection s).curvatureTensorNorm x ≤ K) (x v : StandardCapSpace) : |
| 43 | g0.metric.tangentNorm x v ≤ Real.exp (3 * K * t) * (F.flow.metric t).tangentNorm x v := by |
| 44 | have h := mul_le_mul_of_nonneg_left (partialFlow_exp_bounds F P ht hK hfull x v).1 |
| 45 | (Real.exp_nonneg (6 * K * t)) |
| 46 | have hcancel : Real.exp (6 * K * t) * Real.exp (-6 * K * t) = 1 := by |
| 47 | rw [← Real.exp_add, show 6 * K * t + -6 * K * t = 0 by ring, Real.exp_zero] |
| 48 | have hmetric : g0.metric.inner x v v ≤ |
| 49 | Real.exp (6 * K * t) * (F.flow.metric t).inner x v v := by |
| 50 | simpa only [← mul_assoc, hcancel, one_mul] using h |
| 51 | have hexp : Real.exp (6 * K * t) = Real.exp (3 * K * t) ^ 2 := by |
| 52 | rw [← Real.exp_nat_mul] |
| 53 | congr 1 |
| 54 | norm_num |
| 55 | ring |
| 56 | have hsqrt := Real.sqrt_le_sqrt hmetric |
| 57 | rw [hexp, Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq (Real.exp_nonneg _)] at hsqrt |
| 58 | exact hsqrt |
| 59 | |
| 60 | /-- Every slice of every frozen partial standard-cap flow is complete for |
| 61 | its actual Riemannian path distance (Theorem 12.5, p. 297). -/ |
| 62 | theorem partialFlow_complete (P : RicciFlowCurvatureTheory.{0}) |
| 63 | {t : ℝ} (ht : t ∈ Ico 0 F.lifetime) : MetricComplete (F.flow.metric t) := by |
| 64 | obtain ⟨K, hK, hbound⟩ := F.curvature_locally_bounded t ht.1 ht.2 |
| 65 | exact RiemannianMetric.metricComplete_of_tangentNorm_comparison |
| 66 | g0.metric (F.flow.metric t) 0 g0.complete (Real.exp_pos _) |
| 67 | (partialFlow_initial_tangentNorm_le F P ht hK |
| 68 | (fun s hs x => (le_abs_self _).trans (hbound s hs x))) |
| 69 | |
| 70 | end PoincareMT.M34 |