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.Calculus.Energy.FiniteEnergyPoincare |
| 2 | |
| 3 | /-! |
| 4 | # Integrated coercive action comparison |
| 5 | |
| 6 | The local minimality and uniqueness argument for Morgan-Tian |
| 7 | Corollary 6.79, pp. 144-145. A pointwise quadratic remainder and a |
| 8 | vanishing integrated first variation control the full finite-energy |
| 9 | displacement on a sufficiently short interval. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | open scoped intervalIntegral |
| 16 | |
| 17 | namespace PoincareMT.M14 |
| 18 | |
| 19 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 20 | |
| 21 | /-- The integrated quadratic remainder is coercive after the Poincare |
| 22 | estimate, the short-time comparison in Corollary 6.79, pp. 144-145. -/ |
| 23 | theorem finite_energy_action_gap {a b α β : ℝ} (hab : a ≤ b) (hβ : 0 ≤ β) |
| 24 | {f g L : ℝ → ℝ} (hf : IntervalIntegrable f volume a b) |
| 25 | (hg : IntervalIntegrable g volume a b) (hL : IntervalIntegrable L volume a b) |
| 26 | (hstationary : (∫ s in a..b, L s) = 0) {w : ℝ → E} |
| 27 | (hw : ContinuousOn w (Icc a b)) (hwd : DifferentiableOn ℝ w (Ioo a b)) |
| 28 | (hd : MemLp (deriv w) 2 (volume.restrict (Icc a b))) (hb : w b = 0) |
| 29 | (hpoint : ∀ s ∈ Ioo a b, |
| 30 | α * ‖deriv w s‖ ^ 2 - β * ‖w s‖ ^ 2 ≤ g s - f s - L s) : |
| 31 | (α - β * (b - a) ^ 2) * (∫ s in a..b, ‖deriv w s‖ ^ 2) ≤ |
| 32 | (∫ s in a..b, g s) - ∫ s in a..b, f s := by |
| 33 | have he : IntervalIntegrable (fun s => ‖deriv w s‖ ^ 2) volume a b := |
| 34 | (intervalIntegrable_iff_integrableOn_Icc_of_le hab).mpr |
| 35 | ((memLp_two_iff_integrable_sq_norm hd.aestronglyMeasurable).mp hd) |
| 36 | have hp : IntervalIntegrable (fun s => ‖w s‖ ^ 2) volume a b := |
| 37 | ((continuous_pow 2).comp_continuousOn hw.norm).intervalIntegrable_of_Icc hab |
| 38 | have h := intervalIntegral.integral_mono_on_of_le_Ioo hab |
| 39 | ((he.const_mul α).sub (hp.const_mul β)) ((hg.sub hf).sub hL) hpoint |
| 40 | rw [intervalIntegral.integral_sub (he.const_mul α) (hp.const_mul β), |
| 41 | intervalIntegral.integral_const_mul, intervalIntegral.integral_const_mul, |
| 42 | intervalIntegral.integral_sub (hg.sub hf) hL, |
| 43 | intervalIntegral.integral_sub hg hf, hstationary, sub_zero] at h |
| 44 | have hP := mul_le_mul_of_nonneg_left |
| 45 | (integral_sq_norm_le_length_sq_energy hab hw hwd hd hb) hβ |
| 46 | nlinarith |
| 47 | |
| 48 | /-- A nonpositive action gap forces the entire endpoint-zero |
| 49 | displacement to vanish when the short-time coercivity constant is |
| 50 | positive, the uniqueness step in Corollary 6.79, pp. 144-145. -/ |
| 51 | theorem finite_energy_action_eq_of_gap_nonpos {a b α β : ℝ} |
| 52 | (hab : a ≤ b) (hβ : 0 ≤ β) (hshort : 0 < α - β * (b - a) ^ 2) |
| 53 | {f g L : ℝ → ℝ} (hf : IntervalIntegrable f volume a b) |
| 54 | (hg : IntervalIntegrable g volume a b) (hL : IntervalIntegrable L volume a b) |
| 55 | (hstationary : (∫ s in a..b, L s) = 0) {w : ℝ → E} |
| 56 | (hw : ContinuousOn w (Icc a b)) (hwd : DifferentiableOn ℝ w (Ioo a b)) |
| 57 | (hd : MemLp (deriv w) 2 (volume.restrict (Icc a b))) (hb : w b = 0) |
| 58 | (hpoint : ∀ s ∈ Ioo a b, |
| 59 | α * ‖deriv w s‖ ^ 2 - β * ‖w s‖ ^ 2 ≤ g s - f s - L s) |
| 60 | (haction : (∫ s in a..b, g s) ≤ ∫ s in a..b, f s) : |
| 61 | ∀ s ∈ Icc a b, w s = 0 := by |
| 62 | have h := finite_energy_action_gap hab hβ hf hg hL hstationary hw hwd hd hb hpoint |
| 63 | have he : 0 ≤ ∫ s in a..b, ‖deriv w s‖ ^ 2 := |
| 64 | intervalIntegral.integral_nonneg hab (fun s _ => sq_nonneg ‖deriv w s‖) |
| 65 | have hzero : (∫ s in a..b, ‖deriv w s‖ ^ 2) = 0 := by nlinarith |
| 66 | exact fun _ hs => eq_zero_of_interval_energy_eq_zero hw hwd hd hb hzero hs |
| 67 | |
| 68 | end PoincareMT.M14 |