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.Blowup.Cylinder.Geometry.CylinderCoordinates |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Sequences.BlowupSequence |
| 4 | |
| 5 | /-! |
| 6 | # Actual metric jets in fixed original spatial coordinates |
| 7 | |
| 8 | Morgan-Tian Theorem 12.28, pp. 323-324, via Theorem 11.8. |
| 9 | Compatible cylinders pull back the original metric by a time-independent |
| 10 | spatial map. Locality identifies all within-domain jets with M30's |
| 11 | coefficients, including the normalized terminal time zero. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | /-- Theorem 12.28: a coefficient of the original rescaled metric |
| 22 | pulled back by one fixed spatial map, in a retained source chart. -/ |
| 23 | noncomputable def fixedCylinderMetricCoefficient {J : Set ℝ} |
| 24 | (F : RicciFlow 3 StandardCapSpace J) (C : GeneralizedSliceCarrier) |
| 25 | (a Q : ℝ) (f : C.carrier → StandardCapSpace) (q : C.carrier) |
| 26 | (i j : Fin 3) (p : ℝ × EuclideanSpace ℝ (Fin 3)) : ℝ := |
| 27 | let c := extChartAt (𝓡 3) q |
| 28 | let D := mfderiv (𝓡 3) (𝓡 3) c.symm p.2 |
| 29 | let L := mfderiv (𝓡 3) (𝓡 3) f (c.symm p.2) |
| 30 | Q * (F.metric (a + p.1 / Q)).inner (f (c.symm p.2)) |
| 31 | (L (D (EuclideanSpace.basisFun (Fin 3) ℝ i))) |
| 32 | (L (D (EuclideanSpace.basisFun (Fin 3) ℝ j))) |
| 33 | |
| 34 | /-- Theorem 12.28: actual cylinder coefficients equal those of the |
| 35 | original evolving metric under the single fixed spatial map. -/ |
| 36 | theorem cylinder_coefficient_eq_fixed {J K : Set ℝ} |
| 37 | (F : RicciFlow 3 StandardCapSpace J) {L : BlowupLimitFlow K} |
| 38 | {a Q : ℝ} {I : Set ℝ} {U : Set L.sliceCarrier.carrier} |
| 39 | (e : GeneralizedFlowCylinder (generalizedFlow F) L.sliceCarrier a Q I U) |
| 40 | (hI : IsPreconnected I) (hU : IsOpen U) {s : ℝ} (hs : s ∈ I) |
| 41 | (q : L.sliceCarrier.carrier) (i j : Fin 3) |
| 42 | (p : ℝ × EuclideanSpace ℝ (Fin 3)) (hp : p.1 ∈ I) |
| 43 | (hx : (extChartAt (𝓡 3) q).symm p.2 ∈ U) : |
| 44 | blowupPullbackCoefficient e q i j p = |
| 45 | fixedCylinderMetricCoefficient F L.sliceCarrier a Q |
| 46 | (fun y => (e.forward s hs y).val) q i j p := by |
| 47 | unfold blowupPullbackCoefficient fixedCylinderMetricCoefficient |
| 48 | rw [dif_pos hp] |
| 49 | exact cylinder_pullbackInner_eq_fixed F e hI hU hp hs hx _ _ |
| 50 | |
| 51 | /-- Theorem 12.28: equality of the actual coefficients on the open |
| 52 | cylinder source identifies every within-domain metric jet, including |
| 53 | at an included endpoint of the normalized time interval. -/ |
| 54 | theorem cylinder_coefficient_jet_eq_fixed {J K : Set ℝ} |
| 55 | (F : RicciFlow 3 StandardCapSpace J) {L : BlowupLimitFlow K} |
| 56 | {a Q : ℝ} {I : Set ℝ} {U : Set L.sliceCarrier.carrier} |
| 57 | (e : GeneralizedFlowCylinder (generalizedFlow F) L.sliceCarrier a Q I U) |
| 58 | (hI : IsPreconnected I) (hU : IsOpen U) {s : ℝ} (hs : s ∈ I) |
| 59 | (q : L.sliceCarrier.carrier) (i j : Fin 3) (r : ℕ) |
| 60 | (p : ℝ × EuclideanSpace ℝ (Fin 3)) |
| 61 | (hp : p ∈ I ×ˢ (extChartAt (𝓡 3) q).target) |
| 62 | (hx : (extChartAt (𝓡 3) q).symm p.2 ∈ U) : |
| 63 | iteratedFDerivWithin ℝ r (blowupPullbackCoefficient e q i j) |
| 64 | (I ×ˢ (extChartAt (𝓡 3) q).target) p = |
| 65 | iteratedFDerivWithin ℝ r |
| 66 | (fixedCylinderMetricCoefficient F L.sliceCarrier a Q |
| 67 | (fun y => (e.forward s hs y).val) q i j) |
| 68 | (I ×ˢ (extChartAt (𝓡 3) q).target) p := by |
| 69 | have hcont : ContinuousAt (fun p : ℝ × EuclideanSpace ℝ (Fin 3) => |
| 70 | (extChartAt (𝓡 3) q).symm p.2) p := |
| 71 | (continuousAt_extChartAt_symm'' hp.2).comp continuousAt_snd |
| 72 | have hnear := hcont.preimage_mem_nhds (hU.mem_nhds hx) |
| 73 | have heq : blowupPullbackCoefficient e q i j =ᶠ[ |
| 74 | 𝓝[I ×ˢ (extChartAt (𝓡 3) q).target] p] |
| 75 | fixedCylinderMetricCoefficient F L.sliceCarrier a Q |
| 76 | (fun y => (e.forward s hs y).val) q i j := by |
| 77 | filter_upwards [self_mem_nhdsWithin, mem_nhdsWithin_of_mem_nhds hnear] with z hz hzU |
| 78 | exact cylinder_coefficient_eq_fixed F e hI hU hs q i j z hz.1 hzU |
| 79 | exact heq.iteratedFDerivWithin_eq |
| 80 | (cylinder_coefficient_eq_fixed F e hI hU hs q i j p hp.1 hx) r |
| 81 | |
| 82 | /-- Theorem 12.28: the given pointed smooth convergence controls |
| 83 | the original rescaled metric in its actual fixed cylinder coordinates, |
| 84 | on the same compact sets and through every derivative order. -/ |
| 85 | theorem blowupSequence_fixed_metric_CInfinity (P : M35StandardCapPredecessors) |
| 86 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 87 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 88 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 89 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 90 | {J : Set ℝ} (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) J) |
| 91 | (q : L.limit.sliceCarrier.carrier) (j r : ℕ) |
| 92 | (K : Set (ℝ × EuclideanSpace ℝ (Fin 3))) (hK : IsCompact K) |
| 93 | (hKU : K ⊆ {p | p ∈ blowupMetricChartDomain L.limit q ∧ |
| 94 | (extChartAt (𝓡 3) q).symm p.2 ∈ L.exhaustion.space j}) |
| 95 | (eta : ℝ) (heta : 0 < eta) : |
| 96 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 97 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 98 | L.limit.carrier.chartedSpace |
| 99 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 100 | ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, |
| 101 | K ⊆ Icc (-L.exhaustion.time k) 0 ×ˢ (extChartAt (𝓡 3) q).target ∧ |
| 102 | ∀ a b : Fin 3, ∀ p ∈ K, |
| 103 | ‖iteratedFDerivWithin ℝ r |
| 104 | (fixedCylinderMetricCoefficient E.flow.base.flow L.limit.sliceCarrier |
| 105 | (t (L.subsequence k)) ((blowupSequence P E t x ht hR).scale (L.subsequence k)) |
| 106 | (fun y => ((L.embedding k).forward 0 |
| 107 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ y).val) q a b) |
| 108 | (Icc (-L.exhaustion.time k) 0 ×ˢ (extChartAt (𝓡 3) q).target) p - |
| 109 | iteratedFDerivWithin ℝ r |
| 110 | (FlowCarrier.coordinateCoefficient L.limit.carrier q |
| 111 | (fun t x v w => (L.limit.flow.metric t).inner x v w) a b) |
| 112 | (blowupMetricChartDomain L.limit q) p‖ < eta := by |
| 113 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 114 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) L.limit.carrier.carrier := |
| 115 | L.limit.carrier.chartedSpace |
| 116 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 117 | obtain ⟨N, hjN, hN⟩ := L.pullback_metric_CInfinity q j r K hK hKU eta heta |
| 118 | refine ⟨N, hjN, ?_⟩ |
| 119 | intro k hk |
| 120 | refine ⟨(hN k hk).1, ?_⟩ |
| 121 | intro a b p hp |
| 122 | have hsource := L.exhaustion.space_increasing (hjN.trans hk) (hKU hp).2 |
| 123 | have hjet := cylinder_coefficient_jet_eq_fixed E.flow.base.flow (L.embedding k) |
| 124 | isPreconnected_Icc (L.exhaustion.space_open k) |
| 125 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ q a b r p |
| 126 | ((hN k hk).1 hp) hsource |
| 127 | exact (congrArg (fun A => ‖A - iteratedFDerivWithin ℝ r |
| 128 | (FlowCarrier.coordinateCoefficient L.limit.carrier q |
| 129 | (fun t x v w => (L.limit.flow.metric t).inner x v w) a b) |
| 130 | (blowupMetricChartDomain L.limit q) p‖) hjet).symm.trans_lt ((hN k hk).2 a b p hp) |
| 131 | |
| 132 | end PoincareMT.M35.OrdinaryRealization |