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.Lifetime.CanonicalGeometry.CapFiniteSlabs |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Basic.GoodPoint |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Curvature.OrdinaryBoxScalar |
| 4 | |
| 5 | /-! |
| 6 | # Actual M30 long-horizon controls for a cap blow-up sequence |
| 7 | |
| 8 | The earlier good-point property supplies the canonical and both analytic |
| 9 | fields. Actual retained geometry supplies the branch, compact balls, |
| 10 | all-cylinder noncollapse, maximal worldlines and every finite past slab. |
| 11 | Source: Morgan-Tian Theorems 11.8 and 12.28, pp. 276-277, 323-324; |
| 12 | bad-point selection derivation, sections 6-7. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | variable {g0 : StandardInitialMetric} (F : MaximalStandardCapFlow g0) |
| 23 | (P : M34StandardCapPredecessors) |
| 24 | (R : OrdinaryProductRicciGeometry F.base.flow.metric (partialFlowSpacetimeInterval F.base)) |
| 25 | |
| 26 | local notation "G" => ordinaryChapter11Flow |
| 27 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R |
| 28 | |
| 29 | include P |
| 30 | |
| 31 | /-- The complete frozen M30 input for the actual cap sequence, with |
| 32 | its all-earlier canonical and analytic property kept explicit |
| 33 | (Theorem 12.28). -/ |
| 34 | theorem standardFlow_chapter11_long_controls (E0 : StandardCapEstimate g0) |
| 35 | (p : ℕ → (G).point) (hpositive : ∀ k, 0 < (G).scalar (p k)) |
| 36 | (hdiverges : Tendsto (fun k => (G).scalar (p k)) atTop atTop) |
| 37 | (H : StandardFlowNoncollapsingCertificate F) {r0 epsilon C A : ℝ} |
| 38 | (hr0 : 0 < r0) (hradius : r0 ≤ H.radius) (hrtime : r0 ^ 2 ≤ F.base.lifetime / 4) |
| 39 | (hepsilon : 0 < epsilon) (hC : 0 < C) (hA : 0 < A) |
| 40 | (hgood : ∀ k, ∀ q : (G).point, q.1 ≤ (p k).1 → |
| 41 | 4 * (G).scalar (p k) ≤ (G).scalar q → Chapter11GoodPoint (G) epsilon C A q) : |
| 42 | Nonempty (M30LongBlowupControls (fixedFlowBlowupSequence (G) p hpositive hdiverges) |
| 43 | epsilon C H.kappa r0 1 ⊤) := by |
| 44 | let S := fixedFlowBlowupSequence (G) p hpositive hdiverges |
| 45 | refine ⟨{ |
| 46 | epsilon_pos := hepsilon |
| 47 | C_pos := hC |
| 48 | kappa_pos := H.kappa_pos |
| 49 | radius_pos := hr0 |
| 50 | branch := fun _ => partialFlow_chapter11_branch F.base P E0 R |
| 51 | canonical := fun k => chapter11GoodPoint_earlier_canonical (p k) (hgood k) |
| 52 | analytic_constant := A |
| 53 | analytic_constant_pos := hA |
| 54 | scalar_gradient_bound := ?_ |
| 55 | scalar_time_derivative_bound := ?_ |
| 56 | balls_compact := ?_ |
| 57 | noncollapsed_at_zero := ?_ |
| 58 | mu_pos := zero_lt_one |
| 59 | maximal_worldlines := partialFlow_chapter11_worldline_survival F.base P R |
| 60 | p hpositive hdiverges zero_le_one |
| 61 | horizon_pos := by simp |
| 62 | slabs := fun T _ _ B _ => standardFlow_chapter11_finite_slabs F P R |
| 63 | p hpositive hdiverges H hradius hrtime T B |
| 64 | }⟩ |
| 65 | · intro k t _ htime x hhigh |
| 66 | exact (hgood k ⟨t, x⟩ htime hhigh).scalar_gradient |
| 67 | · intro k b t ht htime x hhigh |
| 68 | have he := ordinaryChapter11_box_scalar_eq (I := partialFlowSpacetimeInterval F.base) |
| 69 | (F := F.base.flow) R (partialFlow_chapter11_calculus F.base P R) b ht x |
| 70 | exact (hgood k ⟨t, ((G).box b).forward t ht x⟩ htime |
| 71 | (hhigh.trans_eq he.symm)).scalar_time_derivative b ht x rfl |
| 72 | · intro B _ |
| 73 | exact Eventually.of_forall fun k => partialFlow_chapter11_compact_ball F.base P R (p k) |
| 74 | (B / Real.sqrt (S.scale k)) |
| 75 | · intro B _ |
| 76 | filter_upwards [standardFlow_chapter11_finite_slabs F P R p hpositive hdiverges |
| 77 | H hradius hrtime 1 B] with k hk |
| 78 | obtain ⟨slab⟩ := hk |
| 79 | intro x hx |
| 80 | have hzero : (0 : ℝ) ∈ Ioc (-1) 0 := by norm_num |
| 81 | have h := slab.noncollapsed 0 hzero x hx |
| 82 | rwa [slab.zero_identity hzero x hx] at h |
| 83 | |
| 84 | end PoincareMT.M34 |