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/HeatKernelDuhamel.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.SpecialFunctions.Integrals.Basic |
| 14 | |
| 15 | /-! |
| 16 | # TimeIntegral estimates for interior heat equations |
| 17 | |
| 18 | Adapted from Chow--Liao--Qin, HeatKernelDuhamel.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 Set |
| 28 | open scoped ENNReal NNReal RealInnerProductSpace |
| 29 | |
| 30 | namespace Poincare.Parabolic.Interior.Kernel |
| 31 | |
| 32 | section TimeKernel |
| 33 | |
| 34 | def heatScale12 (t : ℝ) : ℝ := |
| 35 | t ^ (-(1 : ℝ) / 2) |
| 36 | |
| 37 | theorem heatScale12_eq {t : ℝ} (ht : 0 < t) : |
| 38 | heatScale12 t = (heatScale t)⁻¹ := by |
| 39 | unfold heatScale12 heatScale |
| 40 | rw [Real.sqrt_eq_rpow] |
| 41 | convert Real.rpow_neg ht.le (1 / 2 : ℝ) using 1 |
| 42 | ring_nf |
| 43 | |
| 44 | theorem scale12_intble {t : ℝ} : |
| 45 | IntervalIntegrable (fun s : ℝ => heatScale12 (t - s)) volume 0 t := by |
| 46 | have hpow : IntervalIntegrable (fun u : ℝ => u ^ (-(1 : ℝ) / 2)) volume 0 t := |
| 47 | intervalIntegral.intervalIntegrable_rpow' (by norm_num) |
| 48 | have href := hpow.symm.comp_sub_left t |
| 49 | simpa only [heatScale12, sub_self, sub_zero] using href |
| 50 | |
| 51 | theorem timeScale12_int {t : ℝ} : |
| 52 | ∫ s : ℝ in 0..t, heatScale12 (t - s) = |
| 53 | 2 * t ^ (1 / 2 : ℝ) := by |
| 54 | unfold heatScale12 |
| 55 | rw [intervalIntegral.integral_comp_sub_left |
| 56 | (fun u : ℝ => u ^ (-(1 : ℝ) / 2)) t] |
| 57 | simp only [sub_self, sub_zero] |
| 58 | rw [integral_rpow (Or.inl (by norm_num))] |
| 59 | have hexp : -(1 : ℝ) / 2 + 1 = 1 / 2 := by ring |
| 60 | rw [hexp, Real.zero_rpow (by norm_num : (1 / 2 : ℝ) ≠ 0)] |
| 61 | ring |
| 62 | |
| 63 | theorem scale34_intble {t : ℝ} : |
| 64 | IntervalIntegrable (fun s : ℝ => heatScale34 (t - s)) volume 0 t := by |
| 65 | have hpow : IntervalIntegrable (fun u : ℝ => u ^ (-(3 : ℝ) / 4)) volume 0 t := |
| 66 | intervalIntegral.intervalIntegrable_rpow' (by norm_num) |
| 67 | have href := hpow.symm.comp_sub_left t |
| 68 | simpa only [heatScale34, sub_self, sub_zero] using href |
| 69 | |
| 70 | theorem timeScale34_int {t : ℝ} : |
| 71 | ∫ s : ℝ in 0..t, heatScale34 (t - s) = |
| 72 | 4 * t ^ (1 / 4 : ℝ) := by |
| 73 | unfold heatScale34 |
| 74 | rw [intervalIntegral.integral_comp_sub_left |
| 75 | (fun u : ℝ => u ^ (-(3 : ℝ) / 4)) t] |
| 76 | simp only [sub_self, sub_zero] |
| 77 | rw [integral_rpow (Or.inl (by norm_num))] |
| 78 | have hexp : -(3 : ℝ) / 4 + 1 = 1 / 4 := by ring |
| 79 | rw [hexp, Real.zero_rpow (by norm_num : (1 / 4 : ℝ) ≠ 0)] |
| 80 | ring |
| 81 | |
| 82 | end TimeKernel |
| 83 | |
| 84 | section Duhamel |
| 85 | |
| 86 | variable {V F : Type*} |
| 87 | [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] |
| 88 | [MeasurableSpace V] [BorelSpace V] |
| 89 | [Nontrivial V] |
| 90 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 91 | |
| 92 | def d2DuhConst (v w : V) (K : ℝ≥0) : ℝ := |
| 93 | ‖v‖ * ‖w‖ * (K : ℝ) * heatC2Half V |
| 94 | |
| 95 | def d2DuhMajor (v w : V) (K : ℝ≥0) (t s : ℝ) : ℝ := |
| 96 | d2DuhConst v w K * heatScale34 (t - s) |
| 97 | |
| 98 | omit [Nontrivial V] in |
| 99 | theorem d2DuhMajor_intble {t : ℝ} (v w : V) (K : ℝ≥0) : |
| 100 | IntervalIntegrable (d2DuhMajor v w K t) volume 0 t := by |
| 101 | exact (scale34_intble).const_mul (d2DuhConst v w K) |
| 102 | |
| 103 | omit [Nontrivial V] in |
| 104 | theorem d2DuhMajor_int {t : ℝ} (v w : V) (K : ℝ≥0) : |
| 105 | ∫ s : ℝ in 0..t, d2DuhMajor v w K t s = |
| 106 | d2DuhConst v w K * (4 * t ^ (1 / 4 : ℝ)) := by |
| 107 | unfold d2DuhMajor |
| 108 | rw [intervalIntegral.integral_const_mul, timeScale34_int] |
| 109 | |
| 110 | def heatD2Duh (t : ℝ) (v w : V) (f : ℝ → V → F) (x : V) : F := |
| 111 | ∫ s : ℝ in 0..t, heatD2Conv (t - s) v w (f s) x |
| 112 | |
| 113 | omit [Nontrivial V] [CompleteSpace F] in |
| 114 | theorem heatD2Duh_comm (t : ℝ) (v w : V) (f : ℝ → V → F) (x : V) : |
| 115 | heatD2Duh t v w f x = heatD2Duh t w v f x := by |
| 116 | unfold heatD2Duh |
| 117 | apply intervalIntegral.integral_congr |
| 118 | intro s _ |
| 119 | exact heatD2Conv_comm (t - s) v w (f s) x |
| 120 | |
| 121 | theorem heatD2Duh_int {t : ℝ} (ht : 0 < t) {K : ℝ≥0} |
| 122 | (f : ℝ → V → F) |
| 123 | (hf : ∀ s ∈ Set.Icc (0 : ℝ) t, |
| 124 | HolderWith K (1 / 2 : ℝ≥0) (f s)) |
| 125 | (v w x : V) |
| 126 | (hmeas : AEStronglyMeasurable |
| 127 | (fun s : ℝ => heatD2Conv (t - s) v w (f s) x) |
| 128 | (volume.restrict (Set.uIoc (0 : ℝ) t))) : |
| 129 | IntervalIntegrable |
| 130 | (fun s : ℝ => heatD2Conv (t - s) v w (f s) x) volume 0 t := by |
| 131 | apply (d2DuhMajor_intble v w K).mono_fun' hmeas |
| 132 | have hne : ∀ᵐ s ∂(volume : Measure ℝ), s ≠ t := by |
| 133 | simp [ae_iff, measure_singleton] |
| 134 | filter_upwards [ae_restrict_mem measurableSet_uIoc, |
| 135 | ae_restrict_of_ae (s := Set.uIoc (0 : ℝ) t) hne] with s hs hst |
| 136 | rw [Set.uIoc_of_le ht.le] at hs |
| 137 | have hstlt : s < t := lt_of_le_of_ne hs.2 hst |
| 138 | rw [heatD2Conv_eq_cancel (sub_pos.mpr hstlt) (hf s ⟨hs.1.le, hs.2⟩) v w x] |
| 139 | refine (heatD2Cancel_norm (sub_pos.mpr hstlt) |
| 140 | (hf s ⟨hs.1.le, hs.2⟩) v w x).trans_eq ?_ |
| 141 | unfold d2DuhMajor d2DuhConst |
| 142 | ring |
| 143 | |
| 144 | theorem heatD2Duh_norm {t : ℝ} (ht : 0 < t) {K : ℝ≥0} |
| 145 | (f : ℝ → V → F) |
| 146 | (hf : ∀ s ∈ Set.Icc (0 : ℝ) t, |
| 147 | HolderWith K (1 / 2 : ℝ≥0) (f s)) |
| 148 | (v w x : V) |
| 149 | (hmeas : AEStronglyMeasurable |
| 150 | (fun s : ℝ => heatD2Conv (t - s) v w (f s) x) |
| 151 | (volume.restrict (Set.uIoc (0 : ℝ) t))) : |
| 152 | ‖heatD2Duh t v w f x‖ ≤ |
| 153 | d2DuhConst v w K * (4 * t ^ (1 / 4 : ℝ)) := by |
| 154 | have hint := heatD2Duh_int ht f hf v w x hmeas |
| 155 | unfold heatD2Duh |
| 156 | calc |
| 157 | ‖∫ s : ℝ in 0..t, heatD2Conv (t - s) v w (f s) x‖ |
| 158 | ≤ ∫ s : ℝ in 0..t, ‖heatD2Conv (t - s) v w (f s) x‖ := |
| 159 | intervalIntegral.norm_integral_le_integral_norm ht.le |
| 160 | _ ≤ ∫ s : ℝ in 0..t, d2DuhMajor v w K t s := by |
| 161 | apply intervalIntegral.integral_mono_on_of_le_Ioo ht.le hint.norm |
| 162 | (d2DuhMajor_intble v w K) |
| 163 | intro s hs |
| 164 | rw [heatD2Conv_eq_cancel (sub_pos.mpr hs.2) |
| 165 | (hf s ⟨hs.1.le, hs.2.le⟩) v w x] |
| 166 | refine (heatD2Cancel_norm (sub_pos.mpr hs.2) |
| 167 | (hf s ⟨hs.1.le, hs.2.le⟩) v w x).trans_eq ?_ |
| 168 | unfold d2DuhMajor d2DuhConst |
| 169 | ring |
| 170 | _ = d2DuhConst v w K * (4 * t ^ (1 / 4 : ℝ)) := |
| 171 | d2DuhMajor_int v w K |
| 172 | |
| 173 | end Duhamel |
| 174 | |
| 175 | end Poincare.Parabolic.Interior.Kernel |
| 176 | |
| 177 | end |