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.Pinching.Definitions |
| 2 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Hamilton--Ivey pinching and its conclusions |
| 6 | |
| 7 | These are the unchanged definitions from the reviewed frozen statement in |
| 8 | `contracts/statements/ricci-flow/HamiltonIveyPinching.lean`. The time variable |
| 9 | is absolute, and the spectral and full-curvature bounds remain conclusions. |
| 10 | |
| 11 | Reference: Morgan--Tian, Theorem 4.32, pp. 79--80; Corollary 4.33, p. 80. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | def HamiltonIveyPinchedAt {M : Type u} |
| 23 | [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] |
| 26 | {g : RiemannianMetric 3 M} |
| 27 | (D : LeviCivitaData g) (t : ℝ) : Prop := |
| 28 | 0 ≤ t ∧ |
| 29 | (∀ x : M, -6 / (1 + 4 * t) ≤ D.scalarCurvature x) ∧ |
| 30 | (∀ x : M, 0 < D.negativeCurvaturePart x → |
| 31 | D.scalarCurvature x ≥ |
| 32 | 2 * D.negativeCurvaturePart x * |
| 33 | (Real.log (D.negativeCurvaturePart x) + Real.log (1 + t) - 3)) |
| 34 | |
| 35 | def HamiltonIveyPinchedOn {M : Type u} |
| 36 | [TopologicalSpace M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 38 | [IsManifold (𝓡 3) ∞ M] |
| 39 | {a b : ℝ} (F : RicciFlow 3 M (Set.Ico a b)) : Prop := |
| 40 | ∀ t ∈ Set.Ico a b, HamiltonIveyPinchedAt (F.connection t) t |
| 41 | |
| 42 | structure HamiltonIveyPinchingConclusion {M : Type u} |
| 43 | [TopologicalSpace M] |
| 44 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 45 | [IsManifold (𝓡 3) ∞ M] |
| 46 | (a b : ℝ) |
| 47 | (F : RicciFlow 3 M (Set.Ico a b)) : Prop where |
| 48 | persistence : HamiltonIveyPinchedOn F |
| 49 | spectral_bridge : |
| 50 | ∀ t ∈ Set.Ico a b, ∀ x : M, ∃ k1 k2 k3 : ℝ, |
| 51 | k1 ≥ k2 ∧ k2 ≥ k3 ∧ |
| 52 | (F.connection t).leastSectionalCurvature x = k3 ∧ |
| 53 | (F.connection t).scalarCurvature x = 2 * (k1 + k2 + k3) ∧ |
| 54 | (F.connection t).curvatureTensorNorm x ^ 2 = |
| 55 | 4 * (k1 ^ 2 + k2 ^ 2 + k3 ^ 2) |
| 56 | full_norm_bound : |
| 57 | ∀ R₀ : ℝ, ∀ t ∈ Set.Ico a b, ∀ x : M, |
| 58 | (F.connection t).scalarCurvature x ≤ R₀ → |
| 59 | (F.connection t).curvatureTensorNorm x ≤ |
| 60 | 13 * max R₀ (Real.exp 4) |
| 61 | full_norm_bound_continuous : |
| 62 | Continuous (fun R₀ : ℝ => 13 * max R₀ (Real.exp 4)) |
| 63 | |
| 64 | end PoincareMT |