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.LongTime.UniformControl.UniformPrefixFromFiniteLimit |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabContinuation |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabControlled |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.SeedFiniteLongConvergence |
| 5 | |
| 6 | local macro "P.m04.local_derivative_estimates_small" : term => |
| 7 | `(PoincareMT.RicciFlowCurvatureTheory.local_derivative_estimates_small |
| 8 | (PoincareMT.RicciFlowCurvatureTheory.toCalculus $(Lean.mkIdent `P.m04))) |
| 9 | |
| 10 | /-! |
| 11 | # Continuation from a bounded finite limit |
| 12 | |
| 13 | One global scalar bound on the actual finite limit transfers to every |
| 14 | source radius on its retained subsequence. The guarded source estimate |
| 15 | extends these prefixes by the same positive time, yielding larger finite |
| 16 | limits without a uniform long-slab hypothesis (Proposition 11.10 and |
| 17 | Claim 11.17, pp. 272--278). |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M30 |
| 28 | |
| 29 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 30 | FlowCarrier.isManifold |
| 31 | |
| 32 | /-- A global finite-limit scalar bound gives a common left buffer and |
| 33 | curvature coefficient on the selected original sources, before the radius |
| 34 | and negative-defect tolerance are supplied (Claim 11.17, pp. 277--278). -/ |
| 35 | theorem exists_uniform_left_cylinders_of_bounded_finite_limit |
| 36 | (hC : RicciFlowCurvatureTheory.{u}) |
| 37 | {S : GeneralizedBlowupSequence.{u}} {T Tplus : ℝ} |
| 38 | {epsilon C kappa r0 mu : ℝ} |
| 39 | (H : M30CommonBlowupControls S epsilon C kappa r0 mu) |
| 40 | (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) |
| 41 | (hT : 0 < T) (hTTplus : T < Tplus) |
| 42 | (hslabs : ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 43 | Nonempty (M30FiniteHorizonSlab S k A Tplus kappa r0)) |
| 44 | (hscalar : ∃ B : ℝ, 0 ≤ B ∧ ∀ s ∈ Ioc (-T) 0, ∀ x, |
| 45 | (G.limit.flow.connection s).scalarCurvature x ≤ B) : |
| 46 | ∃ delta : ℝ, 0 < delta ∧ T + delta < Tplus ∧ |
| 47 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 48 | ∀ᶠ k : ℕ in atTop, |
| 49 | Nonempty (NoncollapsedControlledBlowupCylinder |
| 50 | (reindexedBlowupSequence S G.subsequence G.subsequence_strictMono) |
| 51 | k A (T + delta) B eta kappa r0) := by |
| 52 | obtain ⟨D, hD, hprefix⟩ := eventually_uniform_prefix_scalar_of_finite_limit |
| 53 | G hT hTTplus hslabs hscalar |
| 54 | let H' := reindexedCommonBlowupControls H G.subsequence G.subsequence_strictMono |
| 55 | let delta := min (T / 4) |
| 56 | (min ((Tplus - T) / 4) (1 / (32 * H'.analytic_constant * D))) |
| 57 | have hdelta : 0 < delta := by |
| 58 | apply lt_min (div_pos hT (by norm_num)) |
| 59 | apply lt_min (div_pos (sub_pos.mpr hTTplus) (by norm_num)) |
| 60 | apply one_div_pos.mpr |
| 61 | have hDpos : 0 < D := by linarith |
| 62 | positivity [H'.analytic_constant_pos] |
| 63 | have hbuffer : T + delta < Tplus := by |
| 64 | have hle : delta ≤ (Tplus - T) / 4 := |
| 65 | (min_le_right _ _).trans (min_le_left _ _) |
| 66 | linarith |
| 67 | refine ⟨delta, hdelta, hbuffer, 26 * D, by linarith, ?_⟩ |
| 68 | intro A hA eta heta |
| 69 | obtain ⟨_hdelta, hbuffer', hfamily⟩ := |
| 70 | eventually_finiteSlab_bounds_of_uniform_prefix_scalar hC H' |
| 71 | A T Tplus D hA hT hTTplus hD (hprefix A hA) |
| 72 | filter_upwards [hfamily eta heta] with k hk |
| 73 | obtain ⟨e, hcurvature, hdefect⟩ := hk |
| 74 | exact ⟨noncollapsedControlledCylinderOfFiniteHorizonSlab e hbuffer' |
| 75 | (fun s hs x _hx => hcurvature s hs x) |
| 76 | (fun s hs x _hx => hdefect s hs x)⟩ |
| 77 | |
| 78 | /-- A bounded actual finite limit admits a limit on a strictly larger |
| 79 | horizon using the original raw slabs and the retained source subsequence |
| 80 | (Proposition 11.10, pp. 272--278). -/ |
| 81 | theorem exists_larger_finite_convergence_of_scalar_bound |
| 82 | (P : M30ControlledBlowupPredecessors.{u}) |
| 83 | {S : GeneralizedBlowupSequence.{u}} {T : ℝ} {T0 : ℝ≥0∞} |
| 84 | {epsilon C kappa r0 mu : ℝ} |
| 85 | (H : M30LongBlowupControls S epsilon C kappa r0 mu T0) |
| 86 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 87 | (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) |
| 88 | (hT : 0 < T) (hTT0 : ENNReal.ofReal T < T0) |
| 89 | (hscalar : ∃ B : ℝ, 0 ≤ B ∧ ∀ s ∈ Ioc (-T) 0, ∀ x, |
| 90 | (G.limit.flow.connection s).scalarCurvature x ≤ B) : |
| 91 | ∃ T' : ℝ, T < T' ∧ ENNReal.ofReal T' < T0 ∧ |
| 92 | Nonempty (GeneralizedBlowupConvergence S (Ioc (-T') 0)) := by |
| 93 | obtain ⟨Tplus, _hTplusNonneg, hTTplus, hTplusT0⟩ := |
| 94 | ENNReal.lt_iff_exists_real_btwn.mp hTT0 |
| 95 | have hTplus : 0 < Tplus := ENNReal.ofReal_pos.mp (lt_of_le_of_lt |
| 96 | (by positivity : (0 : ℝ≥0∞) ≤ ENNReal.ofReal T) hTTplus) |
| 97 | have hTTplus' : T < Tplus := (ENNReal.ofReal_lt_ofReal_iff hTplus).mp hTTplus |
| 98 | obtain ⟨delta, hdelta, hbuffer, B, hB, hfamily⟩ := |
| 99 | exists_uniform_left_cylinders_of_bounded_finite_limit P.m04 |
| 100 | H.toM30CommonBlowupControls G hT hTTplus' |
| 101 | (H.slabs Tplus (hT.trans hTTplus') hTplusT0) hscalar |
| 102 | let S' := reindexedBlowupSequence S G.subsequence G.subsequence_strictMono |
| 103 | let H' := reindexedCommonBlowupControls H.toM30CommonBlowupControls |
| 104 | G.subsequence G.subsequence_strictMono |
| 105 | obtain ⟨rho, v, hrho, hv, hvolume⟩ := |
| 106 | exists_eventually_terminal_volume_lower_bound P.m04 H' |
| 107 | (reindexed_boundedDistance hbound G.subsequence G.subsequence_strictMono) |
| 108 | have hT' : 0 < T + delta := add_pos hT hdelta |
| 109 | have hcyl : ∀ t : ℝ, 0 < t → ENNReal.ofReal t < ENNReal.ofReal (T + delta) → |
| 110 | ∃ B : ℝ, 0 ≤ B ∧ ∀ A : ℝ, 0 < A → ∀ eta : ℝ, 0 < eta → |
| 111 | ∀ᶠ k : ℕ in atTop, Nonempty (ControlledBlowupCylinder S' k A t B eta) := by |
| 112 | intro t _ht ht |
| 113 | have ht' : t < T + delta := (ENNReal.ofReal_lt_ofReal_iff hT').mp ht |
| 114 | have hI : Icc (-t) 0 ⊆ Icc (-(T + delta)) 0 := |
| 115 | Icc_subset_Icc (neg_le_neg ht'.le) le_rfl |
| 116 | refine ⟨B, hB, ?_⟩ |
| 117 | intro A hA eta heta |
| 118 | filter_upwards [hfamily A hA eta heta] with k hk |
| 119 | obtain ⟨E⟩ := hk |
| 120 | exact ⟨{ |
| 121 | embedding := Cylinder.restrict E.toControlledBlowupCylinder.embedding hI Subset.rfl |
| 122 | zero_identity := fun hs x hx => E.zero_identity (hI hs) x hx |
| 123 | curvature_bound := fun s hs x hx => E.curvature_bound s (hI hs) x hx |
| 124 | negative_curvature_bound := fun s hs x hx => |
| 125 | E.negative_curvature_bound s (hI hs) x hx }⟩ |
| 126 | obtain ⟨G'⟩ := exists_backward_generalizedBlowupConvergence |
| 127 | P.m04.local_derivative_estimates_small withinFlowJetBoundsService.{0, 0} |
| 128 | withinBilinearFlowService.{0} spatialSliceJetConvergenceService.{0, 0, 0, 0, 0} |
| 129 | S' (ENNReal.ofReal_pos.mpr hT') hrho hv H'.balls_compact hcyl hvolume |
| 130 | refine ⟨T + delta, by linarith, |
| 131 | (ENNReal.ofReal_le_ofReal hbuffer.le).trans_lt hTplusT0, ?_⟩ |
| 132 | exact ⟨convergenceOfReindexed (blowupBackwardInterval_ofReal hT' ▸ G')⟩ |
| 133 | |
| 134 | end PoincareMT.M30 |