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.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 4 | |
| 5 | /-! |
| 6 | # Metric comparison for raw partial standard flows |
| 7 | |
| 8 | Morgan-Tian, Lemma 12.6, printed p. 297: the spatially uniform curvature |
| 9 | bound on a closed preterminal slab compares every slice with the initial |
| 10 | metric. No completeness or rotational symmetry of the flow is assumed. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | namespace PoincareMT.PartialStandardCapFlow |
| 18 | |
| 19 | /-- Lemma 12.6, p. 297: one curvature constant controls metric comparison |
| 20 | at all points and times of a fixed closed preterminal slab. -/ |
| 21 | theorem exists_metric_comparison |
| 22 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 23 | (G : PartialStandardCapFlow g₀) {T : ℝ} (hT : 0 ≤ T) (hTlt : T < G.lifetime) : |
| 24 | ∃ K : ℝ, 0 ≤ K ∧ ∀ t ∈ Set.Icc 0 T, ∀ x : StandardCapSpace, |
| 25 | ∀ v : TangentSpace (𝓡 3) x, |
| 26 | Real.exp (-6 * K * t) * g₀.metric.inner x v v ≤ |
| 27 | (G.flow.metric t).inner x v v ∧ |
| 28 | (G.flow.metric t).inner x v v ≤ |
| 29 | Real.exp (6 * K * t) * g₀.metric.inner x v v := by |
| 30 | obtain ⟨K, hK, hbound⟩ := G.curvature_locally_bounded T hT hTlt |
| 31 | refine ⟨K, hK, ?_⟩ |
| 32 | intro t ht x v |
| 33 | have hcompare := P.metric_comparison 3 StandardCapSpace |
| 34 | (Set.Ico 0 G.lifetime) G.flow 0 t K |
| 35 | ⟨le_rfl, G.lifetime_pos⟩ ⟨ht.1, ht.2.trans_lt hTlt⟩ ht.1 hK |
| 36 | (fun s hs y => (le_abs_self _).trans (hbound s ⟨hs.1, hs.2.trans ht.2⟩ y)) x v |
| 37 | simpa only [G.initial_metric, Nat.cast_ofNat, sub_zero, neg_mul, |
| 38 | show (2 : ℝ) * 3 = 6 by norm_num] using hcompare |
| 39 | |
| 40 | end PoincareMT.PartialStandardCapFlow |