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.Blowup.Construction.ShortTime.ShortControlSupplier |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardGeneralizedConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardInterval |
| 4 | |
| 5 | local macro "P.m04.local_derivative_estimates_small" : term => |
| 6 | `(PoincareMT.RicciFlowCurvatureTheory.local_derivative_estimates_small |
| 7 | (PoincareMT.RicciFlowCurvatureTheory.toCalculus $(Lean.mkIdent `P.m04))) |
| 8 | |
| 9 | /-! |
| 10 | # A finite open-left seed from the short construction |
| 11 | |
| 12 | Theorem 11.1 first supplies one genuine short controlled cylinder family on |
| 13 | a selected sequence. Choose a positive horizon smaller than its lifetime |
| 14 | and the prescribed raw horizon. Restriction gives controlled cylinders on |
| 15 | every shorter slab with the same curvature coefficient, so the expanding |
| 16 | time assembly constructs an open-left limit. This only uses the established |
| 17 | short construction; no long control service is assumed. |
| 18 | |
| 19 | The raw finite slabs persist along the final selected sequence and remain |
| 20 | available for the left continuation in Theorem 11.8, pp. 272-279. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | |
| 25 | open Set Filter |
| 26 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | namespace PoincareMT.M30 |
| 31 | |
| 32 | /-- A genuine short cylinder family supplies an open-left limit at a |
| 33 | positive finite horizon strictly below any prescribed positive horizon. -/ |
| 34 | theorem exists_seed_finite_long_convergence_of_short_controls |
| 35 | (P : M30ControlledBlowupPredecessors.{u}) |
| 36 | (S : GeneralizedBlowupSequence.{u}) |
| 37 | {epsilon C kappa r0 mu : ℝ} {T0 : ℝ≥0∞} |
| 38 | (H : M30CommonBlowupControls S epsilon C kappa r0 mu) |
| 39 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 40 | (Hshort : ShortControlledBlowupHypotheses S kappa r0) |
| 41 | (hT0 : 0 < T0) : |
| 42 | ∃ T : ℝ, 0 < T ∧ ENNReal.ofReal T < T0 ∧ |
| 43 | Nonempty (GeneralizedBlowupConvergence S (Ioc (-T) 0)) := by |
| 44 | obtain ⟨d, _hdnonneg, hdpos, hdT0⟩ := ENNReal.lt_iff_exists_real_btwn.mp hT0 |
| 45 | have hd : 0 < d := ENNReal.ofReal_pos.mp hdpos |
| 46 | let T := min Hshort.backward_time d / 2 |
| 47 | have hT : 0 < T := half_pos (lt_min Hshort.backward_time_pos hd) |
| 48 | have hTshort : T < Hshort.backward_time := by |
| 49 | have hle := min_le_left Hshort.backward_time d |
| 50 | dsimp only [T] |
| 51 | linarith [lt_min Hshort.backward_time_pos hd] |
| 52 | have hTd : T < d := by |
| 53 | have hle := min_le_right Hshort.backward_time d |
| 54 | dsimp only [T] |
| 55 | linarith [lt_min Hshort.backward_time_pos hd] |
| 56 | have hTT0 : ENNReal.ofReal T < T0 := |
| 57 | (ENNReal.ofReal_le_ofReal hTd.le).trans_lt hdT0 |
| 58 | obtain ⟨rho, v, hrho, hv, hvolume⟩ := |
| 59 | exists_eventually_terminal_volume_lower_bound P.m04 H hbound |
| 60 | have hcyl : ∀ t : ℝ, 0 < t → ENNReal.ofReal t < ENNReal.ofReal T → |
| 61 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 62 | ∀ᶠ k : ℕ in atTop, |
| 63 | Nonempty (ControlledBlowupCylinder S k A t B eta) := by |
| 64 | intro t _ht htT |
| 65 | have htshort : t < Hshort.backward_time := |
| 66 | ((ENNReal.ofReal_lt_ofReal_iff hT).mp htT).trans hTshort |
| 67 | have hI : Icc (-t) 0 ⊆ Icc (-Hshort.backward_time) 0 := |
| 68 | Icc_subset_Icc (neg_le_neg htshort.le) le_rfl |
| 69 | refine ⟨Hshort.curvature_bound, Hshort.curvature_bound_nonneg, ?_⟩ |
| 70 | intro A hA eta heta |
| 71 | filter_upwards [Hshort.cylinders A hA eta heta] with k hk |
| 72 | obtain ⟨E⟩ := hk |
| 73 | exact ⟨{ |
| 74 | embedding := Cylinder.restrict E.embedding hI Subset.rfl |
| 75 | zero_identity := fun hs x hx => E.zero_identity (hI hs) x hx |
| 76 | curvature_bound := fun s hs x hx => E.curvature_bound s (hI hs) x hx |
| 77 | negative_curvature_bound := fun s hs x hx => |
| 78 | E.negative_curvature_bound s (hI hs) x hx }⟩ |
| 79 | obtain ⟨G⟩ := exists_backward_generalizedBlowupConvergence |
| 80 | P.m04.local_derivative_estimates_small withinFlowJetBoundsService.{0, 0} |
| 81 | withinBilinearFlowService.{0} spatialSliceJetConvergenceService.{0, 0, 0, 0, 0} |
| 82 | S (ENNReal.ofReal_pos.mpr hT) hrho hv Hshort.balls_compact hcyl hvolume |
| 83 | exact ⟨T, hT, hTT0, ⟨blowupBackwardInterval_ofReal hT ▸ G⟩⟩ |
| 84 | |
| 85 | /-- The original common controls yield a finite long seed below a universal |
| 86 | accuracy threshold. Every raw slab remains available on its retained |
| 87 | subsequence, independently of any uniform long-slab field. -/ |
| 88 | theorem exists_seed_finite_long_convergence_threshold |
| 89 | (P : M30ControlledBlowupPredecessors.{u}) : |
| 90 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 400 ∧ |
| 91 | ∀ (S : GeneralizedBlowupSequence.{u}) (epsilon C kappa r0 mu : ℝ) |
| 92 | (T0 : ℝ≥0∞), |
| 93 | epsilon ≤ epsilon0 → |
| 94 | M30CommonBlowupControls S epsilon C kappa r0 mu → |
| 95 | 0 < T0 → |
| 96 | (∀ T : ℝ, 0 < T → ENNReal.ofReal T < T0 → |
| 97 | ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 98 | Nonempty (M30FiniteHorizonSlab S k A T kappa r0)) → |
| 99 | ∃ T : ℝ, 0 < T ∧ ENNReal.ofReal T < T0 ∧ |
| 100 | ∃ G : GeneralizedBlowupConvergence S (Ioc (-T) 0), |
| 101 | ∀ Tplus : ℝ, T < Tplus → ENNReal.ofReal Tplus < T0 → |
| 102 | ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 103 | Nonempty (M30FiniteHorizonSlab S (G.subsequence k) A Tplus kappa r0) := by |
| 104 | obtain ⟨epsilon29, hepsilon29, hepsilon29small, hbound⟩ := |
| 105 | exists_boundedDistance_threshold P |
| 106 | obtain ⟨epsilonShort, hepsilonShort, hshort⟩ := shortControlService P.m04 |
| 107 | refine ⟨min epsilon29 epsilonShort, lt_min hepsilon29 hepsilonShort, |
| 108 | (min_le_left _ _).trans hepsilon29small, ?_⟩ |
| 109 | intro S epsilon C kappa r0 mu T0 hepsilon H hT0 hslabs |
| 110 | have hboundS := hbound S epsilon C kappa r0 mu |
| 111 | (hepsilon.trans (min_le_left _ _)) H |
| 112 | obtain ⟨phi, hphi, ⟨Hshort⟩⟩ := hshort S epsilon C kappa r0 mu |
| 113 | (hepsilon.trans (min_le_right _ _)) H hboundS |
| 114 | obtain ⟨T, hT, hTT0, ⟨G⟩⟩ := exists_seed_finite_long_convergence_of_short_controls P |
| 115 | (reindexedBlowupSequence S phi hphi) (reindexedCommonBlowupControls H phi hphi) |
| 116 | (reindexed_boundedDistance hboundS phi hphi) Hshort hT0 |
| 117 | let G0 : GeneralizedBlowupConvergence S (Ioc (-T) 0) := convergenceOfReindexed G |
| 118 | refine ⟨T, hT, hTT0, G0, ?_⟩ |
| 119 | intro Tplus hTTplus hTplusT0 A hA |
| 120 | exact G0.subsequence_strictMono.tendsto_atTop.eventually |
| 121 | (hslabs Tplus (hT.trans hTTplus) hTplusT0 A hA) |
| 122 | |
| 123 | end PoincareMT.M30 |