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.FarTipReflectedExclusion |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Geometry.NeckCompactness |
| 4 | |
| 5 | /-! |
| 6 | # The actual centered strong neck on the far-tip sphere-line limit |
| 7 | |
| 8 | The M27 sphere-line branch retains its whole-slice strong tube. All other |
| 9 | branches are excluded by the actual retained null plane, noncompactness, |
| 10 | and the checked quotient obstructions. The chosen neck closure lies in one |
| 11 | stage of the same blowup exhaustion. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | private theorem null_plane_transport |
| 25 | {M : Type*} [TopologicalSpace M] [ChartedSpace V M] |
| 26 | [IsManifold (𝓡 3) ∞ M] {g h : RiemannianMetric 3 M} |
| 27 | (heq : g = h) (D : LeviCivitaData g) (D' : LeviCivitaData h) (x : M) |
| 28 | (hnull : ∃ u v : TangentSpace (𝓡 3) x, |
| 29 | g.inner x u u = 1 ∧ g.inner x v v = 1 ∧ g.inner x u v = 0 ∧ |
| 30 | D.curvatureTensor x u v u v = 0) : |
| 31 | ∃ u v : TangentSpace (𝓡 3) x, |
| 32 | h.inner x u u = 1 ∧ h.inner x v v = 1 ∧ h.inner x u v = 0 ∧ |
| 33 | D'.curvatureTensor x u v u v = 0 := by |
| 34 | cases heq |
| 35 | obtain ⟨u, v, hu, hv, huv, hR⟩ := hnull |
| 36 | exact ⟨u, v, hu, hv, huv, (D'.curvatureTensor_eq D x u v u v).trans hR⟩ |
| 37 | |
| 38 | /-- At the actual far-tip limit basepoint, the surviving M27 branch |
| 39 | supplies both the genuine sphere-line model and a centered strong neck |
| 40 | whose entire closure is retained by the same exhaustion. -/ |
| 41 | theorem blowupSequence_far_tip_centered_strong_neck |
| 42 | (P : M35StandardCapPredecessors) |
| 43 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 44 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 45 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 46 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 47 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 48 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 49 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 50 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 51 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 52 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 53 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 54 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 55 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 56 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 57 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 58 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 59 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 60 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 61 | ∀ {epsilon C : ℝ}, M27KappaNine93Conclusion A.solution epsilon C → |
| 62 | Nonempty (M27SphereLineFlowCertificate A.solution) ∧ |
| 63 | ∃ N : StrongEvolvingNeck A.solution 0 epsilon, N.center = L.limit.base ∧ |
| 64 | ∃ j : ℕ, closure N.terminal_neck.carrier ⊆ L.exhaustion.space j := by |
| 65 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 66 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 67 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 68 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 69 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 70 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 71 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 72 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 73 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 74 | intro epsilon C H |
| 75 | obtain ⟨u, v, hu, hv, huv, hzero⟩ := null_plane_transport (A.metric_eq 0 le_rfl).symm |
| 76 | (L.limit.flow.connection 0) (A.solution.flow.connection 0) L.limit.base |
| 77 | (blowupSequence_far_tip_exists_null_plane P E t x ht hR hd L) |
| 78 | have hnotpos : ¬M27PositiveSectionalCurvature A.solution 0 := by |
| 79 | intro hpos |
| 80 | have h := hpos L.limit.base u v hu hv huv |
| 81 | unfold LeviCivitaData.sectionalCurvature at h |
| 82 | rw [hu, hv, huv, hzero] at h |
| 83 | norm_num at h |
| 84 | have hnoncompact := blowupSequence_limit_noncompact P E t x ht hR L |
| 85 | cases H with |
| 86 | | round _ quotient => |
| 87 | apply False.elim |
| 88 | apply hnoncompact |
| 89 | rw [← Set.range_eq_univ.mpr quotient.cover_surjective] |
| 90 | exact isCompact_range quotient.cover_local_diffeomorph.contMDiff.continuous |
| 91 | | compactPositive geometry => exact (hnoncompact geometry.compact).elim |
| 92 | | doubleCapped _ positive _ _ => exact (hnotpos positive).elim |
| 93 | | cappedEuclidean _ positive _ _ => exact (hnotpos positive).elim |
| 94 | | cappedQuotient model _ _ => |
| 95 | exact (blowupSequence_far_tip_not_twisted P E t x ht hR hd L A ⟨model⟩).elim |
| 96 | | sphereLine model tube => |
| 97 | obtain ⟨N, hcenter, _⟩ := tube.strong_at L.limit.base |
| 98 | have hcompact := N.terminal_neck.isCompact_closure (A.solution.complete 0 le_rfl) |
| 99 | obtain ⟨j, hj⟩ := hcompact.elim_directed_cover L.exhaustion.space |
| 100 | L.exhaustion.space_open |
| 101 | (fun y _ => by rw [L.exhaustion.space_covers]; exact mem_univ y) |
| 102 | (fun i j => ⟨max i j, L.exhaustion.space_increasing (le_max_left _ _), |
| 103 | L.exhaustion.space_increasing (le_max_right _ _)⟩) |
| 104 | exact ⟨⟨model⟩, N, hcenter, j, hj⟩ |
| 105 | | projectivePlaneLine model => |
| 106 | exact (blowupSequence_limit_not_projective P E t x ht hR L A ⟨model⟩).elim |
| 107 | |
| 108 | end PoincareMT.M35.OrdinaryRealization |