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.AncientKappa.Compactness.Statement |
| 2 | |
| 3 | /-! |
| 4 | # Terminal bounds on compact limit carriers |
| 5 | |
| 6 | Scalar continuity gives a finite terminal bound without first packaging the |
| 7 | actual flow as an ancient kappa-solution. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Manifold ContDiff Bundle Topology |
| 14 | |
| 15 | namespace PoincareMT.RicciFlow |
| 16 | |
| 17 | variable {M : Type} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 19 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 20 | |
| 21 | /-- A specified raw flow on a compact carrier has a nonnegative finite |
| 22 | terminal scalar bound, using the original scalar regularity predecessor. -/ |
| 23 | theorem exists_terminal_scalar_bound_of_compactSpace [CompactSpace M] |
| 24 | (F : RicciFlow 3 M (Iic 0)) (P : M23NormalizedKappaCompactnessPredecessors) : |
| 25 | ∃ B : ℝ, 0 ≤ B ∧ ∀ x : M, (F.connection 0).scalarCurvature x ≤ B := by |
| 26 | have hcont : Continuous (F.connection 0).scalarCurvature := by |
| 27 | apply continuousOn_univ.mp |
| 28 | exact (P.scalar_regular M (Iic 0) F).continuousOn.comp |
| 29 | (f := fun x : M => (0, x)) |
| 30 | (continuous_const.prodMk continuous_id).continuousOn |
| 31 | (fun x _ => ⟨by simp, mem_univ x⟩) |
| 32 | obtain ⟨B, hB⟩ := isCompact_univ.bddAbove_image hcont.continuousOn |
| 33 | exact ⟨max B 0, le_max_right _ _, fun x => |
| 34 | (hB (mem_image_of_mem _ (mem_univ x))).trans (le_max_left _ _)⟩ |
| 35 | |
| 36 | end PoincareMT.RicciFlow |