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.Persistence.Comparison.Evolution.StandardIdentification |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Comparison.Evolution.FamilyJetsBounds |
| 3 | |
| 4 | /-! |
| 5 | # Uniqueness turns subsequential jet limits into uniform comparison |
| 6 | |
| 7 | On each fixed slab strictly before the limiting lifetime, compactness |
| 8 | can be applied on a slightly larger slab. M35 identifies every such |
| 9 | partial limit with the same standard model. Thus the full sequence |
| 10 | converges on the fixed slab, which is the interior input for the moving |
| 11 | endpoint argument. Morgan--Tian, Corollary 16.9, p. 373; |
| 12 | M44 derivation 81. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology |
| 19 | |
| 20 | namespace PoincareMT.M44 |
| 21 | |
| 22 | local notation "E" => StandardCapSpace |
| 23 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 24 | |
| 25 | noncomputable local instance familyConvergenceCoefficientNorm : NormedAddCommGroup V := |
| 26 | ContinuousLinearMap.toNormedAddCommGroup |
| 27 | |
| 28 | noncomputable local instance familyConvergenceCoefficientSpace : NormedSpace ℝ V := |
| 29 | ContinuousLinearMap.toNormedSpace |
| 30 | |
| 31 | /-- If every subsequence has a further uniformly convergent subsequence |
| 32 | with the same target, uniform convergence holds for the full sequence. |
| 33 | Source: the compactness contradiction in Corollary 16.9; derivation 81. -/ |
| 34 | theorem tendstoUniformlyOn_of_subsubsequence |
| 35 | {X Y : Type*} [PseudoMetricSpace Y] {f : ℕ → X → Y} {g : X → Y} {K : Set X} |
| 36 | (hsub : ∀ sigma : ℕ → ℕ, StrictMono sigma → |
| 37 | ∃ tau : ℕ → ℕ, StrictMono tau ∧ |
| 38 | TendstoUniformlyOn (fun n => f (sigma (tau n))) g atTop K) : |
| 39 | TendstoUniformlyOn f g atTop K := by |
| 40 | rw [Metric.tendstoUniformlyOn_iff] |
| 41 | intro epsilon hepsilon |
| 42 | by_contra hnot |
| 43 | obtain ⟨sigma, hsigma, hbad⟩ := |
| 44 | extraction_of_frequently_atTop (not_eventually.mp hnot) |
| 45 | obtain ⟨tau, _, hconv⟩ := hsub sigma hsigma |
| 46 | obtain ⟨n, hn⟩ := (Metric.tendstoUniformlyOn_iff.mp hconv epsilon hepsilon).exists |
| 47 | exact hbad (tau n) hn |
| 48 | |
| 49 | /-- M35 identifies all spatial jets of the actual partial limit on the |
| 50 | common time domain with the chosen maximal model. Source: Corollary |
| 51 | 16.9, p. 373; derivation 81. -/ |
| 52 | theorem tendstoUniformlyOn_partial_spatialJets_model |
| 53 | {g0 : StandardInitialMetric} {E0 : RepairedStandardCapExistenceData g0} |
| 54 | (U : RepairedStandardCapUniquenessData g0 E0) |
| 55 | (G : PartialStandardCapFlow g0) (S : MaximalStandardCapFlow g0) |
| 56 | (m : ℕ) |
| 57 | {f : ℕ → ℝ × StandardCapSpace → |
| 58 | StandardCapSpace [×m]→L[ℝ] (StandardCapSpace →L[ℝ] StandardCapSpace →L[ℝ] ℝ)} |
| 59 | {K : Set (ℝ × StandardCapSpace)} |
| 60 | (htime : ∀ p ∈ K, p.1 ∈ Ico (0 : ℝ) 1 ∧ p.1 < G.lifetime) |
| 61 | (hconv : TendstoUniformlyOn f |
| 62 | (fun p => iteratedFDeriv ℝ m (G.flow.metric p.1).euclideanCoefficients p.2) |
| 63 | atTop K) : |
| 64 | TendstoUniformlyOn f |
| 65 | (fun p => iteratedFDeriv ℝ m (S.metric p.1).euclideanCoefficients p.2) atTop K := by |
| 66 | apply hconv.congr_right |
| 67 | intro p hp |
| 68 | dsimp only |
| 69 | rw [U.partial_metric_eq_model G S (htime p hp).1 (htime p hp).2] |
| 70 | |
| 71 | end PoincareMT.M44 |