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.GeometricLimit.Stages.QuotientMetricConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.Stages.QuotientJetConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Subsequence |
| 4 | |
| 5 | /-! |
| 6 | # Assemble the pointed geometric convergence record |
| 7 | |
| 8 | The quotient flow and the selected source-stage maps already carry all local |
| 9 | data needed by the frozen convergence interface. This module packages those |
| 10 | checked producers into `PointedGeometricConvergence`; the remaining geometric |
| 11 | work is to construct the hypotheses of this theorem from M07/M04. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option maxHeartbeats 800000 |
| 17 | |
| 18 | open Set Filter Poincare.Gluing |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | namespace PoincareMT.ChartDistance |
| 22 | |
| 23 | noncomputable def pointedGeometricConvergence_of_quotient_limit |
| 24 | {ι : Type} [Countable ι] {n : ℕ} {T' T : ℝ} |
| 25 | (U : ι → Set (EuclideanSpace ℝ (Fin n))) (hU : ∀ i, IsOpen (U i)) |
| 26 | [∀ i, Nonempty (Piece U i)] |
| 27 | (O : OverlapSystem (fun i => Piece U i)) (hO : SmoothOverlap U hU O) |
| 28 | (hclosed : ∀ i j, IsClosed {q : Piece U i × Piece U j | |
| 29 | O.Rel ⟨i, q.1⟩ ⟨j, q.2⟩}) |
| 30 | [ConnectedSpace (Quotient O.setoid)] |
| 31 | {D : ℕ → FlowCarrier n} |
| 32 | (G : ∀ k, BasedFlow n T' T (D k)) |
| 33 | (F : BasedFlow n T' T (O.flowCarrier U hU hO hclosed)) |
| 34 | (gLimit : ℝ → ∀ i, CanonicalMetric U hU i) |
| 35 | (hcompat : ∀ t, CompatibleMetrics U hU O (gLimit t)) |
| 36 | (hF : let C := O.flowCarrier U hU hO hclosed |
| 37 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 38 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 39 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 40 | F.flow.metric = fun t => quotientMetric U hU O hO (gLimit t) (hcompat t)) |
| 41 | {E : ℕ → Set (Quotient O.setoid)} |
| 42 | (hE : ∀ k, IsOpen (E k)) (hEconnected : ∀ k, IsConnected (E k)) |
| 43 | (hEcompact : ∀ k, IsCompact (closure (E k))) |
| 44 | (hEmono : Monotone E) (hEcover : (⋃ k, E k) = Set.univ) |
| 45 | (f : ∀ k, Quotient O.setoid → (D k).carrier) |
| 46 | (hemb : ∀ k, letI : TopologicalSpace (D k).carrier := (D k).topologicalSpace |
| 47 | Topology.IsOpenEmbedding (fun x : E k => f k x)) |
| 48 | (hf : letI := quotientChartedSpace U hU O |
| 49 | ∀ k, letI : TopologicalSpace (D k).carrier := (D k).topologicalSpace |
| 50 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) (D k).carrier := (D k).chartedSpace |
| 51 | IsLocalDiffeomorphOn (𝓡 n) (𝓡 n) ∞ (f k) (E k)) |
| 52 | (hbase : ∀ k, F.base ∈ E k) |
| 53 | (hbase_preserving : ∀ k, f k F.base = (G k).base) |
| 54 | (B : ι → ℝ × EuclideanSpace ℝ (Fin n) → |
| 55 | EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) |
| 56 | (hBcont : ∀ i, ContinuousOn (B i) (Set.Ioo T' T ×ˢ U i)) |
| 57 | (hB : letI : ∀ i, ChartedSpace (EuclideanSpace ℝ (Fin n)) (Piece U i) := |
| 58 | fun i => (hU i).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 59 | letI : ∀ i, IsManifold (𝓡 n) ∞ (Piece U i) := |
| 60 | fun i => (hU i).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 61 | ∀ t ∈ Set.Ioo T' T, ∀ i (x : Piece U i) v w, |
| 62 | (gLimit t i).inner x v w = B i (t, x) v w) |
| 63 | (hjets : letI : ∀ k, TopologicalSpace (D k).carrier := |
| 64 | fun k => (D k).topologicalSpace |
| 65 | letI : ∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (D k).carrier := |
| 66 | fun k => (D k).chartedSpace |
| 67 | letI : ∀ k, IsManifold (𝓡 n) ∞ (D k).carrier := fun k => (D k).isManifold |
| 68 | ∀ i m K, IsCompact K → K ⊆ Set.Ioo T' T ×ˢ U i → |
| 69 | TendstoUniformlyOn |
| 70 | (fun k => iteratedFDeriv ℝ m |
| 71 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 72 | ((G k).flow.metric z.1).pullbackCoefficients |
| 73 | (chartParametrization U hU (f k ∘ O.include i)) z.2)) |
| 74 | (iteratedFDeriv ℝ m (B i)) atTop K) : |
| 75 | PointedGeometricConvergence { carrier := D, flow := G } := by |
| 76 | let C := O.flowCarrier U hU hO hclosed |
| 77 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 78 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 79 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 80 | letI : T2Space (Quotient O.setoid) := O.quotient_t2Space hclosed |
| 81 | letI : ∀ k, TopologicalSpace (D k).carrier := fun k => (D k).topologicalSpace |
| 82 | letI : ∀ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (D k).carrier := |
| 83 | fun k => (D k).chartedSpace |
| 84 | letI : ∀ k, IsManifold (𝓡 n) ∞ (D k).carrier := fun k => (D k).isManifold |
| 85 | have hconv : ∀ i K, IsCompact K → K ⊆ Set.Ioo T' T ×ˢ U i → |
| 86 | TendstoUniformlyOn |
| 87 | (fun k p => ((G k).flow.metric p.1).pullbackCoefficients |
| 88 | (chartParametrization U hU (f k ∘ O.include i)) p.2) (B i) atTop K := by |
| 89 | intro i K hK hKU |
| 90 | simpa only [Function.comp_def, iteratedFDeriv_zero_apply] using |
| 91 | (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 92 | (0 : Fin 0 → ℝ × EuclideanSpace ℝ (Fin n))).comp_tendstoUniformlyOn |
| 93 | (hjets i 0 K hK hKU) |
| 94 | have hpull := pullback_metric_converges_of_quotient_coefficients |
| 95 | U hU O hO hclosed F G gLimit hcompat hF hE hEmono hEcover f hemb hf |
| 96 | hBcont (fun i t ht => hB t ht i) hconv |
| 97 | have hjets' := pullback_metric_CInfinity_of_quotient_coefficient_jets |
| 98 | U hU O hO hclosed F G gLimit hcompat hF B hB E hE hEmono f hemb hf hjets |
| 99 | refine |
| 100 | { limitCarrier := C |
| 101 | limitFlow := F |
| 102 | subsequence := fun k => k |
| 103 | subsequence_strictMono := strictMono_id |
| 104 | exhaustion := E |
| 105 | exhaustion_open := hE |
| 106 | exhaustion_connected := hEconnected |
| 107 | exhaustion_compactClosure := hEcompact |
| 108 | exhaustion_increasing := fun j => hEmono (Nat.le_succ j) |
| 109 | exhaustion_covers := hEcover |
| 110 | embedding := fun k => SmoothSpacetimeEmbedding.of_spatial F (G k) |
| 111 | (hE k) (f k) (hemb k) (hf k) (Set.Ioo T' T) |
| 112 | base_in_exhaustion := hbase |
| 113 | base_preserving := ?_ |
| 114 | pullback_metric_converges := hpull |
| 115 | pullback_metric_CInfinity := hjets' } |
| 116 | intro k |
| 117 | exact congrArg (fun x => (0, x)) (hbase_preserving k) |
| 118 | |
| 119 | end PoincareMT.ChartDistance |
| 120 | |
| 121 | namespace PoincareMT |
| 122 | |
| 123 | /-- Reindex a convergence package from a strict subsequence of a source |
| 124 | sequence back to the original sequence. This keeps the extractor's |
| 125 | reindexed source maps while restoring the subsequence field required by the |
| 126 | frozen interface. -/ |
| 127 | noncomputable def PointedGeometricConvergence.reindex |
| 128 | {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 129 | {φ : ℕ → ℕ} (hφ : StrictMono φ) |
| 130 | (G : PointedGeometricConvergence |
| 131 | { carrier := fun k => S.carrier (φ k) |
| 132 | flow := fun k => S.flow (φ k) }) : |
| 133 | PointedGeometricConvergence S := |
| 134 | G.ofSubsequence hφ |
| 135 | |
| 136 | end PoincareMT |