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 | /- |
| 2 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Source: https://github.com/qinz1yang/differential-geometry |
| 4 | DifferentialGeometry/Analysis/Parabolic/Euclidean/HeatKernelLinear.lean |
| 5 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 6 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. |
| 7 | License: Apache-2.0. Source licenses and notices are retained under |
| 8 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 9 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 10 | -/ |
| 11 | |
| 12 | import PoincareLib.Analysis.Parabolic.Interior.Kernel.Cancellation |
| 13 | import Mathlib.Analysis.Normed.Operator.NNNorm |
| 14 | |
| 15 | /-! |
| 16 | # LinearChange for interior heat equations |
| 17 | |
| 18 | Adapted from Chow--Liao--Qin, HeatKernelLinear.lean, revision |
| 19 | 1b535dd102b94cc42b107cca27059687888f08b3. |
| 20 | Copyright 2026 The DifferentialGeometry contributors. Apache-2.0. |
| 21 | See references/ricci-flow/chow-liao-qin-2026/interior-hessian-reuse.md. |
| 22 | The adaptation changes import paths and namespaces. |
| 23 | -/ |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open MeasureTheory Real |
| 28 | open scoped NNReal ENNReal RealInnerProductSpace |
| 29 | |
| 30 | namespace Poincare.Parabolic.Interior.Kernel |
| 31 | |
| 32 | section LinearPull |
| 33 | |
| 34 | variable {V F : Type*} |
| 35 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] |
| 36 | [MeasurableSpace V] [BorelSpace V] [Nontrivial V] |
| 37 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 38 | |
| 39 | def linPull (L : V ≃L[ℝ] V) (f : V → F) : V → F := |
| 40 | f ∘ L |
| 41 | |
| 42 | def linHalfConst (L : V ≃L[ℝ] V) (K : ℝ≥0) : ℝ≥0 := |
| 43 | K * ‖(L : V →L[ℝ] V)‖₊ ^ (1 / 2 : ℝ) |
| 44 | |
| 45 | omit [FiniteDimensional ℝ V] |
| 46 | [MeasurableSpace V] |
| 47 | [BorelSpace V] |
| 48 | [Nontrivial V] |
| 49 | [NormedSpace ℝ F] |
| 50 | [CompleteSpace F] in |
| 51 | theorem linPull_holder (L : V ≃L[ℝ] V) {K : ℝ≥0} {f : V → F} |
| 52 | (hf : HolderWith K (1 / 2 : ℝ≥0) f) : |
| 53 | HolderWith (linHalfConst L K) (1 / 2 : ℝ≥0) (linPull L f) := by |
| 54 | have hL : HolderWith ‖(L : V →L[ℝ] V)‖₊ 1 L := |
| 55 | L.lipschitz.holderWith |
| 56 | simpa [linPull, linHalfConst] using hf.comp hL |
| 57 | |
| 58 | def linD2Cancel (L : V ≃L[ℝ] V) (t : ℝ) (v w : V) |
| 59 | (f : V → F) (x : V) : F := |
| 60 | heatD2Cancel t (L.symm v) (L.symm w) (linPull L f) (L.symm x) |
| 61 | |
| 62 | omit [CompleteSpace F] in |
| 63 | theorem linD2Cancel_norm (L : V ≃L[ℝ] V) {t : ℝ} (ht : 0 < t) |
| 64 | {K : ℝ≥0} {f : V → F} (hf : HolderWith K (1 / 2 : ℝ≥0) f) |
| 65 | (v w x : V) : |
| 66 | ‖linD2Cancel L t v w f x‖ ≤ |
| 67 | ‖L.symm v‖ * ‖L.symm w‖ * (linHalfConst L K : ℝ) * |
| 68 | heatScale34 t * heatC2Half V := by |
| 69 | unfold linD2Cancel |
| 70 | exact heatD2Cancel_norm ht (linPull_holder L hf) (L.symm v) (L.symm w) (L.symm x) |
| 71 | |
| 72 | omit [CompleteSpace F] in |
| 73 | theorem linD2Cancel_op (L : V ≃L[ℝ] V) {t : ℝ} (ht : 0 < t) |
| 74 | {K : ℝ≥0} {f : V → F} (hf : HolderWith K (1 / 2 : ℝ≥0) f) |
| 75 | (v w x : V) : |
| 76 | ‖linD2Cancel L t v w f x‖ ≤ |
| 77 | (‖(L.symm : V →L[ℝ] V)‖ * ‖v‖) * |
| 78 | (‖(L.symm : V →L[ℝ] V)‖ * ‖w‖) * |
| 79 | (linHalfConst L K : ℝ) * heatScale34 t * heatC2Half V := by |
| 80 | refine (linD2Cancel_norm L ht hf v w x).trans ?_ |
| 81 | have hv : ‖L.symm v‖ ≤ ‖(L.symm : V →L[ℝ] V)‖ * ‖v‖ := |
| 82 | (L.symm : V →L[ℝ] V).le_opNorm v |
| 83 | have hw : ‖L.symm w‖ ≤ ‖(L.symm : V →L[ℝ] V)‖ * ‖w‖ := |
| 84 | (L.symm : V →L[ℝ] V).le_opNorm w |
| 85 | have hvw : ‖L.symm v‖ * ‖L.symm w‖ ≤ |
| 86 | (‖(L.symm : V →L[ℝ] V)‖ * ‖v‖) * |
| 87 | (‖(L.symm : V →L[ℝ] V)‖ * ‖w‖) := |
| 88 | mul_le_mul hv hw (norm_nonneg _) |
| 89 | (mul_nonneg (norm_nonneg _) (norm_nonneg _)) |
| 90 | have hs : 0 ≤ heatScale34 t := by |
| 91 | unfold heatScale34 |
| 92 | exact (Real.rpow_pos_of_pos ht _).le |
| 93 | exact mul_le_mul_of_nonneg_right |
| 94 | (mul_le_mul_of_nonneg_right |
| 95 | (mul_le_mul_of_nonneg_right hvw (NNReal.coe_nonneg _)) hs) |
| 96 | (heatC2Half_nonneg (V := V)) |
| 97 | |
| 98 | end LinearPull |
| 99 | |
| 100 | end Poincare.Parabolic.Interior.Kernel |