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.StrongNeckSequenceTransfer |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckMetricTransport |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Data |
| 4 | |
| 5 | /-! |
| 6 | # Actual M27 ancient strong necks persist at the selected source point |
| 7 | |
| 8 | The retained metric and connection identifications turn the ancient |
| 9 | scalar normalization into the actual limit normalization. The already |
| 10 | proved M30 sequence transfer then gives the exact original center. |
| 11 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; ancient-neck adapter. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 25 | TopologicalSpace L.carrier.carrier := L.carrier.topologicalSpace |
| 26 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 27 | ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.carrier.carrier := L.carrier.chartedSpace |
| 28 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 29 | IsManifold (𝓡 3) ∞ L.carrier.carrier := L.carrier.isManifold |
| 30 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 31 | MeasurableSpace L.carrier.carrier := L.carrier.measurableSpace |
| 32 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 33 | BorelSpace L.carrier.carrier := L.carrier.borelSpace |
| 34 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 35 | T2Space L.carrier.carrier := L.carrier.t2Space |
| 36 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 37 | T3Space L.carrier.carrier := L.carrier.t3Space |
| 38 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 39 | SecondCountableTopology L.carrier.carrier := L.carrier.secondCountable |
| 40 | private local instance {J : Set ℝ} {L : BlowupLimitFlow.{u} J} : |
| 41 | ConnectedSpace L.carrier.carrier := L.connectedSpace |
| 42 | |
| 43 | /-- An actual M27 strong neck at the normalized limit base has the |
| 44 | literal unscaled limit-metric family comparison on the backward unit slab. -/ |
| 45 | theorem exists_normalized_limit_neck_of_ancient |
| 46 | (L : BlowupLimitFlow.{u} (blowupBackwardInterval ⊤)) {kappa delta : ℝ} |
| 47 | (A : M30AncientKappaIdentification L kappa) |
| 48 | (N : StrongEvolvingNeck A.certificate.solution 0 delta) (hcenter : N.center = L.base) : |
| 49 | ∃ N' : EpsilonNeck (L.flow.metric 0), N'.center = L.base ∧ N'.epsilon = delta ∧ |
| 50 | RoundCylinderFamilyClose N'.epsilon (Ioc (-1 : ℝ) 0) |
| 51 | (fun s => roundCylinderPullback (L.flow.metric s) N'.coordinate_map) := by |
| 52 | let S := A.certificate.solution |
| 53 | have hpair : (⟨S.flow.metric 0, S.flow.connection 0⟩ : |
| 54 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g) = |
| 55 | ⟨L.flow.metric 0, L.flow.connection 0⟩ := |
| 56 | Sigma.ext (A.certificate.metric_eq 0 le_rfl) (A.connection_eq 0 le_rfl) |
| 57 | have hscalar := congrArg (fun gd : |
| 58 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g => |
| 59 | gd.2.scalarCurvature L.base) hpair |
| 60 | change (S.flow.connection 0).scalarCurvature L.base = |
| 61 | (L.flow.connection 0).scalarCurvature L.base at hscalar |
| 62 | rw [L.scalar_normalized] at hscalar |
| 63 | have hnscalar : (S.flow.connection 0).scalarCurvature N.center = 1 := by |
| 64 | rw [hcenter] |
| 65 | exact hscalar |
| 66 | let N' := N.terminal_neck.ofMetricEq (A.certificate.metric_eq 0 le_rfl) |
| 67 | obtain ⟨hepsilon, hNcenter, hcoordinate⟩ := |
| 68 | N.terminal_neck.ofMetricEq_data (A.certificate.metric_eq 0 le_rfl) |
| 69 | refine ⟨N', hNcenter.trans (N.terminal_center.trans hcenter), |
| 70 | hepsilon.trans N.terminal_epsilon, ?_⟩ |
| 71 | rw [hepsilon, N.terminal_epsilon] |
| 72 | apply N.metric_comparison.congr_cylinder |
| 73 | intro s hs z _ v w |
| 74 | rw [hnscalar, div_one, zero_add, one_mul, A.certificate.metric_eq s hs.2, hcoordinate] |
| 75 | |
| 76 | variable {M : Type u} [TopologicalSpace M] |
| 77 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 78 | [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 79 | {I : SpacetimeInterval} {F : RicciFlow 3 M I.domain} |
| 80 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 81 | |
| 82 | local notation "G" => ordinaryChapter11Flow (I := I) (F := F) R |
| 83 | |
| 84 | /-- The actual M27 neck branch transfers to a source generalized strong |
| 85 | neck at the exact selected point, with the requested epsilon fixed first. -/ |
| 86 | theorem ordinaryChapter11_eventually_strongNeck_of_ancient |
| 87 | (p : ℕ → (G).point) (hpositive : ∀ k, 0 < (G).scalar (p k)) |
| 88 | (hdiverges : Tendsto (fun k => (G).scalar (p k)) atTop atTop) |
| 89 | (C : GeneralizedBlowupConvergence |
| 90 | (fixedFlowBlowupSequence (G) p hpositive hdiverges) (blowupBackwardInterval ⊤)) |
| 91 | {kappa delta epsilon : ℝ} (A : M30AncientKappaIdentification C.limit kappa) |
| 92 | (N : StrongEvolvingNeck A.certificate.solution 0 delta) |
| 93 | (hcenter : N.center = C.limit.base) (hepsilon : 0 < epsilon) |
| 94 | (hepsilonHalf : epsilon < 1 / 2) (hdelta : delta ≤ epsilon / 4) : |
| 95 | ∀ᶠ k : ℕ in atTop, |
| 96 | ∃ Ns : GeneralizedStrongNeck (G) (p (C.subsequence k)).1 epsilon, |
| 97 | Ns.center = (p (C.subsequence k)).2 := by |
| 98 | obtain ⟨N', hNcenter, hNepsilon, hclose⟩ := |
| 99 | exists_normalized_limit_neck_of_ancient C.limit A N hcenter |
| 100 | have hJ : UniqueDiffOn ℝ (blowupBackwardInterval ⊤) := by |
| 101 | rw [A.domain_eq] |
| 102 | exact uniqueDiffOn_Iic _ |
| 103 | have hJI : Icc (-1 : ℝ) 0 ⊆ blowupBackwardInterval ⊤ := by |
| 104 | rw [A.domain_eq] |
| 105 | exact fun _ hs => hs.2 |
| 106 | exact ordinaryChapter11_eventually_centered_strongNeck R p hpositive hdiverges C |
| 107 | hJ hJI N' hNcenter hepsilon hepsilonHalf (hNepsilon.trans_le hdelta) hclose |
| 108 | |
| 109 | end PoincareMT.M34 |