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.RicciTrace |
| 2 | import PoincareLib.Geometry.RicciFlow.Area.FixedMap.Exponential |
| 3 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Integrability |
| 4 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.DominatedDerivative |
| 5 | import Mathlib.Analysis.Calculus.MeanValue |
| 6 | |
| 7 | /-!+# The fixed-map area estimate |
| 8 | |
| 9 | Morgan-Tian Claim 18.13, printed pp. 427-428, with the corrected |
| 10 | Ricci-trace normalization. The density equation gives a uniform |
| 11 | exponential bound by the initial density. Its derivative is consequently |
| 12 | bounded by a single integrable function throughout the closed slab. |
| 13 | The mean value theorem and dominated convergence then give the actual |
| 14 | area variation, including both endpoints and rank-deficient maps. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open MeasureTheory Set Filter |
| 21 | open scoped Manifold ContDiff Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | /-- The Ricci-flow equation and a uniform Ricci bound imply all the |
| 28 | fixed-map area conclusions. Source: corrected MT Claim 18.13, pp. 427-428. -/ |
| 29 | theorem m60FixedMapAreaProperties_of_ricci_bound |
| 30 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 32 | {a b : ℝ} (hab : a < b) (F : RicciFlow n M (Icc a b)) |
| 33 | (htensor : ∀ t ∈ Icc a b, (F.connection t).CurvatureTensorCalculus) |
| 34 | (D : ℝ) (hD : 0 ≤ D) |
| 35 | (hnorm : ∀ t ∈ Icc a b, ∀ x : M, (F.connection t).ricciNormSq x ≤ D ^ 2) |
| 36 | (f : UnitTwoSphere → M) (hf : ContMDiff (𝓡 2) (𝓡 n) 1 f) : |
| 37 | M60FixedMapAreaProperties F D f := by |
| 38 | let A := fun s z => m60SphereAreaDensity (F.metric s) f z |
| 39 | let V := fun s z => -m60SphereRicciTraceDensity (F.connection s) f z |
| 40 | have hd (z : LoopPlane) (t : ℝ) (ht : t ∈ Icc a b) : |
| 41 | HasDerivWithinAt (fun s => A s z) (V t z) (Icc a b) t := |
| 42 | m60SphereDensity_variation F f z ht |
| 43 | have hv (z : LoopPlane) (t : ℝ) (ht : t ∈ Icc a b) : |
| 44 | |V t z| ≤ 4 * D * A t z := by |
| 45 | simpa only [V, abs_neg] using |
| 46 | m60SphereRicciTraceDensity_bound (F.connection t) (htensor t ht) hD (hnorm t ht) f z |
| 47 | have hAi (s : ℝ) : Integrable (A s) volume := |
| 48 | m60SphereAreaDensity_integrable (F.metric s) f hf |
| 49 | have hA0 (z : LoopPlane) : 0 ≤ A a z := |
| 50 | m60AreaDensity_nonneg (F.metric a) (f ∘ m60SphereParameter) z |
| 51 | let K := Real.exp (4 * D * (b - a)) |
| 52 | have hA (z : LoopPlane) (t : ℝ) (ht : t ∈ Icc a b) : A t z ≤ K * A a z := by |
| 53 | have h := M60.le_exp_abs_mul_of_abs_deriv_le (hd z) (hv z) |
| 54 | (show a ∈ Icc a b from ⟨le_rfl, hab.le⟩) ht |
| 55 | rw [abs_of_nonneg (sub_nonneg.mpr ht.1)] at h |
| 56 | exact h.trans (mul_le_mul_of_nonneg_right |
| 57 | (Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left (sub_le_sub_right ht.2 a) |
| 58 | (by positivity))) (hA0 z)) |
| 59 | let bound := fun z => 4 * D * K * A a z |
| 60 | have hbound : Integrable bound volume := (hAi a).const_mul (4 * D * K) |
| 61 | have hV (z : LoopPlane) (t : ℝ) (ht : t ∈ Icc a b) : ‖V t z‖ ≤ bound z := by |
| 62 | rw [Real.norm_eq_abs] |
| 63 | exact (hv z t ht).trans (by |
| 64 | simpa only [bound, mul_assoc] using |
| 65 | mul_le_mul_of_nonneg_left (hA z t ht) (by positivity : 0 ≤ 4 * D)) |
| 66 | have hlip (z : LoopPlane) {t s : ℝ} (ht : t ∈ Icc a b) (hs : s ∈ Icc a b) : |
| 67 | ‖A s z - A t z‖ ≤ bound z * ‖s - t‖ := |
| 68 | (convex_Icc a b).norm_image_sub_le_of_norm_hasDerivWithin_le |
| 69 | (f := fun s => A s z) (f' := fun s => V s z) (hd z) (hV z) ht hs |
| 70 | have hintegral (t : ℝ) (ht : t ∈ Icc a b) : |
| 71 | Integrable (V t) volume ∧ |
| 72 | HasDerivWithinAt (fun s => ∫ z, A s z ∂volume) (∫ z, V t z ∂volume) (Icc a b) t := by |
| 73 | let : NeBot (𝓝[Icc a b \ {t}] t) := |
| 74 | accPt_principal_iff_nhdsWithin.mp ((uniqueDiffOn_Icc hab) t ht).accPt |
| 75 | exact M60.hasDerivWithinAt_integral_of_dominated_lipschitz hAi hbound |
| 76 | (Eventually.of_forall fun z s hs => hlip z ht hs) |
| 77 | (Eventually.of_forall fun z => hd z t ht) |
| 78 | have htrace (t : ℝ) (ht : t ∈ Icc a b) : |
| 79 | Integrable (m60SphereRicciTraceDensity (F.connection t) f) volume := by |
| 80 | exact integrable_neg_iff.mp (hintegral t ht).1 |
| 81 | apply m60FixedMapAreaProperties_of_variation F D f htrace |
| 82 | · intro t ht |
| 83 | simpa only [A, V, m60SphereArea, integral_neg] using (hintegral t ht).2 |
| 84 | · intro t ht |
| 85 | rw [← integral_neg] |
| 86 | change |∫ z, V t z ∂volume| ≤ 4 * D * m60SphereArea (F.metric t) f |
| 87 | calc |
| 88 | |∫ z, V t z ∂volume| ≤ ∫ z, ‖V t z‖ ∂volume := by |
| 89 | simpa only [Real.norm_eq_abs] using norm_integral_le_integral_norm (V t) |
| 90 | _ ≤ ∫ z, 4 * D * A t z ∂volume := |
| 91 | integral_mono (hintegral t ht).1.norm ((hAi t).const_mul (4 * D)) |
| 92 | (fun z => by simpa only [Real.norm_eq_abs] using hv z t ht) |
| 93 | _ = 4 * D * m60SphereArea (F.metric t) f := integral_const_mul _ _ |
| 94 | |
| 95 | end PoincareMT |