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.CurveShortening.Comparison.AnnularEvolution.Plateau.Curve.Oscillation |
| 2 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.AbsolutelyContinuousFun |
| 3 | |
| 4 | /-! |
| 5 | # Radius control from the actual H1 circle trace |
| 6 | |
| 7 | The observed interval FTC and its L2 angular column control every |
| 8 | center-to-circle displacement without classical differentiability. |
| 9 | |
| 10 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 11 | 447-449. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open scoped Topology ENNReal |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | |
| 23 | /-- Control displacement from an endpoint by the actual H1 trace derivative energy. Proof |
| 24 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449; M64 derivation |
| 25 | 2026-09-26-general-half-cone.md. -/ |
| 26 | theorem m64H1Trace_radius_sq_le |
| 27 | (u v : ℝ → E) {T : ℝ} |
| 28 | (hv : MemLp v 2 (volume.restrict (Icc (0 : ℝ) T))) |
| 29 | (hFTC : ∀ x ∈ Icc (0 : ℝ) T, u x - u 0 = ∫ t in (0 : ℝ)..x, v t) |
| 30 | {x : ℝ} (hx : x ∈ Icc (0 : ℝ) T) : |
| 31 | ‖u x - u 0‖ ^ 2 ≤ T * ∫ t in Icc (0 : ℝ) T, ‖v t‖ ^ 2 := by |
| 32 | have hi : IntegrableOn v (Icc (0 : ℝ) T) := hv.integrable (by norm_num) |
| 33 | have hinorm : IntegrableOn (fun t => ‖v t‖) (Icc (0 : ℝ) T) := hi.norm |
| 34 | have hsq : IntegrableOn (fun t => ‖v t‖ ^ 2) (Icc (0 : ℝ) T) := |
| 35 | (memLp_two_iff_integrable_sq_norm hv.aestronglyMeasurable).mp hv |
| 36 | have hsub : Icc (0 : ℝ) x ⊆ Icc (0 : ℝ) T := fun _ ht => ⟨ht.1, ht.2.trans hx.2⟩ |
| 37 | have hi' : IntervalIntegrable (fun t => ‖v t‖) volume 0 x := |
| 38 | (intervalIntegrable_iff_integrableOn_Icc_of_le hx.1).mpr (hinorm.mono_set hsub) |
| 39 | have hsq' : IntervalIntegrable (fun t => ‖v t‖ ^ 2) volume 0 x := |
| 40 | (intervalIntegrable_iff_integrableOn_Icc_of_le hx.1).mpr (hsq.mono_set hsub) |
| 41 | have hnorm : ‖∫ t in (0 : ℝ)..x, v t‖ ≤ ∫ t in (0 : ℝ)..x, ‖v t‖ := |
| 42 | intervalIntegral.norm_integral_le_integral_norm hx.1 |
| 43 | have hnorm0 : 0 ≤ ∫ t in (0 : ℝ)..x, ‖v t‖ := |
| 44 | intervalIntegral.integral_nonneg hx.1 fun _ _ => norm_nonneg _ |
| 45 | have hCS := SpectralHeatNative.integral_sq_le_time_mul_integral_sq hx.1 hi' hsq' |
| 46 | have hsmall : (∫ t in (0 : ℝ)..x, ‖v t‖ ^ 2) ≤ |
| 47 | ∫ t in Icc (0 : ℝ) T, ‖v t‖ ^ 2 := by |
| 48 | rw [intervalIntegral.integral_of_le hx.1] |
| 49 | exact setIntegral_mono_set hsq (Eventually.of_forall fun t => sq_nonneg ‖v t‖) |
| 50 | (Eventually.of_forall fun t ht => ⟨ht.1.le, ht.2.trans hx.2⟩) |
| 51 | rw [hFTC x hx] |
| 52 | exact ((sq_le_sq₀ (norm_nonneg _) hnorm0).mpr hnorm).trans |
| 53 | (hCS.trans ((mul_le_mul_of_nonneg_left hsmall hx.1).trans |
| 54 | (mul_le_mul_of_nonneg_right hx.2 (integral_nonneg fun t => sq_nonneg ‖v t‖)))) |
| 55 | |
| 56 | /-- Control the oscillation of an actual H1 trace by its derivative energy. Proof expansion |
| 57 | for Morgan-Tian (2007), Lemma 19.15, pp. 447-449; M64 derivation |
| 58 | 2026-09-26-general-half-cone.md. -/ |
| 59 | theorem m64H1Trace_oscillation_sq_le |
| 60 | (u v : ℝ → E) {T : ℝ} |
| 61 | (hv : MemLp v 2 (volume.restrict (Icc (0 : ℝ) T))) |
| 62 | (hFTC : ∀ x ∈ Icc (0 : ℝ) T, u x - u 0 = ∫ t in (0 : ℝ)..x, v t) |
| 63 | {x y : ℝ} (hx : x ∈ Icc (0 : ℝ) T) (hy : y ∈ Icc (0 : ℝ) T) : |
| 64 | ‖u x - u y‖ ^ 2 ≤ 4 * T * ∫ t in Icc (0 : ℝ) T, ‖v t‖ ^ 2 := by |
| 65 | have hx0 := m64H1Trace_radius_sq_le u v hv hFTC hx |
| 66 | have hy0 := m64H1Trace_radius_sq_le u v hv hFTC hy |
| 67 | have ht : ‖u x - u y‖ ≤ ‖u x - u 0‖ + ‖u y - u 0‖ := by |
| 68 | simpa only [sub_sub_sub_cancel_right] using norm_sub_le (u x - u 0) (u y - u 0) |
| 69 | have hs := (sq_le_sq₀ (norm_nonneg _) |
| 70 | (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr ht |
| 71 | nlinarith [sq_nonneg (‖u x - u 0‖ - ‖u y - u 0‖)] |
| 72 | |
| 73 | end PoincareMT |