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.Blowup.Construction.PartialLimits.ExpandingChartBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.PartialLimits.OpenTimePointedConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Coordinates.Rescaling |
| 4 | |
| 5 | /-! |
| 6 | # One normal atlas for expanding-time pointed convergence |
| 7 | |
| 8 | The retained finite normal covers give one complete reference convergence |
| 9 | and its actual flow on the prescribed open time interval, with the same |
| 10 | comparison maps and all compact mixed coordinate jets. This is the assembly |
| 11 | in Morgan--Tian Definition 5.12, Proposition 5.14 and Theorem 5.15, |
| 12 | pp. 90-92, used in Theorem 11.8, pp. 272-279. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter Metric Poincare.Gluing Poincare.Analysis.Calculus |
| 19 | open PoincareMT.NormalChartCover |
| 20 | open scoped Topology NNReal Manifold ContDiff |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 25 | FlowCarrier.isManifold FlowCarrier.t2Space |
| 26 | |
| 27 | /-- The original normal atlas gives a complete reference limit and its retained |
| 28 | open-time flow, as in Morgan--Tian Definition 5.12, Proposition 5.14 and |
| 29 | Theorem 5.15, pp. 90-92, and Theorem 11.8, pp. 272-279. -/ |
| 30 | theorem exists_complete_reference_convergence_of_expanding_normal_charts |
| 31 | {n : ℕ} {s' s : ℝ} |
| 32 | (Href : PointedRicciFlowCompactnessHypotheses n s' s) |
| 33 | (hShi : LocalCurvatureDerivativeEstimates.{0}) |
| 34 | {J : ℕ → Set ℝ} |
| 35 | (Fseq : ∀ k, RicciFlow n (Href.sequence.carrier k).carrier (J k)) |
| 36 | (hmetric : ∀ k, (Fseq k).metric = (Href.sequence.flow k).flow.metric) |
| 37 | {W : Set ℝ} (hW : IsOpen W) (hWord : W.OrdConnected) |
| 38 | (hwindow : Ioo s' s ⊆ W) |
| 39 | (htime : ∀ a b : ℝ, Icc a b ⊆ W → ∀ᶠ k in atTop, Icc a b ⊆ J k) |
| 40 | (hcurv : ∀ a b : ℝ, Icc a b ⊆ W → |
| 41 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ k in atTop, |
| 42 | ∀ t ∈ Icc a b, ∀ x : (Href.sequence.carrier k).carrier, |
| 43 | ((Fseq k).connection t).curvatureTensorNorm x ≤ C) |
| 44 | {R ρ a b : ℕ → ℝ} {N : ℕ → ℕ} |
| 45 | (cover : ∀ k j, j ≤ k → |
| 46 | NormalChartCover (Href.sequence.flow k).flow.metric |
| 47 | (Href.sequence.flow k).base s' s ((j : ℝ) + 1) |
| 48 | (R j) (ρ j) (a j) (b j) (N j)) |
| 49 | (hρ : ∀ j, 0 < ρ j) (hρR : ∀ j, 2 * ρ j < R j) |
| 50 | (ha : ∀ j, 0 < a j) (hb : ∀ j, 0 < b j) : |
| 51 | ∃ G : PointedGeometricConvergence Href.sequence, |
| 52 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 53 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 54 | G.limitCarrier.chartedSpace |
| 55 | letI : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 56 | ∃ F : RicciFlow n G.limitCarrier.carrier W, |
| 57 | F.metric = G.limitFlow.flow.metric ∧ |
| 58 | G.limitCarrier.metricComplete (F.metric 0) ∧ |
| 59 | ∀ q' : G.limitCarrier.carrier, ∀ m : ℕ, |
| 60 | ∀ K : Set (ℝ × EuclideanSpace ℝ (Fin n)), IsCompact K → |
| 61 | K ⊆ W ×ˢ (extChartAt (𝓡 n) q').target → TendstoUniformlyOn |
| 62 | (fun k => iteratedFDeriv ℝ m |
| 63 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 64 | ((Fseq (G.subsequence k)).metric z.1).pullbackCoefficients |
| 65 | ((fun x => ((G.embedding k).toFun (0, x)).2) ∘ |
| 66 | (extChartAt (𝓡 n) q').symm) z.2)) |
| 67 | (iteratedFDeriv ℝ m |
| 68 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 69 | (F.metric z.1).pullbackCoefficients |
| 70 | (extChartAt (𝓡 n) q').symm z.2)) atTop K := by |
| 71 | classical |
| 72 | let : ∀ k, MetricSpace (Href.sequence.carrier k).carrier := |
| 73 | fun k => (Href.sequence.carrier k).metricSpaceOf ((Href.sequence.flow k).metricAt 0) |
| 74 | have hzero : (0 : ℝ) ∈ W := hwindow Href.time_bounds |
| 75 | have hraw := referenceNormalChartCoefficients_on_expanding_time_domains |
| 76 | Href hShi Fseq hmetric hW hWord hzero htime hcurv cover hρ hρR ha hb |
| 77 | have hhalf : ∀ j, ρ j / 2 ≤ R j := by |
| 78 | intro j |
| 79 | linarith [hρ j, hρR j] |
| 80 | let U := fun _ : ℕ => ball (0 : EuclideanSpace ℝ (Fin n)) 1 |
| 81 | have hU : ∀ i, IsOpen (U i) := fun _ => isOpen_ball |
| 82 | let : ∀ i, Nonempty (Piece U i) := fun _ => ⟨⟨0, by simp [U]⟩⟩ |
| 83 | let e := diagonalUnitBallMap cover |
| 84 | choose L c hc hL hlower using diagonalUnitBallMap_distance_bounds cover hρ ha |
| 85 | have hpositive (i : ℕ) (t : ℝ) (ht : t ∈ W) := |
| 86 | diagonalUnitBallMap_eventually_lower_coefficients_of_raw cover hρ hhalf i t |
| 87 | ((hraw i).2.2 t ht) |
| 88 | apply exists_complete_reference_convergence_on_open_time Href.sequence Href.time_bounds |
| 89 | hW hWord hwindow Fseq hmetric htime U hU e L |
| 90 | (by |
| 91 | intro k i |
| 92 | have hdist := (hL i k).dist_le_mul |
| 93 | let : MetricSpace (Href.sequence.carrier k).carrier := |
| 94 | (Href.sequence.carrier k).metricSpaceOf ((Fseq k).metric 0) |
| 95 | apply LipschitzWith.of_dist_le_mul |
| 96 | intro x y |
| 97 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using |
| 98 | hdist x y) c hc |
| 99 | (by |
| 100 | intro k i x y |
| 101 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using |
| 102 | hlower i k x y) |
| 103 | (diagonalUnitBallMap_isOpenEmbedding cover hρ hhalf) |
| 104 | (diagonalUnitBallMap_isLocalDiffeomorph cover hρ hhalf) |
| 105 | (by |
| 106 | intro i j x y |
| 107 | obtain ⟨B, hB⟩ := diagonalUnitBallMap_pairwise_bounded cover L |
| 108 | (fun k i => hL i k) i j x y |
| 109 | refine ⟨B, fun k => ?_⟩ |
| 110 | simpa only [FlowCarrier.dist_metricSpaceOf, hmetric, BasedFlow.metricAt, e] using hB k) |
| 111 | (i₀ := 0) ⟨0, by simp [U]⟩ (diagonalUnitBallMap_zero cover) |
| 112 | · intro A hA |
| 113 | obtain ⟨v, K, hK, hcov⟩ := diagonalUnitBallMap_compact_cover cover hρ A hA |
| 114 | refine ⟨v, K, hK, ?_⟩ |
| 115 | filter_upwards [hcov] with k hk |
| 116 | simpa only [FlowCarrier.metricBall_eq_metricBallOf, hmetric, BasedFlow.metricAt, |
| 117 | e, diagonalUnitBallMap_zero] using hk |
| 118 | · intro i K _ hKU |
| 119 | obtain ⟨d, hd, hbound⟩ := hpositive i 0 hzero |
| 120 | refine ⟨d, hd, ?_⟩ |
| 121 | simpa only [hmetric] using hbound.mono |
| 122 | (fun k hk x hx v => hk x (hKU hx) v) |
| 123 | · intro i |
| 124 | simpa only [hmetric] using |
| 125 | diagonalUnitBallMap_eventually_bounded_spacetime_derivatives_on_open |
| 126 | cover hρ hhalf i hW (hraw i).1 (hraw i).2.1 |
| 127 | · intro t ht i x hx |
| 128 | obtain ⟨d, hd, hbound⟩ := hpositive i t ht |
| 129 | refine ⟨d, hd, ?_⟩ |
| 130 | simpa only [hmetric] using hbound.mono (fun k hk v => hk x hx v) |
| 131 | |
| 132 | end PoincareMT.M30 |