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.Existence.Lifetime.CanonicalGeometry.CapPersistenceOrdinaryCap |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.CapAncientTransfer |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckAncientTransfer |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.LimitCanonicalAlternatives |
| 5 | |
| 6 | /-! |
| 7 | # Actual canonical neighborhoods at the selected ordinary points |
| 8 | |
| 9 | The cap accuracy is chosen before the M27 classification constant. |
| 10 | Both actual persistence branches then land on the retained Chapter 11 |
| 11 | fiber at exactly the selected point. Source: Morgan-Tian Corollary 9.94, |
| 12 | p. 243, and Theorem 12.28, pp. 323-324; |
| 13 | canonical-lifetime-assembly.md in the M34 task records. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | /-- One canonical constant precedes every complete ordinary Euclidean |
| 24 | flow, sequence and actual ancient limit. Both classified branches give |
| 25 | the full frozen canonical control at the exact selected source point |
| 26 | (Theorem 12.28, pp. 323-324). -/ |
| 27 | theorem exists_ordinary_canonical_persistence |
| 28 | (P : RepairedKappaAlternativeTheory.{0}) {epsilon : ℝ} |
| 29 | (hepsilon : 0 < epsilon) (hsmall : epsilon ≤ 1 / 200) : |
| 30 | ∃ c : ℝ, 0 < c ∧ ∀ {I : SpacetimeInterval} |
| 31 | (F : RicciFlow 3 (EuclideanSpace ℝ (Fin 3)) I.domain) |
| 32 | (R : OrdinaryProductRicciGeometry F.metric I), |
| 33 | (∀ t ∈ I.domain, MetricComplete (F.metric t)) → |
| 34 | let G := ordinaryChapter11Flow (I := I) (F := F) R |
| 35 | ∀ (p : ℕ → G.point) (hp : ∀ k, 0 < G.scalar (p k)) |
| 36 | (hd : Tendsto (fun k => G.scalar (p k)) atTop atTop) |
| 37 | (Conv : GeneralizedBlowupConvergence |
| 38 | (fixedFlowBlowupSequence G p hp hd) (blowupBackwardInterval ⊤)) |
| 39 | {kappa : ℝ} (_K : M30AncientKappaIdentification Conv.limit kappa), |
| 40 | ∀ᶠ k : ℕ in atTop, Nonempty (GeneralizedCanonicalControl (F := G) |
| 41 | (p (Conv.subsequence k)).1 (p (Conv.subsequence k)).2 epsilon c) := by |
| 42 | obtain ⟨delta0, hdelta0, hdelta0epsilon, hcap⟩ := |
| 43 | exists_ordinary_cap_persistence_accuracy.{0} hepsilon hsmall |
| 44 | obtain ⟨epsilonPrime, hPrime, hclass⟩ := ordinaryChapter11_limit_neck_or_cap P |
| 45 | let delta := min (delta0 / 2) (epsilonPrime / 2) |
| 46 | have hdelta : 0 < delta := |
| 47 | lt_min (div_pos hdelta0 (by norm_num)) (div_pos hPrime (by norm_num)) |
| 48 | have hdelta0' : delta < delta0 := |
| 49 | (min_le_left _ _).trans_lt (by linarith) |
| 50 | have hdeltaPrime : delta ≤ epsilonPrime := |
| 51 | (min_le_right _ _).trans (by linarith) |
| 52 | have hdeltaepsilon : delta ≤ epsilon / 4 := hdelta0'.le.trans hdelta0epsilon |
| 53 | obtain ⟨Craw, _hCraw, hcanonical⟩ := hclass delta hdelta hdeltaPrime |
| 54 | let C := max 1 Craw |
| 55 | have hC1 : 1 ≤ C := le_max_left _ _ |
| 56 | have hCpos : 0 < C := zero_lt_one.trans_le hC1 |
| 57 | let c := capPersistenceConstant C (capBallVolumeCoefficient C) |
| 58 | have hc : 0 < c := |
| 59 | (capPersistenceConstant_bounds hCpos.le (capBallVolumeCoefficient_pos hCpos)).1 |
| 60 | refine ⟨c, hc, ?_⟩ |
| 61 | intro I F R hcomplete |
| 62 | dsimp only |
| 63 | intro p hp hd Conv kappa K |
| 64 | let : TopologicalSpace Conv.limit.carrier.carrier := Conv.limit.carrier.topologicalSpace |
| 65 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) Conv.limit.carrier.carrier := |
| 66 | Conv.limit.carrier.chartedSpace |
| 67 | let : IsManifold (𝓡 3) ∞ Conv.limit.carrier.carrier := Conv.limit.carrier.isManifold |
| 68 | let : MeasurableSpace Conv.limit.carrier.carrier := Conv.limit.carrier.measurableSpace |
| 69 | let : BorelSpace Conv.limit.carrier.carrier := Conv.limit.carrier.borelSpace |
| 70 | let : T2Space Conv.limit.carrier.carrier := Conv.limit.carrier.t2Space |
| 71 | let : T3Space Conv.limit.carrier.carrier := Conv.limit.carrier.t3Space |
| 72 | let : SecondCountableTopology Conv.limit.carrier.carrier := Conv.limit.carrier.secondCountable |
| 73 | let : ConnectedSpace Conv.limit.carrier.carrier := Conv.limit.connectedSpace |
| 74 | rcases hcanonical F R p hp hd Conv K.certificate with hneck | hcapLimit |
| 75 | · obtain ⟨N, hcenter⟩ := hneck |
| 76 | have hhalf : epsilon < 1 / 2 := hsmall.trans_lt (by norm_num) |
| 77 | filter_upwards [ordinaryChapter11_eventually_strongNeck_of_ancient |
| 78 | R p hp hd Conv K N hcenter hepsilon hhalf hdeltaepsilon] with k hk |
| 79 | obtain ⟨Ns, hNs⟩ := hk |
| 80 | exact ⟨GeneralizedCanonicalControl.neck Ns hNs⟩ |
| 81 | · obtain ⟨N⟩ := hcapLimit |
| 82 | obtain ⟨H, hHepsilon, hHC, hHD, hHbase⟩ := |
| 83 | exists_normalized_limit_cap_of_ancient Conv.limit K N |
| 84 | have hHsmall : H.epsilon < delta0 := hHepsilon.trans_lt hdelta0' |
| 85 | have hHC' : H.cap_constant ≤ C := hHC.trans (le_max_right _ _) |
| 86 | filter_upwards [hcap C hC1 (EuclideanSpace ℝ (Fin 3)) I F R hcomplete |
| 87 | p hp hd Conv H hHsmall hHC' hHD hHbase] with k hk |
| 88 | obtain ⟨Hs, hHsepsilon, hHsc, hHsbase⟩ := hk |
| 89 | exact ⟨ordinaryChapter11_canonicalControl_of_normalized_cap R |
| 90 | (p (Conv.subsequence k)) (hp (Conv.subsequence k)) Hs hHsepsilon hHsc.le hHsbase⟩ |
| 91 | |
| 92 | end PoincareMT.M34 |