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.Theory |
| 2 | |
| 3 | /-! |
| 4 | # Subsequence selection in the controlled blowup theorem |
| 5 | |
| 6 | Morgan--Tian Theorem 11.1, pp. 269--271, first extracts a terminal limit and |
| 7 | then obtains a common short lifetime on the selected sequence. Reindexing |
| 8 | preserves the primitive controls, and composition of index maps gives the |
| 9 | original sequence's convergence with exactly the same metric jets. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M30 |
| 20 | |
| 21 | /-- The selected generalized sequence in Theorem 11.1, pp. 269--271. -/ |
| 22 | def reindexedBlowupSequence (S : GeneralizedBlowupSequence.{u}) |
| 23 | (phi : ℕ → ℕ) (hphi : StrictMono phi) : GeneralizedBlowupSequence.{u} where |
| 24 | flow := fun k => S.flow (phi k) |
| 25 | base := fun k => S.base (phi k) |
| 26 | base_scalar_pos := fun k => S.base_scalar_pos (phi k) |
| 27 | scalar_diverges := S.scalar_diverges.comp hphi.tendsto_atTop |
| 28 | |
| 29 | /-- The primitive assumptions of Theorem 11.1 persist after selection |
| 30 | (pp. 267--269); the eventual indices may change, but their constants do not. -/ |
| 31 | def reindexedCommonBlowupControls {S : GeneralizedBlowupSequence.{u}} |
| 32 | {epsilon C kappa r₀ mu : ℝ} |
| 33 | (H : M30CommonBlowupControls S epsilon C kappa r₀ mu) |
| 34 | (phi : ℕ → ℕ) (hphi : StrictMono phi) : |
| 35 | M30CommonBlowupControls (reindexedBlowupSequence S phi hphi) |
| 36 | epsilon C kappa r₀ mu where |
| 37 | epsilon_pos := H.epsilon_pos |
| 38 | C_pos := H.C_pos |
| 39 | kappa_pos := H.kappa_pos |
| 40 | radius_pos := H.radius_pos |
| 41 | branch := fun k => H.branch (phi k) |
| 42 | canonical := fun k => H.canonical (phi k) |
| 43 | analytic_constant := H.analytic_constant |
| 44 | analytic_constant_pos := H.analytic_constant_pos |
| 45 | scalar_gradient_bound := fun k => H.scalar_gradient_bound (phi k) |
| 46 | scalar_time_derivative_bound := fun k => H.scalar_time_derivative_bound (phi k) |
| 47 | balls_compact := fun A hA => hphi.tendsto_atTop.eventually (H.balls_compact A hA) |
| 48 | noncollapsed_at_zero := fun A hA => |
| 49 | hphi.tendsto_atTop.eventually (H.noncollapsed_at_zero A hA) |
| 50 | mu_pos := H.mu_pos |
| 51 | maximal_worldlines := fun A hA => |
| 52 | hphi.tendsto_atTop.eventually (H.maximal_worldlines A hA) |
| 53 | |
| 54 | /-- The finite-horizon hypothesis of Theorem 11.8, p. 272, survives |
| 55 | selection with its actual cylinder and noncollapse certificates. -/ |
| 56 | def reindexedLongBlowupControls {S : GeneralizedBlowupSequence.{u}} |
| 57 | {epsilon C kappa r₀ mu : ℝ} {T₀ : ℝ≥0∞} |
| 58 | (H : M30LongBlowupControls S epsilon C kappa r₀ mu T₀) |
| 59 | (phi : ℕ → ℕ) (hphi : StrictMono phi) : |
| 60 | M30LongBlowupControls (reindexedBlowupSequence S phi hphi) |
| 61 | epsilon C kappa r₀ mu T₀ where |
| 62 | toM30CommonBlowupControls := reindexedCommonBlowupControls H.toM30CommonBlowupControls phi hphi |
| 63 | horizon_pos := H.horizon_pos |
| 64 | slabs := by |
| 65 | intro T hT hTT A hA |
| 66 | filter_upwards [hphi.tendsto_atTop.eventually (H.slabs T hT hTT A hA)] with k hk |
| 67 | obtain ⟨E⟩ := hk |
| 68 | exact ⟨{ |
| 69 | embedding := E.embedding |
| 70 | zero_identity := E.zero_identity |
| 71 | noncollapsed := E.noncollapsed }⟩ |
| 72 | |
| 73 | /-- The bounded-distance estimate used in Theorem 11.1, p. 269, is retained |
| 74 | on every strictly increasing subsequence with the same radius constants. -/ |
| 75 | theorem reindexed_boundedDistance {S : GeneralizedBlowupSequence.{u}} |
| 76 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 77 | (phi : ℕ → ℕ) (hphi : StrictMono phi) : |
| 78 | GeneralizedBlowupBoundedDistance (reindexedBlowupSequence S phi hphi) := by |
| 79 | intro A hA |
| 80 | obtain ⟨D, hD, hevent⟩ := hbound A hA |
| 81 | exact ⟨D, hD, hphi.tendsto_atTop.eventually hevent⟩ |
| 82 | |
| 83 | /-- Compose the selections in Theorem 11.1, pp. 269--271. The same limit, |
| 84 | cylinders and within-domain jets witness convergence of the original sequence. -/ |
| 85 | def convergenceOfReindexed {S : GeneralizedBlowupSequence.{u}} |
| 86 | {phi : ℕ → ℕ} {hphi : StrictMono phi} {J : Set ℝ} |
| 87 | (G : GeneralizedBlowupConvergence (reindexedBlowupSequence S phi hphi) J) : |
| 88 | GeneralizedBlowupConvergence S J where |
| 89 | limit := G.limit |
| 90 | subsequence := phi ∘ G.subsequence |
| 91 | subsequence_strictMono := hphi.comp G.subsequence_strictMono |
| 92 | exhaustion := G.exhaustion |
| 93 | embedding := G.embedding |
| 94 | base_preserving := G.base_preserving |
| 95 | source_balls_in_image := G.source_balls_in_image |
| 96 | pullback_metric_CInfinity := G.pullback_metric_CInfinity |
| 97 | |
| 98 | /-- Selection of a terminal sequence does not change the short conclusion |
| 99 | of Theorem 11.1, pp. 267--271. -/ |
| 100 | theorem shortConclusion_of_reindexed {S : GeneralizedBlowupSequence.{u}} |
| 101 | {phi : ℕ → ℕ} {hphi : StrictMono phi} |
| 102 | (h : Nonempty (RepairedShortControlledBlowupConclusion |
| 103 | (reindexedBlowupSequence S phi hphi))) : |
| 104 | Nonempty (RepairedShortControlledBlowupConclusion S) := by |
| 105 | obtain ⟨H⟩ := h |
| 106 | obtain ⟨G⟩ := H.convergence |
| 107 | exact ⟨{ |
| 108 | backward_time := H.backward_time |
| 109 | backward_time_pos := H.backward_time_pos |
| 110 | convergence := ⟨convergenceOfReindexed G⟩ }⟩ |
| 111 | |
| 112 | /-- Composing the extracted indices retains the actual long limit and its |
| 113 | finite-scale and ancient certificates (Theorem 11.8, pp. 272--279). -/ |
| 114 | def longConclusionOfReindexed {S : GeneralizedBlowupSequence.{u}} |
| 115 | {phi : ℕ → ℕ} {hphi : StrictMono phi} {kappa r₀ : ℝ} {T₀ : ℝ≥0∞} |
| 116 | (H : RepairedLongControlledBlowupConclusion |
| 117 | (reindexedBlowupSequence S phi hphi) kappa r₀ T₀) : |
| 118 | RepairedLongControlledBlowupConclusion S kappa r₀ T₀ where |
| 119 | convergence := convergenceOfReindexed H.convergence |
| 120 | noncollapsed := H.noncollapsed |
| 121 | ancient := H.ancient |
| 122 | |
| 123 | end PoincareMT.M30 |