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.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Estimates |
| 2 | import PoincareLib.Geometry.Manifold.SmoothCompactness |
| 3 | |
| 4 | /-! |
| 5 | # Smooth extraction of the actual normalized source potentials |
| 6 | |
| 7 | One common subsequence of the retained embeddings gives a globally smooth |
| 8 | function on the retained pointed limit. Every coordinate derivative converges |
| 9 | uniformly on compact subsets; the base value is exactly zero. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.ShrinkingSolitonFlow |
| 22 | |
| 23 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 24 | FlowCarrier.isManifold FlowCarrier.secondCountable FlowCarrier.t3Space |
| 25 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 26 | RicciFlow.smallIsManifold |
| 27 | |
| 28 | variable {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 31 | [SecondCountableTopology M] [ConnectedSpace M] |
| 32 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) {q : ℕ → M} |
| 33 | (L : AncientPointedGeometricConvergence |
| 34 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 35 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 36 | (fun k => equivShrink M (q k)) 1) |
| 37 | |
| 38 | theorem exists_normalizedPotentialPullback_smooth_limit |
| 39 | (hD : S.connection.CurvatureTensorCalculus) (p : M) |
| 40 | (hescape : Tendsto (fun k => (S.metric.edist p (q k)).toReal) atTop atTop) |
| 41 | (hcomplete : MetricComplete (L.limitFlow.metric 0)) : |
| 42 | ∃ σ : ℕ → ℕ, StrictMono σ ∧ ∃ b : L.limitCarrier.carrier → ℝ, |
| 43 | ContMDiff (𝓡 3) 𝓘(ℝ, ℝ) ∞ b ∧ b L.base = 0 ∧ |
| 44 | (∀ x, Tendsto (fun k => G.normalizedPotentialPullback L (σ k) x) atTop (𝓝 (b x))) ∧ |
| 45 | ∀ (z : L.limitCarrier.carrier) (m : ℕ) (K : Set (EuclideanSpace ℝ (Fin 3))), |
| 46 | IsCompact K → K ⊆ (extChartAt (𝓡 3) z).target → |
| 47 | TendstoUniformlyOn |
| 48 | (fun k => iteratedFDeriv ℝ m |
| 49 | (G.normalizedPotentialPullback L (σ k) ∘ (extChartAt (𝓡 3) z).symm)) |
| 50 | (iteratedFDeriv ℝ m (b ∘ (extChartAt (𝓡 3) z).symm)) atTop K := by |
| 51 | obtain ⟨σ, hσ, b, hb, hp, hj⟩ := |
| 52 | Poincare.Manifold.exists_smooth_subsequence_of_locallyEventuallyBounded_chart_derivatives |
| 53 | (G.normalizedPotentialPullback L) |
| 54 | (G.normalizedPotentialPullback_coordinate_locally_smooth L) |
| 55 | (G.normalizedPotentialPullback_coordinate_derivatives_bounded L hD p hescape hcomplete) |
| 56 | refine ⟨σ, hσ, b, hb, ?_, hp, hj⟩ |
| 57 | apply tendsto_nhds_unique (hp L.base) |
| 58 | simpa only [G.normalizedPotentialPullback_base L] using |
| 59 | (tendsto_const_nhds : Tendsto (fun _ : ℕ => (0 : ℝ)) atTop (𝓝 0)) |
| 60 | |
| 61 | end PoincareMT.ShrinkingSolitonFlow |