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.Basic |
| 2 | |
| 3 | /-! |
| 4 | # The compact local Ricci-flow service |
| 5 | |
| 6 | Unchanged propositions from Mapher's `Statements/Ch03/ShortTime.lean` |
| 7 | and `Statements/Ch04/Continuation.lean` at |
| 8 | `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 9 | Morgan--Tian, Theorem 3.11, p. 39, and Proposition 4.12, p. 68. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable (n : ℕ) (M : Type u) [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | |
| 23 | def ShortTimeRicciFlowExistence : Prop := |
| 24 | ∀ g0 : RiemannianMetric n M, |
| 25 | ∃ T : ℝ, 0 < T ∧ ∃ F : RicciFlow n M (Set.Ico 0 T), F.metric 0 = g0 |
| 26 | |
| 27 | def RicciFlowUniqueness : Prop := |
| 28 | ∀ (J J' : Set ℝ) (F : RicciFlow n M J) (F' : RicciFlow n M J'), |
| 29 | IsLeast J 0 → IsLeast J' 0 → F.metric 0 = F'.metric 0 → |
| 30 | Set.EqOn F.metric F'.metric (J ∩ J') |
| 31 | |
| 32 | def RicciFlowContinuation : Prop := |
| 33 | ∀ T : ℝ, 0 < T → ∀ F : RicciFlow n M (Set.Ico 0 T), |
| 34 | (∃ C : ℝ, ∀ t ∈ Set.Ico 0 T, ∀ x : M, |
| 35 | (F.connection t).curvatureTensorNorm x ≤ C) → |
| 36 | ∃ T' : ℝ, T < T' ∧ ∃ F' : RicciFlow n M (Set.Ico 0 T'), |
| 37 | Set.EqOn F.metric F'.metric (Set.Ico 0 T) |
| 38 | |
| 39 | def RicciFlowLocalTheory : Prop := |
| 40 | ShortTimeRicciFlowExistence n M ∧ RicciFlowUniqueness n M ∧ |
| 41 | RicciFlowContinuation n M |
| 42 | |
| 43 | end PoincareMT |