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.Harnack.Noncompact.CurvatureControl.Cylinders.PointedLimit |
| 2 | |
| 3 | /-! |
| 4 | # Quantitative nonflatness for iterated pointed limits |
| 5 | |
| 6 | The terminal scalar buffer gives the same scalar lower bound on every time |
| 7 | window. Retaining the quantitative curvature-norm inequality allows further |
| 8 | subsequences and limits without losing nonflatness. |
| 9 | |
| 10 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683; Appendix E, |
| 11 | pp. 2848--2849. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.PointedGeometricConvergence |
| 20 | |
| 21 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 22 | FlowCarrier.isManifold |
| 23 | |
| 24 | /-- Retain the scalar trace inequality quantitatively at the limit basepoint. -/ |
| 25 | theorem scalar_lower_bound_le_mul_base_curvatureTensorNorm |
| 26 | {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 27 | (G : PointedGeometricConvergence S) (hzero : 0 ∈ Ioo T' T) |
| 28 | {c : ℝ} |
| 29 | (hscalar : ∀ᶠ k in atTop, |
| 30 | c ≤ ((S.flow k).flow.connection 0).scalarCurvature (S.flow k).base) : |
| 31 | c ≤ (n : ℝ) ^ 2 * |
| 32 | (G.limitFlow.flow.connection 0).curvatureTensorNorm G.limitFlow.base := by |
| 33 | apply ge_of_tendsto (tendsto_const_nhds.mul |
| 34 | (G.tendsto_curvatureTensorNorm 0 hzero G.limitFlow.base) (a := (n : ℝ) ^ 2)) |
| 35 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually hscalar] with k hk |
| 36 | rw [congrArg Prod.snd (G.base_preserving k)] |
| 37 | exact hk.trans ((le_abs_self _).trans |
| 38 | (((S.flow (G.subsequence k)).flow.connection 0).abs_scalarCurvature_le_curvatureTensorNorm |
| 39 | (S.flow (G.subsequence k)).base)) |
| 40 | |
| 41 | /-- A common positive curvature-norm lower bound survives another pointed limit. -/ |
| 42 | theorem le_base_curvatureTensorNorm_of_eventually |
| 43 | {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 44 | (G : PointedGeometricConvergence S) (hzero : 0 ∈ Ioo T' T) |
| 45 | {c : ℝ} |
| 46 | (hcurv : ∀ᶠ k in atTop, |
| 47 | c ≤ ((S.flow k).flow.connection 0).curvatureTensorNorm (S.flow k).base) : |
| 48 | c ≤ (G.limitFlow.flow.connection 0).curvatureTensorNorm G.limitFlow.base := by |
| 49 | apply ge_of_tendsto (G.tendsto_curvatureTensorNorm 0 hzero G.limitFlow.base) |
| 50 | filter_upwards [G.subsequence_strictMono.tendsto_atTop.eventually hcurv] with k hk |
| 51 | rwa [congrArg Prod.snd (G.base_preserving k)] |
| 52 | |
| 53 | end PoincareMT.PointedGeometricConvergence |