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.SelectedCurvatureDerivative |
| 3 | |
| 4 | /-! |
| 5 | # Uniform first curvature-derivative bounds on a retained chart |
| 6 | |
| 7 | Compactness turns the actual moving-point convergence into one eventual |
| 8 | bound. This is used on a compact chart around the extracted basepoint before |
| 9 | ambient ball retention supplies the outward radial intervals. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35.OrdinaryRealization |
| 19 | |
| 20 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 21 | |
| 22 | /-- The first actual curvature-derivative norm of normalized original |
| 23 | slices has one uniform eventual bound on each compact retained chart. -/ |
| 24 | theorem blowupSequence_terminal_curvature_derivative_bounded_chart |
| 25 | (P : M35StandardCapPredecessors) |
| 26 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 27 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 28 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 29 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 30 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 31 | (blowupBackwardInterval ⊤)) |
| 32 | (q : L.limit.sliceCarrier.carrier) (j : ℕ) |
| 33 | (K : Set V) (hK : IsCompact K) |
| 34 | (hKU : K ⊆ {p | p ∈ (extChartAt (𝓡 3) q).target ∧ |
| 35 | (extChartAt (𝓡 3) q).symm p ∈ L.exhaustion.space j}) : |
| 36 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 37 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 38 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 39 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 40 | let hQ k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 41 | let phi k z := ((L.embedding k).forward 0 |
| 42 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 43 | ∃ B : ℝ, 0 < B ∧ ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, ∀ p ∈ K, |
| 44 | (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 45 | (Q k) (hQ k)).curvatureDerivativeNorm 1 (phi k ((extChartAt (𝓡 3) q).symm p)) ≤ B := by |
| 46 | classical |
| 47 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 48 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 49 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 50 | let c := extChartAt (𝓡 3) (show L.limit.carrier.carrier from q) |
| 51 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 52 | let hQ k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 53 | let phi k z := ((L.embedding k).forward 0 |
| 54 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 55 | let F (k : ℕ) (p : V) := |
| 56 | (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 57 | (Q k) (hQ k)).curvatureDerivativeNorm 1 (phi k (c.symm p)) |
| 58 | change ∃ B : ℝ, 0 < B ∧ ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, ∀ p ∈ K, F k p ≤ B |
| 59 | by_contra hnot |
| 60 | push Not at hnot |
| 61 | have hbad : ∀ n : ℕ, ∃ k ≥ n, ∃ p ∈ K, (n : ℝ) + 1 < F k p := by |
| 62 | intro n |
| 63 | obtain ⟨k, hk, p, hp, hlarge⟩ := hnot ((n : ℝ) + 1) (by positivity) |
| 64 | (max j n) (le_max_left _ _) |
| 65 | exact ⟨k, (le_max_right j n).trans hk, p, hp, hlarge⟩ |
| 66 | choose k hk p hp hlarge using hbad |
| 67 | obtain ⟨z, hz, sigma, hsigma, hlim⟩ := hK.tendsto_subseq hp |
| 68 | have hindex : Tendsto k atTop atTop := tendsto_atTop_mono hk tendsto_id |
| 69 | have hnorm := blowupSequence_terminal_curvature_derivative_tendsto_chart |
| 70 | P E t x ht hR L q j K hK hKU (k ∘ sigma) (hindex.comp hsigma.tendsto_atTop) |
| 71 | (p ∘ sigma) (fun n => hp (sigma n)) z hz hlim |
| 72 | let B := (L.limit.flow.connection 0).curvatureDerivativeNorm 1 (c.symm z) |
| 73 | have hnorm' : Tendsto (fun n => F (k (sigma n)) (p (sigma n))) atTop (𝓝 B) := hnorm |
| 74 | have hupper := hnorm'.eventually (eventually_lt_nhds (lt_add_one B)) |
| 75 | have hcast : Tendsto (fun n => (sigma n : ℝ)) atTop atTop := |
| 76 | (tendsto_natCast_atTop_atTop (R := ℝ)).comp hsigma.tendsto_atTop |
| 77 | obtain ⟨n, hnupper, hnlower⟩ := |
| 78 | (hupper.and (hcast.eventually (eventually_gt_atTop B))).exists |
| 79 | have h := hlarge (sigma n) |
| 80 | linarith |
| 81 | |
| 82 | end PoincareMT.M35.OrdinaryRealization |