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.Controlled.Predecessors |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.BlowupSubsequence |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteCompactScalarBound |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSourcePrefix |
| 5 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabContinuation |
| 6 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSlabControlled |
| 7 | |
| 8 | local notation "GeneralizedBoundedDistanceHypotheses" => |
| 9 | PoincareMT.DenseGeneralizedBoundedDistanceHypotheses |
| 10 | |
| 11 | /-! |
| 12 | # Radius-dependent left cylinders |
| 13 | |
| 14 | Morgan--Tian Corollary 11.16 and Claim 11.17, pp. 277--278. A compact |
| 15 | terminal scalar bound is transferred to strict source prefixes and then |
| 16 | continued across their limiting time. The actual source map, clock, scale, |
| 17 | ball and noncollapse certificate are retained literally. |
| 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 FlowCarrier.t2Space FlowCarrier.t3Space |
| 31 | |
| 32 | /-- Every supplied finite-horizon source family extends on each fixed |
| 33 | normalized terminal ball to a positive closed slab. The lifetime and |
| 34 | full-curvature coefficient may depend on the radius, but not on the |
| 35 | negative-defect tolerance (Morgan--Tian Corollary 11.16 and Claim 11.17, |
| 36 | pp. 277--278). -/ |
| 37 | theorem exists_radius_dependent_left_cylinders_threshold |
| 38 | (P : M30ControlledBlowupPredecessors.{u}) : |
| 39 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 400 ∧ |
| 40 | ∀ (S : GeneralizedBlowupSequence.{u}) |
| 41 | (epsilon C kappa r0 mu : ℝ), |
| 42 | epsilon ≤ epsilon0 → |
| 43 | ∀ _H : M30CommonBlowupControls S epsilon C kappa r0 mu, |
| 44 | ∀ (T Tplus : ℝ), 0 < T → T < Tplus → |
| 45 | ∀ G : GeneralizedBlowupConvergence S (Ioc (-T) 0), |
| 46 | (∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 47 | Nonempty (M30FiniteHorizonSlab S k A Tplus kappa r0)) → |
| 48 | ∀ A : ℝ, 0 < A → |
| 49 | ∃ delta : ℝ, 0 < delta ∧ T + delta < Tplus ∧ |
| 50 | ∃ B : ℝ, 0 ≤ B ∧ |
| 51 | ∀ eta : ℝ, 0 < eta → ∀ᶠ k : ℕ in atTop, |
| 52 | Nonempty (NoncollapsedControlledBlowupCylinder S |
| 53 | (G.subsequence k) A (T + delta) B eta kappa r0) := by |
| 54 | obtain ⟨epsilon0, hepsilon0, hepsilonMax, hscalarThreshold⟩ := |
| 55 | exists_finite_limit_compact_scalar_bound_threshold P |
| 56 | refine ⟨epsilon0, hepsilon0, hepsilonMax, ?_⟩ |
| 57 | intro S epsilon C kappa r0 mu hepsilonLe _H T Tplus hT hTTplus G hslabs A hA |
| 58 | have hHyp : GeneralizedBoundedDistanceHypotheses S epsilon C := |
| 59 | ⟨_H.branch, _H.canonical⟩ |
| 60 | obtain ⟨B0, hB0, hscalar⟩ := hscalarThreshold S epsilon C _H.epsilon_pos |
| 61 | hepsilonLe _H.C_pos hHyp T hT G (2 * A) (by linarith) |
| 62 | let D : ℝ := max 4 (B0 + 1) |
| 63 | have hD : 4 ≤ D := by |
| 64 | exact le_max_left _ _ |
| 65 | have hDpos : 0 < D := lt_of_lt_of_le (by norm_num) hD |
| 66 | let S' : GeneralizedBlowupSequence := |
| 67 | reindexedBlowupSequence S G.subsequence G.subsequence_strictMono |
| 68 | let G' : GeneralizedBlowupConvergence S' (Ioc (-T) 0) := { |
| 69 | limit := G.limit |
| 70 | subsequence := id |
| 71 | subsequence_strictMono := strictMono_id |
| 72 | exhaustion := G.exhaustion |
| 73 | embedding := G.embedding |
| 74 | base_preserving := G.base_preserving |
| 75 | source_balls_in_image := G.source_balls_in_image |
| 76 | pullback_metric_CInfinity := G.pullback_metric_CInfinity } |
| 77 | let H' : M30CommonBlowupControls S' epsilon C kappa r0 mu := |
| 78 | reindexedCommonBlowupControls _H G.subsequence G.subsequence_strictMono |
| 79 | have hslabs' : ∀ᶠ k : ℕ in atTop, |
| 80 | Nonempty (M30FiniteHorizonSlab S' k A Tplus kappa r0) := by |
| 81 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually |
| 82 | (hslabs A hA)] with k hk |
| 83 | obtain ⟨e⟩ := hk |
| 84 | refine ⟨{ |
| 85 | embedding := e.embedding |
| 86 | zero_identity := e.zero_identity |
| 87 | noncollapsed := e.noncollapsed }⟩ |
| 88 | have hprefix : ∀ t : ℝ, 0 < t → ∀ htT : t < T, |
| 89 | ∀ᶠ k : ℕ in atTop, |
| 90 | ∃ e : M30FiniteHorizonSlab S' k A Tplus kappa r0, |
| 91 | ∀ s (hs : s ∈ Icc (-t) 0) |
| 92 | (x : ((S'.flow k).slice (S'.base k).1).carrier), |
| 93 | x ∈ S'.baseBall k A → |
| 94 | (S'.flow k).scalar |
| 95 | ((FiniteHorizonSlab.closedEmbedding e |
| 96 | (htT.trans hTTplus)).pointMap s hs x) ≤ |
| 97 | D * S'.scale k := by |
| 98 | intro t ht htT |
| 99 | have hprefix' := eventually_finiteSlab_prefix_scalar_of_limit_bound |
| 100 | (S := S') (T := T) G' hA hTTplus hslabs' (by |
| 101 | simpa only [G', S', reindexedBlowupSequence, |
| 102 | GeneralizedBlowupSequence.scale, GeneralizedBlowupSequence.baseBall] using hscalar) |
| 103 | t ht htT |
| 104 | filter_upwards [hprefix'] with k hk |
| 105 | obtain ⟨e, he⟩ := hk |
| 106 | refine ⟨e, ?_⟩ |
| 107 | intro s hs x hx |
| 108 | simpa only [D, G', S', reindexedBlowupSequence, Function.id_def, |
| 109 | GeneralizedBlowupSequence.scale, GeneralizedBlowupSequence.baseBall] using he s hs x hx |
| 110 | obtain ⟨hdelta, hbuffer, hfamily⟩ := |
| 111 | eventually_finiteSlab_bounds_of_uniform_prefix_scalar |
| 112 | P.m04 H' A T Tplus D hA hT hTTplus hD hprefix |
| 113 | refine ⟨_, hdelta, hbuffer, 26 * D, ?_, ?_⟩ |
| 114 | · exact mul_nonneg (by norm_num) (le_trans (by norm_num) hD) |
| 115 | · intro eta heta |
| 116 | filter_upwards [hfamily eta heta] with k hk |
| 117 | obtain ⟨e, hcurv, hdefect⟩ := hk |
| 118 | refine ⟨by |
| 119 | let e' := noncollapsedControlledCylinderOfFiniteHorizonSlab e hbuffer |
| 120 | (fun s hs x _hx => hcurv s hs x) |
| 121 | (fun s hs x _hx => hdefect s hs x) |
| 122 | exact { |
| 123 | embedding := e'.embedding |
| 124 | zero_identity := e'.zero_identity |
| 125 | curvature_bound := e'.curvature_bound |
| 126 | negative_curvature_bound := e'.negative_curvature_bound |
| 127 | noncollapsed := e'.noncollapsed } |
| 128 | ⟩ |
| 129 | |
| 130 | end PoincareMT.M30 |