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.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseMovingCurvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ScalarMetricJets |
| 3 | |
| 4 | /-! |
| 5 | # Included scalar readouts of arbitrary generalized source sequences |
| 6 | |
| 7 | The actual coordinate metric jets determine scalar curvature as well as |
| 8 | curvature norm. The germs retain both source and limit connections and |
| 9 | the literal physical parabolic scale. Source: MT Proposition 17.1; |
| 10 | reviewed limit-tail-compact-transfer, F2b. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 26 | (G : GeneralizedBlowupConvergence S J) |
| 27 | |
| 28 | private local instance : TopologicalSpace G.limit.carrier.carrier := |
| 29 | G.limit.carrier.topologicalSpace |
| 30 | private local instance : ChartedSpace E G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 31 | private local instance : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := G.limit.carrier.isManifold |
| 32 | |
| 33 | /-- At any fixed included time and actual limit point, the normalized |
| 34 | physical scalar converges along the original selected subsequence. -/ |
| 35 | theorem limitNoncollapse_eventually_point_scalar |
| 36 | (P : M47Predecessors.{u}) (t : ℝ) (ht : t ∈ J) |
| 37 | (x : G.limit.sliceCarrier.carrier) {epsilon : ℝ} (hepsilon : 0 < epsilon) : |
| 38 | ∀ᶠ k : ℕ in atTop, |
| 39 | t ∈ Icc (-G.exhaustion.time k) 0 ∧ x ∈ G.exhaustion.space k ∧ |
| 40 | ∀ hs : t ∈ Icc (-G.exhaustion.time k) 0, |
| 41 | |(S.flow (G.subsequence k)).scalar ((G.embedding k).pointMap t hs x) / |
| 42 | S.scale (G.subsequence k) - (G.limit.flow.connection t).scalarCurvature x| < |
| 43 | epsilon := by |
| 44 | classical |
| 45 | let c := extChartAt (𝓡 3) x |
| 46 | let p : E := c x |
| 47 | have hp : p ∈ c.target := mem_extChartAt_target x |
| 48 | have hpx : c.symm p = x := extChartAt_to_inv x |
| 49 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset (isCompact_singleton (x := x)) |
| 50 | have hdomain : ∀ᶠ k in atTop, |
| 51 | t ∈ Icc (-G.exhaustion.time k) 0 ∧ x ∈ G.exhaustion.space k := by |
| 52 | filter_upwards [G.exhaustion.time_cofinal {t} isCompact_singleton |
| 53 | (singleton_subset_iff.mpr ht), eventually_ge_atTop j] with k hk hjk |
| 54 | exact ⟨hk (mem_singleton t), G.exhaustion.space_increasing hjk (hj (mem_singleton x))⟩ |
| 55 | obtain ⟨g, D, V, hVo, hpV, _, heq⟩ := |
| 56 | G.limit.carrier.exists_local_coordinate_realization (G.limit.flow.metric t) x t p hp |
| 57 | have hg := Filter.Eventually.mono (hVo.mem_nhds hpV) heq |
| 58 | have hreal : ∀ᶠ k in atTop, |
| 59 | ∃ gd : Σ g : RiemannianMetric 3 E, LeviCivitaData g, |
| 60 | ∀ᶠ y in 𝓝 p, ∀ a b : Fin 3, |
| 61 | gd.1.euclideanCoefficients y (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 62 | (EuclideanSpace.basisFun (Fin 3) ℝ b) = |
| 63 | blowupPullbackCoefficient (G.embedding k) x a b (t, y) := by |
| 64 | filter_upwards [hdomain] with k hk |
| 65 | obtain ⟨gk, Dk, Vk, hVko, hpVk, _, heqk⟩ := |
| 66 | (G.embedding k).exists_local_coordinate_realization (G.exhaustion.space_open k) |
| 67 | x hk.1 p ⟨hp, hpx.symm ▸ hk.2⟩ |
| 68 | exact ⟨⟨gk, Dk⟩, Filter.Eventually.mono (hVko.mem_nhds hpVk) heqk⟩ |
| 69 | obtain ⟨gd, hgd⟩ := hreal.choice |
| 70 | have hjets (r : ℕ) (_hr : r ≤ 2) (a b : Fin 3) : |
| 71 | Tendsto (fun k => iteratedFDeriv ℝ r (fun y => (gd k).1.inner y |
| 72 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b)) p) |
| 73 | atTop (𝓝 (iteratedFDeriv ℝ r (fun y => g.inner y |
| 74 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b)) p)) := by |
| 75 | erw [G.limit.carrier.iteratedFDeriv_coordinateCoefficient_eq_of_eventuallyEq |
| 76 | x _ t p g hg r a b] |
| 77 | apply (limitNoncollapse_tendsto_moving_spatial_jets G P x isCompact_singleton |
| 78 | (singleton_subset_iff.mpr ht) tendsto_id (fun _ => mem_singleton t) |
| 79 | (mem_singleton t) hp (tendsto_const_nhds (x := (t, p))) r a b).congr' |
| 80 | filter_upwards [hgd] with k hk |
| 81 | have he : (fun y => (gd k).1.inner y (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 82 | (EuclideanSpace.basisFun (Fin 3) ℝ b)) =ᶠ[𝓝 p] |
| 83 | (fun y => blowupPullbackCoefficient (G.embedding k) x a b (t, y)) := |
| 84 | hk.mono (fun y hy => hy a b) |
| 85 | exact (he.iteratedFDeriv ℝ r).self_of_nhds.symm |
| 86 | have hscalar := LeviCivitaData.tendsto_scalarCurvature_of_finite_scalar_metric_jets |
| 87 | (fun k => (gd k).2) D p (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis hjets |
| 88 | rw [G.limit.carrier.scalarCurvature_eq_of_frozen_coordinate_germ |
| 89 | (G.limit.flow.metric t) (G.limit.flow.connection t) x t p hp g D hg, hpx] at hscalar |
| 90 | have herror := (Metric.tendsto_atTop.mp hscalar) epsilon hepsilon |
| 91 | obtain ⟨N, hN⟩ := herror |
| 92 | filter_upwards [hdomain, hgd, eventually_ge_atTop N] with k hk hkg hkN |
| 93 | refine ⟨hk.1, hk.2, ?_⟩ |
| 94 | intro hs |
| 95 | have hread := ((G.embedding k).curvatures_eq_of_coordinate_germ |
| 96 | (G.exhaustion.space_open k) x hs p ⟨hp, hpx.symm ▸ hk.2⟩ |
| 97 | (gd k).1 (gd k).2 hkg).1 |
| 98 | rw [hpx] at hread |
| 99 | rw [← hread] |
| 100 | exact hN k hkN |
| 101 | |
| 102 | end PoincareMT.M47 |