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