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.Riemannian.MinimalSurface.Sphere.Analysis.ExponentialComparison |
| 2 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Fixed-map comparison from the actual variation formula |
| 6 | |
| 7 | Morgan-Tian Claim 18.13, printed pp. 427-428. Once the Ricci-trace |
| 8 | integrability, variation formula, and absolute derivative bound are |
| 9 | proved, real calculus gives continuity and all three time comparisons. |
| 10 | The actual Ricci-trace integral remains the displayed derivative. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open MeasureTheory |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- The fixed-map analytic estimates imply all the time comparisons, |
| 23 | including zero area and included endpoints. Source: MT Claim 18.13, pp. 427-428. -/ |
| 24 | theorem m60FixedMapAreaProperties_of_variation |
| 25 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {a b : ℝ} (F : RicciFlow n M (Set.Icc a b)) (D : ℝ) |
| 28 | (f : UnitTwoSphere → M) |
| 29 | (htrace : ∀ t ∈ Set.Icc a b, |
| 30 | Integrable (m60SphereRicciTraceDensity (F.connection t) f) volume) |
| 31 | (hvariation : ∀ t ∈ Set.Icc a b, |
| 32 | HasDerivWithinAt (fun s => m60SphereArea (F.metric s) f) |
| 33 | (-(∫ z : LoopPlane, m60SphereRicciTraceDensity (F.connection t) f z ∂volume)) |
| 34 | (Set.Icc a b) t) |
| 35 | (hbound : ∀ t ∈ Set.Icc a b, |
| 36 | |-(∫ z : LoopPlane, m60SphereRicciTraceDensity (F.connection t) f z ∂volume)| ≤ |
| 37 | 4 * D * m60SphereArea (F.metric t) f) : |
| 38 | M60FixedMapAreaProperties F D f where |
| 39 | continuous := fun t ht => (hvariation t ht).continuousWithinAt |
| 40 | ricci_trace_integrable := htrace |
| 41 | variation := hvariation |
| 42 | absolute_derivative_bound := hbound |
| 43 | integrating_factor := by |
| 44 | simpa only [neg_mul] using M60.antitoneOn_exp_mul_of_deriv_le hvariation |
| 45 | (fun t ht => (abs_le.mp (hbound t ht)).2) a |
| 46 | exponential_comparison := fun _ hs _ ht hst => |
| 47 | M60.le_exp_mul_of_deriv_le hvariation (fun t ht => (abs_le.mp (hbound t ht)).2) |
| 48 | hs ht hst |
| 49 | two_sided_comparison := fun _ hs _ ht => |
| 50 | M60.le_exp_abs_mul_of_abs_deriv_le hvariation hbound hs ht |
| 51 | |
| 52 | end PoincareMT |