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.R3.ComparisonSetup |
| 2 | import NavierStokes.R3.LpNormTools |
| 3 | |
| 4 | /-! |
| 5 | # Finite-energy bounds for whole-space comparison |
| 6 | |
| 7 | The hypotheses in this module concern only square integrability and |
| 8 | measurability. In particular, the comparison field need not have compact |
| 9 | support or any globally bounded derivative. |
| 10 | -/ |
| 11 | |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | open scoped ContDiff ENNReal |
| 17 | |
| 18 | namespace NavierStokesR3.Comparison |
| 19 | |
| 20 | open ProblemStatement |
| 21 | |
| 22 | /-- The explicit square-integrability condition is the usual `MemLp` condition |
| 23 | once measurability of the velocity slice is known. -/ |
| 24 | theorem squareIntegrableAtTime_iff_memLp {u : VelocityField} {t : ℝ} |
| 25 | (hu : AEStronglyMeasurable (fun x : Space => u (t, x)) volume) : |
| 26 | SquareIntegrableAtTime u t ↔ MemLp (fun x : Space => u (t, x)) 2 volume := |
| 27 | (memLp_two_iff_integrable_sq_norm hu).symm |
| 28 | |
| 29 | /-- Joint continuity on a time slab gives continuity of every spatial slice, |
| 30 | including a boundary time. -/ |
| 31 | theorem continuous_slice_of_continuousOn {times : Set ℝ} {u : VelocityField} |
| 32 | (hu : ContinuousOn u (times ×ˢ univ)) {t : ℝ} (ht : t ∈ times) : |
| 33 | Continuous (fun x : Space => u (t, x)) := by |
| 34 | have hc : ContinuousOn (fun x : Space => u (t, x)) univ := |
| 35 | hu.comp (continuous_const.prodMk continuous_id).continuousOn |
| 36 | (fun x _ => ⟨ht, mem_univ x⟩) |
| 37 | exact continuous_iff_continuousAt.2 (fun x => (hc x (mem_univ x)).continuousAt |
| 38 | Filter.univ_mem) |
| 39 | |
| 40 | /-- No integrability hypothesis is needed for nonnegativity of the totalized |
| 41 | integral defining the squared norm. -/ |
| 42 | theorem l2Sq_nonneg {E : Type*} [NormedAddCommGroup E] (f : Space → E) : |
| 43 | 0 ≤ l2Sq f := |
| 44 | integral_nonneg (fun _ => sq_nonneg _) |
| 45 | |
| 46 | /-- The elementary pointwise estimate used for the difference energy. -/ |
| 47 | theorem norm_sub_sq_le_twice {E : Type*} [SeminormedAddCommGroup E] (a b : E) : |
| 48 | ‖a - b‖ ^ 2 ≤ 2 * (‖a‖ ^ 2 + ‖b‖ ^ 2) := by |
| 49 | have h := mul_self_le_mul_self (norm_nonneg (a - b)) (norm_sub_le a b) |
| 50 | nlinarith [sq_nonneg (‖a‖ - ‖b‖)] |
| 51 | |
| 52 | /-- A difference of square-integrable slices remains square integrable. -/ |
| 53 | theorem squareIntegrableAtTime_sub {u v : VelocityField} {t : ℝ} |
| 54 | (hu_meas : AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 55 | (hv_meas : AEStronglyMeasurable (fun x : Space => v (t, x)) volume) |
| 56 | (hu : SquareIntegrableAtTime u t) (hv : SquareIntegrableAtTime v t) : |
| 57 | SquareIntegrableAtTime (fun z => u z - v z) t := by |
| 58 | exact (squareIntegrableAtTime_iff_memLp (hu_meas.sub hv_meas)).2 |
| 59 | (((squareIntegrableAtTime_iff_memLp hu_meas).1 hu).sub |
| 60 | ((squareIntegrableAtTime_iff_memLp hv_meas).1 hv)) |
| 61 | |
| 62 | /-- The squared `L²` norm of a difference is bounded by the two original |
| 63 | energies. -/ |
| 64 | theorem l2Sq_sub_le {E : Type*} [NormedAddCommGroup E] {f g : Space → E} |
| 65 | (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) : |
| 66 | l2Sq (fun x => f x - g x) ≤ 2 * (l2Sq f + l2Sq g) := by |
| 67 | have hf_sq := (memLp_two_iff_integrable_sq_norm hf.1).1 hf |
| 68 | have hg_sq := (memLp_two_iff_integrable_sq_norm hg.1).1 hg |
| 69 | have hfg_sq := (memLp_two_iff_integrable_sq_norm (hf.sub hg).1).1 (hf.sub hg) |
| 70 | calc |
| 71 | l2Sq (fun x => f x - g x) ≤ |
| 72 | ∫ x : Space, 2 * (‖f x‖ ^ 2 + ‖g x‖ ^ 2) := |
| 73 | integral_mono hfg_sq ((hf_sq.add hg_sq).const_mul 2) |
| 74 | (fun x => norm_sub_sq_le_twice (f x) (g x)) |
| 75 | _ = 2 * (l2Sq f + l2Sq g) := by |
| 76 | rw [integral_const_mul, integral_add hf_sq hg_sq] |
| 77 | rfl |
| 78 | |
| 79 | /-- Uniform finite energy is stable under taking the velocity difference. -/ |
| 80 | theorem uniformFiniteEnergy_sub {times : Set ℝ} {u v : VelocityField} |
| 81 | (hu_meas : ∀ t ∈ times, |
| 82 | AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 83 | (hv_meas : ∀ t ∈ times, |
| 84 | AEStronglyMeasurable (fun x : Space => v (t, x)) volume) |
| 85 | (hu : UniformFiniteEnergy times u) (hv : UniformFiniteEnergy times v) : |
| 86 | UniformFiniteEnergy times (fun z => u z - v z) := by |
| 87 | obtain ⟨Eu, hEu, hu⟩ := hu |
| 88 | obtain ⟨Ev, hEv, hv⟩ := hv |
| 89 | refine ⟨2 * (Eu + Ev), by positivity, ?_⟩ |
| 90 | intro t ht |
| 91 | obtain ⟨hu_sq, hu_bound⟩ := hu t ht |
| 92 | obtain ⟨hv_sq, hv_bound⟩ := hv t ht |
| 93 | refine ⟨squareIntegrableAtTime_sub (hu_meas t ht) (hv_meas t ht) hu_sq hv_sq, ?_⟩ |
| 94 | have hdiff := l2Sq_sub_le |
| 95 | ((squareIntegrableAtTime_iff_memLp (hu_meas t ht)).1 hu_sq) |
| 96 | ((squareIntegrableAtTime_iff_memLp (hv_meas t ht)).1 hv_sq) |
| 97 | dsimp [kineticEnergy, l2Sq] at hu_bound hv_bound hdiff ⊢ |
| 98 | linarith |
| 99 | |
| 100 | /-- The preceding result applies to fields jointly continuous on the slab. -/ |
| 101 | theorem uniformFiniteEnergy_sub_of_continuousOn {times : Set ℝ} {u v : VelocityField} |
| 102 | (hu_cont : ContinuousOn u (times ×ˢ univ)) |
| 103 | (hv_cont : ContinuousOn v (times ×ˢ univ)) |
| 104 | (hu : UniformFiniteEnergy times u) (hv : UniformFiniteEnergy times v) : |
| 105 | UniformFiniteEnergy times (fun z => u z - v z) := |
| 106 | uniformFiniteEnergy_sub |
| 107 | (fun _ ht => (continuous_slice_of_continuousOn hu_cont ht).aestronglyMeasurable) |
| 108 | (fun _ ht => (continuous_slice_of_continuousOn hv_cont ht).aestronglyMeasurable) hu hv |
| 109 | |
| 110 | /-- A kinetic-energy bound is also a bound for the squared `L²` norm. -/ |
| 111 | theorem uniformFiniteEnergy_l2Sq_bound {times : Set ℝ} {u : VelocityField} |
| 112 | (hu : UniformFiniteEnergy times u) : |
| 113 | ∃ M : ℝ, 0 ≤ M ∧ ∀ t ∈ times, |
| 114 | SquareIntegrableAtTime u t ∧ l2Sq (fun x => u (t, x)) ≤ M := by |
| 115 | obtain ⟨E, hE, hu⟩ := hu |
| 116 | refine ⟨2 * E, by positivity, ?_⟩ |
| 117 | intro t ht |
| 118 | obtain ⟨hint, hbound⟩ := hu t ht |
| 119 | refine ⟨hint, ?_⟩ |
| 120 | dsimp [kineticEnergy, l2Sq] at hbound ⊢ |
| 121 | linarith |
| 122 | |
| 123 | /-- Every component product is dominated by the Euclidean squared norm. -/ |
| 124 | theorem norm_component_mul_le_sq (a : Space) (i j : Fin 3) : |
| 125 | ‖a i * a j‖ ≤ ‖a‖ ^ 2 := by |
| 126 | rw [norm_mul, pow_two] |
| 127 | exact mul_le_mul (PiLp.norm_apply_le a i) (PiLp.norm_apply_le a j) |
| 128 | (norm_nonneg _) (norm_nonneg _) |
| 129 | |
| 130 | /-- Pointwise domination of the nonlinear tensor by the two energy densities. -/ |
| 131 | theorem tensorDiff_norm_le (u v : VelocityField) (t : ℝ) (i j : Fin 3) (x : Space) : |
| 132 | ‖tensorDiff u v t i j x‖ ≤ ‖u (t, x)‖ ^ 2 + ‖v (t, x)‖ ^ 2 := by |
| 133 | exact (norm_sub_le _ _).trans |
| 134 | (add_le_add (norm_component_mul_le_sq (u (t, x)) i j) |
| 135 | (norm_component_mul_le_sq (v (t, x)) i j)) |
| 136 | |
| 137 | /-- The nonlinear tensor has measurable components whenever both velocities |
| 138 | have measurable spatial slices. -/ |
| 139 | theorem tensorDiff_aestronglyMeasurable {u v : VelocityField} {t : ℝ} |
| 140 | (hu : AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 141 | (hv : AEStronglyMeasurable (fun x : Space => v (t, x)) volume) (i j : Fin 3) : |
| 142 | AEStronglyMeasurable (tensorDiff u v t i j) volume := by |
| 143 | have hui := (EuclideanSpace.proj i : Space →L[ℝ] ℝ).continuous.comp_aestronglyMeasurable hu |
| 144 | have huj := (EuclideanSpace.proj j : Space →L[ℝ] ℝ).continuous.comp_aestronglyMeasurable hu |
| 145 | have hvi := (EuclideanSpace.proj i : Space →L[ℝ] ℝ).continuous.comp_aestronglyMeasurable hv |
| 146 | have hvj := (EuclideanSpace.proj j : Space →L[ℝ] ℝ).continuous.comp_aestronglyMeasurable hv |
| 147 | exact (hui.mul huj).sub (hvi.mul hvj) |
| 148 | |
| 149 | /-- Every component of the tensor difference lies in `L¹`. -/ |
| 150 | theorem tensorDiff_integrable {u v : VelocityField} {t : ℝ} |
| 151 | (hu : MemLp (fun x : Space => u (t, x)) 2 volume) |
| 152 | (hv : MemLp (fun x : Space => v (t, x)) 2 volume) (i j : Fin 3) : |
| 153 | Integrable (tensorDiff u v t i j) volume := by |
| 154 | have hu_sq := (memLp_two_iff_integrable_sq_norm hu.1).1 hu |
| 155 | have hv_sq := (memLp_two_iff_integrable_sq_norm hv.1).1 hv |
| 156 | exact (hu_sq.add hv_sq).mono' (tensorDiff_aestronglyMeasurable hu.1 hv.1 i j) |
| 157 | (ae_of_all _ (tensorDiff_norm_le u v t i j)) |
| 158 | |
| 159 | /-- Its `L¹` norm is bounded using only the two ordinary energies. -/ |
| 160 | theorem tensorDiff_norm_integral_le {u v : VelocityField} {t : ℝ} |
| 161 | (hu : MemLp (fun x : Space => u (t, x)) 2 volume) |
| 162 | (hv : MemLp (fun x : Space => v (t, x)) 2 volume) (i j : Fin 3) : |
| 163 | (∫ x : Space, ‖tensorDiff u v t i j x‖) ≤ |
| 164 | l2Sq (fun x => u (t, x)) + l2Sq (fun x => v (t, x)) := by |
| 165 | have hu_sq := (memLp_two_iff_integrable_sq_norm hu.1).1 hu |
| 166 | have hv_sq := (memLp_two_iff_integrable_sq_norm hv.1).1 hv |
| 167 | calc |
| 168 | (∫ x : Space, ‖tensorDiff u v t i j x‖) ≤ |
| 169 | ∫ x : Space, ‖u (t, x)‖ ^ 2 + ‖v (t, x)‖ ^ 2 := |
| 170 | integral_mono (tensorDiff_integrable hu hv i j).norm (hu_sq.add hv_sq) |
| 171 | (tensorDiff_norm_le u v t i j) |
| 172 | _ = _ := integral_add hu_sq hv_sq |
| 173 | |
| 174 | /-- A single `L¹` bound works for all times and all tensor components. -/ |
| 175 | theorem uniformFiniteEnergy_tensorDiff_bound {times : Set ℝ} {u v : VelocityField} |
| 176 | (hu_meas : ∀ t ∈ times, |
| 177 | AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 178 | (hv_meas : ∀ t ∈ times, |
| 179 | AEStronglyMeasurable (fun x : Space => v (t, x)) volume) |
| 180 | (hu : UniformFiniteEnergy times u) (hv : UniformFiniteEnergy times v) : |
| 181 | ∃ M : ℝ, 0 ≤ M ∧ ∀ t ∈ times, ∀ i j : Fin 3, |
| 182 | Integrable (tensorDiff u v t i j) volume ∧ |
| 183 | (∫ x : Space, ‖tensorDiff u v t i j x‖) ≤ M := by |
| 184 | obtain ⟨Mu, hMu, hu⟩ := uniformFiniteEnergy_l2Sq_bound hu |
| 185 | obtain ⟨Mv, hMv, hv⟩ := uniformFiniteEnergy_l2Sq_bound hv |
| 186 | refine ⟨Mu + Mv, add_nonneg hMu hMv, ?_⟩ |
| 187 | intro t ht i j |
| 188 | obtain ⟨hu_sq, hu_bound⟩ := hu t ht |
| 189 | obtain ⟨hv_sq, hv_bound⟩ := hv t ht |
| 190 | have hu_lp := (squareIntegrableAtTime_iff_memLp (hu_meas t ht)).1 hu_sq |
| 191 | have hv_lp := (squareIntegrableAtTime_iff_memLp (hv_meas t ht)).1 hv_sq |
| 192 | exact ⟨tensorDiff_integrable hu_lp hv_lp i j, |
| 193 | (tensorDiff_norm_integral_le hu_lp hv_lp i j).trans (add_le_add hu_bound hv_bound)⟩ |
| 194 | |
| 195 | /-- The finite energy hypothesis gives a uniform bound for the ordinary `L²` |
| 196 | norm, with membership in `L²` recorded explicitly. -/ |
| 197 | theorem uniformFiniteEnergy_lpNorm_two_bound {times : Set ℝ} {u : VelocityField} |
| 198 | (hu_meas : ∀ t ∈ times, |
| 199 | AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 200 | (hu : UniformFiniteEnergy times u) : |
| 201 | ∃ M : ℝ, 0 ≤ M ∧ ∀ t ∈ times, |
| 202 | MemLp (fun x : Space => u (t, x)) 2 volume ∧ |
| 203 | comparisonLpNorm 2 (fun x => u (t, x)) ≤ M := by |
| 204 | obtain ⟨M, _, hM⟩ := uniformFiniteEnergy_l2Sq_bound hu |
| 205 | refine ⟨Real.sqrt M, Real.sqrt_nonneg M, ?_⟩ |
| 206 | intro t ht |
| 207 | obtain ⟨hint, hbound⟩ := hM t ht |
| 208 | have hLp := (squareIntegrableAtTime_iff_memLp (hu_meas t ht)).1 hint |
| 209 | refine ⟨hLp, ?_⟩ |
| 210 | rw [LpNormTools.lpNorm_two_eq_sqrt_l2Sq hLp] |
| 211 | exact Real.sqrt_le_sqrt hbound |
| 212 | |
| 213 | /-- The uniform tensor estimate in the common `comparisonLpNorm` notation. -/ |
| 214 | theorem uniformFiniteEnergy_tensorDiff_lpNorm_one_bound {times : Set ℝ} |
| 215 | {u v : VelocityField} |
| 216 | (hu_meas : ∀ t ∈ times, |
| 217 | AEStronglyMeasurable (fun x : Space => u (t, x)) volume) |
| 218 | (hv_meas : ∀ t ∈ times, |
| 219 | AEStronglyMeasurable (fun x : Space => v (t, x)) volume) |
| 220 | (hu : UniformFiniteEnergy times u) (hv : UniformFiniteEnergy times v) : |
| 221 | ∃ M : ℝ, 0 ≤ M ∧ ∀ t ∈ times, ∀ i j : Fin 3, |
| 222 | Integrable (tensorDiff u v t i j) volume ∧ comparisonLpNorm 1 (tensorDiff u v t i j) ≤ M := by |
| 223 | obtain ⟨M, hM, hbound⟩ := uniformFiniteEnergy_tensorDiff_bound hu_meas hv_meas hu hv |
| 224 | refine ⟨M, hM, ?_⟩ |
| 225 | intro t ht i j |
| 226 | obtain ⟨hint, hle⟩ := hbound t ht i j |
| 227 | refine ⟨hint, ?_⟩ |
| 228 | rwa [LpNormTools.lpNorm_one_eq_integral_norm hint] |
| 229 | |
| 230 | end NavierStokesR3.Comparison |