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.Compactness.Embedding.BallTransfer |
| 2 | |
| 3 | /-! |
| 4 | # Pointwise convergence of coordinate metric jets |
| 5 | |
| 6 | The frozen compact-open convergence controls every coordinate derivative at |
| 7 | every interior point. Exhaustion membership is supplied by the convergence |
| 8 | package, so the pointwise conclusions require no additional stage hypothesis. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | namespace PoincareMT.PointedGeometricConvergence |
| 17 | |
| 18 | variable {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 19 | |
| 20 | /-- Every frozen coordinate metric jet converges at an interior chart point. -/ |
| 21 | theorem tendsto_coordinate_metricJet (G : PointedGeometricConvergence S) |
| 22 | (q : G.limitCarrier.carrier) (r : ℕ) (a b : Fin n) |
| 23 | (p : ℝ × EuclideanSpace ℝ (Fin n)) (ht : p.1 ∈ Ioo T' T) |
| 24 | (hp : |
| 25 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 26 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 27 | G.limitCarrier.chartedSpace |
| 28 | p.2 ∈ (extChartAt (𝓡 n) q).target) : |
| 29 | Tendsto (fun k ↦ iteratedFDeriv ℝ r |
| 30 | (FlowCarrier.coordinateCoefficient G.limitCarrier q |
| 31 | (pullbackInnerValue G.limitFlow (S.flow (G.subsequence k)) (G.embedding k)) a b) p) |
| 32 | atTop (𝓝 (iteratedFDeriv ℝ r |
| 33 | (FlowCarrier.coordinateCoefficient G.limitCarrier q |
| 34 | (fun t x v w ↦ G.limitCarrier.metricInner (G.limitFlow.metricAt t) x v w) a b) p)) := by |
| 35 | let : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 36 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 37 | G.limitCarrier.chartedSpace |
| 38 | let : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 39 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset |
| 40 | (isCompact_singleton (x := (extChartAt (𝓡 n) q).symm p.2)) |
| 41 | have hdom : {p} ⊆ {z | z.1 ∈ Ioo T' T ∧ z.2 ∈ (extChartAt (𝓡 n) q).target ∧ |
| 42 | (extChartAt (𝓡 n) q).symm z.2 ∈ G.exhaustion j} := |
| 43 | singleton_subset_iff.mpr ⟨ht, hp, hj (mem_singleton _)⟩ |
| 44 | apply Metric.tendsto_atTop.mpr |
| 45 | intro ε hε |
| 46 | obtain ⟨N, _, hN⟩ := G.pullback_metric_CInfinity q j r {p} isCompact_singleton hdom ε hε |
| 47 | refine ⟨N, fun k hk ↦ ?_⟩ |
| 48 | simpa only [dist_eq_norm, MetricJet] using hN k hk a b p (mem_singleton p) |
| 49 | |
| 50 | /-- Derivatives evaluated on fixed coordinate directions converge as scalars. -/ |
| 51 | theorem tendsto_coordinate_metricJet_apply (G : PointedGeometricConvergence S) |
| 52 | (q : G.limitCarrier.carrier) (r : ℕ) (a b : Fin n) |
| 53 | (p : ℝ × EuclideanSpace ℝ (Fin n)) (ht : p.1 ∈ Ioo T' T) |
| 54 | (hp : |
| 55 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 56 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 57 | G.limitCarrier.chartedSpace |
| 58 | p.2 ∈ (extChartAt (𝓡 n) q).target) |
| 59 | (v : Fin r → ℝ × EuclideanSpace ℝ (Fin n)) : |
| 60 | Tendsto (fun k ↦ iteratedFDeriv ℝ r |
| 61 | (FlowCarrier.coordinateCoefficient G.limitCarrier q |
| 62 | (pullbackInnerValue G.limitFlow (S.flow (G.subsequence k)) (G.embedding k)) a b) p v) |
| 63 | atTop (𝓝 (iteratedFDeriv ℝ r |
| 64 | (FlowCarrier.coordinateCoefficient G.limitCarrier q |
| 65 | (fun t x v w ↦ G.limitCarrier.metricInner (G.limitFlow.metricAt t) x v w) a b) p v)) := |
| 66 | (continuous_eval_const v).continuousAt.tendsto.comp |
| 67 | (G.tendsto_coordinate_metricJet q r a b p ht hp) |
| 68 | |
| 69 | end PoincareMT.PointedGeometricConvergence |