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.SelectedFullStandardNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.AncientLimits.LimitStrongNeckTransfer |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Geometry.NeckCompactness |
| 5 | |
| 6 | /-! |
| 7 | # Same-epsilon canonical control from the actual ancient neck branch |
| 8 | |
| 9 | Morgan-Tian Theorem 12.28, pp. 323-324, and Corollary 9.94. |
| 10 | The original M27 neck supplies full Chapter 11 strong control after |
| 11 | transfer, with exactly its own epsilon, as required alongside caps. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 22 | |
| 23 | private theorem scalar_eq_of_equal_metrics |
| 24 | {M : Type*} [TopologicalSpace M] [ChartedSpace E3 M] [IsManifold (𝓡 3) ∞ M] |
| 25 | {g h : RiemannianMetric 3 M} (heq : g = h) |
| 26 | (D : LeviCivitaData g) (D' : LeviCivitaData h) (x : M) : |
| 27 | D.scalarCurvature x = D'.scalarCurvature x := by |
| 28 | subst h |
| 29 | exact D.scalarCurvature_eq D' x |
| 30 | |
| 31 | /-- Theorem 12.28: the full strong-neck branch returns canonical |
| 32 | control at the identical epsilon required by the cap branch. -/ |
| 33 | theorem blowupSequence_limit_full_neck_canonical (P : M35StandardCapPredecessors) |
| 34 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 35 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 36 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 37 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 38 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 39 | (blowupBackwardInterval ⊤)) (kappa : ℝ) |
| 40 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 41 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 42 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 43 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 44 | letI : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 45 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 46 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 47 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 48 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 49 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 50 | ∀ (epsilon : ℝ) (N : StrongEvolvingNeck A.solution 0 epsilon) |
| 51 | (_he : epsilon ≤ 1 / 24) (_hcenter : N.center = L.limit.base) |
| 52 | (j : ℕ) (_hstage : closure N.terminal_neck.carrier ⊆ L.exhaustion.space j) (C : ℝ), |
| 53 | ∀ᶠ k in atTop, GeneralizedCanonicalControl |
| 54 | (F := generalizedFlow E.flow.base.flow) (t (L.subsequence k)) |
| 55 | ((sliceDiffeomorph (ht (L.subsequence k))).symm (x (L.subsequence k))) epsilon C := by |
| 56 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 57 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 58 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 59 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 60 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 61 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 62 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 63 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 64 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 65 | intro epsilon N he hcenter j hstage C |
| 66 | have hscalar : (A.solution.flow.connection 0).scalarCurvature N.center = 1 := by |
| 67 | rw [hcenter] |
| 68 | exact (scalar_eq_of_equal_metrics (A.metric_eq 0 le_rfl) |
| 69 | (A.solution.flow.connection 0) (L.limit.flow.connection 0) L.limit.base).trans |
| 70 | L.limit.scalar_normalized |
| 71 | have hcomparison : RoundCylinderFamilyClose epsilon (Ioc (-1 : ℝ) 0) |
| 72 | (fun u => roundCylinderPullback (L.limit.flow.metric u) N.terminal_neck.coordinate_map) := by |
| 73 | apply cylinder_family_congr _ N.metric_comparison |
| 74 | intro u hu z _ v w |
| 75 | rw [hscalar, div_one, zero_add, one_mul, A.metric_eq u hu.2] |
| 76 | have hreturned := blowupSequence_full_standard_evolving_neck P E.atlas E t x ht hR L |
| 77 | (A.solution.flow.metric 0) N.terminal_neck (A.metric_eq 0 le_rfl) |
| 78 | (N.terminal_epsilon.symm ▸ he) (N.terminal_center.trans hcenter) |
| 79 | (N.terminal_neck.isCompact_closure (A.solution.complete 0 le_rfl)) j hstage |
| 80 | (Ioc (-1 : ℝ) 0) (Icc (-1 : ℝ) 0) isCompact_Icc |
| 81 | (fun _ hu => hu.2) (fun _ hu => ⟨hu.1.le, hu.2⟩) |
| 82 | (N.terminal_epsilon.symm ▸ hcomparison) |
| 83 | filter_upwards [hreturned] with k hk |
| 84 | obtain ⟨K⟩ := hk |
| 85 | exact N.terminal_epsilon ▸ K.generalized_canonical_control P subset_rfl |
| 86 | |
| 87 | end PoincareMT.M35.OrdinaryRealization |