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.ExpandingNormalConvergence |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.DiagonalCovering |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Subsequence |
| 4 | |
| 5 | /-! |
| 6 | # Complete reference convergence from expanding-time bounds |
| 7 | |
| 8 | The reference compactness hypotheses construct the normal covers used for |
| 9 | one retained open-time limit. The original sequence and all comparison maps |
| 10 | are kept by composing the selected indices. This is Morgan--Tian Definition |
| 11 | 5.12, Proposition 5.14 and Theorem 5.15, pp. 90-92, applied in Theorem 11.8, |
| 12 | pp. 272-279. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | namespace PoincareMT.M30 |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 23 | FlowCarrier.isManifold |
| 24 | |
| 25 | /-- Construct the normal covers and retain the limit on the full open time |
| 26 | domain, as in Morgan--Tian Definition 5.12, Proposition 5.14 and Theorem 5.15, |
| 27 | pp. 90-92, and Theorem 11.8, pp. 272-279. -/ |
| 28 | theorem exists_complete_reference_convergence_of_expanding_bounds |
| 29 | {n : ℕ} {s' s : ℝ} (hn : 1 ≤ n) |
| 30 | (Href : PointedRicciFlowCompactnessHypotheses n s' s) |
| 31 | (hShi : LocalCurvatureDerivativeEstimates.{0}) |
| 32 | {J : ℕ → Set ℝ} |
| 33 | (Fseq : ∀ k, RicciFlow n (Href.sequence.carrier k).carrier (J k)) |
| 34 | (hmetric : ∀ k, (Fseq k).metric = (Href.sequence.flow k).flow.metric) |
| 35 | {W : Set ℝ} (hW : IsOpen W) (hWord : W.OrdConnected) |
| 36 | (hwindow : Ioo s' s ⊆ W) |
| 37 | (htime : ∀ a b : ℝ, Icc a b ⊆ W → ∀ᶠ k in atTop, Icc a b ⊆ J k) |
| 38 | (hcurv : ∀ a b : ℝ, Icc a b ⊆ W → |
| 39 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ k in atTop, |
| 40 | ∀ t ∈ Icc a b, ∀ x : (Href.sequence.carrier k).carrier, |
| 41 | ((Fseq k).connection t).curvatureTensorNorm x ≤ C) : |
| 42 | ∃ G : PointedGeometricConvergence Href.sequence, |
| 43 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 44 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 45 | G.limitCarrier.chartedSpace |
| 46 | letI : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 47 | ∃ F : RicciFlow n G.limitCarrier.carrier W, |
| 48 | F.metric = G.limitFlow.flow.metric ∧ |
| 49 | G.limitCarrier.metricComplete (F.metric 0) ∧ |
| 50 | ∀ q' : G.limitCarrier.carrier, ∀ m : ℕ, |
| 51 | ∀ K : Set (ℝ × EuclideanSpace ℝ (Fin n)), IsCompact K → |
| 52 | K ⊆ W ×ˢ (extChartAt (𝓡 n) q').target → TendstoUniformlyOn |
| 53 | (fun k => iteratedFDeriv ℝ m |
| 54 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 55 | ((Fseq (G.subsequence k)).metric z.1).pullbackCoefficients |
| 56 | ((fun x => ((G.embedding k).toFun (0, x)).2) ∘ |
| 57 | (extChartAt (𝓡 n) q').symm) z.2)) |
| 58 | (iteratedFDeriv ℝ m |
| 59 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 60 | (F.metric z.1).pullbackCoefficients |
| 61 | (extChartAt (𝓡 n) q').symm z.2)) atTop K := by |
| 62 | classical |
| 63 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 64 | Href.exists_diagonal_normalChartCovers hn |
| 65 | let Hsub := Href.subsequence σ hσ |
| 66 | let Fsub : ∀ k, RicciFlow n (Hsub.sequence.carrier k).carrier (J (σ k)) := |
| 67 | fun k => Fseq (σ k) |
| 68 | have hmetricSub : ∀ k, (Fsub k).metric = (Hsub.sequence.flow k).flow.metric := |
| 69 | fun k => hmetric (σ k) |
| 70 | have htimeSub : ∀ a b : ℝ, Icc a b ⊆ W → |
| 71 | ∀ᶠ k in atTop, Icc a b ⊆ J (σ k) := by |
| 72 | intro a b hab |
| 73 | exact hσ.tendsto_atTop.eventually (htime a b hab) |
| 74 | have hcurvSub : ∀ a b : ℝ, Icc a b ⊆ W → |
| 75 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ k in atTop, |
| 76 | ∀ t ∈ Icc a b, ∀ x : (Hsub.sequence.carrier k).carrier, |
| 77 | ((Fsub k).connection t).curvatureTensorNorm x ≤ C := by |
| 78 | intro a b hab |
| 79 | obtain ⟨C, hC, hbound⟩ := hcurv a b hab |
| 80 | exact ⟨C, hC, hσ.tendsto_atTop.eventually hbound⟩ |
| 81 | let cover : ∀ k j, j ≤ k → |
| 82 | NormalChartCover (Hsub.sequence.flow k).flow.metric |
| 83 | (Hsub.sequence.flow k).base s' s ((j : ℝ) + 1) |
| 84 | (R j) (ρ j) (a j) (b j) (N j) := |
| 85 | fun k j hjk => (hcovers k j hjk).choose |
| 86 | obtain ⟨Gsub, F, hF, hcomplete, hjets⟩ := |
| 87 | exists_complete_reference_convergence_of_expanding_normal_charts |
| 88 | Hsub hShi Fsub hmetricSub hW hWord hwindow htimeSub hcurvSub cover |
| 89 | (fun j => (hparams j).1) (fun j => (hparams j).2.1) |
| 90 | (fun j => (hparams j).2.2.1) (fun j => (hparams j).2.2.2) |
| 91 | exact ⟨Gsub.ofSubsequence hσ, F, hF, hcomplete, hjets⟩ |
| 92 | |
| 93 | end PoincareMT.M30 |