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.BaseExterior |
| 2 | import Mathlib.MeasureTheory.Function.JacobianOneDim |
| 3 | |
| 4 | /-! |
| 5 | # Canonical heat pressure in the radius coordinate |
| 6 | |
| 7 | The canonical pressure in the regular coordinate `s = r ^ 2 / 2` is exactly |
| 8 | the radius tail integral of the squared heat amplitude divided by the radius. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | |
| 15 | namespace NavierStokes.LocalHeatPressure |
| 16 | |
| 17 | private theorem radiusChange_image {r : ℝ} (hr : 0 < r) : |
| 18 | (fun ρ : ℝ => ρ ^ 2 / 2) '' Ioi r = Ioi (r ^ 2 / 2) := by |
| 19 | ext s |
| 20 | constructor |
| 21 | · rintro ⟨ρ, hρ, rfl⟩ |
| 22 | change r < ρ at hρ |
| 23 | change r ^ 2 / 2 < ρ ^ 2 / 2 |
| 24 | nlinarith |
| 25 | · intro hs |
| 26 | change r ^ 2 / 2 < s at hs |
| 27 | have hs0 : 0 < s := by |
| 28 | have hr2 := sq_nonneg r |
| 29 | linarith |
| 30 | refine ⟨Real.sqrt (2 * s), ?_, ?_⟩ |
| 31 | · have hsq := Real.sq_sqrt (show 0 ≤ 2 * s by positivity) |
| 32 | have hnonneg := Real.sqrt_nonneg (2 * s) |
| 33 | change r < Real.sqrt (2 * s) |
| 34 | nlinarith |
| 35 | · dsimp only |
| 36 | rw [Real.sq_sqrt (by positivity)] |
| 37 | ring |
| 38 | |
| 39 | private theorem radiusChange_deriv (r ρ : ℝ) : |
| 40 | HasDerivWithinAt (fun x : ℝ => x ^ 2 / 2) ρ (Ioi r) ρ := by |
| 41 | simpa using (((hasDerivAt_id ρ).pow 2).div_const 2).hasDerivWithinAt (s := Ioi r) |
| 42 | |
| 43 | private theorem radiusChange_injOn {r : ℝ} (hr : 0 < r) : |
| 44 | InjOn (fun ρ : ℝ => ρ ^ 2 / 2) (Ioi r) := by |
| 45 | intro x hx y hy hxy |
| 46 | change r < x at hx |
| 47 | change r < y at hy |
| 48 | change x ^ 2 / 2 = y ^ 2 / 2 at hxy |
| 49 | nlinarith |
| 50 | |
| 51 | /-- Change the canonical pressure integral from `s` to the physical radius. -/ |
| 52 | theorem canonicalPressure_radius_integral (F : SimilarityProfile.PhysicalProfile) |
| 53 | (t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 54 | TerminalStress.canonicalPressure F (TerminalStress.radiusPoint t r z) = |
| 55 | -(∫ ρ in Ioi r, ρ * F (TerminalStress.radiusPoint t ρ z) ^ 2) := by |
| 56 | unfold TerminalStress.canonicalPressure TerminalStress.radiusPoint |
| 57 | dsimp only |
| 58 | congr 1 |
| 59 | rw [← radiusChange_image hr] |
| 60 | rw [integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi |
| 61 | (fun ρ _ => radiusChange_deriv r ρ) (radiusChange_injOn hr)] |
| 62 | apply setIntegral_congr_fun measurableSet_Ioi |
| 63 | intro ρ hρ |
| 64 | dsimp only |
| 65 | rw [abs_of_pos (hr.trans hρ), smul_eq_mul] |
| 66 | |
| 67 | /-- The regular swirl coefficient is the heat amplitude divided by the radius. -/ |
| 68 | theorem heatCoefficient_radius (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 69 | BaseExterior.heatCoefficient C h (TerminalStress.radiusPoint t r z) = |
| 70 | TerminalStress.heatAmplitude C (1 + h) t r / r := by |
| 71 | have he := TerminalStress.swirlCoefficient_amplitude C h (fun _ => 1) t z hr |
| 72 | simp only [TerminalStress.radialSlice, TerminalStress.flattening, mul_one] at he |
| 73 | apply (eq_div_iff hr.ne').2 |
| 74 | exact (mul_comm _ _).trans he |
| 75 | |
| 76 | /-- The canonical pure heat pressure is the literal radial improper integral. -/ |
| 77 | theorem heatPressure_radius_integral (C h t z : ℝ) {r : ℝ} (hr : 0 < r) : |
| 78 | BaseExterior.heatPressure C h (TerminalStress.radiusPoint t r z) = |
| 79 | -(∫ ρ in Ioi r, TerminalStress.heatAmplitude C (1 + h) t ρ ^ 2 / ρ) := by |
| 80 | rw [BaseExterior.heatPressure, canonicalPressure_radius_integral _ t z hr] |
| 81 | congr 1 |
| 82 | apply setIntegral_congr_fun measurableSet_Ioi |
| 83 | intro ρ hρ |
| 84 | dsimp only |
| 85 | rw [heatCoefficient_radius C h t z (hr.trans hρ)] |
| 86 | field_simp |
| 87 | |
| 88 | /-- The radius pressure integrand is integrable on every positive exterior tail. -/ |
| 89 | theorem heatAmplitude_sq_div_integrable (C : ℝ) {h t r : ℝ} |
| 90 | (hh : 0 < h) (hh1 : h < 1 / 2) (ht : t < 1) (hr : 0 < r) : |
| 91 | IntegrableOn (fun ρ => TerminalStress.heatAmplitude C (1 + h) t ρ ^ 2 / ρ) |
| 92 | (Ioi r) := by |
| 93 | have hi := BaseExterior.heatCoefficient_sq_integrable C hh hh1 |
| 94 | (z := 0) ht (show 0 < r ^ 2 / 2 by positivity) |
| 95 | rw [← radiusChange_image hr] at hi |
| 96 | have hi' := (integrableOn_image_iff_integrableOn_abs_deriv_smul measurableSet_Ioi |
| 97 | (fun ρ _ => radiusChange_deriv r ρ) (radiusChange_injOn hr) |
| 98 | (fun s => BaseExterior.heatCoefficient C h (t, (s, 0)) ^ 2)).mp hi |
| 99 | apply hi'.congr_fun _ measurableSet_Ioi |
| 100 | intro ρ hρ |
| 101 | change |ρ| • BaseExterior.heatCoefficient C h |
| 102 | (TerminalStress.radiusPoint t ρ 0) ^ 2 = _ |
| 103 | rw [abs_of_pos (hr.trans hρ), smul_eq_mul, |
| 104 | heatCoefficient_radius C h t 0 (hr.trans hρ)] |
| 105 | field_simp |
| 106 | |
| 107 | end NavierStokes.LocalHeatPressure |