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.Generalized.ReducedGeometry.SourceNames.LGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Minimization.Charts.ChartCoercivity |
| 3 | |
| 4 | /-! |
| 5 | # L2 control from a compact family of positive quadratic forms |
| 6 | |
| 7 | The local coordinate energy argument in Morgan-Tian Lemma 6.8, |
| 8 | pp. 108-109. M08's compact coercivity theorem converts integrability |
| 9 | of the actual positive quadratic energy into a fixed-norm L2 bound. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped ENNReal |
| 16 | |
| 17 | namespace MeasureTheory |
| 18 | |
| 19 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 20 | |
| 21 | /-- An integrable positive quadratic energy on a compact interval gives |
| 22 | L2 control in the fixed norm, the coordinate estimate used in Lemma 6.8, |
| 23 | pp. 108-109. Endpoint values of the measurable velocity are unrestricted. -/ |
| 24 | theorem memLp_two_of_integrable_positive_quadratic {a b : ℝ} (hab : a ≤ b) |
| 25 | (B : ℝ → E →L[ℝ] E →L[ℝ] ℝ) (hB : ContinuousOn B (Icc a b)) |
| 26 | (hpos : ∀ s ∈ Icc a b, ∀ v : E, v ≠ 0 → 0 < B s v v) |
| 27 | (d : ℝ → E) (hd : AEStronglyMeasurable d (volume.restrict (Icc a b))) |
| 28 | (henergy : IntervalIntegrable (fun s => B s (d s) (d s)) volume a b) : |
| 29 | MemLp d 2 (volume.restrict (Icc a b)) := by |
| 30 | obtain ⟨c, hc, hcoercive⟩ := |
| 31 | PoincareMT.M08.compact_positive_forms_coercive isCompact_Icc B hB hpos |
| 32 | have hq := (intervalIntegrable_iff_integrableOn_Icc_of_le hab).mp henergy |
| 33 | have hd2 : Integrable (fun s => ‖d s‖ ^ 2) (volume.restrict (Icc a b)) := by |
| 34 | apply (hq.const_mul c⁻¹).mono' (hd.norm.pow 2) |
| 35 | filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs |
| 36 | change |‖d s‖ ^ 2| ≤ c⁻¹ * B s (d s) (d s) |
| 37 | rw [abs_of_nonneg (sq_nonneg ‖d s‖)] |
| 38 | calc |
| 39 | ‖d s‖ ^ 2 = c⁻¹ * (c * ‖d s‖ ^ 2) := by |
| 40 | rw [← mul_assoc, inv_mul_cancel₀ hc.ne', one_mul] |
| 41 | _ ≤ c⁻¹ * B s (d s) (d s) := |
| 42 | mul_le_mul_of_nonneg_left (hcoercive s hs (d s)) (inv_pos.mpr hc).le |
| 43 | exact (memLp_two_iff_integrable_sq_norm hd).mpr hd2 |
| 44 | |
| 45 | end MeasureTheory |