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.Parabolic.Interior.Kernel.CenteredEstimate |
| 2 | import PoincareLib.Analysis.Parabolic.Interior.Kernel.PotentialRealization |
| 3 | |
| 4 | /-! |
| 5 | # Centered bounds for the Hessian of a heat potential |
| 6 | |
| 7 | The global Holder constant is used only to differentiate the heat potential. |
| 8 | Its value does not occur in the bound, which uses the source size relative to |
| 9 | the evaluation point. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open MeasureTheory Set |
| 15 | open scoped NNReal |
| 16 | |
| 17 | namespace Poincare.Parabolic.Interior.Kernel |
| 18 | |
| 19 | variable {V F : Type*} |
| 20 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] |
| 21 | [MeasurableSpace V] [BorelSpace V] [Nontrivial V] |
| 22 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 23 | |
| 24 | omit [CompleteSpace F] in |
| 25 | theorem norm_heatD2Duh_le_of_centered_bound |
| 26 | {α : ℝ≥0} (hα0 : 0 < α) (hα1 : α ≤ 1) {K t : ℝ} |
| 27 | (ht : 0 < t) (f : ℝ → V → F) (x : V) |
| 28 | (hf : ∀ s ∈ Ioo (0 : ℝ) t, ∀ y, ‖f s y‖ ≤ K * ‖y - x‖ ^ (α : ℝ)) |
| 29 | (v w : V) : |
| 30 | ‖heatD2Duh t v w f x‖ ≤ |
| 31 | (‖v‖ * ‖w‖ * K * heatC2Holder (V := V) α) * |
| 32 | ((2 / (α : ℝ)) * t ^ ((α : ℝ) / 2)) := by |
| 33 | unfold heatD2Duh heatD2Conv |
| 34 | apply norm_hessian_potential_le_of_centered_bound hα0 hα1 ht |
| 35 | intro s hs y |
| 36 | simpa only [sub_sub_cancel_left, norm_neg] using hf s hs (x - y) |
| 37 | |
| 38 | /-- A centered source estimate gives a Hessian bound independent of the |
| 39 | global Holder constant used to justify differentiation. -/ |
| 40 | theorem norm_fderiv_fderiv_heatDuh_le_of_centered_bound |
| 41 | {α L B : ℝ≥0} (hα0 : 0 < α) (hα1 : α ≤ 1) {K t : ℝ} |
| 42 | (ht : 0 < t) (f : ℝ → BoundedContinuousFunction V F) |
| 43 | (hbound : ∀ s ∈ Icc (0 : ℝ) t, ‖f s‖ ≤ B) |
| 44 | (hholder : ∀ s ∈ Icc (0 : ℝ) t, HolderWith L α (f s)) |
| 45 | (hmeas0 : ∀ z : V, AEStronglyMeasurable |
| 46 | (fun s : ℝ => heatSup (t - s) (f s) z) (volume.restrict (uIoc (0 : ℝ) t))) |
| 47 | (hmeas1 : ∀ z : V, AEStronglyMeasurable |
| 48 | (fun s : ℝ => heatSupGradient (t - s) (f s) z) |
| 49 | (volume.restrict (uIoc (0 : ℝ) t))) |
| 50 | (hmeas2 : ∀ z : V, AEStronglyMeasurable |
| 51 | (fun s : ℝ => heatSupHessian (t - s) (f s) z) |
| 52 | (volume.restrict (uIoc (0 : ℝ) t))) |
| 53 | (x : V) |
| 54 | (hcenter : ∀ s ∈ Ioo (0 : ℝ) t, ∀ y, |
| 55 | ‖f s y‖ ≤ K * ‖y - x‖ ^ (α : ℝ)) (v w : V) : |
| 56 | ‖fderiv ℝ (fun z => fderiv ℝ (heatDuh t f) z) x v w‖ ≤ |
| 57 | (‖v‖ * ‖w‖ * K * heatC2Holder (V := V) α) * |
| 58 | ((2 / (α : ℝ)) * t ^ ((α : ℝ) / 2)) := by |
| 59 | have hgrad : fderiv ℝ (heatDuh t f) = heatDuhGradientMap t f := by |
| 60 | funext z |
| 61 | exact (heatDuh_hasFDerivAt ht f hbound hmeas0 hmeas1 z).fderiv |
| 62 | change ‖fderiv ℝ (fderiv ℝ (heatDuh t f)) x v w‖ ≤ _ |
| 63 | rw [hgrad, (heatDuhGradientMap_hasFDerivAt hα0 hα1 ht f hbound hholder |
| 64 | hmeas1 hmeas2 x).fderiv, |
| 65 | heatDuhHessian_apply hα0 hα1 ht f hbound hholder hmeas1 hmeas2 x v w, |
| 66 | heatD2Duh_comm t w v] |
| 67 | exact norm_heatD2Duh_le_of_centered_bound hα0 hα1 ht (fun s => f s) x hcenter v w |
| 68 | |
| 69 | end Poincare.Parabolic.Interior.Kernel |