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.Ancient.GeometricLimit |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Coordinates.Rescaling |
| 3 | |
| 4 | /-! |
| 5 | # Ancient pointed limits from one reference normal atlas |
| 6 | |
| 7 | The reference normal charts supply the spatial distance controls, finite |
| 8 | compact covers, and basepoint. Their estimates on every ancient time window |
| 9 | give one compatible smooth limit on this same spatial carrier. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683; Appendix E, |
| 12 | Theorem E.1 and Corollary E.2, pp. 2848--2849. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option synthInstance.maxHeartbeats 100000 |
| 18 | set_option maxSynthPendingDepth 12 |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter Metric Poincare.Gluing Poincare.Analysis.Calculus |
| 22 | open scoped Topology NNReal Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT.NormalChartCover |
| 25 | |
| 26 | variable {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 27 | |
| 28 | local instance ancientNormal_sourceTopology (k : ℕ) : TopologicalSpace (S.carrier k).carrier := |
| 29 | (S.carrier k).topologicalSpace |
| 30 | local instance ancientNormal_sourceCharts (k : ℕ) : |
| 31 | ChartedSpace (EuclideanSpace ℝ (Fin n)) (S.carrier k).carrier := |
| 32 | (S.carrier k).chartedSpace |
| 33 | local instance ancientNormal_sourceManifold (k : ℕ) : IsManifold (𝓡 n) ∞ (S.carrier k).carrier := |
| 34 | (S.carrier k).isManifold |
| 35 | local instance ancientNormal_sourceMetric (k : ℕ) : MetricSpace (S.carrier k).carrier := |
| 36 | (S.carrier k).metricSpaceOf ((S.flow k).metricAt 0) |
| 37 | |
| 38 | /-- Actual flows on expanding time domains, with estimates in the same |
| 39 | reference normal atlas, produce one complete pointed ancient limit. -/ |
| 40 | theorem exists_complete_ancient_geometric_limit |
| 41 | {J : ℕ → Set ℝ} (Fseq : ∀ k, RicciFlow n (S.carrier k).carrier (J k)) |
| 42 | (hmetric : ∀ k, (Fseq k).metric = (S.flow k).flow.metric) |
| 43 | {δ : ℝ} (hδ : 0 < δ) |
| 44 | (htime : ∀ s t : ℝ, t < δ → ∀ᶠ k in atTop, Icc s t ⊆ J k) |
| 45 | {R ρ a b : ℕ → ℝ} {N : ℕ → ℕ} |
| 46 | (cover : ∀ k j, j ≤ k → NormalChartCover (S.flow k).flow.metric |
| 47 | (S.flow k).base T' T ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j)) |
| 48 | (hρ : ∀ j, 0 < ρ j) (hρR : ∀ j, ρ j / 2 ≤ R j) (ha : ∀ j, 0 < a j) |
| 49 | (hraw : ∀ i : ℕ, |
| 50 | let raw := fun k (z : ℝ × EuclideanSpace ℝ (Fin n)) => |
| 51 | ((S.flow k).flow.metric z.1).pullbackCoefficients |
| 52 | ((cover k (min (Nat.unpair i).1 k) (min_le_right _ _)).chart |
| 53 | ⟨(Nat.unpair i).2 % (N (min (Nat.unpair i).1 k) + 1), |
| 54 | Nat.mod_lt _ (Nat.succ_pos _)⟩) z.2 |
| 55 | LocallyEventuallyContDiff (Iio δ ×ˢ ball 0 (ρ (Nat.unpair i).1)) raw ∧ |
| 56 | (∀ K : Set (ℝ × EuclideanSpace ℝ (Fin n)), IsCompact K → |
| 57 | K ⊆ Iio δ ×ˢ ball 0 (ρ (Nat.unpair i).1) → ∀ d : ℕ, ∃ B : ℝ, |
| 58 | ∀ᶠ k in atTop, ∀ z ∈ K, ‖iteratedFDeriv ℝ d (raw k) z‖ ≤ B) ∧ |
| 59 | (∀ t ∈ Iio δ, ∃ c : ℝ, 0 < c ∧ ∀ᶠ k in atTop, |
| 60 | ∀ x ∈ ball 0 (ρ (Nat.unpair i).1), ∀ v, |
| 61 | c * ‖v‖ ^ 2 ≤ raw k (t, x) v v)) : |
| 62 | ∃ G : AncientPointedGeometricConvergence S.carrier (fun k => (Fseq k).metric) |
| 63 | (fun k => (S.flow k).base) δ, |
| 64 | letI := G.limitCarrier.topologicalSpace |
| 65 | letI := G.limitCarrier.chartedSpace |
| 66 | letI := G.limitCarrier.isManifold |
| 67 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) := by |
| 68 | classical |
| 69 | let U := fun _ : ℕ => ball (0 : EuclideanSpace ℝ (Fin n)) 1 |
| 70 | have hU : ∀ i, IsOpen (U i) := fun _ => isOpen_ball |
| 71 | let : ∀ i, Nonempty (Piece U i) := fun _ => ⟨⟨0, by simp [U]⟩⟩ |
| 72 | let e := diagonalUnitBallMap cover |
| 73 | choose L c hc hL hlower using diagonalUnitBallMap_distance_bounds cover hρ ha |
| 74 | have hpositive (i : ℕ) (t : ℝ) (ht : t ∈ Iio δ) := |
| 75 | diagonalUnitBallMap_eventually_lower_coefficients_of_raw cover hρ hρR i t |
| 76 | ((hraw i).2.2 t ht) |
| 77 | apply ChartDistance.exists_complete_ancient_geometric_limit_of_controlled_charts |
| 78 | S.carrier Fseq (fun k => (S.flow k).base) hδ htime U hU e L |
| 79 | (by |
| 80 | intro k i |
| 81 | have hdist := (hL i k).dist_le_mul |
| 82 | let : MetricSpace (S.carrier k).carrier := |
| 83 | (S.carrier k).metricSpaceOf ((Fseq k).metric 0) |
| 84 | apply LipschitzWith.of_dist_le_mul |
| 85 | intro x y |
| 86 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using |
| 87 | hdist x y) c hc |
| 88 | (by |
| 89 | intro k i x y |
| 90 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using |
| 91 | hlower i k x y) |
| 92 | (diagonalUnitBallMap_isOpenEmbedding cover hρ hρR) |
| 93 | (diagonalUnitBallMap_isLocalDiffeomorph cover hρ hρR) |
| 94 | (by |
| 95 | intro i j x y |
| 96 | obtain ⟨B, hB⟩ := diagonalUnitBallMap_pairwise_bounded cover L |
| 97 | (fun k i => hL i k) i j x y |
| 98 | refine ⟨B, fun k => ?_⟩ |
| 99 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using hB k) |
| 100 | (i₀ := 0) ⟨0, by simp [U]⟩ (diagonalUnitBallMap_zero cover) |
| 101 | · intro R hR |
| 102 | obtain ⟨s, K, hK, hcov⟩ := diagonalUnitBallMap_compact_cover cover hρ R hR |
| 103 | refine ⟨s, K, hK, ?_⟩ |
| 104 | filter_upwards [hcov] with k hk |
| 105 | simpa only [FlowCarrier.metricBall_eq_metricBallOf, hmetric, BasedFlow.metricAt, |
| 106 | e, diagonalUnitBallMap_zero] using hk |
| 107 | · intro i K _ hKU |
| 108 | obtain ⟨d, hd, hbound⟩ := hpositive i 0 hδ |
| 109 | refine ⟨d, hd, ?_⟩ |
| 110 | simpa only [hmetric] using hbound.mono |
| 111 | (fun k hk x hx v => hk x (hKU hx) v) |
| 112 | · intro i |
| 113 | simpa only [hmetric] using |
| 114 | diagonalUnitBallMap_eventually_bounded_spacetime_derivatives_on_open |
| 115 | cover hρ hρR i isOpen_Iio (hraw i).1 (hraw i).2.1 |
| 116 | · intro t ht i x hx |
| 117 | obtain ⟨d, hd, hbound⟩ := hpositive i t ht |
| 118 | refine ⟨d, hd, ?_⟩ |
| 119 | simpa only [hmetric] using hbound.mono (fun k hk v => hk x hx v) |
| 120 | |
| 121 | end PoincareMT.NormalChartCover |