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.ActualCapTransfer |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CertificateConnection |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SliceCapCertificate |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Caps.CapCompactness |
| 6 | |
| 7 | /-! |
| 8 | # Canonical control from the actual ancient cap branch |
| 9 | |
| 10 | Morgan-Tian Corollary 9.94 and Theorem 12.28, pp. 323-324. |
| 11 | The full limit cap supplies an actual Chapter 11 cap at the selected |
| 12 | basepoint, with the exact epsilon and one explicit uniform constant. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | /-- Theorem 12.28: the actual ancient cap alternative returns the |
| 25 | same-epsilon strong canonical control needed by the first-failure argument. -/ |
| 26 | theorem blowupSequence_limit_cap_canonical (P : M35StandardCapPredecessors) : |
| 27 | ∃ delta : ℝ, 0 < delta ∧ ∀ {g₀ : StandardInitialMetric} |
| 28 | (E : RepairedStandardCapExistenceData g₀) |
| 29 | (NC : StandardFlowNoncollapsingCertificate E.flow) |
| 30 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 31 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 32 | (_htone : Tendsto t atTop (𝓝 1)) |
| 33 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 34 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 35 | (blowupBackwardInterval ⊤)) (kappa : ℝ) |
| 36 | (A : BlowupAncientKappaIdentification L.limit kappa), |
| 37 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 38 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 39 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 40 | letI : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 41 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 42 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 43 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 44 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 45 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 46 | ∀ (epsilon C : ℝ) (N : M27CanonicalCap A.solution 0 L.limit.base epsilon C), |
| 47 | epsilon ≤ delta → ∀ j : ℕ, closure N.cap.carrier ⊆ L.exhaustion.space j → |
| 48 | ∀ᶠ k in atTop, GeneralizedCanonicalControl |
| 49 | (F := generalizedFlow E.flow.base.flow) (t (L.subsequence k)) |
| 50 | ((sliceDiffeomorph (ht (L.subsequence k))).symm (x (L.subsequence k))) |
| 51 | epsilon (8 * C + 16 / NC.kappa) := by |
| 52 | obtain ⟨delta, hdelta, htransfer⟩ := blowupSequence_cap_certificate P |
| 53 | refine ⟨delta, hdelta, ?_⟩ |
| 54 | intro g₀ E NC t x ht htone hR L kappa A |
| 55 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 56 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 57 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 58 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 59 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 60 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 61 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 62 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 63 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 64 | intro epsilon C N he j hstage |
| 65 | obtain ⟨N', hepsilon, hconstant, hconnection, hcarrier, hcore, _⟩ := |
| 66 | N.cap.exists_of_metric_eq (A.metric_eq 0 le_rfl) (L.limit.flow.connection 0) |
| 67 | have hc : IsCompact (closure N'.carrier) := by |
| 68 | rw [hcarrier] |
| 69 | exact N.cap.isCompact_closure (A.solution.complete 0 le_rfl) |
| 70 | have hstage' : closure N'.carrier ⊆ L.exhaustion.space j := by |
| 71 | rwa [hcarrier] |
| 72 | have hreturned := htransfer E NC t x ht htone hR L j N' |
| 73 | (by rw [hepsilon, N.epsilon_eq]; exact he) hconnection hc hstage' |
| 74 | filter_upwards [hreturned] with k hk |
| 75 | obtain ⟨K, hKe, hKC, hKD, _hKU, hKcore, _⟩ := hk |
| 76 | have hbase : ((L.embedding k).forward 0 |
| 77 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ L.limit.base).val = |
| 78 | x (L.subsequence k) := by |
| 79 | exact congrArg (fun p : (generalizedFlow E.flow.base.flow).point => p.2.val) |
| 80 | (L.base_preserving k _) |
| 81 | have hx : x (L.subsequence k) ∈ K.core := by |
| 82 | rw [hKcore] |
| 83 | exact ⟨L.limit.base, hcore.symm ▸ N.contains, hbase⟩ |
| 84 | apply K.generalized_canonical_control P E.flow (ht (L.subsequence k)) |
| 85 | (hKe.trans (hepsilon.trans N.epsilon_eq)) _ hKD hx |
| 86 | rw [hKC, hconstant] |
| 87 | linarith [N.constant_le] |
| 88 | |
| 89 | end PoincareMT.M35.OrdinaryRealization |