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/HeatKernelSup.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.Gaussian |
| 13 | import Mathlib.Topology.ContinuousMap.Bounded.Normed |
| 14 | |
| 15 | /-! |
| 16 | # Interior heat kernel: Bounded |
| 17 | |
| 18 | Adapted from Chow--Liao--Qin, HeatKernelSup.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 RealInnerProductSpace |
| 29 | |
| 30 | namespace Poincare.Parabolic.Interior.Kernel |
| 31 | |
| 32 | section SupKernel |
| 33 | |
| 34 | variable {V F : Type*} |
| 35 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] |
| 36 | [MeasurableSpace V] [BorelSpace V] |
| 37 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 38 | |
| 39 | def supKernel (η : V → ℝ) (u : BoundedContinuousFunction V F) (x : V) : F := |
| 40 | ∫ y, η y • u (x - y) |
| 41 | |
| 42 | omit [CompleteSpace F] in |
| 43 | theorem supKernel_int {η : V → ℝ} (hη : Integrable η) |
| 44 | (u : BoundedContinuousFunction V F) (x : V) : |
| 45 | Integrable (fun y : V => η y • u (x - y)) := by |
| 46 | refine (hη.norm.mul_const ‖u‖).mono' ?_ ?_ |
| 47 | · exact hη.aestronglyMeasurable.smul |
| 48 | ((u.continuous.comp (continuous_const.sub continuous_id)).aestronglyMeasurable) |
| 49 | · filter_upwards with y |
| 50 | rw [norm_smul] |
| 51 | exact mul_le_mul_of_nonneg_left (u.norm_coe_le_norm (x - y)) (norm_nonneg _) |
| 52 | |
| 53 | omit [CompleteSpace F] in |
| 54 | theorem supKernel_norm {η : V → ℝ} (hη : Integrable η) |
| 55 | (u : BoundedContinuousFunction V F) (x : V) : |
| 56 | ‖supKernel η u x‖ ≤ (∫ y, ‖η y‖) * ‖u‖ := by |
| 57 | unfold supKernel |
| 58 | calc |
| 59 | ‖∫ y, η y • u (x - y)‖ |
| 60 | ≤ ∫ y, ‖η y‖ * ‖u‖ := |
| 61 | norm_integral_le_of_norm_le (hη.norm.mul_const ‖u‖) |
| 62 | (Filter.Eventually.of_forall fun y => by |
| 63 | rw [norm_smul] |
| 64 | exact mul_le_mul_of_nonneg_left (u.norm_coe_le_norm (x - y)) |
| 65 | (norm_nonneg _)) |
| 66 | _ = (∫ y, ‖η y‖) * ‖u‖ := by rw [integral_mul_const] |
| 67 | |
| 68 | omit [CompleteSpace F] in |
| 69 | theorem supKernel_sub {η : V → ℝ} (hη : Integrable η) |
| 70 | (u v : BoundedContinuousFunction V F) (x : V) : |
| 71 | supKernel η (u - v) x = supKernel η u x - supKernel η v x := by |
| 72 | unfold supKernel |
| 73 | rw [← integral_sub (supKernel_int hη u x) (supKernel_int hη v x)] |
| 74 | apply integral_congr_ae |
| 75 | filter_upwards with y |
| 76 | simp only [BoundedContinuousFunction.sub_apply, smul_sub] |
| 77 | |
| 78 | omit [CompleteSpace F] in |
| 79 | theorem supKernel_contract {η : V → ℝ} (hη : Integrable η) |
| 80 | (hη0 : ∀ y, 0 ≤ η y) (hη1 : ∫ y, η y = 1) |
| 81 | (u : BoundedContinuousFunction V F) (x : V) : |
| 82 | ‖supKernel η u x‖ ≤ ‖u‖ := by |
| 83 | refine (supKernel_norm hη u x).trans_eq ?_ |
| 84 | have habs : (fun y : V => ‖η y‖) = η := by |
| 85 | funext y |
| 86 | simp [Real.norm_eq_abs, abs_of_nonneg (hη0 y)] |
| 87 | rw [habs, hη1, one_mul] |
| 88 | |
| 89 | end SupKernel |
| 90 | |
| 91 | section HeatSup |
| 92 | |
| 93 | variable {V F : Type*} |
| 94 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] |
| 95 | [MeasurableSpace V] [BorelSpace V] |
| 96 | [Nontrivial V] |
| 97 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 98 | |
| 99 | def heatSup (t : ℝ) (u : BoundedContinuousFunction V F) (x : V) : F := |
| 100 | supKernel (heatKernel t) u x |
| 101 | |
| 102 | omit [CompleteSpace F] in |
| 103 | theorem heatSup_contract {t : ℝ} (ht : 0 < t) |
| 104 | (u : BoundedContinuousFunction V F) (x : V) : |
| 105 | ‖heatSup t u x‖ ≤ ‖u‖ := by |
| 106 | exact supKernel_contract (heatKernel_int ht) (heatKernel_nonneg ht) |
| 107 | (integral_heatKernel ht) u x |
| 108 | |
| 109 | def heatD1Sup (t : ℝ) (v : V) (u : BoundedContinuousFunction V F) (x : V) : F := |
| 110 | supKernel (heatD1 t v) u x |
| 111 | |
| 112 | def heatD2Sup (t : ℝ) (v w : V) (u : BoundedContinuousFunction V F) (x : V) : F := |
| 113 | supKernel (heatD2 t v w) u x |
| 114 | |
| 115 | omit [CompleteSpace F] in |
| 116 | theorem heatD1Sup_sub {t : ℝ} (ht : 0 < t) (v : V) |
| 117 | (u₁ u₂ : BoundedContinuousFunction V F) (x : V) : |
| 118 | heatD1Sup t v (u₁ - u₂) x = |
| 119 | heatD1Sup t v u₁ x - heatD1Sup t v u₂ x := by |
| 120 | exact supKernel_sub (heatD1_int ht v) u₁ u₂ x |
| 121 | |
| 122 | omit [CompleteSpace F] in |
| 123 | theorem heatD2Sup_sub {t : ℝ} (ht : 0 < t) (v w : V) |
| 124 | (u₁ u₂ : BoundedContinuousFunction V F) (x : V) : |
| 125 | heatD2Sup t v w (u₁ - u₂) x = |
| 126 | heatD2Sup t v w u₁ x - heatD2Sup t v w u₂ x := by |
| 127 | exact supKernel_sub (heatD2_int ht v w) u₁ u₂ x |
| 128 | |
| 129 | omit [CompleteSpace F] in |
| 130 | theorem heatD1Sup_norm {t : ℝ} (ht : 0 < t) (v : V) |
| 131 | (u : BoundedContinuousFunction V F) (x : V) : |
| 132 | ‖heatD1Sup t v u x‖ ≤ |
| 133 | (‖v‖ * (heatScale t)⁻¹ * heatC1 V) * ‖u‖ := by |
| 134 | refine (supKernel_norm (heatD1_int ht v) u x).trans ?_ |
| 135 | exact mul_le_mul_of_nonneg_right (integral_norm_D1 ht v) (norm_nonneg _) |
| 136 | |
| 137 | omit [CompleteSpace F] in |
| 138 | theorem heatD2Sup_norm {t : ℝ} (ht : 0 < t) (v w : V) |
| 139 | (u : BoundedContinuousFunction V F) (x : V) : |
| 140 | ‖heatD2Sup t v w u x‖ ≤ |
| 141 | (‖v‖ * ‖w‖ * t⁻¹ * heatC2 V) * ‖u‖ := by |
| 142 | refine (supKernel_norm (heatD2_int ht v w) u x).trans ?_ |
| 143 | exact mul_le_mul_of_nonneg_right (integral_norm_D2 ht v w) (norm_nonneg _) |
| 144 | |
| 145 | end HeatSup |
| 146 | |
| 147 | end Poincare.Parabolic.Interior.Kernel |
| 148 | |
| 149 | end |