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.R3EnergyNorms |
| 2 | import NavierStokes.R3CompactParametricIntegral |
| 3 | |
| 4 | /-! |
| 5 | # Uniform norms of a smooth compact comparison field |
| 6 | |
| 7 | Compactness gives the `L²`, `L⁶`, sup-norm, and gradient bounds used in the |
| 8 | comparison argument. These are conclusions from the field's support and |
| 9 | smoothness assumptions. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | namespace NavierStokes.R3UniformBounds |
| 14 | |
| 15 | open Set Filter MeasureTheory ProblemStatement |
| 16 | open scoped ContDiff Topology ENNReal |
| 17 | |
| 18 | structure Bounds (I : Set ℝ) (u : VelocityField) (V : ℝ) : Prop where |
| 19 | nonneg : 0 ≤ V |
| 20 | pointwise : ∀ t ∈ I, ∀ x, ‖u (t, x)‖ ≤ V |
| 21 | memLp_two : ∀ t ∈ I, MemLp (fun x => ‖u (t, x)‖) 2 |
| 22 | memLp_six : ∀ t ∈ I, MemLp (fun x => ‖u (t, x)‖) 6 |
| 23 | memLp_top : ∀ t ∈ I, MemLp (fun x => ‖u (t, x)‖) ⊤ |
| 24 | norm_two : ∀ t ∈ I, lpNorm (fun x => ‖u (t, x)‖) 2 volume ≤ V |
| 25 | norm_six : ∀ t ∈ I, lpNorm (fun x => ‖u (t, x)‖) 6 volume ≤ V |
| 26 | norm_top : ∀ t ∈ I, lpNorm (fun x => ‖u (t, x)‖) ⊤ volume ≤ V |
| 27 | |
| 28 | theorem exists_bounds {I : Set ℝ} (hI : IsCompact I) {K : Set Space} (hK : IsCompact K) |
| 29 | {u : VelocityField} (hu : ContinuousOn u (I ×ˢ (univ : Set Space))) |
| 30 | (hsupp : ∀ t ∈ I, ∀ x ∉ K, u (t, x) = 0) : ∃ V : ℝ, Bounds I u V := by |
| 31 | obtain ⟨C, hC⟩ := (hI.prod hK).exists_bound_of_continuousOn |
| 32 | (hu.mono (prod_mono Subset.rfl (subset_univ K))) |
| 33 | let A := max C 0 |
| 34 | have hA : 0 ≤ A := le_max_right _ _ |
| 35 | let m : Space → ℝ := K.indicator (fun _ => A) |
| 36 | have hm (p : ℝ≥0∞) : MemLp m p := memLp_indicator_const p hK.measurableSet A (Or.inr hK.measure_ne_top) |
| 37 | have hmajor (t : ℝ) (ht : t ∈ I) (x : Space) : ‖u (t, x)‖ ≤ m x := by |
| 38 | by_cases hx : x ∈ K |
| 39 | · simpa only [m, indicator_of_mem hx] using (hC (t, x) ⟨ht, hx⟩).trans (le_max_left _ _) |
| 40 | · simp only [m, indicator_of_notMem hx, hsupp t ht x hx, norm_zero, le_refl] |
| 41 | have huc (t : ℝ) (ht : t ∈ I) : Continuous (fun x : Space => u (t, x)) := |
| 42 | R3CompactParametricIntegral.continuous_slice hu ht |
| 43 | have hMem (p : ℝ≥0∞) (t : ℝ) (ht : t ∈ I) : MemLp (fun x => ‖u (t, x)‖) p := by |
| 44 | apply (hm p).mono' (huc t ht).norm.aestronglyMeasurable |
| 45 | filter_upwards with x |
| 46 | simpa only [norm_norm] using hmajor t ht x |
| 47 | have hNorm (p : ℝ≥0∞) (t : ℝ) (ht : t ∈ I) : |
| 48 | lpNorm (fun x => ‖u (t, x)‖) p volume ≤ lpNorm m p volume := by |
| 49 | apply lpNorm_mono_real (hm p) |
| 50 | intro x |
| 51 | simpa only [norm_norm] using hmajor t ht x |
| 52 | let V := A + lpNorm m 2 volume + lpNorm m 6 volume + lpNorm m ⊤ volume |
| 53 | have h₂ : 0 ≤ lpNorm m 2 volume := lpNorm_nonneg |
| 54 | have h₆ : 0 ≤ lpNorm m 6 volume := lpNorm_nonneg |
| 55 | have hi : 0 ≤ lpNorm m ⊤ volume := lpNorm_nonneg |
| 56 | refine ⟨V, ?_⟩ |
| 57 | constructor |
| 58 | · dsimp [V]; positivity |
| 59 | · intro t ht x |
| 60 | have hb : m x ≤ A := by |
| 61 | by_cases hx : x ∈ K <;> simp [m, hx, hA] |
| 62 | exact ((hmajor t ht x).trans hb).trans (by dsimp [V]; linarith) |
| 63 | · exact hMem 2 |
| 64 | · exact hMem 6 |
| 65 | · exact hMem ⊤ |
| 66 | · intro t ht |
| 67 | exact (hNorm 2 t ht).trans (by dsimp [V]; linarith) |
| 68 | · intro t ht |
| 69 | exact (hNorm 6 t ht).trans (by dsimp [V]; linarith) |
| 70 | · intro t ht |
| 71 | exact (hNorm ⊤ t ht).trans (by dsimp [V]; linarith) |
| 72 | |
| 73 | theorem exists_global_gradient_bound {a b : ℝ} (hab : a < b) {K : Set Space} (hK : IsCompact K) |
| 74 | {u : VelocityField} (hu : ContDiffOn ℝ ∞ u (PeriodicUniqueness.slab a b)) |
| 75 | (hsupp : ∀ t ∈ Icc a b, ∀ x ∉ K, u (t, x) = 0) : |
| 76 | ∃ B : ℝ, 0 < B ∧ ∀ t ∈ Icc a b, ∀ x, ‖spatialDerivative u t x‖ ≤ B := by |
| 77 | obtain ⟨B, hB, hb⟩ := PeriodicUniqueness.exists_gradient_bound hab hu hK |
| 78 | refine ⟨B, hB, ?_⟩ |
| 79 | intro t ht x |
| 80 | by_cases hx : x ∈ K |
| 81 | · exact hb t ht x hx |
| 82 | · have he : (fun y : Space => u (t, y)) =ᶠ[𝓝 x] (fun _ => (0 : Space)) := by |
| 83 | filter_upwards [hK.isClosed.isOpen_compl.mem_nhds hx] with y hy |
| 84 | exact hsupp t ht y hy |
| 85 | have hd := he.fderiv_eq (𝕜 := ℝ) |
| 86 | simpa only [spatialDerivative, hd, fderiv_const_apply, norm_zero] using hB.le |
| 87 | |
| 88 | theorem vector_memLp {u : Space → Space} (hu : Continuous u) (hU : MemLp (fun x => ‖u x‖) 2) : |
| 89 | MemLp u 2 := (memLp_norm_iff hu.aestronglyMeasurable).mp hU |
| 90 | |
| 91 | theorem norm_le_of_energy_bound {u : Space → Space} (hu : AEStronglyMeasurable u volume) {E : ℝ} |
| 92 | (hE : (∫ x : Space, ‖u x‖ ^ 2) ≤ E) : lpNorm u 2 volume ≤ |E| + 1 := by |
| 93 | have he := R3EnergyNorms.lpNorm_two_sq hu |
| 94 | have hn : 0 ≤ lpNorm u 2 volume := lpNorm_nonneg |
| 95 | nlinarith [abs_nonneg E, le_abs_self E, sq_nonneg (|E|)] |
| 96 | |
| 97 | end NavierStokes.R3UniformBounds |