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.Coordinates.StrongNeckUniformMetricJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckPullbackSmooth |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckCovariantDifference |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckPerturbation |
| 5 | |
| 6 | /-! |
| 7 | # Actual strong-neck cylinder comparison under M30 convergence |
| 8 | |
| 9 | Actual ordinary coefficient jets, the literal covariant-array bound, |
| 10 | and strict numerical perturbation transfer the limit comparison to the |
| 11 | actual source cylinder on the centered shorter domain. Source: |
| 12 | Morgan-Tian Theorem 12.28, pp. 323-324, and the owned family-transfer |
| 13 | derivation. This theorem does not assume a source persistence certificate. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | open Poincare.Geometry.Riemannian.SpaceForm |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M34 |
| 26 | |
| 27 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 28 | local notation "E₃" => EuclideanSpace ℝ (Fin 3) |
| 29 | |
| 30 | variable {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace E₃ M] [IsManifold (𝓡 3) ∞ M] |
| 32 | [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 33 | {I : SpacetimeInterval} {F : RicciFlow 3 M I.domain} |
| 34 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 35 | |
| 36 | local notation "G" => ordinaryChapter11Flow (I := I) (F := F) R |
| 37 | |
| 38 | private local instance {K : Set ℝ} {L : BlowupLimitFlow.{u} K} : |
| 39 | TopologicalSpace L.carrier.carrier := L.carrier.topologicalSpace |
| 40 | private local instance {K : Set ℝ} {L : BlowupLimitFlow.{u} K} : |
| 41 | ChartedSpace E₃ L.carrier.carrier := L.carrier.chartedSpace |
| 42 | private local instance {K : Set ℝ} {L : BlowupLimitFlow.{u} K} : |
| 43 | IsManifold (𝓡 3) ∞ L.carrier.carrier := L.carrier.isManifold |
| 44 | |
| 45 | /-- The actual M30 source pullback eventually has the requested frozen |
| 46 | strong-neck family comparison whenever the supplied limit coordinate |
| 47 | has a four-times-more-accurate comparison. -/ |
| 48 | theorem ordinaryChapter11_eventually_neck_familyClose |
| 49 | (p : ℕ → (G).point) (hpositive : ∀ k, 0 < (G).scalar (p k)) |
| 50 | (hdiverges : Tendsto (fun k => (G).scalar (p k)) atTop atTop) {J : Set ℝ} |
| 51 | (C : GeneralizedBlowupConvergence |
| 52 | (fixedFlowBlowupSequence (G) p hpositive hdiverges) J) |
| 53 | (hJ : UniqueDiffOn ℝ J) (hJI : Icc (-1 : ℝ) 0 ⊆ J) |
| 54 | (N : EpsilonNeck (C.limit.flow.metric 0)) |
| 55 | {epsilon : ℝ} (hepsilon : 0 < epsilon) (hdelta : N.epsilon ≤ epsilon / 4) |
| 56 | (hlimit : RoundCylinderFamilyClose N.epsilon (Ioc (-1 : ℝ) 0) |
| 57 | (fun s => roundCylinderPullback (C.limit.flow.metric s) N.coordinate_map)) : |
| 58 | ∀ᶠ k : ℕ in atTop, RoundCylinderFamilyClose epsilon (Ioc (-1 : ℝ) 0) |
| 59 | (generalizedCylinderPullback (C.embedding k) N.coordinate_map) := by |
| 60 | have hstrict : N.epsilon < epsilon := by linarith |
| 61 | have hinv : epsilon⁻¹ < N.epsilon⁻¹ := inv_strictAnti₀ N.epsilon_pos hstrict |
| 62 | let m : ℕ := ⌊epsilon⁻¹⌋₊ |
| 63 | let K : Set RoundCylinderCoordinates := ({0} : Set E₂) ×ˢ Icc (-epsilon⁻¹) epsilon⁻¹ |
| 64 | have hK : IsCompact K := isCompact_singleton.prod isCompact_Icc |
| 65 | obtain ⟨A, hA, hcov⟩ := exists_roundCylinder_covariant_difference_component_bound |
| 66 | (I := Icc (-1 : ℝ) 0) isCompact_Icc (fun _ hu => hu.2.trans_lt zero_lt_one) hK m |
| 67 | obtain ⟨eta, heta, hperturb⟩ := exists_roundCylinderFamilyClose_perturbation_tolerance hepsilon |
| 68 | let rho := eta / (A + 1) |
| 69 | have hrho : 0 < rho := div_pos heta (by linarith) |
| 70 | have hsmall : A * rho ≤ eta := by |
| 71 | have hscale : (A + 1) * rho = eta := by |
| 72 | dsimp [rho] |
| 73 | field_simp |
| 74 | nlinarith |
| 75 | have hcoordinate : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ N.coordinate_map |
| 76 | (univ ×ˢ Ioo (-epsilon⁻¹) epsilon⁻¹) := |
| 77 | N.coordinate_map_smooth.mono (fun z hz => |
| 78 | ⟨hz.1, lt_of_le_of_lt (neg_le_neg hinv.le) hz.2.1, hz.2.2.trans_le hinv.le⟩) |
| 79 | filter_upwards [ordinaryChapter11_uniform_neck_coefficientJets R p hpositive hdiverges C |
| 80 | hJ hJI N hinv m rho hrho, |
| 81 | C.eventually_captures_closed_neck (C.limit.flow.metric 0) N hinv hJI] |
| 82 | with k hjets hcapture |
| 83 | let B := generalizedCylinderPullback (C.embedding k) N.coordinate_map |
| 84 | let D := fun s => roundCylinderPullback (C.limit.flow.metric s) N.coordinate_map |
| 85 | have hBs (s : ℝ) (hs : s ∈ Ioc (-1 : ℝ) 0) : RoundCylinderTensorSmoothOn epsilon (B s) := |
| 86 | generalizedCylinderPullback_roundCylinderTensorSmoothOn (C.embedding k) |
| 87 | (C.exhaustion.space_open k) hcoordinate |
| 88 | (fun z hz => hcapture.1 ⟨z, ⟨mem_univ _, hz.2.1.le, hz.2.2.le⟩, rfl⟩) |
| 89 | (hcapture.2 ⟨hs.1.le, hs.2⟩) |
| 90 | apply hperturb N.epsilon_pos hdelta (fun _ hu => hu.2) B D hlimit hBs |
| 91 | intro s hs z hz j hj a |
| 92 | have hDs : RoundCylinderTensorSmoothOn epsilon (D s) := |
| 93 | (hlimit.1 s hs).mono_epsilon N.epsilon_pos hstrict.le |
| 94 | have hzero : chartAt E₂ z.1 z.1 = 0 := by |
| 95 | have h := (chartAt E₂ z.1).right_inv |
| 96 | (show (0 : E₂) ∈ (chartAt E₂ z.1).target from by |
| 97 | rw [roundCylinder_sphereChart_target] |
| 98 | trivial) |
| 99 | rwa [sphere_chart_symm_zero] at h |
| 100 | have h := hcov s ⟨hs.1.le, hs.2⟩ z.1 (B s) (D s) epsilon (hBs s hs) hDs |
| 101 | (0, z.2) ⟨rfl, hz.1.le, hz.2.le⟩ |
| 102 | ⟨by rw [roundCylinder_sphereChart_target]; trivial, hz⟩ rho hrho.le |
| 103 | (fun l hl i b => (hjets z ⟨hz.1.le, hz.2.le⟩ s ⟨hs.1.le, hs.2⟩ l hl i b).le) |
| 104 | j hj a |
| 105 | simpa only [hzero] using h.trans hsmall |
| 106 | |
| 107 | end PoincareMT.M34 |