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.LocalPaperTheorem |
| 2 | import NavierStokes.BaseExterior |
| 3 | import Mathlib.MeasureTheory.Function.JacobianOneDim |
| 4 | import NavierStokes.DirectAngularDiagonal |
| 5 | |
| 6 | /-! |
| 7 | # The local theorem's literal radial heat formulas |
| 8 | |
| 9 | These consequences use the same fields and normalization as `local_theorem`. |
| 10 | They express the heat exterior in the manuscript's radius coordinate, including |
| 11 | the genuinely integrable pressure tail. |
| 12 | -/ |
| 13 | |
| 14 | /-! ## From `NavierStokes/LocalHeatPressure.lean` |
| 15 | |
| 16 | The text of `NavierStokes/LocalHeatPressure.lean`, folded into this file, which was its only importer. -/ |
| 17 | |
| 18 | section |
| 19 | |
| 20 | /-! |
| 21 | # Canonical heat pressure in the radius coordinate |
| 22 | |
| 23 | The canonical pressure in the regular coordinate `s = r ^ 2 / 2` is exactly |
| 24 | the radius tail integral of the squared heat amplitude divided by the radius. |
| 25 | -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | open Set MeasureTheory |
| 30 | |
| 31 | namespace NavierStokes.LocalHeatPressure |
| 32 | |
| 33 | private theorem radiusChange_image {r : ℝ} (hr : 0 < r) : |
| 34 | (fun ρ : ℝ => ρ ^ 2 / 2) '' Ioi r = Ioi (r ^ 2 / 2) := by |
| 35 | ext s |
| 36 | constructor |
| 37 | · rintro ⟨ρ, hρ, rfl⟩ |
| 38 | change r < ρ at hρ |
| 39 | change r ^ 2 / 2 < ρ ^ 2 / 2 |
| 40 | nlinarith |
| 41 | · intro hs |
| 42 | change r ^ 2 / 2 < s at hs |
| 43 | have hs0 : 0 < s := by |
| 44 | have hr2 := sq_nonneg r |
| 45 | linarith |
| 46 | refine ⟨Real.sqrt (2 * s), ?_, ?_⟩ |
| 47 | · have hsq := Real.sq_sqrt (show 0 ≤ 2 * s by positivity) |
| 48 | have hnonneg := Real.sqrt_nonneg (2 * s) |
| 49 | change r < Real.sqrt (2 * s) |
| 50 | nlinarith |
| 51 | · dsimp only |
| 52 | rw [Real.sq_sqrt (by positivity)] |
| 53 | ring |
| 54 | |
| 55 | private theorem radiusChange_deriv (r ρ : ℝ) : |
| 56 | HasDerivWithinAt (fun x : ℝ => x ^ 2 / 2) ρ (Ioi r) ρ := by |
| 57 | simpa using (((hasDerivAt_id ρ).pow 2).div_const 2).hasDerivWithinAt (s := Ioi r) |
| 58 | |
| 59 | private theorem radiusChange_injOn {r : ℝ} (hr : 0 < r) : |
| 60 | InjOn (fun ρ : ℝ => ρ ^ 2 / 2) (Ioi r) := by |
| 61 | intro x hx y hy hxy |
| 62 | change r < x at hx |
| 63 | change r < y at hy |
| 64 | change x ^ 2 / 2 = y ^ 2 / 2 at hxy |
| 65 | nlinarith |
| 66 | |
| 67 | /-- Change the canonical pressure integral from `s` to the physical radius. -/ |
| 68 | theorem canonicalPressure_radius_integral (F : SimilarityProfile.PhysicalProfile) |
| 69 | (t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 70 | TerminalStress.canonicalPressure F (TerminalStress.radiusPoint t r z) = |
| 71 | -(∫ ρ in Ioi r, ρ * F (TerminalStress.radiusPoint t ρ z) ^ 2) := by |
| 72 | unfold TerminalStress.canonicalPressure TerminalStress.radiusPoint |
| 73 | dsimp only |
| 74 | congr 1 |
| 75 | rw [← radiusChange_image hr] |
| 76 | rw [integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi |
| 77 | (fun ρ _ => radiusChange_deriv r ρ) (radiusChange_injOn hr)] |
| 78 | apply setIntegral_congr_fun measurableSet_Ioi |
| 79 | intro ρ hρ |
| 80 | dsimp only |
| 81 | rw [abs_of_pos (hr.trans hρ), smul_eq_mul] |
| 82 | |
| 83 | /-- The regular swirl coefficient is the heat amplitude divided by the radius. -/ |
| 84 | theorem heatCoefficient_radius (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 85 | BaseExterior.heatCoefficient C h (TerminalStress.radiusPoint t r z) = |
| 86 | TerminalStress.heatAmplitude C (1 + h) t r / r := by |
| 87 | have he := TerminalStress.swirlCoefficient_amplitude C h (fun _ => 1) t z hr |
| 88 | simp only [TerminalStress.radialSlice, TerminalStress.flattening, mul_one] at he |
| 89 | apply (eq_div_iff hr.ne').2 |
| 90 | exact (mul_comm _ _).trans he |
| 91 | |
| 92 | /-- The canonical pure heat pressure is the literal radial improper integral. -/ |
| 93 | theorem heatPressure_radius_integral (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 94 | BaseExterior.heatPressure C h (TerminalStress.radiusPoint t r z) = |
| 95 | -(∫ ρ in Ioi r, TerminalStress.heatAmplitude C (1 + h) t ρ ^ 2 / ρ) := by |
| 96 | rw [BaseExterior.heatPressure, canonicalPressure_radius_integral _ t z hr] |
| 97 | congr 1 |
| 98 | apply setIntegral_congr_fun measurableSet_Ioi |
| 99 | intro ρ hρ |
| 100 | dsimp only |
| 101 | rw [heatCoefficient_radius C h t z (hr.trans hρ)] |
| 102 | field_simp |
| 103 | |
| 104 | /-- The radius pressure integrand is integrable on every positive exterior tail. -/ |
| 105 | theorem heatAmplitude_sq_div_integrable (C : ℝ) {h t r : ℝ} |
| 106 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) : |
| 107 | IntegrableOn (fun ρ => TerminalStress.heatAmplitude C (1 + h) t ρ ^ 2 / ρ) |
| 108 | (Ioi r) := by |
| 109 | have hi := BaseExterior.heatCoefficient_sq_integrable C hh hh1 |
| 110 | (z := 0) ht (show 0 < r ^ 2 / 2 by positivity) |
| 111 | rw [← radiusChange_image hr] at hi |
| 112 | have hi' := (integrableOn_image_iff_integrableOn_abs_deriv_smul measurableSet_Ioi |
| 113 | (fun ρ _ => radiusChange_deriv r ρ) (radiusChange_injOn hr) |
| 114 | (fun s => BaseExterior.heatCoefficient C h (t, (s, 0)) ^ 2)).mp hi |
| 115 | apply hi'.congr_fun _ measurableSet_Ioi |
| 116 | intro ρ hρ |
| 117 | change |ρ| • BaseExterior.heatCoefficient C h |
| 118 | (TerminalStress.radiusPoint t ρ 0) ^ 2 = _ |
| 119 | rw [abs_of_pos (hr.trans hρ), smul_eq_mul, |
| 120 | heatCoefficient_radius C h t 0 (hr.trans hρ)] |
| 121 | field_simp |
| 122 | |
| 123 | end NavierStokes.LocalHeatPressure |
| 124 | end |
| 125 | |
| 126 | end |
| 127 | |
| 128 | /-! ## From `NavierStokes/LocalHeatFormula.lean` |
| 129 | |
| 130 | The text of `NavierStokes/LocalHeatFormula.lean`, folded into this file, which was its only importer. -/ |
| 131 | |
| 132 | section |
| 133 | |
| 134 | /-! |
| 135 | # The literal exterior heat profile in radial coordinates |
| 136 | |
| 137 | This packages the existing heat solution using the manuscript's argument |
| 138 | `τ / r²`, with its fixed normalization absorbed into the exterior profile. |
| 139 | -/ |
| 140 | |
| 141 | noncomputable section |
| 142 | |
| 143 | namespace NavierStokes.LocalHeatFormula |
| 144 | |
| 145 | open Set |
| 146 | open scoped ContDiff |
| 147 | |
| 148 | /-- The exterior profile with the fixed physical normalization absorbed. -/ |
| 149 | noncomputable def exteriorProfile (C h y : ℝ) : ℝ := |
| 150 | C * (2 : ℝ) ^ (1 / 2 + h) * RadialHeatProfile.profile (1 + h) (4 * y) |
| 151 | |
| 152 | theorem exteriorProfile_smooth (C : ℝ) {h : ℝ} (hh : 0 < h) : |
| 153 | ContDiffOn ℝ ∞ (exteriorProfile C h) (Ici 0) := by |
| 154 | have hm : MapsTo (fun y : ℝ => 4 * y) (Ici 0) (Ici 0) := by |
| 155 | intro y hy |
| 156 | exact mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hy |
| 157 | exact contDiffOn_const.mul |
| 158 | ((RadialHeatProfile.profile_contDiffOn (show 1 < 1 + h by linarith)).comp |
| 159 | (contDiffOn_const.mul contDiffOn_id) hm) |
| 160 | |
| 161 | theorem exteriorProfile_iteratedDerivWithin (C : ℝ) {h : ℝ} (hh : 0 < h) |
| 162 | (n : ℕ) {y : ℝ} (hy : 0 ≤ y) : |
| 163 | iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y = |
| 164 | (C * (2 : ℝ) ^ (1 / 2 + h)) * (4 : ℝ) ^ n * |
| 165 | iteratedDerivWithin n (RadialHeatProfile.profile (1 + h)) (Ici 0) (4 * y) := by |
| 166 | unfold exteriorProfile |
| 167 | rw [iteratedDerivWithin_const_mul_field] |
| 168 | rw [iteratedDerivWithin_comp_const_smul (s := Ici (0 : ℝ)) hy (uniqueDiffOn_Ici 0) |
| 169 | ((RadialHeatProfile.profile_contDiffOn (show 1 < 1 + h by linarith)).of_le |
| 170 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)) 4 |
| 171 | (fun z hz => mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hz)] |
| 172 | simp only [smul_eq_mul, mul_assoc] |
| 173 | |
| 174 | /-- A finite bound independent of the nonnegative profile argument. -/ |
| 175 | noncomputable def exteriorDerivativeBound (C h : ℝ) (n : ℕ) : ℝ := |
| 176 | |C * (2 : ℝ) ^ (1 / 2 + h)| * (4 : ℝ) ^ n * |
| 177 | (|(Real.Gamma (1 + h))⁻¹ * RadialHeatProfile.derivativeCoeff (1 + h) n| * |
| 178 | Real.Gamma (1 + h + (n : ℝ))) |
| 179 | |
| 180 | theorem exteriorProfile_derivative_bound (C : ℝ) {h : ℝ} (hh : 0 < h) |
| 181 | (n : ℕ) {y : ℝ} (hy : 0 ≤ y) : |
| 182 | |iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y| ≤ exteriorDerivativeBound C h n := by |
| 183 | rw [exteriorProfile_iteratedDerivWithin C hh n hy, abs_mul, abs_mul, |
| 184 | abs_of_nonneg (show 0 ≤ (4 : ℝ) ^ n by positivity)] |
| 185 | exact mul_le_mul_of_nonneg_left |
| 186 | (RadialHeatProfile.profile_derivative_bound (show 1 < 1 + h by linarith) n |
| 187 | (mul_nonneg (by norm_num) hy)) (by positivity) |
| 188 | |
| 189 | theorem exteriorProfile_all_derivatives_bounded (C : ℝ) {h : ℝ} (hh : 0 < h) (n : ℕ) : |
| 190 | ∃ M : ℝ, 0 ≤ M ∧ ∀ y ∈ Ici (0 : ℝ), |
| 191 | |iteratedDerivWithin n (exteriorProfile C h) (Ici 0) y| ≤ M := by |
| 192 | refine ⟨exteriorDerivativeBound C h n, ?_, fun y hy => exteriorProfile_derivative_bound C hh n hy⟩ |
| 193 | exact (abs_nonneg _).trans (exteriorProfile_derivative_bound C hh n (y := 0) le_rfl) |
| 194 | |
| 195 | /-- The angular speed expressed using backward time. -/ |
| 196 | noncomputable def amplitude (C h τ r : ℝ) : ℝ := |
| 197 | C * RadialHeatProfile.radialProfile (1 + h) τ r |
| 198 | |
| 199 | theorem amplitude_formula (C h τ : ℝ) {r : ℝ} (hr : 0 < r) : |
| 200 | amplitude C h τ r = r ^ (-1 - 2 * h) * exteriorProfile C h (τ / r ^ 2) := by |
| 201 | have hpow : (r ^ 2 / 2) ^ (-(1 / 2 + h)) = |
| 202 | r ^ (-1 - 2 * h) * (2 : ℝ) ^ (1 / 2 + h) := by |
| 203 | rw [Real.div_rpow (sq_nonneg r) (by norm_num), ← Real.rpow_natCast r 2, |
| 204 | ← Real.rpow_mul hr.le] |
| 205 | norm_num only [Nat.cast_ofNat] |
| 206 | rw [show (2 : ℝ) * -(1 / 2 + h) = -1 - 2 * h by ring, |
| 207 | Real.rpow_neg (by norm_num : (0 : ℝ) ≤ 2), div_inv_eq_mul] |
| 208 | have harg : 2 * τ / (r ^ 2 / 2) = 4 * (τ / r ^ 2) := by ring |
| 209 | rw [amplitude, RadialHeatProfile.radialProfile_source_formula, hpow, harg, exteriorProfile] |
| 210 | ring |
| 211 | |
| 212 | theorem amplitude_heat_equation (C : ℝ) {h τ r : ℝ} |
| 213 | (hh : 0 < h) (hτ : 0 < τ) (hr : 0 < r) : |
| 214 | -deriv (fun τ => amplitude C h τ r) τ = |
| 215 | iteratedDeriv 2 (amplitude C h τ) r + deriv (amplitude C h τ) r / r - |
| 216 | amplitude C h τ r / r ^ 2 := by |
| 217 | have he := RadialHeatProfile.radial_heat_equation (show 1 < 1 + h by linarith) hτ hr |
| 218 | change -deriv (fun τ => C * RadialHeatProfile.radialProfile (1 + h) τ r) τ = |
| 219 | iteratedDeriv 2 (fun r => C * RadialHeatProfile.radialProfile (1 + h) τ r) r + |
| 220 | deriv (fun r => C * RadialHeatProfile.radialProfile (1 + h) τ r) r / r - |
| 221 | C * RadialHeatProfile.radialProfile (1 + h) τ r / r ^ 2 |
| 222 | rw [iteratedDeriv_const_mul_field, deriv_const_mul_field, deriv_const_mul_field] |
| 223 | linear_combination C * he |
| 224 | |
| 225 | theorem amplitude_eq_heatAmplitude (C h t r : ℝ) : |
| 226 | amplitude C h (1 - t) r = TerminalStress.heatAmplitude C (1 + h) t r := rfl |
| 227 | |
| 228 | theorem heatCoefficient_radius (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 229 | BaseExterior.heatCoefficient C h (TerminalStress.radiusPoint t r z) = |
| 230 | amplitude C h (1 - t) r / r := by |
| 231 | have he := TerminalStress.swirlCoefficient_amplitude C h (fun _ => 1) t z hr |
| 232 | simp only [TerminalStress.radialSlice, TerminalStress.flattening, mul_one] at he |
| 233 | apply (eq_div_iff hr.ne').mpr |
| 234 | simpa only [BaseExterior.heatCoefficient, amplitude_eq_heatAmplitude, mul_comm] using he |
| 235 | |
| 236 | theorem heatVelocity_formula (C h : ℝ) {w : ProblemStatement.SpaceTime} |
| 237 | (hs : 0 < AxisymmetricFields.radialEnergy w.2) : |
| 238 | BaseExterior.heatVelocity C h w = |
| 239 | (amplitude C h (1 - w.1) (Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2)) / |
| 240 | Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2)) • BaseResidual.angularVector w := by |
| 241 | rw [BaseExterior.heatVelocity_eq_angularVector] |
| 242 | have he := heatCoefficient_radius C h w.1 (w.2 2) |
| 243 | (show 0 < Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2) by positivity) |
| 244 | rw [TerminalStress.radiusPoint_profilePoint hs.le] at he |
| 245 | rw [he] |
| 246 | |
| 247 | end NavierStokes.LocalHeatFormula |
| 248 | end |
| 249 | |
| 250 | end |
| 251 | |
| 252 | noncomputable section |
| 253 | |
| 254 | namespace NavierStokes.LocalPaper |
| 255 | |
| 256 | open Set MeasureTheory ProblemStatement |
| 257 | open scoped ContDiff |
| 258 | |
| 259 | variable {h qstar Xa Xext C : ℝ} {A D u : VelocityField} {p : PressureField} |
| 260 | |
| 261 | theorem Properties.exterior_profile_smooth |
| 262 | (hp : Properties h qstar Xa Xext C A D u p) : |
| 263 | ContDiffOn ℝ ∞ (LocalHeatFormula.exteriorProfile C h) (Ici 0) := |
| 264 | LocalHeatFormula.exteriorProfile_smooth C hp.exponent_small.1 |
| 265 | |
| 266 | theorem Properties.exterior_profile_derivatives_bounded |
| 267 | (hp : Properties h qstar Xa Xext C A D u p) (n : ℕ) : |
| 268 | ∃ M : ℝ, 0 ≤ M ∧ ∀ y ∈ Ici (0 : ℝ), |
| 269 | |iteratedDerivWithin n (LocalHeatFormula.exteriorProfile C h) (Ici 0) y| ≤ M := |
| 270 | LocalHeatFormula.exteriorProfile_all_derivatives_bounded C hp.exponent_small.1 n |
| 271 | |
| 272 | /-- The exterior angular magnitude is exactly `r^(-1-2h) H_ext(τ/r²)`. -/ |
| 273 | theorem Properties.exterior_amplitude_formula |
| 274 | (_hp : Properties h qstar Xa Xext C A D u p) (τ : ℝ) {r : ℝ} (hr : 0 < r) : |
| 275 | LocalHeatFormula.amplitude C h τ r = |
| 276 | r ^ (-1 - 2 * h) * LocalHeatFormula.exteriorProfile C h (τ / r ^ 2) := |
| 277 | LocalHeatFormula.amplitude_formula C h τ hr |
| 278 | |
| 279 | theorem Properties.exterior_heat_equation |
| 280 | (hp : Properties h qstar Xa Xext C A D u p) {τ r : ℝ} |
| 281 | (hτ : 0 < τ) (hr : 0 < r) : |
| 282 | -deriv (fun τ => LocalHeatFormula.amplitude C h τ r) τ = |
| 283 | iteratedDeriv 2 (LocalHeatFormula.amplitude C h τ) r + |
| 284 | deriv (LocalHeatFormula.amplitude C h τ) r / r - |
| 285 | LocalHeatFormula.amplitude C h τ r / r ^ 2 := |
| 286 | LocalHeatFormula.amplitude_heat_equation C hp.exponent_small.1 hτ hr |
| 287 | |
| 288 | /-- The same exterior direct field is `K eθ`, and its pressure is the |
| 289 | literal radius integral `-∫ K²/ρ`; the integrability assertion is explicit. -/ |
| 290 | theorem Properties.exterior_radial_form |
| 291 | (hp : Properties h qstar Xa Xext C A D u p) {w : SpaceTime} |
| 292 | (ht : w.1 < 1) (hq : PhysicalWaveSum.physicalQ h w < qstar) |
| 293 | (hX : Xext ≤ AxisymmetricFields.radialEnergy w.2 / PhysicalWaveSum.physicalQ h w) : |
| 294 | let r := Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2) |
| 295 | 0 < r ∧ |
| 296 | D w = (LocalHeatFormula.amplitude C h (1 - w.1) r / r) • BaseResidual.angularVector w ∧ |
| 297 | p w = -(∫ ρ in Ioi r, LocalHeatFormula.amplitude C h (1 - w.1) ρ ^ 2 / ρ) ∧ |
| 298 | IntegrableOn (fun ρ => LocalHeatFormula.amplitude C h (1 - w.1) ρ ^ 2 / ρ) (Ioi r) := by |
| 299 | have hh1 : h < 1 / 2 := by linarith [hp.exponent_small.2] |
| 300 | have hq0 := PhysicalWaveSum.physicalQ_pos hp.exponent_small.1 hh1 ht |
| 301 | have hXe : 0 < Xext := hp.edges_ordered.1.trans hp.edges_ordered.2 |
| 302 | have hs : 0 < AxisymmetricFields.radialEnergy w.2 := |
| 303 | (mul_pos hXe hq0).trans_le ((le_div_iff₀ hq0).mp hX) |
| 304 | have hr : 0 < Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2) := by positivity |
| 305 | obtain ⟨_, hD, hP, _⟩ := hp.exterior w ht hq hX |
| 306 | refine ⟨hr, hD.trans (LocalHeatFormula.heatVelocity_formula C h hs), ?_, ?_⟩ |
| 307 | · rw [hP] |
| 308 | have he := LocalHeatPressure.heatPressure_radius_integral C h w.1 (w.2 2) hr |
| 309 | rw [TerminalStress.radiusPoint_profilePoint hs.le] at he |
| 310 | exact he |
| 311 | · exact LocalHeatPressure.heatAmplitude_sq_div_integrable C hp.exponent_small.1 hh1 ht hr |
| 312 | |
| 313 | end NavierStokes.LocalPaper |