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.Analysis.Elliptic.Regularity.InteriorEstimates.Sobolev.ProfileCalculus |
| 2 | import PoincareLib.Analysis.Elliptic.Regularity.InteriorEstimates.Sobolev.L2 |
| 3 | |
| 4 | /-! # Conversion of square-integral estimates to derivative-profile norms -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | open Set MeasureTheory |
| 9 | open scoped ENNReal |
| 10 | open Poincare.Analysis.Sobolev |
| 11 | |
| 12 | namespace Poincare.Analysis.Elliptic.InteriorEstimates |
| 13 | |
| 14 | variable {d : ℕ} |
| 15 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 16 | |
| 17 | theorem derivativeProfile_zero (p : ℝ≥0∞) (V : Set E) (u : E → ℝ) : |
| 18 | derivativeProfile p V 0 u = eLpNorm u p (volume.restrict V) := by |
| 19 | simp only [derivativeProfile, Finset.sum_range_succ, Finset.sum_range_zero, zero_add] |
| 20 | rw [show (fun x => ‖iteratedFDeriv ℝ 0 u x‖) = (fun x => ‖u x‖) by |
| 21 | funext x; rw [norm_iteratedFDeriv_zero]] |
| 22 | exact eLpNorm_norm (f := u) |
| 23 | |
| 24 | end Poincare.Analysis.Elliptic.InteriorEstimates |