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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedAmbientBall |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.ScalarOperators.CompactScalarOperators |
| 4 | import PoincareLib.Geometry.RicciFlow.Local.Connection.CurvatureIndependence |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Harnack |
| 6 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Controls |
| 7 | |
| 8 | /-! |
| 9 | # Scalar and operator bounds on retained normalized balls |
| 10 | |
| 11 | Morgan-Tian Theorem 12.32, pp. 326-327. Positive scalar curvature |
| 12 | of the actual ancient limit gives a compact positive floor. Uniform |
| 13 | convergence and ambient-ball retention transfer the floor and the two |
| 14 | scalar operators to every point of a fixed normalized original ball. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 22 | |
| 23 | namespace PoincareMT.M35.OrdinaryRealization |
| 24 | |
| 25 | private theorem scalar_eq_of_metric_eq |
| 26 | {M : Type*} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | {g h : RiemannianMetric 3 M} (heq : g = h) |
| 29 | (D : LeviCivitaData g) (D' : LeviCivitaData h) (z : M) : |
| 30 | D.scalarCurvature z = D'.scalarCurvature z := by |
| 31 | subst h |
| 32 | exact D.scalarCurvature_eq D' z |
| 33 | |
| 34 | /-- Theorem 12.32: every fixed normalized ambient ball has one |
| 35 | positive scalar floor and uniform scalar and operator ceilings along the |
| 36 | actual selected subsequence. The constants precede the selected index. -/ |
| 37 | theorem blowupSequence_normalized_ball_scalar_operator_bounds |
| 38 | (P : M35StandardCapPredecessors) |
| 39 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 40 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 41 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 42 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 43 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 44 | (blowupBackwardInterval ⊤)) |
| 45 | {kappa : ℝ} (A : BlowupAncientKappaIdentification L.limit kappa) |
| 46 | {r : ℝ} (hr : 0 < r) : |
| 47 | ∃ m M : ℝ, 0 < m ∧ 0 < M ∧ ∀ᶠ k in atTop, |
| 48 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 49 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 50 | let g := E.flow.metric (t (L.subsequence k)) |
| 51 | let D := E.flow.connection (t (L.subsequence k)) |
| 52 | let G : RiemannianMetric 3 StandardCapSpace := M13.scaleSmoothMetric g Q hQ |
| 53 | ∀ y ∈ G.ball (x (L.subsequence k)) r, |
| 54 | m * Q ≤ D.scalarCurvature y ∧ D.scalarCurvature y ≤ M * Q ∧ |
| 55 | scalarGradientNorm g D y ≤ M * (Q * Real.sqrt Q) ∧ |
| 56 | |D.laplacian D.scalarCurvature y + 2 * D.ricciNormSq y| ≤ M * Q ^ 2 := by |
| 57 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 58 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 59 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 60 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 61 | L.limit.carrier.chartedSpace |
| 62 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 63 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 64 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 65 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 66 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 67 | let g := L.limit.flow.metric 0 |
| 68 | let D := L.limit.flow.connection 0 |
| 69 | let R := D.scalarCurvature |
| 70 | let V := fun z => D.laplacian D.scalarCurvature z + 2 * D.ricciNormSq z |
| 71 | have hpos (z : L.limit.sliceCarrier.carrier) : 0 < R z := |
| 72 | (A.solution.scalar_pos P.curvature (differentialHarnackAncientTheory P.curvature) |
| 73 | 0 le_rfl z).trans_eq |
| 74 | (scalar_eq_of_metric_eq (A.metric_eq 0 le_rfl) (A.solution.flow.connection 0) D z) |
| 75 | let K : Set L.limit.sliceCarrier.carrier := closure (g.ball L.limit.base (3 * r)) |
| 76 | have hK : IsCompact K := Proofs.M09.isCompact_closure_metric_ball g |
| 77 | (L.limit.complete 0 L.limit.zero_mem) L.limit.base (3 * r) |
| 78 | obtain ⟨j, hj⟩ := hK.elim_directed_cover L.exhaustion.space L.exhaustion.space_open |
| 79 | (fun z _ => by rw [L.exhaustion.space_covers]; exact mem_univ z) |
| 80 | (fun i j => ⟨max i j, L.exhaustion.space_increasing (le_max_left _ _), |
| 81 | L.exhaustion.space_increasing (le_max_right _ _)⟩) |
| 82 | have hscalar : Continuous R := |
| 83 | (Proofs.M09.scalarCurvature_contMDiff P.curvature D).continuous |
| 84 | have hinv : Continuous (fun z => (R z)⁻¹) := |
| 85 | hscalar.inv₀ (fun z => (hpos z).ne') |
| 86 | have hgrad := continuous_scalarGradientNorm D |
| 87 | (Proofs.M09.scalarCurvature_contMDiff P.curvature D) |
| 88 | have hevol : Continuous V := continuous_scalar_evolution_slice P L.limit.flow L.limit.zero_mem |
| 89 | obtain ⟨Br, hBr⟩ := hK.exists_bound_of_continuousOn hscalar.continuousOn |
| 90 | obtain ⟨Bi, hBi⟩ := hK.exists_bound_of_continuousOn hinv.continuousOn |
| 91 | obtain ⟨Bg, hBg⟩ := hK.exists_bound_of_continuousOn hgrad.continuousOn |
| 92 | obtain ⟨Bv, hBv⟩ := hK.exists_bound_of_continuousOn hevol.continuousOn |
| 93 | let B := |Br| + |Bi| + |Bg| + |Bv| + 1 |
| 94 | have hB : 0 < B := by dsimp only [B]; positivity |
| 95 | have hrB : Br ≤ B := by |
| 96 | dsimp only [B] |
| 97 | linarith only [le_abs_self Br, abs_nonneg Bi, abs_nonneg Bg, abs_nonneg Bv] |
| 98 | have hiB : Bi ≤ B := by |
| 99 | dsimp only [B] |
| 100 | linarith only [le_abs_self Bi, abs_nonneg Br, abs_nonneg Bg, abs_nonneg Bv] |
| 101 | have hgB : Bg ≤ B := by |
| 102 | dsimp only [B] |
| 103 | linarith only [le_abs_self Bg, abs_nonneg Br, abs_nonneg Bi, abs_nonneg Bv] |
| 104 | have hvB : Bv ≤ B := by |
| 105 | dsimp only [B] |
| 106 | linarith only [le_abs_self Bv, abs_nonneg Br, abs_nonneg Bi, abs_nonneg Bg] |
| 107 | have hfloor (z) (hz : z ∈ K) : B⁻¹ ≤ R z := by |
| 108 | have hi : (R z)⁻¹ ≤ B := (le_abs_self _).trans ((hBi z hz).trans hiB) |
| 109 | simpa only [inv_inv] using inv_anti₀ (inv_pos.mpr (hpos z)) hi |
| 110 | let eta := B⁻¹ / 2 |
| 111 | have heta : 0 < eta := div_pos (inv_pos.mpr hB) (by norm_num) |
| 112 | obtain ⟨Ns, _, hs⟩ := blowupSequence_terminal_scalar_uniform_compact |
| 113 | P E t x ht hR L j K hK hj eta heta |
| 114 | obtain ⟨No, _, ho⟩ := blowupSequence_terminal_scalar_operators_uniform_compact |
| 115 | P E t x ht hR L j K hK hj 1 zero_lt_one |
| 116 | refine ⟨eta, B + eta + 1, heta, by positivity, ?_⟩ |
| 117 | filter_upwards [blowupSequence_normalized_ball_retained P E t x ht hR L hr, |
| 118 | eventually_ge_atTop Ns, eventually_ge_atTop No] with k hk hks hko |
| 119 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 120 | have hQ : 0 < Q := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 121 | let gk := E.flow.metric (t (L.subsequence k)) |
| 122 | let Dk := E.flow.connection (t (L.subsequence k)) |
| 123 | let phi (z : L.limit.sliceCarrier.carrier) := ((L.embedding k).forward 0 |
| 124 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 125 | dsimp only |
| 126 | intro y hy |
| 127 | obtain ⟨z, hz, hzy⟩ := hk hy |
| 128 | have hzK : z ∈ K := subset_closure (hz.trans_le |
| 129 | (ENNReal.ofReal_le_ofReal (by linarith only [hr] : 2 * r ≤ 3 * r))) |
| 130 | have heq : phi z = y := hzy |
| 131 | rw [← heq] |
| 132 | have herr : |Dk.scalarCurvature (phi z) / Q - R z| < eta := hs k hks z hzK |
| 133 | have hoperators := ho k hko z hzK |
| 134 | have hgr : |scalarGradientNorm gk Dk (phi z) / (Q * Real.sqrt Q) - |
| 135 | scalarGradientNorm g D z| < 1 := hoperators.1 |
| 136 | have hev : |(Dk.laplacian Dk.scalarCurvature (phi z) + 2 * Dk.ricciNormSq (phi z)) / |
| 137 | Q ^ 2 - V z| < 1 := hoperators.2 |
| 138 | have hrlower : eta ≤ Dk.scalarCurvature (phi z) / Q := by |
| 139 | have hf := hfloor z hzK |
| 140 | have hl := (abs_lt.mp herr).1 |
| 141 | dsimp only [eta] at hl ⊢ |
| 142 | linarith |
| 143 | have hrupper : Dk.scalarCurvature (phi z) / Q ≤ B + eta + 1 := by |
| 144 | have hc := (le_abs_self (R z)).trans ((hBr z hzK).trans hrB) |
| 145 | have hu := (abs_lt.mp herr).2 |
| 146 | linarith |
| 147 | have hgradupper : scalarGradientNorm gk Dk (phi z) / (Q * Real.sqrt Q) ≤ |
| 148 | B + eta + 1 := by |
| 149 | have hc := (le_abs_self (scalarGradientNorm g D z)).trans ((hBg z hzK).trans hgB) |
| 150 | have hu := (abs_lt.mp hgr).2 |
| 151 | linarith |
| 152 | have hevolupper : |Dk.laplacian Dk.scalarCurvature (phi z) + |
| 153 | 2 * Dk.ricciNormSq (phi z)| / Q ^ 2 ≤ B + eta + 1 := by |
| 154 | have hc : |V z| ≤ B := (hBv z hzK).trans hvB |
| 155 | have hb := abs_add_le |
| 156 | ((Dk.laplacian Dk.scalarCurvature (phi z) + 2 * Dk.ricciNormSq (phi z)) / |
| 157 | Q ^ 2 - V z) (V z) |
| 158 | rw [sub_add_cancel, abs_div, abs_of_pos (sq_pos_of_pos hQ)] at hb |
| 159 | linarith |
| 160 | exact ⟨(le_div_iff₀ hQ).mp hrlower, (div_le_iff₀ hQ).mp hrupper, |
| 161 | (div_le_iff₀ (mul_pos hQ (Real.sqrt_pos.mpr hQ))).mp hgradupper, |
| 162 | (div_le_iff₀ (sq_pos_of_pos hQ)).mp hevolupper⟩ |
| 163 | |
| 164 | end PoincareMT.M35.OrdinaryRealization |