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.Restriction |
| 3 | |
| 4 | /-! |
| 5 | # Bounded distance and uniform backward durations |
| 6 | |
| 7 | The opening of the proof of Morgan--Tian Theorem 11.1, p. 269, applies |
| 8 | Theorem 10.2 and Assumption (5) to every fixed normalized terminal ball. |
| 9 | The duration below is uniform in the points of that ball. It still supplies |
| 10 | singleton cylinders; gluing them into a smooth ball cylinder is separate. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Filter |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | /-- M29 supplies a positive threshold for the bounded-distance step of |
| 23 | Theorem 11.1, p. 269. The final threshold must also satisfy the later |
| 24 | geometric smallness bounds. -/ |
| 25 | theorem exists_boundedDistance_threshold (P : M30ControlledBlowupPredecessors.{u}) : |
| 26 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ 1 / 400 ∧ |
| 27 | ∀ (S : GeneralizedBlowupSequence.{u}) (epsilon C kappa r₀ mu : ℝ), |
| 28 | epsilon ≤ epsilon₀ → M30CommonBlowupControls S epsilon C kappa r₀ mu → |
| 29 | GeneralizedBlowupBoundedDistance S := by |
| 30 | obtain ⟨epsilon29, hepsilon29, _, hbound⟩ := P.m29.constants |
| 31 | refine ⟨min epsilon29 (1 / 400), lt_min hepsilon29 (by norm_num), |
| 32 | min_le_right _ _, ?_⟩ |
| 33 | intro S epsilon C kappa r₀ mu hle H |
| 34 | exact hbound epsilon H.epsilon_pos (hle.trans (min_le_left _ _)) C H.C_pos S |
| 35 | ⟨H.branch, H.canonical⟩ |
| 36 | |
| 37 | variable {S : GeneralizedBlowupSequence.{u}} {k : ℕ} |
| 38 | {x : ((S.flow k).slice (S.base k).1).carrier} {mu D : ℝ} |
| 39 | |
| 40 | /-- The duration denominator is positive even if the point's scalar is |
| 41 | negative (Theorem 11.1, Assumption (5), p. 268). -/ |
| 42 | theorem backwardDuration_denominator_pos : |
| 43 | 0 < max (S.scale k) ((S.flow k).scalar ⟨(S.base k).1, x⟩) := |
| 44 | (S.base_scalar_pos k).trans_le (le_max_left _ _) |
| 45 | |
| 46 | /-- Positive survival constant gives a positive normalized duration |
| 47 | (Theorem 11.1, Assumption (5), p. 268). -/ |
| 48 | theorem backwardDuration_pos (hmu : 0 < mu) : |
| 49 | 0 < m30BackwardDuration S k x mu := |
| 50 | div_pos (mul_pos hmu (S.base_scalar_pos k)) backwardDuration_denominator_pos |
| 51 | |
| 52 | /-- The normalized duration never exceeds its survival constant |
| 53 | (Theorem 11.1, Assumption (5), p. 268). -/ |
| 54 | theorem backwardDuration_le (hmu : 0 ≤ mu) : |
| 55 | m30BackwardDuration S k x mu ≤ mu := by |
| 56 | apply (div_le_iff₀ backwardDuration_denominator_pos).mpr |
| 57 | exact mul_le_mul_of_nonneg_left (le_max_left _ _) hmu |
| 58 | |
| 59 | /-- A scalar bound gives the uniform positive duration used at the opening |
| 60 | of Theorem 11.1, p. 269. -/ |
| 61 | theorem le_backwardDuration (hmu : 0 ≤ mu) (hD : 1 ≤ D) |
| 62 | (hR : (S.flow k).scalar ⟨(S.base k).1, x⟩ ≤ D * S.scale k) : |
| 63 | mu / D ≤ m30BackwardDuration S k x mu := by |
| 64 | have hDpos : 0 < D := lt_of_lt_of_le zero_lt_one hD |
| 65 | have hmax : max (S.scale k) ((S.flow k).scalar ⟨(S.base k).1, x⟩) ≤ |
| 66 | D * S.scale k := by |
| 67 | refine max_le ?_ hR |
| 68 | exact le_mul_of_one_le_left (S.base_scalar_pos k).le hD |
| 69 | apply (le_div_iff₀ backwardDuration_denominator_pos).mpr |
| 70 | calc |
| 71 | mu / D * max (S.scale k) ((S.flow k).scalar ⟨(S.base k).1, x⟩) ≤ |
| 72 | mu / D * (D * S.scale k) := |
| 73 | mul_le_mul_of_nonneg_left hmax (div_nonneg hmu hDpos.le) |
| 74 | _ = mu * S.scale k := by rw [← mul_assoc, div_mul_cancel₀ _ hDpos.ne'] |
| 75 | |
| 76 | /-- M29 and Assumption (5) supply a common backward singleton cylinder at |
| 77 | each point of a fixed normalized ball (Theorem 11.1, p. 269). This statement |
| 78 | does not assert that the independently selected cylinders form a smooth map |
| 79 | of the spatial variable. -/ |
| 80 | theorem exists_uniform_backward_worldlines |
| 81 | (hbound : GeneralizedBlowupBoundedDistance S) |
| 82 | (hmu : 0 < mu) (hsurvival : GeneralizedMaximalBackwardFlowLineSurvival S mu) |
| 83 | (A : ℝ) (hA : 0 < A) : |
| 84 | ∃ tau : ℝ, 0 < tau ∧ ∀ᶠ k : ℕ in atTop, |
| 85 | ∀ x ∈ S.baseBall k A, |
| 86 | ∃ e : GeneralizedFlowCylinder (S.flow k) ((S.flow k).slice (S.base k).1) |
| 87 | (S.base k).1 (S.scale k) (Set.Icc (-tau) 0) ({x} : Set _), |
| 88 | ∀ h₀, e.pointMap 0 h₀ x = (⟨(S.base k).1, x⟩ : (S.flow k).point) := by |
| 89 | obtain ⟨D, _, hD⟩ := hbound A hA |
| 90 | have hmax : 0 < max 1 D := lt_of_lt_of_le zero_lt_one (le_max_left _ _) |
| 91 | refine ⟨mu / max 1 D, div_pos hmu hmax, ?_⟩ |
| 92 | filter_upwards [hD, hsurvival A hA] with k hk hsurv |
| 93 | intro x hx |
| 94 | obtain ⟨line⟩ := hsurv x hx |
| 95 | have hR : (S.flow k).scalar ⟨(S.base k).1, x⟩ ≤ max 1 D * S.scale k := |
| 96 | (hk x hx).trans (mul_le_mul_of_nonneg_right (le_max_right _ _) (S.base_scalar_pos k).le) |
| 97 | have htime : Set.Icc (-(mu / max 1 D)) 0 ⊆ line.maximal_interval := by |
| 98 | apply Set.Subset.trans _ line.requested_interval_subset |
| 99 | intro t ht |
| 100 | exact ⟨(neg_le_neg (le_backwardDuration hmu.le (le_max_left 1 D) hR)).trans ht.1, ht.2⟩ |
| 101 | refine ⟨Cylinder.restrict line.embedding htime Set.Subset.rfl, ?_⟩ |
| 102 | intro h₀ |
| 103 | exact line.zero_identity |
| 104 | |
| 105 | end PoincareMT.M30 |