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.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderRestriction |
| 3 | |
| 4 | /-! |
| 5 | # The same blowup sequence and cylinders on a selected tail |
| 6 | |
| 7 | Only the index or displayed source/time sets change. The actual flow, |
| 8 | base, scalar normalization and dependent cylinder maps are retained. |
| 9 | Source: terminal-common-interval.md, C4-C5; MT pp. 407-408. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | /-- Reindex the whole actual generalized family at its unchanged scale. -/ |
| 22 | def terminalCommonInterval_reindex (V : GeneralizedBlowupSequence.{u}) |
| 23 | (sigma : ℕ → ℕ) (hsigma : StrictMono sigma) : GeneralizedBlowupSequence.{u} where |
| 24 | flow k := V.flow (sigma k) |
| 25 | base k := V.base (sigma k) |
| 26 | base_scalar_pos k := V.base_scalar_pos (sigma k) |
| 27 | scalar_diverges := V.scalar_diverges.comp hsigma.tendsto_atTop |
| 28 | |
| 29 | /-- Reindexing retains every field of the actual controlled cylinder. -/ |
| 30 | def terminalCommonInterval_reindexCylinder |
| 31 | {V : GeneralizedBlowupSequence.{u}} {sigma : ℕ → ℕ} (hsigma : StrictMono sigma) |
| 32 | {k : ℕ} {A T B eta : ℝ} |
| 33 | (e : ControlledBlowupCylinder V (sigma k) A T B eta) : |
| 34 | ControlledBlowupCylinder (terminalCommonInterval_reindex V sigma hsigma) k A T B eta where |
| 35 | embedding := e.embedding |
| 36 | zero_identity := e.zero_identity |
| 37 | curvature_bound := e.curvature_bound |
| 38 | negative_curvature_bound := e.negative_curvature_bound |
| 39 | |
| 40 | /-- Forget the index adapter without replacing its dependent maps. -/ |
| 41 | def terminalCommonInterval_originalCylinder |
| 42 | {V : GeneralizedBlowupSequence.{u}} {sigma : ℕ → ℕ} {hsigma : StrictMono sigma} |
| 43 | {k : ℕ} {A T B eta : ℝ} |
| 44 | (e : ControlledBlowupCylinder (terminalCommonInterval_reindex V sigma hsigma) |
| 45 | k A T B eta) : ControlledBlowupCylinder V (sigma k) A T B eta where |
| 46 | embedding := e.embedding |
| 47 | zero_identity := e.zero_identity |
| 48 | curvature_bound := e.curvature_bound |
| 49 | negative_curvature_bound := e.negative_curvature_bound |
| 50 | |
| 51 | /-- The existence tests concern exactly the same original cylinders. -/ |
| 52 | theorem terminalCommonInterval_reindex_cylinder_iff |
| 53 | {V : GeneralizedBlowupSequence.{u}} {sigma : ℕ → ℕ} {hsigma : StrictMono sigma} |
| 54 | {k : ℕ} {A T B eta : ℝ} : |
| 55 | Nonempty (ControlledBlowupCylinder (terminalCommonInterval_reindex V sigma hsigma) |
| 56 | k A T B eta) ↔ Nonempty (ControlledBlowupCylinder V (sigma k) A T B eta) := |
| 57 | ⟨fun ⟨e⟩ => ⟨terminalCommonInterval_originalCylinder e⟩, |
| 58 | fun ⟨e⟩ => ⟨terminalCommonInterval_reindexCylinder hsigma e⟩⟩ |
| 59 | |
| 60 | /-- Restrict the actual included cylinder and relax only its two bounds. -/ |
| 61 | noncomputable def terminalCommonInterval_restrict |
| 62 | {V : GeneralizedBlowupSequence.{u}} {k : ℕ} {A T B eta A' T' B' eta' : ℝ} |
| 63 | (e : ControlledBlowupCylinder V k A T B eta) |
| 64 | (hA : A' ≤ A) (hT : T' ≤ T) (hB : B ≤ B') (heta : eta ≤ eta') : |
| 65 | ControlledBlowupCylinder V k A' T' B' eta' := by |
| 66 | have htime : Icc (-T') 0 ⊆ Icc (-T) 0 := Icc_subset_Icc (neg_le_neg hT) le_rfl |
| 67 | have hspace : V.baseBall k A' ⊆ V.baseBall k A := by |
| 68 | intro x hx |
| 69 | exact hx.trans_le (ENNReal.ofReal_le_ofReal |
| 70 | (div_le_div_of_nonneg_right hA (Real.sqrt_nonneg _))) |
| 71 | refine { |
| 72 | embedding := e.embedding.restrict htime hspace |
| 73 | zero_identity := fun h x hx => e.zero_identity (htime h) x (hspace hx) |
| 74 | curvature_bound := ?_ |
| 75 | negative_curvature_bound := ?_ } |
| 76 | · intro s hs x hx |
| 77 | exact (e.curvature_bound s (htime hs) x (hspace hx)).trans |
| 78 | (mul_le_mul_of_nonneg_right hB (V.base_scalar_pos k).le) |
| 79 | · intro s hs x hx |
| 80 | exact (e.negative_curvature_bound s (htime hs) x (hspace hx)).trans |
| 81 | (mul_le_mul_of_nonneg_right heta (V.base_scalar_pos k).le) |
| 82 | |
| 83 | /-- Restriction keeps the whole dependent point map at every retained point. -/ |
| 84 | theorem terminalCommonInterval_restrict_pointMap |
| 85 | {V : GeneralizedBlowupSequence.{u}} {k : ℕ} {A T B eta A' T' B' eta' : ℝ} |
| 86 | (e : ControlledBlowupCylinder V k A T B eta) |
| 87 | (hA : A' ≤ A) (hT : T' ≤ T) (hB : B ≤ B') (heta : eta ≤ eta') |
| 88 | (s : ℝ) (hs : s ∈ Icc (-T') 0) |
| 89 | (x : ((V.flow k).slice (V.base k).1).carrier) : |
| 90 | (terminalCommonInterval_restrict e hA hT hB heta).embedding.pointMap s hs x = |
| 91 | e.embedding.pointMap s ⟨(neg_le_neg hT).trans hs.1, hs.2⟩ x := rfl |
| 92 | |
| 93 | /-- The M30 subsequence is composed without changing its limit or embeddings. -/ |
| 94 | def terminalCommonInterval_compSubsequence |
| 95 | {V : GeneralizedBlowupSequence.{u}} {sigma : ℕ → ℕ} |
| 96 | (hsigma : StrictMono sigma) {J : Set ℝ} |
| 97 | (G : GeneralizedBlowupConvergence (terminalCommonInterval_reindex V sigma hsigma) J) : |
| 98 | GeneralizedBlowupConvergence V J where |
| 99 | limit := G.limit |
| 100 | subsequence := sigma ∘ G.subsequence |
| 101 | subsequence_strictMono := hsigma.comp G.subsequence_strictMono |
| 102 | exhaustion := G.exhaustion |
| 103 | embedding := G.embedding |
| 104 | base_preserving := G.base_preserving |
| 105 | source_balls_in_image := G.source_balls_in_image |
| 106 | pullback_metric_CInfinity := G.pullback_metric_CInfinity |
| 107 | |
| 108 | /-- Actual base-ball compactness is retained along the same strict indices. -/ |
| 109 | theorem terminalCommonInterval_reindex_compact |
| 110 | {V : GeneralizedBlowupSequence.{u}} (h : BlowupBaseBallsCompact V) |
| 111 | {sigma : ℕ → ℕ} (hsigma : StrictMono sigma) : |
| 112 | BlowupBaseBallsCompact (terminalCommonInterval_reindex V sigma hsigma) := by |
| 113 | intro A hA |
| 114 | exact hsigma.tendsto_atTop.eventually (h A hA) |
| 115 | |
| 116 | end PoincareMT.M47 |