Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.FlatPrimitive |
| 2 | import NavierStokes.FlatKernelBounds |
| 3 | import NavierStokes.SmoothParameterIntegral |
| 4 | import Mathlib.MeasureTheory.Function.Jacobian |
| 5 | import Mathlib.Analysis.SpecialFunctions.Sqrt |
| 6 | import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals |
| 7 | import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics |
| 8 | import Mathlib.MeasureTheory.Integral.ExpDecay |
| 9 | |
| 10 | /-! |
| 11 | # The transformed integral for a terminal flat primitive |
| 12 | |
| 13 | The change of variables is `u = x / sqrt (1 + x² t)` for `x > 0`. |
| 14 | Natural powers of the square root encode the real power `(j - 3) / 2` |
| 15 | without truncating subtraction in the natural numbers. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Filter Topology Set MeasureTheory |
| 21 | open scoped ContDiff |
| 22 | open NavierStokes.FlatCutoff NavierStokes.FlatPrimitive |
| 23 | |
| 24 | namespace NavierStokes.FlatPrimitiveFactor |
| 25 | |
| 26 | def denominator (x t : ℝ) : ℝ := Real.sqrt (1 + x ^ 2 * t) |
| 27 | |
| 28 | def coordinate (x t : ℝ) : ℝ := x / denominator x t |
| 29 | |
| 30 | def kernel (c : ℝ) (j : ℕ) (b : ℝ → ℝ) (x t : ℝ) : ℝ := |
| 31 | (1 / 2 : ℝ) * Real.exp (-c * t) * |
| 32 | (denominator x t ^ j / denominator x t ^ 3) * b (coordinate x t) |
| 33 | |
| 34 | def factor (c : ℝ) (j : ℕ) (b : ℝ → ℝ) (x : ℝ) : ℝ := |
| 35 | ∫ t in Ioi (0 : ℝ), kernel c j b x t |
| 36 | |
| 37 | theorem denominator_inner_pos (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : 0 < 1 + x ^ 2 * t := by |
| 38 | have := mul_nonneg (sq_nonneg x) ht |
| 39 | linarith |
| 40 | |
| 41 | theorem denominator_pos (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : 0 < denominator x t := |
| 42 | Real.sqrt_pos.mpr (denominator_inner_pos x ht) |
| 43 | |
| 44 | theorem denominator_sq (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : |
| 45 | denominator x t ^ 2 = 1 + x ^ 2 * t := |
| 46 | Real.sq_sqrt (denominator_inner_pos x ht).le |
| 47 | |
| 48 | /-- The square-root notation is exactly the real power appearing in the |
| 49 | substitution formula, including when `j < 3`. -/ |
| 50 | theorem denominator_ratio_eq_rpow (j : ℕ) (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : |
| 51 | denominator x t ^ j / denominator x t ^ 3 = |
| 52 | (1 + x ^ 2 * t) ^ (((j : ℝ) - 3) / 2) := by |
| 53 | have ha := denominator_inner_pos x ht |
| 54 | rw [denominator, Real.sqrt_eq_rpow] |
| 55 | rw [← Real.rpow_natCast ((1 + x ^ 2 * t) ^ (1 / 2 : ℝ)) j, |
| 56 | ← Real.rpow_natCast ((1 + x ^ 2 * t) ^ (1 / 2 : ℝ)) 3] |
| 57 | rw [← Real.rpow_mul ha.le, ← Real.rpow_mul ha.le, ← Real.rpow_sub ha] |
| 58 | congr 1 |
| 59 | norm_num |
| 60 | ring |
| 61 | |
| 62 | theorem coordinate_pos {x t : ℝ} (hx : 0 < x) (ht : 0 ≤ t) : 0 < coordinate x t := |
| 63 | div_pos hx (denominator_pos x ht) |
| 64 | |
| 65 | theorem coordinate_hasDerivAt (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : |
| 66 | HasDerivAt (coordinate x) (-(x ^ 3 / (2 * denominator x t ^ 3))) t := by |
| 67 | have ha : HasDerivAt (fun s : ℝ => 1 + x ^ 2 * s) (x ^ 2) t := by |
| 68 | simpa using ((hasDerivAt_id t).const_mul (x ^ 2)).const_add 1 |
| 69 | have hd : HasDerivAt (denominator x) (x ^ 2 / (2 * denominator x t)) t := |
| 70 | ha.sqrt (denominator_inner_pos x ht).ne' |
| 71 | have hu := (hasDerivAt_const t x).div hd (denominator_pos x ht).ne' |
| 72 | convert! hu using 1 |
| 73 | field_simp ; ring |
| 74 | |
| 75 | theorem coordinate_mem_Ioo {x t : ℝ} (hx : 0 < x) (ht : 0 < t) : |
| 76 | coordinate x t ∈ Ioo 0 x := by |
| 77 | have hinner : 1 < 1 + x ^ 2 * t := by |
| 78 | have := mul_pos (sq_pos_of_pos hx) ht |
| 79 | linarith |
| 80 | have hd : 1 < denominator x t := by |
| 81 | simpa only [denominator, Real.sqrt_one] using Real.sqrt_lt_sqrt (by norm_num : (0 : ℝ) ≤ 1) hinner |
| 82 | constructor |
| 83 | · exact coordinate_pos hx ht.le |
| 84 | · apply (div_lt_iff₀ (denominator_pos x ht.le)).mpr |
| 85 | nlinarith |
| 86 | |
| 87 | theorem coordinate_injOn {x : ℝ} (hx : 0 < x) : InjOn (coordinate x) (Ioi 0) := by |
| 88 | intro t ht s hs h |
| 89 | have hcross := (div_eq_div_iff (denominator_pos x ht.le).ne' |
| 90 | (denominator_pos x hs.le).ne').mp h |
| 91 | have hd : denominator x t = denominator x s := (mul_left_cancel₀ hx.ne' hcross).symm |
| 92 | have hsq := congrArg (fun a : ℝ => a ^ 2) hd |
| 93 | rw [denominator_sq x ht.le, denominator_sq x hs.le] at hsq |
| 94 | have hmul : x ^ 2 * t = x ^ 2 * s := by linarith |
| 95 | exact mul_left_cancel₀ (pow_ne_zero 2 hx.ne') hmul |
| 96 | |
| 97 | theorem coordinate_image {x : ℝ} (hx : 0 < x) : coordinate x '' Ioi 0 = Ioo 0 x := by |
| 98 | ext u |
| 99 | constructor |
| 100 | · rintro ⟨t, ht, rfl⟩ |
| 101 | exact coordinate_mem_Ioo hx ht |
| 102 | · intro hu |
| 103 | let t : ℝ := (x ^ 2 - u ^ 2) / (x ^ 2 * u ^ 2) |
| 104 | have ht : 0 < t := by |
| 105 | apply div_pos |
| 106 | · nlinarith [hu.1, hu.2] |
| 107 | · exact mul_pos (sq_pos_of_pos hx) (sq_pos_of_pos hu.1) |
| 108 | refine ⟨t, ht, ?_⟩ |
| 109 | have ha : 1 + x ^ 2 * t = (x / u) ^ 2 := by |
| 110 | dsimp [t] |
| 111 | field_simp [hx.ne', hu.1.ne'] ; ring |
| 112 | have hd : denominator x t = x / u := by |
| 113 | rw [denominator, ha, Real.sqrt_sq (div_nonneg hx.le hu.1.le)] |
| 114 | rw [coordinate, hd] |
| 115 | field_simp |
| 116 | |
| 117 | theorem edge_coordinate (c : ℝ) {x t : ℝ} (hx : 0 < x) (ht : 0 ≤ t) : |
| 118 | edge c (coordinate x t) = edge c x * Real.exp (-c * t) := by |
| 119 | rw [edge_of_pos c (coordinate_pos hx ht), edge_of_pos c hx, ← Real.exp_add] |
| 120 | congr 1 |
| 121 | calc |
| 122 | -c / coordinate x t ^ 2 = (-c / x ^ 2) * denominator x t ^ 2 := by |
| 123 | dsimp [coordinate] |
| 124 | field_simp |
| 125 | _ = (-c / x ^ 2) * (1 + x ^ 2 * t) := by rw [denominator_sq x ht] |
| 126 | _ = -c / x ^ 2 + -c * t := by field_simp ; ring |
| 127 | |
| 128 | theorem transformed_integrand (c : ℝ) (j : ℕ) (b : ℝ → ℝ) |
| 129 | {x t : ℝ} (hx : 0 < x) (ht : 0 ≤ t) : |
| 130 | |-(x ^ 3 / (2 * denominator x t ^ 3))| * |
| 131 | integrand c j b (coordinate x t) = |
| 132 | scale c j x * kernel c j b x t := by |
| 133 | have hd : 0 < denominator x t := denominator_pos x ht |
| 134 | rw [abs_neg, abs_of_pos (div_pos (pow_pos hx 3) (mul_pos (by norm_num) (pow_pos hd 3)))] |
| 135 | simp only [integrand, scale, kernel, edge_coordinate c hx ht] |
| 136 | dsimp [coordinate] |
| 137 | rw [div_pow] |
| 138 | field_simp |
| 139 | |
| 140 | /-- Exact change of variables for the actual primitive. The Jacobian theorem |
| 141 | supplies the equality even before separate integrability estimates are used. -/ |
| 142 | theorem primitive_eq_scale_mul_factor (c : ℝ) (j : ℕ) (b : ℝ → ℝ) |
| 143 | {x : ℝ} (hx : 0 < x) : |
| 144 | primitive c j b x = scale c j x * factor c j b x := by |
| 145 | have hchange := integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi |
| 146 | (fun t ht => (coordinate_hasDerivAt x ht.le).hasDerivWithinAt) |
| 147 | (coordinate_injOn hx) (integrand c j b) |
| 148 | rw [coordinate_image hx] at hchange |
| 149 | rw [primitive, intervalIntegral.integral_of_le hx.le, integral_Ioc_eq_integral_Ioo, |
| 150 | hchange] |
| 151 | calc |
| 152 | (∫ t in Ioi (0 : ℝ), |-(x ^ 3 / (2 * denominator x t ^ 3))| • |
| 153 | integrand c j b (coordinate x t)) = |
| 154 | ∫ t in Ioi (0 : ℝ), scale c j x * kernel c j b x t := by |
| 155 | apply setIntegral_congr_fun measurableSet_Ioi |
| 156 | intro t ht |
| 157 | exact transformed_integrand c j b hx ht.le |
| 158 | _ = scale c j x * factor c j b x := integral_const_mul _ _ |
| 159 | |
| 160 | /-- The transformed integral is the normalized primitive for positive `x`. -/ |
| 161 | theorem factor_eq_normalized_primitive (c : ℝ) (j : ℕ) (b : ℝ → ℝ) |
| 162 | {x : ℝ} (hx : 0 < x) : |
| 163 | factor c j b x = primitive c j b x / scale c j x := by |
| 164 | have hs : scale c j x ≠ 0 := (scale_pos c j hx).ne' |
| 165 | rw [primitive_eq_scale_mul_factor c j b hx] |
| 166 | field_simp [hs] |
| 167 | |
| 168 | theorem kernel_at_zero (c : ℝ) (j : ℕ) (b : ℝ → ℝ) (t : ℝ) : |
| 169 | kernel c j b 0 t = (b 0 / 2) * Real.exp (-c * t) := by |
| 170 | simp [kernel, denominator, coordinate] |
| 171 | ring |
| 172 | |
| 173 | /-- The transformed integral has the predicted endpoint value directly, |
| 174 | without passing to the normalized primitive's limit. -/ |
| 175 | theorem factor_at_zero {c : ℝ} (hc : 0 < c) (j : ℕ) (b : ℝ → ℝ) : |
| 176 | factor c j b 0 = b 0 / (2 * c) := by |
| 177 | simp only [factor, kernel_at_zero] |
| 178 | rw [integral_const_mul, integral_exp_mul_Ioi (neg_lt_zero.mpr hc) 0] |
| 179 | simp |
| 180 | ring |
| 181 | |
| 182 | /-- Every fixed polynomial majorant is integrable against the decaying |
| 183 | exponential on the transformed half-line. -/ |
| 184 | theorem polynomial_exp_integrable {c : ℝ} (hc : 0 < c) (N : ℕ) : |
| 185 | IntegrableOn (fun t : ℝ => (1 + t) ^ N * Real.exp (-c * t)) (Ioi 0) := by |
| 186 | have hc2 : 0 < c / 2 := half_pos hc |
| 187 | have hshift : Tendsto (fun t : ℝ => 1 + t) atTop atTop := by |
| 188 | apply tendsto_atTop.2 |
| 189 | intro r |
| 190 | filter_upwards [eventually_ge_atTop r] with t ht |
| 191 | linarith |
| 192 | have hbase : Tendsto (fun t : ℝ => (1 + t) ^ N * Real.exp (-(c / 2) * (1 + t))) |
| 193 | atTop (𝓝 0) := by |
| 194 | simpa only [Function.comp_def, Real.rpow_natCast] using |
| 195 | (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (N : ℝ) (c / 2) hc2).comp hshift |
| 196 | have hratio : Tendsto |
| 197 | (fun t : ℝ => ((1 + t) ^ N * Real.exp (-c * t)) / Real.exp (-(c / 2) * t)) |
| 198 | atTop (𝓝 0) := by |
| 199 | have hh := hbase.mul_const (Real.exp (c / 2)) |
| 200 | simp only [zero_mul] at hh |
| 201 | convert! hh using 1 |
| 202 | funext t |
| 203 | rw [mul_div_assoc, ← Real.exp_sub, mul_assoc, ← Real.exp_add] |
| 204 | congr 2 |
| 205 | ring |
| 206 | have ho : (fun t : ℝ => (1 + t) ^ N * Real.exp (-c * t)) =o[atTop] |
| 207 | (fun t : ℝ => Real.exp (-(c / 2) * t)) := |
| 208 | Asymptotics.isLittleO_of_tendsto (fun t ht => (Real.exp_ne_zero _ ht).elim) hratio |
| 209 | apply integrable_of_isBigO_exp_neg hc2 _ ho.isBigO |
| 210 | exact (((continuous_const.add continuous_id).pow N).mul |
| 211 | ((continuous_const.mul continuous_id).rexp)).continuousOn |
| 212 | |
| 213 | theorem const_polynomial_exp_integrable {c : ℝ} (hc : 0 < c) (C : ℝ) (N : ℕ) : |
| 214 | IntegrableOn (fun t : ℝ => C * (1 + t) ^ N * Real.exp (-c * t)) (Ioi 0) := by |
| 215 | simpa only [IntegrableOn, mul_assoc] using (polynomial_exp_integrable hc N).const_mul C |
| 216 | |
| 217 | theorem kernel_ae_contDiff (c : ℝ) (j : ℕ) {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) : |
| 218 | ∀ᵐ t ∂volume.restrict (Ioi (0 : ℝ)), ContDiff ℝ ∞ (fun x => kernel c j b x t) := by |
| 219 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht |
| 220 | exact NavierStokes.FlatKernelBounds.kernel_contDiff_x hb c j ht.le |
| 221 | |
| 222 | theorem kernel_iteratedDeriv_measurable (c : ℝ) (j : ℕ) {b : ℝ → ℝ} |
| 223 | (hb : ContDiff ℝ ∞ b) (n : ℕ) (x : ℝ) : |
| 224 | AEStronglyMeasurable (fun t => iteratedDeriv n (fun y => kernel c j b y t) x) |
| 225 | (volume.restrict (Ioi 0)) := by |
| 226 | have hcont : ContinuousOn |
| 227 | (fun t => iteratedDeriv n (fun y => kernel c j b y t) x) (Ioi 0) := |
| 228 | (NavierStokes.FlatKernelBounds.kernel_iteratedDeriv_continuousOn_t hb c j n x).mono |
| 229 | Ioi_subset_Ici_self |
| 230 | exact hcont.aestronglyMeasurable measurableSet_Ioi |
| 231 | |
| 232 | /-- All hypotheses for dominated differentiation come from actual kernel |
| 233 | derivatives and polynomial-exponential bounds on bounded parameter sets. -/ |
| 234 | theorem kernel_locallyDominated {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 235 | (hb : ContDiff ℝ ∞ b) : |
| 236 | NavierStokes.SmoothParameterIntegral.LocallyDominatedDeriv |
| 237 | (kernel c j b) (volume.restrict (Ioi 0)) := by |
| 238 | intro n x |
| 239 | have hR : 0 ≤ |x| + 1 := by positivity |
| 240 | obtain ⟨C, N, _hC, hbound⟩ := |
| 241 | NavierStokes.FlatKernelBounds.kernel_iteratedDeriv_bound hb c j n hR |
| 242 | refine ⟨1, by norm_num, (fun t => C * (1 + t) ^ N * Real.exp (-c * t)), |
| 243 | const_polynomial_exp_integrable hc C N, ?_⟩ |
| 244 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht |
| 245 | intro y hy |
| 246 | have hdist : |y - x| < 1 := by simpa only [Metric.mem_ball, Real.dist_eq] using hy |
| 247 | have hyR : |y| ≤ |x| + 1 := by |
| 248 | have htri : |y| ≤ |y - x| + |x| := by |
| 249 | simpa only [sub_add_cancel] using abs_add_le (y - x) x |
| 250 | linarith |
| 251 | simpa only [Real.norm_eq_abs, kernel, FlatKernelBounds.kernel, coordinate, denominator, FlatKernelBounds.coordinate, FlatKernelBounds.denominator] using hbound y t hyR ht.le |
| 252 | |
| 253 | /-- The concrete transformed integral is smooth on all of `ℝ`, including |
| 254 | across the endpoint of the original primitive. -/ |
| 255 | theorem factor_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 256 | (hb : ContDiff ℝ ∞ b) : ContDiff ℝ ∞ (factor c j b) := |
| 257 | NavierStokes.SmoothParameterIntegral.contDiff_integral_of_iteratedDeriv |
| 258 | (kernel_ae_contDiff c j hb) (kernel_iteratedDeriv_measurable c j hb) |
| 259 | (kernel_locallyDominated hc j hb) |
| 260 | |
| 261 | theorem factor_iteratedDeriv {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 262 | (hb : ContDiff ℝ ∞ b) (n : ℕ) (x : ℝ) : |
| 263 | iteratedDeriv n (factor c j b) x = |
| 264 | ∫ t in Ioi (0 : ℝ), iteratedDeriv n (fun y => kernel c j b y t) x := |
| 265 | NavierStokes.SmoothParameterIntegral.iteratedDeriv_integral |
| 266 | (kernel_ae_contDiff c j hb) (kernel_iteratedDeriv_measurable c j hb) |
| 267 | (kernel_locallyDominated hc j hb) n x |
| 268 | |
| 269 | /-- Full smooth factorization of the actual terminal primitive, with its |
| 270 | endpoint value fixed by the coefficient. The smooth factor is constructed |
| 271 | as an improper integral rather than assumed. -/ |
| 272 | theorem exists_smooth_factor {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 273 | (hb : ContDiff ℝ ∞ b) : |
| 274 | ∃ F : ℝ → ℝ, ContDiff ℝ ∞ F ∧ F 0 = b 0 / (2 * c) ∧ |
| 275 | ∀ x : ℝ, 0 ≤ x → primitive c j b x = scale c j x * F x := by |
| 276 | refine ⟨factor c j b, factor_contDiff hc j hb, factor_at_zero hc j b, ?_⟩ |
| 277 | intro x hx |
| 278 | rcases eq_or_lt_of_le hx with hzero | hpos |
| 279 | · subst x |
| 280 | simp |
| 281 | · exact primitive_eq_scale_mul_factor c j b hpos |
| 282 | |
| 283 | theorem integral_exp_eq_primitive (c : ℝ) (j : ℕ) (b : ℝ → ℝ) |
| 284 | {x : ℝ} (hx : 0 ≤ x) : |
| 285 | (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b u) = |
| 286 | primitive c j b x := by |
| 287 | rw [primitive, intervalIntegral.integral_of_le hx, intervalIntegral.integral_of_le hx] |
| 288 | apply setIntegral_congr_fun measurableSet_Ioc |
| 289 | intro u hu |
| 290 | simp only [integrand, edge_of_pos c hu.1] |
| 291 | |
| 292 | theorem scale_eq_rpow (c : ℝ) (j : ℕ) {x : ℝ} (hx : 0 < x) : |
| 293 | scale c j x = Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) := by |
| 294 | rw [scale, edge_of_pos c hx] |
| 295 | calc |
| 296 | (Real.exp (-c / x ^ 2) / x ^ j) * x ^ 3 = |
| 297 | Real.exp (-c / x ^ 2) * (x ^ 3 / x ^ j) := by ring |
| 298 | _ = _ := by |
| 299 | rw [← Real.rpow_natCast x 3, ← Real.rpow_natCast x j, ← Real.rpow_sub hx] |
| 300 | norm_num |
| 301 | |
| 302 | /-- The manuscript's scalar primitive factorization in its original |
| 303 | exponential and real-power notation, with a genuine smooth extension. -/ |
| 304 | theorem exists_smooth_factor_original {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 305 | (hb : ContDiff ℝ ∞ b) : |
| 306 | ∃ F : ℝ → ℝ, ContDiff ℝ ∞ F ∧ F 0 = b 0 / (2 * c) ∧ |
| 307 | ∀ x : ℝ, 0 < x → |
| 308 | (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b u) = |
| 309 | Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) * F x := by |
| 310 | refine ⟨factor c j b, factor_contDiff hc j hb, factor_at_zero hc j b, ?_⟩ |
| 311 | intro x hx |
| 312 | rw [integral_exp_eq_primitive c j b hx.le, |
| 313 | primitive_eq_scale_mul_factor c j b hx, scale_eq_rpow c j hx] |
| 314 | |
| 315 | theorem factor_sqrt_contDiffAt_zero {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 316 | (hb : ContDiff ℝ ∞ b) (hb0 : 0 < b 0) : |
| 317 | ContDiffAt ℝ ∞ (fun x => Real.sqrt (factor c j b x)) 0 := by |
| 318 | apply (factor_contDiff hc j hb).contDiffAt.sqrt |
| 319 | rw [factor_at_zero hc j b] |
| 320 | exact (div_pos hb0 (mul_pos (by norm_num) hc)).ne' |
| 321 | |
| 322 | end NavierStokes.FlatPrimitiveFactor |