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.FlatPrimitiveFactor |
| 2 | import NavierStokes.ParametricKernelBounds |
| 3 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 4 | |
| 5 | /-! |
| 6 | # Joint dependence of terminal flat primitive factors |
| 7 | |
| 8 | The coefficient depends on a finite-dimensional auxiliary parameter and the |
| 9 | edge coordinate. The factor is the actual transformed improper integral. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open Filter Topology Set MeasureTheory |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | namespace NavierStokes.ParametricFlatFactor |
| 18 | |
| 19 | section PartialJets |
| 20 | |
| 21 | variable {P Y Z : Type*} |
| 22 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 23 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 24 | [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 25 | |
| 26 | /-- Actual iterated partial derivatives retain local joint smoothness. |
| 27 | The proof uses the derivative recursion, not independently supplied jets. -/ |
| 28 | theorem contDiffAt_partial_iteratedFDeriv (F : P → Y → Z) (n : ℕ) (p : P) (y : Y) |
| 29 | (hF : ContDiffAt ℝ ∞ (Function.uncurry F) (p, y)) : |
| 30 | ContDiffAt ℝ ∞ (fun z : P × Y => iteratedFDeriv ℝ n (F z.1) z.2) (p, y) := by |
| 31 | induction n with |
| 32 | | zero => |
| 33 | simp only [iteratedFDeriv_zero_eq_comp, Function.comp_apply] |
| 34 | exact hF.continuousLinearMap_comp |
| 35 | ((continuousMultilinearCurryFin0 ℝ Y Z).symm : Z →L[ℝ] Y [×0]→L[ℝ] Z) |
| 36 | | succ n ih => |
| 37 | have hdup : ContDiffAt ℝ ∞ |
| 38 | (fun q : (P × Y) × Y => iteratedFDeriv ℝ n (F q.1.1) q.2) |
| 39 | ((p, y), y) := |
| 40 | ih.comp ((p, y), y) (contDiffAt_fst.fst.prodMk contDiffAt_snd) |
| 41 | have hd : ContDiffAt ℝ ∞ |
| 42 | (fun z : P × Y => fderiv ℝ (iteratedFDeriv ℝ n (F z.1)) z.2) (p, y) := |
| 43 | hdup.fderiv contDiffAt_snd (by simp) |
| 44 | simp only [iteratedFDeriv_succ_eq_comp_left, Function.comp_apply] |
| 45 | exact hd.continuousLinearMap_comp |
| 46 | ((continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (n + 1) => Y) Z).symm : |
| 47 | (Y →L[ℝ] Y [×n]→L[ℝ] Z) →L[ℝ] Y [×(n + 1)]→L[ℝ] Z) |
| 48 | |
| 49 | end PartialJets |
| 50 | |
| 51 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 52 | |
| 53 | def kernel (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) (y : E × ℝ) (t : ℝ) : ℝ := |
| 54 | (1 / 2 : ℝ) * Real.exp (-c * t) * |
| 55 | (FlatPrimitiveFactor.denominator y.2 t ^ j / |
| 56 | FlatPrimitiveFactor.denominator y.2 t ^ 3) * |
| 57 | b (y.1, FlatPrimitiveFactor.coordinate y.2 t) |
| 58 | |
| 59 | def factor (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) (y : E × ℝ) : ℝ := |
| 60 | ∫ t in Ioi (0 : ℝ), kernel c j b y t |
| 61 | |
| 62 | def primitive (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) (y : E × ℝ) : ℝ := |
| 63 | FlatPrimitive.primitive c j (fun u => b (y.1, u)) y.2 |
| 64 | |
| 65 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 66 | theorem factor_eq_scalar (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) (p : E) (x : ℝ) : |
| 67 | factor c j b (p, x) = FlatPrimitiveFactor.factor c j (fun u => b (p, u)) x := rfl |
| 68 | |
| 69 | theorem coefficient_slice_contDiff {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) (p : E) : |
| 70 | ContDiff ℝ ∞ (fun u : ℝ => b (p, u)) := |
| 71 | hb.comp (contDiff_const.prodMk contDiff_id) |
| 72 | |
| 73 | theorem factor_slice_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) {b : E × ℝ → ℝ} |
| 74 | (hb : ContDiff ℝ ∞ b) (p : E) : ContDiff ℝ ∞ (fun x => factor c j b (p, x)) := |
| 75 | FlatPrimitiveFactor.factor_contDiff hc j (coefficient_slice_contDiff hb p) |
| 76 | |
| 77 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 78 | theorem factor_at_zero {c : ℝ} (hc : 0 < c) (j : ℕ) (b : E × ℝ → ℝ) (p : E) : |
| 79 | factor c j b (p, 0) = b (p, 0) / (2 * c) := |
| 80 | FlatPrimitiveFactor.factor_at_zero hc j (fun u => b (p, u)) |
| 81 | |
| 82 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 83 | theorem primitive_factorization (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) |
| 84 | (p : E) {x : ℝ} (hx : 0 < x) : |
| 85 | FlatPrimitive.primitive c j (fun u => b (p, u)) x = |
| 86 | FlatPrimitive.scale c j x * factor c j b (p, x) := |
| 87 | FlatPrimitiveFactor.primitive_eq_scale_mul_factor c j (fun u => b (p, u)) hx |
| 88 | |
| 89 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 90 | theorem primitive_eq_scale_mul_factor (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) |
| 91 | (y : E × ℝ) : |
| 92 | primitive c j b y = FlatPrimitive.scale c j y.2 * factor c j b y := by |
| 93 | by_cases hx : y.2 ≤ 0 |
| 94 | · simp [primitive, FlatPrimitive.primitive_of_nonpos c j _ hx, |
| 95 | FlatPrimitive.scale, FlatCutoff.edge_of_nonpos c hx] |
| 96 | · exact primitive_factorization c j b y.1 (lt_of_not_ge hx) |
| 97 | |
| 98 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 99 | theorem integral_original_factorization (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) |
| 100 | (p : E) {x : ℝ} (hx : 0 < x) : |
| 101 | (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b (p, u)) = |
| 102 | Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) * factor c j b (p, x) := by |
| 103 | rw [FlatPrimitiveFactor.integral_exp_eq_primitive c j (fun u => b (p, u)) hx.le, |
| 104 | primitive_factorization c j b p hx, FlatPrimitiveFactor.scale_eq_rpow c j hx] |
| 105 | |
| 106 | theorem kernel_joint_contDiffAt (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 107 | (hb : ContDiff ℝ ∞ b) (y : E × ℝ) {t : ℝ} (ht : 0 < t) : |
| 108 | ContDiffAt ℝ ∞ (fun q : ℝ × (E × ℝ) => kernel c j b q.2 q.1) (t, y) := by |
| 109 | have hinner : ContDiffAt ℝ ∞ |
| 110 | (fun q : ℝ × (E × ℝ) => 1 + q.2.2 ^ 2 * q.1) (t, y) := |
| 111 | contDiffAt_const.add ((contDiffAt_snd.snd.pow 2).mul contDiffAt_fst) |
| 112 | have hd : ContDiffAt ℝ ∞ |
| 113 | (fun q : ℝ × (E × ℝ) => FlatPrimitiveFactor.denominator q.2.2 q.1) (t, y) := |
| 114 | hinner.sqrt (FlatPrimitiveFactor.denominator_inner_pos y.2 ht.le).ne' |
| 115 | have hcoord : ContDiffAt ℝ ∞ |
| 116 | (fun q : ℝ × (E × ℝ) => FlatPrimitiveFactor.coordinate q.2.2 q.1) (t, y) := |
| 117 | contDiffAt_snd.snd.div hd (FlatPrimitiveFactor.denominator_pos y.2 ht.le).ne' |
| 118 | have hcoef : ContDiffAt ℝ ∞ |
| 119 | (fun q : ℝ × (E × ℝ) => b (q.2.1, FlatPrimitiveFactor.coordinate q.2.2 q.1)) |
| 120 | (t, y) := |
| 121 | hb.contDiffAt.comp (t, y) (contDiffAt_snd.fst.prodMk hcoord) |
| 122 | have he : ContDiffAt ℝ ∞ (fun q : ℝ × (E × ℝ) => Real.exp (-c * q.1)) (t, y) := |
| 123 | (contDiffAt_const.mul contDiffAt_fst).exp |
| 124 | exact ((contDiffAt_const.mul he).mul |
| 125 | ((hd.pow j).div (hd.pow 3) |
| 126 | (pow_ne_zero 3 (FlatPrimitiveFactor.denominator_pos y.2 ht.le).ne'))).mul hcoef |
| 127 | |
| 128 | theorem kernel_contDiff_param (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 129 | (hb : ContDiff ℝ ∞ b) {t : ℝ} (ht : 0 < t) : |
| 130 | ContDiff ℝ ∞ (fun y : E × ℝ => kernel c j b y t) := by |
| 131 | rw [contDiff_iff_contDiffAt] |
| 132 | intro y |
| 133 | exact (kernel_joint_contDiffAt c j hb y ht).comp y |
| 134 | (contDiffAt_const.prodMk contDiffAt_id) |
| 135 | |
| 136 | theorem kernel_ae_contDiff (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 137 | (hb : ContDiff ℝ ∞ b) : |
| 138 | ∀ᵐ t ∂volume.restrict (Ioi (0 : ℝ)), |
| 139 | ContDiff ℝ ∞ (fun y : E × ℝ => kernel c j b y t) := by |
| 140 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht |
| 141 | exact kernel_contDiff_param c j hb ht |
| 142 | |
| 143 | /-- Joint smoothness gives measurability of every actual parameter derivative |
| 144 | in the integration variable. -/ |
| 145 | theorem kernel_jet_continuousOn (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 146 | (hb : ContDiff ℝ ∞ b) (n : ℕ) (y : E × ℝ) : |
| 147 | ContinuousOn (fun t => iteratedFDeriv ℝ n (fun z => kernel c j b z t) y) (Ioi 0) := by |
| 148 | intro t ht |
| 149 | have hp := contDiffAt_partial_iteratedFDeriv (fun t z => kernel c j b z t) n t y |
| 150 | (kernel_joint_contDiffAt c j hb y ht) |
| 151 | exact (hp.comp t (contDiffAt_id.prodMk contDiffAt_const)).continuousAt.continuousWithinAt |
| 152 | |
| 153 | theorem kernel_jet_measurable (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 154 | (hb : ContDiff ℝ ∞ b) (n : ℕ) (y : E × ℝ) : |
| 155 | AEStronglyMeasurable |
| 156 | (fun t => iteratedFDeriv ℝ n (fun z => kernel c j b z t) y) |
| 157 | (volume.restrict (Ioi 0)) := |
| 158 | (kernel_jet_continuousOn c j hb n y).aestronglyMeasurable measurableSet_Ioi |
| 159 | |
| 160 | section FiniteParameters |
| 161 | |
| 162 | variable [FiniteDimensional ℝ E] |
| 163 | |
| 164 | /-- Finitely many actual coefficient derivatives have one common bound on |
| 165 | each bounded closed parameter-coordinate ball. -/ |
| 166 | theorem bounded_coefficient_jets {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) |
| 167 | (R : ℝ) (n : ℕ) : |
| 168 | ∃ B : ℝ, 0 ≤ B ∧ ∀ k ≤ n, ∀ z : E × ℝ, ‖z‖ ≤ R → |
| 169 | ‖iteratedFDeriv ℝ k b z‖ ≤ B := by |
| 170 | have hkbound (k : ℕ) : ∃ B : ℝ, 0 ≤ B ∧ ∀ z : E × ℝ, ‖z‖ ≤ R → |
| 171 | ‖iteratedFDeriv ℝ k b z‖ ≤ B := by |
| 172 | have hcont := hb.continuous_iteratedFDeriv |
| 173 | (m := k) (le_of_lt (WithTop.coe_lt_coe.mpr (ENat.natCast_lt_top k))) |
| 174 | obtain ⟨B, hB⟩ := (isCompact_closedBall (0 : E × ℝ) R).exists_bound_of_continuousOn |
| 175 | hcont.continuousOn |
| 176 | refine ⟨max B 0, le_max_right _ _, ?_⟩ |
| 177 | intro z hz |
| 178 | exact (hB z (by simpa only [Metric.mem_closedBall, dist_zero_right] using hz)).trans |
| 179 | (le_max_left _ _) |
| 180 | induction n with |
| 181 | | zero => |
| 182 | obtain ⟨B, hB, hbnd⟩ := hkbound 0 |
| 183 | refine ⟨B, hB, ?_⟩ |
| 184 | intro k hk z hz |
| 185 | have hk0 : k = 0 := Nat.eq_zero_of_le_zero hk |
| 186 | subst k |
| 187 | exact hbnd z hz |
| 188 | | succ n ih => |
| 189 | obtain ⟨B, hB, hprev⟩ := ih |
| 190 | obtain ⟨C, _hC, hcur⟩ := hkbound (n + 1) |
| 191 | refine ⟨max B C, hB.trans (le_max_left _ _), ?_⟩ |
| 192 | intro k hk z hz |
| 193 | rcases lt_or_eq_of_le hk with hlt | rfl |
| 194 | · exact (hprev k (Nat.le_of_lt_succ hlt) z hz).trans (le_max_left _ _) |
| 195 | · exact (hcur z hz).trans (le_max_right _ _) |
| 196 | |
| 197 | /-- Uniform bounds for the coefficient jets on compact parameter sets, |
| 198 | together with the concrete joint kernel estimate, provide the integrable |
| 199 | majorants required for actual Fréchet differentiation under the integral. -/ |
| 200 | theorem kernel_locallyDominated {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 201 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) : |
| 202 | SmoothParameterIntegral.LocallyDominated |
| 203 | (kernel c j b) (volume.restrict (Ioi 0)) := by |
| 204 | intro n y |
| 205 | obtain ⟨B, hB, hjets⟩ := bounded_coefficient_jets hb (‖y‖ + 1) n |
| 206 | have hR : 0 ≤ ‖y‖ + 1 := by positivity |
| 207 | obtain ⟨C, N, _hC, hbound⟩ := |
| 208 | ParametricKernelBounds.kernel_iteratedFDeriv_bound_of_jetBounds hb c j n hR hB hjets |
| 209 | refine ⟨1, by norm_num, (fun t => C * (1 + t) ^ N * Real.exp (-c * t)), |
| 210 | FlatPrimitiveFactor.const_polynomial_exp_integrable hc C N, ?_⟩ |
| 211 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht |
| 212 | intro z hz |
| 213 | have hdist : ‖z - y‖ < 1 := by simpa only [Metric.mem_ball, dist_eq_norm] using hz |
| 214 | have hzR : ‖z‖ ≤ ‖y‖ + 1 := by |
| 215 | have htri : ‖z‖ ≤ ‖z - y‖ + ‖y‖ := by |
| 216 | simpa only [sub_add_cancel] using norm_add_le (z - y) y |
| 217 | linarith |
| 218 | exact hbound z t hzR ht.le |
| 219 | |
| 220 | /-- The constructed normalized factor is jointly smooth in every auxiliary |
| 221 | parameter and the edge coordinate. -/ |
| 222 | theorem factor_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 223 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) : |
| 224 | ContDiff ℝ ∞ (factor c j b) := |
| 225 | SmoothParameterIntegral.contDiff_integral (kernel_ae_contDiff c j hb) |
| 226 | (kernel_jet_measurable c j hb) (kernel_locallyDominated hc j hb) |
| 227 | |
| 228 | /-- This formula includes all mixed parameter/edge derivatives as genuine |
| 229 | Fréchet derivatives, with the corresponding multilinear maps integrated. -/ |
| 230 | theorem factor_iteratedFDeriv {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 231 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) (n : ℕ) (y : E × ℝ) : |
| 232 | iteratedFDeriv ℝ n (factor c j b) y = |
| 233 | ∫ t in Ioi (0 : ℝ), iteratedFDeriv ℝ n (fun z => kernel c j b z t) y := |
| 234 | SmoothParameterIntegral.iteratedFDeriv_integral (kernel_ae_contDiff c j hb) |
| 235 | (kernel_jet_measurable c j hb) (kernel_locallyDominated hc j hb) n y |
| 236 | |
| 237 | theorem primitive_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 238 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) : |
| 239 | ContDiff ℝ ∞ (primitive c j b) := by |
| 240 | have heq : primitive c j b = |
| 241 | fun y => FlatPrimitive.scale c j y.2 * factor c j b y := |
| 242 | funext (primitive_eq_scale_mul_factor c j b) |
| 243 | rw [heq] |
| 244 | exact ((FlatPrimitive.scale_contDiff hc j).comp contDiff_snd).mul |
| 245 | (factor_contDiff hc j hb) |
| 246 | |
| 247 | /-- Jointly smooth factorization with no assumed factor smoothness or |
| 248 | integrable derivative bounds in its hypotheses. -/ |
| 249 | theorem exists_joint_smooth_factor {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 250 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) : |
| 251 | ∃ F : E × ℝ → ℝ, ContDiff ℝ ∞ F ∧ |
| 252 | (∀ p : E, F (p, 0) = b (p, 0) / (2 * c)) ∧ |
| 253 | ∀ (p : E) (x : ℝ), 0 < x → |
| 254 | (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b (p, u)) = |
| 255 | Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) * F (p, x) := |
| 256 | ⟨factor c j b, factor_contDiff hc j hb, factor_at_zero hc j b, |
| 257 | fun p _x hx => integral_original_factorization c j b p hx⟩ |
| 258 | |
| 259 | theorem factor_sqrt_contDiffAt_zero {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 260 | {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ b) (p : E) (hbp : 0 < b (p, 0)) : |
| 261 | ContDiffAt ℝ ∞ (fun y => Real.sqrt (factor c j b y)) (p, 0) := by |
| 262 | apply (factor_contDiff hc j hb).contDiffAt.sqrt |
| 263 | rw [factor_at_zero hc j b p] |
| 264 | exact (div_pos hbp (mul_pos (by norm_num) hc)).ne' |
| 265 | |
| 266 | end FiniteParameters |
| 267 | |
| 268 | end NavierStokes.ParametricFlatFactor |