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.BlowupNullPlane |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.AncientLimits.LimitAlternatives |
| 4 | import PoincareLib.Geometry.RicciFlow.Local.Connection.CurvatureIndependence |
| 5 | |
| 6 | /-! |
| 7 | # The remaining actual models at a far-tip blowup |
| 8 | |
| 9 | The retained null plane rules out the positive-sectional alternatives. |
| 10 | Actual exhaustion cylinders rule out the compact and antipodal-product |
| 11 | alternatives. The reflected-line quotient is left explicit. |
| 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_of_metric_eq |
| 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 | /-- Theorem 12.32: on the actual far-tip ancient identification, the |
| 39 | seven alternatives reduce to the spherical product or its reflected-line |
| 40 | quotient, with neither alternative silently discarded. -/ |
| 41 | theorem blowupSequence_far_tip_product_models |
| 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 | Nonempty (M27TwistedSphereLineFlowCertificate A.solution) := by |
| 64 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 65 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 66 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 67 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 68 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 69 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 70 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 71 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 72 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 73 | intro epsilon C H |
| 74 | obtain ⟨u, v, hu, hv, huv, hzero⟩ := null_plane_of_metric_eq (A.metric_eq 0 le_rfl).symm |
| 75 | (L.limit.flow.connection 0) (A.solution.flow.connection 0) L.limit.base |
| 76 | (blowupSequence_far_tip_exists_null_plane P E t x ht hR hd L) |
| 77 | have hnotpos : ¬M27PositiveSectionalCurvature A.solution 0 := by |
| 78 | intro hpos |
| 79 | have h := hpos L.limit.base u v hu hv huv |
| 80 | unfold LeviCivitaData.sectionalCurvature at h |
| 81 | rw [hu, hv, huv, hzero] at h |
| 82 | norm_num at h |
| 83 | have hnoncompact := blowupSequence_limit_noncompact P E t x ht hR L |
| 84 | cases H with |
| 85 | | round _ quotient => |
| 86 | apply False.elim |
| 87 | apply hnoncompact |
| 88 | rw [← Set.range_eq_univ.mpr quotient.cover_surjective] |
| 89 | exact isCompact_range quotient.cover_local_diffeomorph.contMDiff.continuous |
| 90 | | compactPositive geometry => exact (hnoncompact geometry.compact).elim |
| 91 | | doubleCapped _ positive _ _ => exact (hnotpos positive).elim |
| 92 | | cappedEuclidean _ positive _ _ => exact (hnotpos positive).elim |
| 93 | | cappedQuotient model _ _ => exact Or.inr ⟨model⟩ |
| 94 | | sphereLine model _ => exact Or.inl ⟨model⟩ |
| 95 | | projectivePlaneLine model => |
| 96 | exact (blowupSequence_limit_not_projective P E t x ht hR L A ⟨model⟩).elim |
| 97 | |
| 98 | end PoincareMT.M35.OrdinaryRealization |