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.ReducedGeometry.ReducedVolume.Theory |
| 2 | |
| 3 | /-! |
| 4 | # The strict reduced-volume bound |
| 5 | |
| 6 | The Euclidean equality case in M10 is static on a nondegenerate time interval. |
| 7 | The Ricci-flow equation therefore forces zero Ricci curvature in its interior. |
| 8 | This excludes equality when scalar curvature is positive, as used in |
| 9 | Morgan--Tian Corollary 9.14, pp. 185-186, and Theorem 7.26 and |
| 10 | Proposition 7.27, pp. 165-167. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | |
| 25 | /-- The Ricci-flow equation forces zero scalar curvature in the interior of |
| 26 | an interval on which a single Euclidean identification fixes the metric. -/ |
| 27 | theorem IsStaticEuclideanFlowOn.scalarCurvature_eq_zero |
| 28 | {J : Set ℝ} {F : RicciFlow n M J} {a b t : ℝ} |
| 29 | (h : IsStaticEuclideanFlowOn F (Icc a b)) (hJ : Ioo a b ⊆ J) |
| 30 | (ht : t ∈ Ioo a b) (x : M) : (F.connection t).scalarCurvature x = 0 := by |
| 31 | obtain ⟨e, he⟩ := h |
| 32 | have hRic (v w : TangentSpace (𝓡 n) x) : (F.connection t).ricci x v w = 0 := by |
| 33 | have hz : HasDerivWithinAt (fun s ↦ (F.metric s).inner x v w) 0 (Ioo a b) t := by |
| 34 | apply (hasDerivWithinAt_const t (Ioo a b) |
| 35 | (inner ℝ (mfderiv (𝓡 n) (𝓡 n) e x v) (mfderiv (𝓡 n) (𝓡 n) e x w))).congr |
| 36 | · intro s hs |
| 37 | exact he s ⟨hs.1.le, hs.2.le⟩ x v w |
| 38 | · exact he t ⟨ht.1.le, ht.2.le⟩ x v w |
| 39 | have hd : UniqueDiffWithinAt ℝ (Ioo a b) t := isOpen_Ioo.uniqueDiffWithinAt ht |
| 40 | have hderiv := ((F.equation t (hJ ht) x v w).mono hJ).derivWithin hd |
| 41 | rw [hz.derivWithin hd] at hderiv |
| 42 | linarith |
| 43 | simp only [LeviCivitaData.scalarCurvature, hRic, Finset.sum_const_zero] |
| 44 | |
| 45 | /-- Positive scalar curvature at one interior point excludes the Euclidean |
| 46 | reduced-volume equality case supplied by M10. -/ |
| 47 | theorem reducedVolume_lt_euclidean_of_scalar_pos |
| 48 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 49 | {F : RicciFlow n M (Iic 0)} {R τ : ℝ} |
| 50 | (Q : ReducedVolumeTheory F 0 R) (hτ : 0 < τ) (hR : τ < R) |
| 51 | (p x : M) (hscalar : 0 < (F.connection (-τ / 2)).scalarCurvature x) : |
| 52 | reducedVolume F 0 p τ < euclideanReducedVolume n := by |
| 53 | apply lt_of_le_of_ne (Q.volume_bounds p τ hτ hR).2 |
| 54 | intro heq |
| 55 | have hflat := Q.euclidean_rigidity p τ hτ hR heq |
| 56 | have hz := hflat.scalarCurvature_eq_zero |
| 57 | (by intro s hs; exact hs.2.le) (t := -τ / 2) |
| 58 | (by constructor <;> linarith) x |
| 59 | linarith |
| 60 | |
| 61 | end PoincareMT |