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.Area.FixedMap.FixedMap |
| 2 | import PoincareLib.Geometry.RicciFlow.Curvature.Evolution.Scalar.Coefficients |
| 3 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Compatibility.Curvature |
| 4 | |
| 5 | /-! |
| 6 | # Fixed-map variation on a compact slab |
| 7 | |
| 8 | Morgan-Tian Claims 18.12-18.13, printed pp. 426-428. M04 supplies joint |
| 9 | continuity of the actual squared Ricci norm. Compactness of space and |
| 10 | time gives the uniform bound needed by the fixed-map theorem, so its |
| 11 | actual derivative formula applies to every C1 sphere on a compact slab. |
| 12 | No higher-numbered milestone is used. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | |
| 27 | /-- The actual Ricci norm is uniformly bounded on a compact spacetime |
| 28 | domain. Source: MT Claims 18.12-18.13, pp. 426-428, using M04 regularity. -/ |
| 29 | theorem m60_exists_uniform_ricci_bound {J : Set ℝ} (F : RicciFlow n M J) |
| 30 | (hJ : IsCompact J) (hcompact : IsCompact (univ : Set M)) : |
| 31 | ∃ D : ℝ, 0 ≤ D ∧ ∀ t ∈ J, ∀ x : M, (F.connection t).ricciNormSq x ≤ D ^ 2 := by |
| 32 | obtain ⟨C, hC⟩ := (hJ.prod hcompact).exists_bound_of_continuousOn |
| 33 | (M04.continuousOn_flow_ricciNormSq F) |
| 34 | refine ⟨max C 1, le_trans zero_le_one (le_max_right _ _), ?_⟩ |
| 35 | intro t ht x |
| 36 | have hnorm : (F.connection t).ricciNormSq x ≤ max C 1 := |
| 37 | (le_abs_self _).trans ((hC (t, x) ⟨ht, mem_univ x⟩).trans (le_max_left _ _)) |
| 38 | have hlarge : 1 ≤ max C 1 := le_max_right _ _ |
| 39 | nlinarith |
| 40 | |
| 41 | /-- On a compact slab the exact Ricci-trace integral is integrable and |
| 42 | is the negative area derivative, including endpoints. Source: |
| 43 | MT Claims 18.12-18.13, pp. 426-428. -/ |
| 44 | theorem m60SphereArea_variation_on_compact {a b : ℝ} (hab : a < b) |
| 45 | (F : RicciFlow n M (Icc a b)) (hcompact : IsCompact (univ : Set M)) |
| 46 | (htensor : ∀ t ∈ Icc a b, (F.connection t).CurvatureTensorCalculus) |
| 47 | (f : UnitTwoSphere → M) (hf : ContMDiff (𝓡 2) (𝓡 n) 1 f) : |
| 48 | ∀ t ∈ Icc a b, |
| 49 | Integrable (m60SphereRicciTraceDensity (F.connection t) f) volume ∧ |
| 50 | HasDerivWithinAt (fun s => m60SphereArea (F.metric s) f) |
| 51 | (-(∫ z : LoopPlane, m60SphereRicciTraceDensity (F.connection t) f z ∂volume)) |
| 52 | (Icc a b) t := by |
| 53 | obtain ⟨D, hD, hnorm⟩ := m60_exists_uniform_ricci_bound F isCompact_Icc hcompact |
| 54 | have h := m60FixedMapAreaProperties_of_ricci_bound hab F htensor D hD hnorm f hf |
| 55 | exact fun t ht => ⟨h.ricci_trace_integrable t ht, h.variation t ht⟩ |
| 56 | |
| 57 | end PoincareMT |