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 Mathlib.Analysis.Calculus.ContDiff.Basic |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Basic |
| 3 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 4 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 5 | import PoincareLib.Analysis.Parabolic.Interior.GlobalEstimate |
| 6 | import PoincareLib.Analysis.Parabolic.Interior.SolutionReduction |
| 7 | |
| 8 | /-! |
| 9 | # Uniform Euclidean interior heat Hessian estimate |
| 10 | |
| 11 | The constant is chosen before the coefficient field and the solution. A |
| 12 | compact smooth extension reduces to the nested-cylinder estimate, whose |
| 13 | geometric absorption removes the solution-dependent Hessian bound. |
| 14 | -/ |
| 15 | |
| 16 | open Set |
| 17 | open scoped ContDiff RealInnerProductSpace BigOperators |
| 18 | |
| 19 | namespace Poincare.Parabolic.Interior |
| 20 | |
| 21 | theorem exists_uniform_interior_heat_hessian_bound |
| 22 | (n : ℕ) (hn : 1 ≤ n) (lam Λ H : ℝ) |
| 23 | (hlam : 0 < lam) (hlamΛ : lam ≤ Λ) (hH : 0 ≤ H) : |
| 24 | ∃ C : ℝ, 0 < C ∧ |
| 25 | ∀ (a : EuclideanSpace ℝ (Fin n) → |
| 26 | EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)), |
| 27 | ContDiffOn ℝ ∞ a (Metric.ball 0 2) → |
| 28 | (∀ x ∈ Metric.ball 0 2, ∀ v w, |
| 29 | inner ℝ (a x v) w = inner ℝ v (a x w)) → |
| 30 | (∀ x ∈ Metric.ball 0 2, ∀ v, |
| 31 | lam * ‖v‖ ^ 2 ≤ inner ℝ v (a x v) ∧ |
| 32 | inner ℝ v (a x v) ≤ Λ * ‖v‖ ^ 2) → |
| 33 | (∀ x ∈ Metric.ball 0 2, ∀ y ∈ Metric.ball 0 2, |
| 34 | ‖a x - a y‖ ≤ H * ‖x - y‖ ^ (1 / 2 : ℝ)) → |
| 35 | ∀ (B : ℝ), 0 ≤ B → |
| 36 | ∀ (f : EuclideanSpace ℝ (Fin n) × ℝ → ℝ), |
| 37 | ContDiffOn ℝ ∞ f (Metric.ball 0 2 ×ˢ Ioo 0 2) → |
| 38 | (∀ x ∈ Metric.ball 0 2, ∀ t ∈ Ioc (0 : ℝ) 1, |
| 39 | HasDerivAt (fun s => f (x, s)) |
| 40 | (∑ i : Fin n, ∑ j : Fin n, |
| 41 | inner ℝ (EuclideanSpace.basisFun (Fin n) ℝ i) |
| 42 | (a x (EuclideanSpace.basisFun (Fin n) ℝ j)) * |
| 43 | fderiv ℝ (fun y => fderiv ℝ (fun z => f (z, t)) y) x |
| 44 | (EuclideanSpace.basisFun (Fin n) ℝ i) |
| 45 | (EuclideanSpace.basisFun (Fin n) ℝ j)) t) → |
| 46 | (∀ x ∈ Metric.ball 0 2, ∀ t ∈ Ioc (0 : ℝ) 1, |f (x, t)| ≤ B) → |
| 47 | ∀ v w : EuclideanSpace ℝ (Fin n), |
| 48 | |fderiv ℝ (fun y => fderiv ℝ (fun z => f (z, 1)) y) 0 v w| ≤ |
| 49 | C * B * ‖v‖ * ‖w‖ := by |
| 50 | have : NeZero n := ⟨by omega⟩ |
| 51 | obtain ⟨C, hC, hest⟩ := exists_uniform_global_interior_heat_hessian_bound |
| 52 | (ι := Fin n) (F := ℝ) lam Λ H hlam hlamΛ hH |
| 53 | refine ⟨C, hC, ?_⟩ |
| 54 | intro a _ha hsym hell hholder B hB f hf hpde hb v w |
| 55 | obtain ⟨g, hg, _hgc, _heq, hlocal, hjet⟩ := |
| 56 | exists_compact_interior_heat_solution a B f hf hpde hb |
| 57 | have hball {x : EuclideanSpace ℝ (Fin n)} (hx : x ∈ Metric.closedBall 0 1) : |
| 58 | x ∈ Metric.ball 0 2 := lt_of_le_of_lt hx (by norm_num : (1 : ℝ) < 2) |
| 59 | have hlocal' (p : EuclideanSpace ℝ (Fin n) × ℝ) |
| 60 | (hp : p ∈ interiorCompactCylinder) : |
| 61 | |g p| ≤ B ∧ timeDerivative g p = Kernel.matrixLap (coefficientMatrix (a p.1)) |
| 62 | (spatialDerivative (spatialDerivative g) p) := by |
| 63 | apply hlocal p.1 (hp.1.trans (by norm_num : (1 : ℝ) ≤ 3 / 2)) p.2 |
| 64 | exact ⟨(by norm_num : (1 / 4 : ℝ) ≤ 1 / 2).trans hp.2.1, hp.2.2⟩ |
| 65 | have he := hest a (fun x hx => hsym x (hball hx)) |
| 66 | (fun x hx => hell x (hball hx)) |
| 67 | (fun x hx y hy => hholder x (hball hx) y (hball hy)) B hB g hg |
| 68 | (fun p hp => (hlocal' p hp).2) (fun p hp => (hlocal' p hp).1) v w |
| 69 | rw [hjet] at he |
| 70 | exact he |
| 71 | |
| 72 | end Poincare.Parabolic.Interior |