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.AncientKappa.Compactness.Normalized |
| 2 | |
| 3 | /-! |
| 4 | # M23 normalized kappa compactness input |
| 5 | |
| 6 | The sequence and its fixed positive kappa normalization are explicit inputs. |
| 7 | The varying-carrier convergence package is retained as reusable definition |
| 8 | support; its existence and the actual-limit bounds are supplied by the M23 |
| 9 | statement and proof. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | structure NormalizedKappaCompactnessData where |
| 21 | kappa : ℝ |
| 22 | kappa_pos : 0 < kappa |
| 23 | sequence : NormalizedKappaSolutionSequence kappa |
| 24 | |
| 25 | /-! M23 uses finite compact time windows contained in the open ancient |
| 26 | interval. This is intentionally a new boundary rather than the historical |
| 27 | `NormalizedKappaGeometricConvergence`, whose embeddings already have the |
| 28 | terminal time `0` in their domain. -/ |
| 29 | structure M23InteriorConvergence |
| 30 | {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) where |
| 31 | limit : BasedKappaSolution kappa |
| 32 | subsequence : ℕ → ℕ |
| 33 | subsequence_strictMono : StrictMono subsequence |
| 34 | exhaustion : ℕ → Set limit.carrier.carrier |
| 35 | exhaustion_open : ∀ j, |
| 36 | let C := limit.carrier |
| 37 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 38 | IsOpen (exhaustion j) |
| 39 | exhaustion_connected : ∀ j, |
| 40 | let C := limit.carrier |
| 41 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 42 | IsConnected (exhaustion j) |
| 43 | exhaustion_compactClosure : ∀ j, |
| 44 | let C := limit.carrier |
| 45 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 46 | IsCompact (closure (exhaustion j)) |
| 47 | exhaustion_increasing : ∀ j, exhaustion j ⊆ exhaustion (j + 1) |
| 48 | exhaustion_covers : ⋃ j, exhaustion j = Set.univ |
| 49 | time_window : ℕ → Set ℝ |
| 50 | /-- Nondegenerate intervals give unique one-sided jets at both endpoints. |
| 51 | Source: Morgan--Tian Definition 5.12 and Proposition 5.14, pp. 90-91. -/ |
| 52 | time_window_interval : ∀ j, ∃ a b : ℝ, |
| 53 | a < b ∧ time_window j = Set.Icc a b |
| 54 | time_window_compact : ∀ j, IsCompact (time_window j) |
| 55 | time_window_subset_ancient : ∀ j, time_window j ⊆ Set.Iio 0 |
| 56 | time_window_increasing : ∀ j, time_window j ⊆ time_window (j + 1) |
| 57 | time_window_covers : ⋃ j, time_window j = Set.Iio 0 |
| 58 | embedding : ∀ j, |
| 59 | NormalizedKappaSpacetimeEmbedding |
| 60 | (source := S.term (subsequence j)) (target := limit) |
| 61 | (time_window j ×ˢ exhaustion j) |
| 62 | base_in_exhaustion : ∀ j, limit.base ∈ exhaustion j |
| 63 | base_preserving : ∀ j t, t ∈ time_window j → |
| 64 | (embedding j).toFun (t, limit.base) = |
| 65 | (t, (S.term (subsequence j)).base) |
| 66 | /-- K tests uniform convergence. Differentiation stays within the fixed |
| 67 | j-window, where every later embedding is defined. -/ |
| 68 | pullback_metric_CInfinity : |
| 69 | let C := limit.carrier |
| 70 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 71 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 72 | letI : BorelSpace C.carrier := C.borelSpace |
| 73 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 74 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 75 | letI : T2Space C.carrier := C.t2Space |
| 76 | letI : T3Space C.carrier := C.t3Space |
| 77 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 78 | letI : ConnectedSpace C.carrier := limit.connectedSpace |
| 79 | ∀ q : C.carrier, ∀ j r : ℕ, |
| 80 | ∀ K : Set (ℝ × EuclideanSpace ℝ (Fin 3)), IsCompact K → |
| 81 | K ⊆ {p | p.1 ∈ time_window j ∧ p.2 ∈ (extChartAt (𝓡 3) q).target ∧ |
| 82 | (extChartAt (𝓡 3) q).symm p.2 ∈ exhaustion j} → |
| 83 | ∀ ε : ℝ, 0 < ε → ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, |
| 84 | ∀ a b : Fin 3, ∀ p ∈ K, |
| 85 | ‖iteratedFDerivWithin ℝ r |
| 86 | (normalizedKappaPullbackCoefficient |
| 87 | (source := S.term (subsequence k)) (target := limit) |
| 88 | (embedding k) q a b) |
| 89 | (time_window j ×ˢ Set.univ) p - |
| 90 | iteratedFDerivWithin ℝ r |
| 91 | (FlowCarrier.coordinateCoefficient C q |
| 92 | (fun t x v w ↦ |
| 93 | (limit.flow.flow.metric t).inner x v w) a b) |
| 94 | (time_window j ×ˢ Set.univ) p‖ < ε |
| 95 | |
| 96 | end PoincareMT |