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.TerminalBlowup.MetricNondegeneration |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.MetricContraction |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.ScalarNeighborhood |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.MetricSpace |
| 6 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.HessianTrace |
| 7 | import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics |
| 8 | |
| 9 | /-! |
| 10 | # Propagating terminal scalar blowup to the tip |
| 11 | |
| 12 | Morgan-Tian Proposition 12.31, pp. 325-326. The direct rotational route |
| 13 | first treats points away from the tip. A bounded terminal scalar at the |
| 14 | tip would give a scalar-radius lower bound on one fixed neighborhood by |
| 15 | the guarded gradient estimate and metric contraction. That neighborhood |
| 16 | contains a nonzero point, contradicting its terminal scalar blowup. |
| 17 | No uniform scalar lower rate is used in this implication. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 26 | |
| 27 | /-- Proposition 12.31, pp. 325-326: actual guarded gradient control |
| 28 | propagates terminal blowup from every nonzero point to the origin. -/ |
| 29 | theorem scalar_tendsto_at_origin_of_tendsto_off_origin |
| 30 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 31 | (E : RepairedStandardCapExistenceData g₀) |
| 32 | {A H : ℝ} (hA : 0 < A) |
| 33 | (hgrad : ∀ t ∈ Ico 0 E.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 34 | H ≤ (E.flow.connection t).scalarCurvature x → |
| 35 | ∀ v : TangentSpace (𝓡 3) x, (E.flow.metric t).inner x v v = 1 → |
| 36 | |mvfderiv (𝓡 3) (E.flow.connection t).scalarCurvature x v| ≤ |
| 37 | A * (E.flow.connection t).scalarCurvature x ^ (3 / 2 : ℝ)) |
| 38 | (hoff : ∀ x : StandardCapSpace, x ≠ 0 → |
| 39 | Tendsto (fun t => (E.flow.connection t).scalarCurvature x) (𝓝[<] 1) atTop) : |
| 40 | Tendsto (fun t => (E.flow.connection t).scalarCurvature 0) (𝓝[<] 1) atTop := by |
| 41 | by_contra hnot |
| 42 | obtain ⟨B, hB, hbound⟩ := E.exists_final_scalar_bound_of_not_tendsto P 0 hnot |
| 43 | let K := max B H |
| 44 | have hK : 0 < K := hB.trans_le (le_max_left _ _) |
| 45 | let r := K ^ (-1 / 2 : ℝ) / A |
| 46 | have hr : 0 < r := div_pos (Real.rpow_pos_of_pos hK _) hA |
| 47 | let g := E.flow.metric (1 / 2) |
| 48 | have hball : g.ball 0 r ∈ 𝓝 (0 : StandardCapSpace) := by |
| 49 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : StandardCapSpace → Type _) := |
| 50 | ⟨g.toRiemannianMetric⟩ |
| 51 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin 3)) |
| 52 | (TangentSpace (𝓡 3) : StandardCapSpace → Type _) := |
| 53 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ |
| 54 | exact eventually_riemannianEDist_lt (𝓡 3) 0 (ENNReal.ofReal_pos.mpr hr) |
| 55 | obtain ⟨y, hyne, hyball⟩ := (dense_compl_singleton (0 : StandardCapSpace)).exists_mem_open |
| 56 | isOpen_interior ⟨0, mem_interior_iff_mem_nhds.mpr hball⟩ |
| 57 | have hyne' : y ≠ 0 := by simpa only [mem_compl_iff, mem_singleton_iff] using hyne |
| 58 | have hy : y ∈ g.ball 0 r := interior_subset hyball |
| 59 | have hhalf : (1 / 2 : ℝ) ∈ Ico 0 E.flow.base.lifetime := by |
| 60 | rw [E.lifetime_one] |
| 61 | norm_num |
| 62 | have hpositive : 0 < K ^ (-1 / 2 : ℝ) / 2 := half_pos (Real.rpow_pos_of_pos hK _) |
| 63 | have hzero : Tendsto |
| 64 | (fun t => (E.flow.connection t).scalarCurvature y ^ (-1 / 2 : ℝ)) |
| 65 | (𝓝[<] 1) (𝓝 0) := by |
| 66 | have hcomp := |
| 67 | (tendsto_rpow_neg_atTop (show (0 : ℝ) < 1 / 2 by norm_num)).comp (hoff y hyne') |
| 68 | convert hcomp using 1 |
| 69 | ext t |
| 70 | simp only [Function.comp_apply, neg_div] |
| 71 | have hle : K ^ (-1 / 2 : ℝ) / 2 ≤ 0 := by |
| 72 | apply ge_of_tendsto hzero |
| 73 | filter_upwards [self_mem_nhdsWithin, |
| 74 | (eventually_gt_nhds (show (1 / 2 : ℝ) < 1 by norm_num)).filter_mono |
| 75 | nhdsWithin_le_nhds] with t ht hhalfT |
| 76 | have htmem : t ∈ Ico 0 E.flow.base.lifetime := |
| 77 | ⟨by linarith, E.lifetime_one.symm ▸ ht⟩ |
| 78 | have hytime : y ∈ (E.flow.metric t).ball 0 r := |
| 79 | E.ball_subset_of_time_le hhalf htmem hhalfT.le 0 r hy |
| 80 | exact M35.scalar_radius_lower_on_ball (E.flow.metric t) (E.flow.connection t) |
| 81 | (E.scalar_pos htmem) (Proofs.M09.scalarCurvature_contMDiff P (E.flow.connection t)) |
| 82 | hA hK (le_max_right _ _) (hgrad t htmem) |
| 83 | ((hbound t ⟨hhalfT.le, ht⟩).trans (le_max_left _ _)) hytime |
| 84 | exact not_lt_of_ge hle hpositive |
| 85 | |
| 86 | end PoincareMT.RepairedStandardCapExistenceData |