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.Convergence |
| 2 | import PoincareLib.Geometry.Manifold.LocalDiffeomorph |
| 3 | |
| 4 | /-! |
| 5 | # Pointed smooth convergence on an ancient time domain |
| 6 | |
| 7 | One spatial carrier, one subsequence and one family of spatial embeddings |
| 8 | realize convergence on every compact spacetime subset. All mixed coordinate |
| 9 | jets use ordinary iterated Frechet derivatives, as in the frozen M07 interface. |
| 10 | Reference: Kleiner--Lott, Appendix E, Theorem E.1, pp. 2848--2849. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | noncomputable def spatialPullbackInner {n : ℕ} (L C : FlowCarrier n) |
| 20 | (g : C.metric) (f : L.carrier → C.carrier) (x : L.carrier) |
| 21 | (v w : L.tangent x) : ℝ := |
| 22 | letI := L.topologicalSpace |
| 23 | letI := L.chartedSpace |
| 24 | letI := L.isManifold |
| 25 | letI := C.topologicalSpace |
| 26 | letI := C.chartedSpace |
| 27 | letI := C.isManifold |
| 28 | g.inner (f x) (mfderiv (𝓡 n) (𝓡 n) f x v) (mfderiv (𝓡 n) (𝓡 n) f x w) |
| 29 | |
| 30 | structure AncientPointedGeometricConvergence {n : ℕ} |
| 31 | (C : ℕ → FlowCarrier.{0} n) (g : ∀ k, ℝ → (C k).metric) |
| 32 | (p : ∀ k, (C k).carrier) (T : ℝ) where |
| 33 | limitCarrier : FlowCarrier.{0} n |
| 34 | limitFlow : @RicciFlow n limitCarrier.carrier limitCarrier.topologicalSpace |
| 35 | limitCarrier.chartedSpace limitCarrier.isManifold (Iio T) |
| 36 | base : limitCarrier.carrier |
| 37 | subsequence : ℕ → ℕ |
| 38 | subsequence_strictMono : StrictMono subsequence |
| 39 | exhaustion : ℕ → Set limitCarrier.carrier |
| 40 | exhaustion_open : ∀ j, letI := limitCarrier.topologicalSpace |
| 41 | IsOpen (exhaustion j) |
| 42 | exhaustion_connected : ∀ j, letI := limitCarrier.topologicalSpace |
| 43 | IsConnected (exhaustion j) |
| 44 | exhaustion_compactClosure : ∀ j, letI := limitCarrier.topologicalSpace |
| 45 | IsCompact (closure (exhaustion j)) |
| 46 | exhaustion_increasing : ∀ j, exhaustion j ⊆ exhaustion (j + 1) |
| 47 | exhaustion_covers : ⋃ j, exhaustion j = univ |
| 48 | embedding : ∀ k, limitCarrier.carrier → (C (subsequence k)).carrier |
| 49 | embedding_open : ∀ k, letI := limitCarrier.topologicalSpace |
| 50 | letI := (C (subsequence k)).topologicalSpace |
| 51 | Topology.IsOpenEmbedding (fun x : exhaustion k => embedding k x) |
| 52 | embedding_smooth : ∀ k, letI := limitCarrier.topologicalSpace |
| 53 | letI := limitCarrier.chartedSpace |
| 54 | letI := (C (subsequence k)).topologicalSpace |
| 55 | letI := (C (subsequence k)).chartedSpace |
| 56 | IsLocalDiffeomorphOn (𝓡 n) (𝓡 n) ∞ (embedding k) (exhaustion k) |
| 57 | base_in_exhaustion : ∀ j, base ∈ exhaustion j |
| 58 | base_preserving : ∀ k, embedding k base = p (subsequence k) |
| 59 | pullback_metric_converges : letI := limitCarrier.topologicalSpace |
| 60 | letI := limitCarrier.chartedSpace |
| 61 | letI := limitCarrier.isManifold |
| 62 | ∀ j K I, IsCompact K → K ⊆ exhaustion j → IsCompact I → I ⊆ Iio T → |
| 63 | ∀ ε > 0, ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, ∀ t ∈ I, ∀ x ∈ K, |
| 64 | ∀ v w : limitCarrier.tangent x, |
| 65 | limitCarrier.metricNorm (limitFlow.metric t) x v ≤ 1 → |
| 66 | limitCarrier.metricNorm (limitFlow.metric t) x w ≤ 1 → |
| 67 | |spatialPullbackInner limitCarrier (C (subsequence k)) |
| 68 | (g (subsequence k) t) (embedding k) x v w - |
| 69 | limitCarrier.metricInner (limitFlow.metric t) x v w| < ε |
| 70 | pullback_metric_CInfinity : letI := limitCarrier.topologicalSpace |
| 71 | letI := limitCarrier.chartedSpace |
| 72 | letI := limitCarrier.isManifold |
| 73 | ∀ q : limitCarrier.carrier, ∀ j r : ℕ, |
| 74 | ∀ K : Set (ℝ × EuclideanSpace ℝ (Fin n)), IsCompact K → |
| 75 | K ⊆ {z | z.1 ∈ Iio T ∧ z.2 ∈ (extChartAt (𝓡 n) q).target ∧ |
| 76 | (extChartAt (𝓡 n) q).symm z.2 ∈ exhaustion j} → |
| 77 | ∀ ε : ℝ, 0 < ε → ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, |
| 78 | ∀ a b : Fin n, ∀ z ∈ K, |
| 79 | ‖MetricJet r |
| 80 | (FlowCarrier.coordinateCoefficient limitCarrier q |
| 81 | (fun t x v w => spatialPullbackInner limitCarrier (C (subsequence k)) |
| 82 | (g (subsequence k) t) (embedding k) x v w) a b) K z - |
| 83 | MetricJet r |
| 84 | (FlowCarrier.coordinateCoefficient limitCarrier q |
| 85 | (fun t x v w => limitCarrier.metricInner |
| 86 | (limitFlow.metric t) x v w) a b) K z‖ < ε |
| 87 | |
| 88 | end PoincareMT |
| 89 | |
| 90 |