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.FiniteEnergyDisplacement |
| 2 | |
| 3 | /-! |
| 4 | # Poincare control with finite interior energy |
| 5 | |
| 6 | The local action comparison for Morgan-Tian Corollary 6.79, |
| 7 | pp. 144-145. Closed continuity and interior differentiability suffice; |
| 8 | no endpoint velocity is prescribed. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | open scoped intervalIntegral |
| 15 | |
| 16 | namespace PoincareMT.M14 |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | |
| 20 | /-- A curve vanishing at its right endpoint satisfies the interval |
| 21 | Poincare estimate needed for Corollary 6.79, pp. 144-145, even without |
| 22 | derivatives at either endpoint. -/ |
| 23 | theorem integral_sq_norm_le_length_sq_energy {f : ℝ → E} {a b : ℝ} |
| 24 | (hab : a ≤ b) (hf : ContinuousOn f (Icc a b)) |
| 25 | (hdf : DifferentiableOn ℝ f (Ioo a b)) |
| 26 | (hd : MemLp (deriv f) 2 (volume.restrict (Icc a b))) (hb : f b = 0) : |
| 27 | (∫ s in a..b, ‖f s‖ ^ 2) ≤ |
| 28 | (b - a) ^ 2 * ∫ s in a..b, ‖deriv f s‖ ^ 2 := by |
| 29 | have he : 0 ≤ ∫ s in a..b, ‖deriv f s‖ ^ 2 := |
| 30 | intervalIntegral.integral_nonneg hab (fun _ _ => sq_nonneg _) |
| 31 | have hpoint (s : ℝ) (hs : s ∈ Icc a b) : |
| 32 | ‖f s‖ ^ 2 ≤ (b - a) * ∫ t in a..b, ‖deriv f t‖ ^ 2 := by |
| 33 | have h := norm_sub_sq_le_total_interval_energy hf hdf hd hs |
| 34 | rw [hb, zero_sub, norm_neg] at h |
| 35 | exact h.trans (mul_le_mul_of_nonneg_right (sub_le_sub_left hs.1 b) he) |
| 36 | have hi : IntervalIntegrable (fun s => ‖f s‖ ^ 2) volume a b := by |
| 37 | apply ContinuousOn.intervalIntegrable |
| 38 | rw [uIcc_of_le hab] |
| 39 | exact (continuous_pow 2).comp_continuousOn hf.norm |
| 40 | have h := intervalIntegral.integral_mono_on hab hi intervalIntegrable_const hpoint |
| 41 | simpa only [intervalIntegral.integral_const, smul_eq_mul, pow_two, mul_assoc] using h |
| 42 | |
| 43 | /-- Zero finite energy and one zero endpoint force the whole curve to |
| 44 | vanish, the uniqueness conclusion in the local comparison for |
| 45 | Corollary 6.79, pp. 144-145. -/ |
| 46 | theorem eq_zero_of_interval_energy_eq_zero {f : ℝ → E} {a b : ℝ} |
| 47 | (hf : ContinuousOn f (Icc a b)) (hdf : DifferentiableOn ℝ f (Ioo a b)) |
| 48 | (hd : MemLp (deriv f) 2 (volume.restrict (Icc a b))) (hb : f b = 0) |
| 49 | (he : (∫ s in a..b, ‖deriv f s‖ ^ 2) = 0) {s : ℝ} (hs : s ∈ Icc a b) : |
| 50 | f s = 0 := by |
| 51 | have h := norm_sub_sq_le_total_interval_energy hf hdf hd hs |
| 52 | rw [hb, zero_sub, norm_neg, he, mul_zero] at h |
| 53 | exact norm_eq_zero.mp (by nlinarith [norm_nonneg (f s)]) |
| 54 | |
| 55 | end PoincareMT.M14 |