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.SelectedRadialFieldParallel |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ReflectedPullbackComposition |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ReflectedChartPair |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FarTipModelAlternatives |
| 6 | |
| 7 | /-! |
| 8 | # The actual far-tip limit cannot be the reflected sphere-line quotient |
| 9 | |
| 10 | The actual original outward field has a common smooth parallel unit limit |
| 11 | on a bounded cylinder chart containing a reflected pair. Both values lift |
| 12 | the same selected quotient fields. The frozen reflected deck action reverses |
| 13 | their constant axial component, contradicting actual unit length. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter VectorField |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35.OrdinaryRealization |
| 23 | |
| 24 | open Uniqueness |
| 25 | |
| 26 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 27 | |
| 28 | /-- The actual far-tip ancient identification cannot carry the frozen |
| 29 | reflected-line product quotient. -/ |
| 30 | theorem blowupSequence_far_tip_not_twisted |
| 31 | (P : M35StandardCapPredecessors) |
| 32 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 33 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 34 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 35 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 36 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 37 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 38 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 39 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 40 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 41 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 42 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 43 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 44 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 45 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 46 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 47 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 48 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 49 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 50 | ¬Nonempty (M27TwistedSphereLineFlowCertificate A.solution) := by |
| 51 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 52 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 53 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 54 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 55 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 56 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 57 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 58 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 59 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 60 | rintro ⟨N⟩ |
| 61 | obtain ⟨q, a, b, R, _hRpos, ha, hb, hab⟩ := exists_reflected_pair_in_chart_ball |
| 62 | let coordinate := N.cover ∘ cylinderChart q |
| 63 | let g := twistedProductChartMetric N 0 q |
| 64 | let D := twistedProductChartConnection N 0 q |
| 65 | have hc : ContMDiff (𝓡 3) (𝓡 3) ∞ coordinate := twistedProductChart_contMDiff N q |
| 66 | have hi : ∀ z, (mfderiv (𝓡 3) (𝓡 3) coordinate z).IsInvertible := |
| 67 | twistedProductChart_invertible N q |
| 68 | have hg : g.euclideanCoefficients = (L.limit.flow.metric 0).pullbackCoefficients coordinate := by |
| 69 | change (A.solution.flow.metric 0).pullbackCoefficients coordinate = _ |
| 70 | rw [A.metric_eq 0 le_rfl] |
| 71 | let Ω : Set V := Metric.ball 0 R |
| 72 | have hΩ : IsOpen Ω := Metric.isOpen_ball |
| 73 | have hcompact : IsCompact (closure Ω) := |
| 74 | (isCompact_closedBall (0 : V) R).of_isClosed_subset isClosed_closure |
| 75 | Metric.closure_ball_subset_closedBall |
| 76 | obtain ⟨sigma, Z, hsigma, hZ, hjets⟩ := |
| 77 | blowupSequence_coordinate_radial_smooth_subsequence P E t x ht hR hd L |
| 78 | coordinate hc hi g hg Ω hΩ hcompact |
| 79 | have hpointJets (m : ℕ) (z : V) (hz : z ∈ Ω) := |
| 80 | (hjets m {z} isCompact_singleton (singleton_subset_iff.mpr hz)).tendsto_at (mem_singleton z) |
| 81 | have hparallel (z : V) (hz : z ∈ Ω) : |
| 82 | g.inner z (Z z) (Z z) = 1 ∧ ∀ w : V, D.connection Z z w = 0 := |
| 83 | blowupSequence_coordinate_radial_limit_parallel P E t x ht hR hd L |
| 84 | coordinate hc hi g D hg sigma hsigma.tendsto_atTop z Z |
| 85 | ((hZ z hz).contDiffAt (hΩ.mem_nhds hz)) (fun m _ => hpointJets m z hz) |
| 86 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence (sigma k)) |
| 87 | have hQ k : 0 < Q k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence (sigma k)) |
| 88 | let G (k : ℕ) : RiemannianMetric 3 StandardCapSpace := |
| 89 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence (sigma k)))) (Q k) (hQ k) |
| 90 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := ((L.embedding (sigma k)).forward 0 |
| 91 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (sigma k)).le, le_rfl⟩ z).val |
| 92 | let W (k : ℕ) := mpullback (𝓡 3) (𝓡 3) (F k) (radialUnitField (G k)) |
| 93 | have hvalue (z : V) (hz : z ∈ Ω) : |
| 94 | Tendsto (fun k => twistedChartLift N q (W k) z) atTop (𝓝 (Z z)) := by |
| 95 | have hval := ((continuousMultilinearCurryFin0 ℝ V V).continuous.tendsto _).comp |
| 96 | (hpointJets 0 z hz) |
| 97 | simp only [iteratedFDeriv_zero_eq_comp, Function.comp_def, |
| 98 | LinearIsometryEquiv.apply_symm_apply] at hval |
| 99 | have hcover : coordinate z ∈ ⋃ j, L.exhaustion.space j := by |
| 100 | rw [L.exhaustion.space_covers] |
| 101 | exact mem_univ _ |
| 102 | obtain ⟨j, hzj⟩ := mem_iUnion.mp hcover |
| 103 | apply hval.congr' |
| 104 | filter_upwards [hsigma.tendsto_atTop.eventually (eventually_ge_atTop j)] with k hk |
| 105 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time (sigma k)) 0 := |
| 106 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (sigma k)).le, le_rfl⟩ |
| 107 | have htime := ((L.embedding (sigma k)).forward 0 hzero L.limit.base).property |
| 108 | have hF : ContMDiffAt (𝓡 3) (𝓡 3) ∞ (F k) (coordinate z) := |
| 109 | ((sliceDiffeomorph htime).contMDiff.comp_contMDiffOn |
| 110 | ((L.embedding (sigma k)).forward_smooth 0 hzero)).contMDiffAt |
| 111 | ((L.exhaustion.space_open (sigma k)).mem_nhds |
| 112 | (L.exhaustion.space_increasing hk hzj)) |
| 113 | exact (twistedChartLift_mpullback_comp N q (F k) (radialUnitField (G k)) z |
| 114 | (hF.mdifferentiableAt (by simp))).symm |
| 115 | exact twistedChartLift_parallel_limit_false N q W hΩ (convex_ball (0 : V) R).isPreconnected |
| 116 | hZ (fun z hz => (hparallel z hz).2) ha hb (hparallel a ha).1 hab |
| 117 | (hvalue a ha) (hvalue b hb) |
| 118 | |
| 119 | /-- The seven actual M27 alternatives leave only the unquotiented |
| 120 | sphere-line model at a scalar-normalized far-tip blowup. -/ |
| 121 | theorem blowupSequence_far_tip_sphere_line |
| 122 | (P : M35StandardCapPredecessors) |
| 123 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 124 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 125 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 126 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 127 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 128 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 129 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 130 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 131 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 132 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 133 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 134 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 135 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 136 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 137 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 138 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 139 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 140 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 141 | ∀ {epsilon C : ℝ}, M27KappaNine93Conclusion A.solution epsilon C → |
| 142 | Nonempty (M27SphereLineFlowCertificate A.solution) := by |
| 143 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 144 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 145 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 146 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 147 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 148 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 149 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 150 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 151 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 152 | intro epsilon C H |
| 153 | exact (blowupSequence_far_tip_product_models P E t x ht hR hd L A H).resolve_right |
| 154 | (blowupSequence_far_tip_not_twisted P E t x ht hR hd L A) |
| 155 | |
| 156 | end PoincareMT.M35.OrdinaryRealization |