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.Flow.Complete.Global |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Flow.Speed |
| 3 | |
| 4 | /-! # Complete gradient flows with bounded Hessian -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped Manifold ContDiff Bundle |
| 10 | |
| 11 | namespace PoincareMT.LeviCivitaData |
| 12 | |
| 13 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T3Space M] |
| 14 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 15 | {g : RiemannianMetric n M} |
| 16 | |
| 17 | /-- A bounded Hessian on a complete manifold produces the complete smooth |
| 18 | gradient flow, with its identity and additive action laws. -/ |
| 19 | theorem exists_complete_gradientFlow_of_bounded_hessian |
| 20 | (D : LeviCivitaData g) (hc : MetricComplete g) {f : M → ℝ} |
| 21 | (hf : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ f) {C : ℝ} (hC : 0 ≤ C) |
| 22 | (hess : ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, |
| 23 | |D.hessian f x v v| ≤ C * g.inner x v v) : |
| 24 | ∃ Φ : ℝ → M → M, |
| 25 | (∀ x, Φ 0 x = x) ∧ |
| 26 | (∀ x, IsMIntegralCurve (I := 𝓡 n) (fun t => Φ t x) (D.gradient f)) ∧ |
| 27 | (∀ s t x, Φ (s + t) x = Φ s (Φ t x)) ∧ |
| 28 | ContMDiff (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ (Function.uncurry Φ) := by |
| 29 | exact Poincare.Manifold.exists_smooth_globalFlow_of_compact_confinement |
| 30 | (D.contMDiff_gradient hf) |
| 31 | (fun x A _ => D.exists_compact_confinement_of_bounded_hessian hc hf hC hess x A) |
| 32 | |
| 33 | end PoincareMT.LeviCivitaData |