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.Generalized.BlowupSubsequence |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteSourcePrefix |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Data |
| 4 | |
| 5 | /-! |
| 6 | # Uniform source prefixes from a finite generalized limit |
| 7 | |
| 8 | This adapter isolates the reindexing bookkeeping in Claim 11.17. A finite |
| 9 | generalized convergence whose limiting scalar is bounded on the whole retained |
| 10 | carrier transfers that bound to every fixed source ball with one coefficient |
| 11 | chosen before the radius. It is deliberately a finite-window statement: it |
| 12 | does not construct a new convergence or extend the time interval. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 25 | FlowCarrier.isManifold FlowCarrier.t2Space FlowCarrier.t3Space |
| 26 | |
| 27 | /-- A global scalar bound on one finite generalized limit gives a radius- |
| 28 | independent scalar prefix after passing to the limit subsequence. The source |
| 29 | slabs may still be supplied separately for each radius; all of them use the |
| 30 | same `D = max 4 (B + 1)` (Claim 11.17, pp. 277--278). -/ |
| 31 | theorem eventually_uniform_prefix_scalar_of_finite_limit |
| 32 | {S : GeneralizedBlowupSequence.{u}} {T : ℝ} |
| 33 | (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) |
| 34 | (_hT : 0 < T) |
| 35 | {Tplus kappa r₀ : ℝ} (hTTplus : T < Tplus) |
| 36 | (hslabs : ∀ A : ℝ, 0 < A → ∀ᶠ k : ℕ in atTop, |
| 37 | Nonempty (M30FiniteHorizonSlab S k A Tplus kappa r₀)) |
| 38 | (hscalar : ∃ B : ℝ, 0 ≤ B ∧ |
| 39 | ∀ s, s ∈ Ioc (-T) 0 → ∀ x : G.limit.carrier.carrier, |
| 40 | (G.limit.flow.connection s).scalarCurvature x ≤ B) : |
| 41 | ∃ D : ℝ, 4 ≤ D ∧ |
| 42 | ∀ A : ℝ, 0 < A → ∀ t : ℝ, 0 < t → ∀ htT : t < T, |
| 43 | ∀ᶠ k : ℕ in atTop, |
| 44 | ∃ e : M30FiniteHorizonSlab |
| 45 | (reindexedBlowupSequence S G.subsequence G.subsequence_strictMono) |
| 46 | k A Tplus kappa r₀, |
| 47 | ∀ s (hs : s ∈ Icc (-t) 0) |
| 48 | (x : (((reindexedBlowupSequence S G.subsequence |
| 49 | G.subsequence_strictMono).flow k).slice |
| 50 | ((reindexedBlowupSequence S G.subsequence |
| 51 | G.subsequence_strictMono).base k).1).carrier), |
| 52 | x ∈ (reindexedBlowupSequence S G.subsequence |
| 53 | G.subsequence_strictMono).baseBall k A → |
| 54 | ((reindexedBlowupSequence S G.subsequence |
| 55 | G.subsequence_strictMono).flow k).scalar |
| 56 | ((FiniteHorizonSlab.closedEmbedding e |
| 57 | (htT.trans hTTplus)).pointMap s hs x) ≤ |
| 58 | D * (reindexedBlowupSequence S G.subsequence |
| 59 | G.subsequence_strictMono).scale k := by |
| 60 | obtain ⟨B, hB, hscalar⟩ := hscalar |
| 61 | let S' : GeneralizedBlowupSequence.{u} := |
| 62 | reindexedBlowupSequence S G.subsequence G.subsequence_strictMono |
| 63 | let G' : GeneralizedBlowupConvergence S' (Ioc (-T) 0) := { |
| 64 | limit := G.limit |
| 65 | subsequence := id |
| 66 | subsequence_strictMono := strictMono_id |
| 67 | exhaustion := G.exhaustion |
| 68 | embedding := G.embedding |
| 69 | base_preserving := G.base_preserving |
| 70 | source_balls_in_image := G.source_balls_in_image |
| 71 | pullback_metric_CInfinity := G.pullback_metric_CInfinity } |
| 72 | let D : ℝ := max 4 (B + 1) |
| 73 | have hD : 4 ≤ D := le_max_left _ _ |
| 74 | refine ⟨D, hD, ?_⟩ |
| 75 | intro A hA t ht htT |
| 76 | have hslabs' : ∀ᶠ k : ℕ in atTop, |
| 77 | Nonempty (M30FiniteHorizonSlab S' k A Tplus kappa r₀) := by |
| 78 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually |
| 79 | (hslabs A hA)] with k hk |
| 80 | obtain ⟨e⟩ := hk |
| 81 | exact ⟨{ |
| 82 | embedding := e.embedding |
| 83 | zero_identity := e.zero_identity |
| 84 | noncollapsed := e.noncollapsed }⟩ |
| 85 | have hprefix := eventually_finiteSlab_prefix_scalar_of_limit_bound |
| 86 | (S := S') (T := T) G' hA hTTplus hslabs' (by |
| 87 | intro s hs x hx |
| 88 | exact hscalar s hs x) |
| 89 | t ht htT |
| 90 | filter_upwards [hprefix] with k hk |
| 91 | obtain ⟨e, he⟩ := hk |
| 92 | refine ⟨e, ?_⟩ |
| 93 | intro s hs x hx |
| 94 | simpa only [D, S', G', reindexedBlowupSequence, Function.id_def, |
| 95 | GeneralizedBlowupSequence.scale, GeneralizedBlowupSequence.baseBall] using |
| 96 | he s hs x hx |
| 97 | |
| 98 | end PoincareMT.M30 |