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 Euler.OrdinaryEulerClassicalClass |
| 2 | import Euler.OrdinaryCauchyInterpolation |
| 3 | import Euler.OrdinaryAdvectionLimit |
| 4 | import Euler.WeakHilbertODE |
| 5 | import Euler.WeakTimeContinuity |
| 6 | import Euler.DevelopmentBridge |
| 7 | |
| 8 | /-! |
| 9 | # Time regularity from the projected weak equation |
| 10 | |
| 11 | Uniform bounds for the genuine spatial Sobolev norms upgrade strong `L²` |
| 12 | continuity to continuity of every spatial jet. This is the interpolation |
| 13 | step in the Comparator bridge. In particular, its higher Sobolev |
| 14 | continuity conclusion is not assumed in any of its hypotheses. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | |
| 20 | namespace Euler.ComparatorBridge |
| 21 | |
| 22 | open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation |
| 23 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev |
| 24 | EulerSmoothSobolev Finset |
| 25 | open scoped ContDiff Topology NNReal |
| 26 | |
| 27 | /-- A recovered smooth-`L²` representative inherits the Comparator's weak |
| 28 | time continuity. No continuity of its higher derivatives is used here. -/ |
| 29 | theorem comparator_weak_pairings_continuous |
| 30 | {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 31 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} |
| 32 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 33 | (hA : ∀ t, (A t).field = (v · (t : ℝ))) (φ : L2) : |
| 34 | Continuous (fun t => inner ℝ φ (A t).toLp) := by |
| 35 | let ι : Icc (0 : ℝ) T → Ici (0 : ℝ) := fun t => ⟨t, t.property.1⟩ |
| 36 | have hi : Continuous ι := continuous_subtype_val.subtype_mk _ |
| 37 | have he (t : Icc (0 : ℝ) T) : (A t).toLp = h.velocityLp (ι t) := by |
| 38 | apply Lp.ext |
| 39 | filter_upwards [(A t).toLp_ae, |
| 40 | (h.velocity_memLp (t : ℝ) t.property.1).coeFn_toLp] with x hx hy |
| 41 | exact hx.trans ((congrFun (hA t) x).trans hy.symm) |
| 42 | simpa only [Function.comp_def, ← he] using (h.velocityLp_weakly_continuous φ).comp hi |
| 43 | |
| 44 | /-- The Comparator's classical divergence constraint gives the genuine |
| 45 | Hilbert-space solenoidal constraint on every recovered velocity slice. -/ |
| 46 | theorem comparator_velocity_mem_solenoidal |
| 47 | {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 48 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} |
| 49 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 50 | (hA : ∀ t, (A t).field = (v · (t : ℝ))) (t : Icc (0 : ℝ) T) : |
| 51 | (A t).toLp ∈ solenoidalSpace := by |
| 52 | apply smooth_mem_solenoidal (A t).field (A t).smooth (A t).memLp |
| 53 | intro x |
| 54 | rw [hA t] |
| 55 | exact h.div_free x t t.property.1 |
| 56 | |
| 57 | /-- The actual tensor Sobolev norm of a difference is controlled by the |
| 58 | sum of the two actual norms. -/ |
| 59 | theorem tensorNorm_fieldSub_le (A B : SmoothL2Field Space) (q : ℕ) : |
| 60 | tensorNorm q (fieldSub A B) ≤ tensorNorm q A + tensorNorm q B := by |
| 61 | simp only [tensorNorm, jetLp_fieldSub, ← Finset.sum_add_distrib] |
| 62 | exact Finset.sum_le_sum (fun n _ => norm_sub_le _ _) |
| 63 | |
| 64 | /-- A fixed jet is bounded by the finite tensor norm containing it. -/ |
| 65 | theorem jetLp_norm_le_tensorNorm (A : SmoothL2Field Space) (q : ℕ) : |
| 66 | ‖A.jetLp q‖ ≤ tensorNorm q A := by |
| 67 | exact Finset.single_le_sum (fun n _ => norm_nonneg (A.jetLp n)) |
| 68 | (Finset.mem_range.mpr (Nat.lt_succ_self q)) |
| 69 | |
| 70 | /-- Per-order jet bounds give the finite tensor bounds used below. -/ |
| 71 | theorem tensorNorm_uniform_of_jetLp_uniform |
| 72 | {K : Type*} (A : K → SmoothL2Field Space) |
| 73 | (hb : ∀ n : ℕ, ∃ M : ℝ, ∀ t, ‖(A t).jetLp n‖ ≤ M) : |
| 74 | ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M := by |
| 75 | classical |
| 76 | intro q |
| 77 | refine ⟨∑ n ∈ Finset.range (q + 1), (hb n).choose, ?_⟩ |
| 78 | intro t |
| 79 | exact Finset.sum_le_sum (fun n _ => (hb n).choose_spec t) |
| 80 | |
| 81 | /-- Strong `L²` continuity plus uniform higher spatial Sobolev bounds |
| 82 | implies continuity of every actual spatial `L²` jet. -/ |
| 83 | theorem jetLp_continuous_of_toLp_continuous |
| 84 | {K : Type*} [TopologicalSpace K] (A : K → SmoothL2Field Space) |
| 85 | (h0 : Continuous (fun t => (A t).toLp)) |
| 86 | (hb : ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M) : |
| 87 | ∀ q : ℕ, Continuous (fun t => (A t).jetLp q) := by |
| 88 | intro q |
| 89 | apply continuous_iff_continuousAt.mpr |
| 90 | intro s |
| 91 | rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] |
| 92 | obtain ⟨M, hM⟩ := hb (2 * q) |
| 93 | have hbound (t : K) : WordBound (2 * q) (M + M) (fieldSub (A t) (A s)) := by |
| 94 | intro n hn w |
| 95 | apply (wordBound_tensorNorm (2 * q) (fieldSub (A t) (A s)) n hn w).trans |
| 96 | exact (tensorNorm_fieldSub_le (A t) (A s) (2 * q)).trans |
| 97 | (add_le_add (hM t) (hM s)) |
| 98 | have hi (t : K) : ‖(A t).jetLp q - (A s).jetLp q‖ ≤ |
| 99 | wordCount q * Real.sqrt (‖(A t).toLp - (A s).toLp‖ * (M + M)) := by |
| 100 | rw [← jetLp_fieldSub] |
| 101 | exact (jetLp_norm_le_tensorNorm (fieldSub (A t) (A s)) q).trans |
| 102 | (by simpa only [toLp_fieldSub] using |
| 103 | tensorNorm_interpolate_zero (fieldSub (A t) (A s)) q (M + M) (hbound t)) |
| 104 | have ht : Tendsto (fun t => ‖(A t).toLp - (A s).toLp‖) (𝓝 s) (𝓝 0) := |
| 105 | tendsto_iff_norm_sub_tendsto_zero.mp h0.continuousAt |
| 106 | apply squeeze_zero (fun _ => norm_nonneg _) hi |
| 107 | simpa only [zero_mul, Real.sqrt_zero, mul_zero] using |
| 108 | ((ht.mul_const (M + M)).sqrt.const_mul (wordCount q)) |
| 109 | |
| 110 | /-- A bounded spatial `H²` norm bounds the projected Euler right-hand |
| 111 | side in `L²`. This estimate does not use time regularity. -/ |
| 112 | theorem projectedRhs_norm_le_of_tensorNorm_le |
| 113 | (A : SmoothL2Field Space) (M : ℝ) (hM : tensorNorm 2 A ≤ M) : |
| 114 | ‖(projectedRhs A).toLp‖ ≤ 39 * smoothEmbeddingConstant * M ^ 2 := by |
| 115 | have hM0 : 0 ≤ M := (tensorNorm_nonneg 2 A).trans hM |
| 116 | have hw : WordBound 2 M A := fun n hn w => |
| 117 | (wordBound_tensorNorm 2 A n hn w).trans hM |
| 118 | rw [projectedRhs_toLp, norm_neg] |
| 119 | apply (solenoidalProjection_apply_norm_le _).trans |
| 120 | apply (advection_norm_velocity A A ((13 * smoothEmbeddingConstant) * M) |
| 121 | (wordBound_pointwise hw)).trans |
| 122 | have hc : 0 ≤ (13 * smoothEmbeddingConstant) * M := |
| 123 | mul_nonneg (mul_nonneg (by norm_num) smoothEmbeddingConstant_nonneg) hM0 |
| 124 | exact (mul_le_mul_of_nonneg_left |
| 125 | (wordBound_derivative hw (by norm_num : 1 ≤ 2)) hc).trans_eq (by ring) |
| 126 | |
| 127 | /-- Uniform spatial bounds supply a uniform bound for the projected |
| 128 | right-hand side even before strong time continuity has been established. -/ |
| 129 | theorem projectedRhs_uniform_bound |
| 130 | {K : Type*} (A : K → SmoothL2Field Space) |
| 131 | (hb : ∃ M : ℝ, ∀ t, tensorNorm 2 (A t) ≤ M) : |
| 132 | ∃ C : ℝ≥0, ∀ t, ‖(projectedRhs (A t)).toLp‖ ≤ C := by |
| 133 | obtain ⟨M, hM⟩ := hb |
| 134 | refine ⟨⟨39 * smoothEmbeddingConstant * M ^ 2, ?_⟩, ?_⟩ |
| 135 | · exact mul_nonneg (mul_nonneg (by norm_num) smoothEmbeddingConstant_nonneg) |
| 136 | (sq_nonneg M) |
| 137 | · intro t |
| 138 | exact projectedRhs_norm_le_of_tensorNorm_le (A t) M (hM t) |
| 139 | |
| 140 | /-- A projected Euler equation tested against a dense family is enough to |
| 141 | recover the development's full scalar-pressure class. The hypotheses require |
| 142 | only weak time continuity and uniform spatial bounds; both strong `L²` time |
| 143 | regularity and continuity of every higher spatial Sobolev norm are proved. -/ |
| 144 | theorem isSmoothScalarEuler_of_weak_projectedEquation |
| 145 | {T : ℝ} (hT : 0 < T) (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 146 | (hs : ∀ t, (A t).toLp ∈ solenoidalSpace) |
| 147 | (hb : ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M) |
| 148 | (D : Set solenoidalSpace) (hD : Dense D) |
| 149 | (hc : ∀ φ ∈ D, Continuous (fun t => inner ℝ (φ : L2) (A t).toLp)) |
| 150 | (hd : ∀ φ ∈ D, ∀ t (ht : t ∈ Ioo 0 T), |
| 151 | HasDerivAt (fun r => inner ℝ (φ : L2) (A (projIcc 0 T hT.le r)).toLp) |
| 152 | (inner ℝ (φ : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t) : |
| 153 | IsSmoothScalarEuler (hT := hT.le) A := by |
| 154 | let u : ℝ → solenoidalSpace := fun r => |
| 155 | ⟨(A (projIcc 0 T hT.le r)).toLp, hs _⟩ |
| 156 | have hbs (t : Icc (0 : ℝ) T) : |
| 157 | (projectedRhs (A t)).toLp ∈ solenoidalSpace := by |
| 158 | rw [projectedRhs_toLp] |
| 159 | exact solenoidalSpace.neg_mem (solenoidalProjection_mem _) |
| 160 | let b : ℝ → solenoidalSpace := fun r => |
| 161 | ⟨(projectedRhs (A (projIcc 0 T hT.le r))).toLp, hbs _⟩ |
| 162 | have huc : ∀ φ ∈ D, ContinuousOn (fun r => inner ℝ φ (u r)) (Icc 0 T) := by |
| 163 | intro φ hφ |
| 164 | exact ((hc φ hφ).comp continuous_projIcc).continuousOn |
| 165 | have hud : ∀ φ ∈ D, ∀ t ∈ Ioo 0 T, |
| 166 | HasDerivAt (fun r => inner ℝ φ (u r)) (inner ℝ φ (b t)) t := by |
| 167 | intro φ hφ t ht |
| 168 | change HasDerivAt |
| 169 | (fun r => inner ℝ (φ : L2) (A (projIcc 0 T hT.le r)).toLp) |
| 170 | (inner ℝ (φ : L2) (projectedRhs (A (projIcc 0 T hT.le t))).toLp) t |
| 171 | rw [projIcc_of_mem hT.le ⟨ht.1.le, ht.2.le⟩] |
| 172 | exact hd φ hφ t ht |
| 173 | obtain ⟨C, hC⟩ := projectedRhs_uniform_bound A (hb 2) |
| 174 | have hl : LipschitzOnWith C u (Icc 0 T) := |
| 175 | WeakHilbertODE.lipschitzOnWith_of_dense_weak_equation hD hT C huc hud |
| 176 | (fun t _ => hC (projIcc 0 T hT.le t)) |
| 177 | have hu : Continuous (fun t : Icc (0 : ℝ) T => u t) := |
| 178 | continuousOn_iff_continuous_domRestrict.mp hl.continuousOn |
| 179 | have h0 : Continuous (fun t => (A t).toLp) := by |
| 180 | apply (continuous_subtype_val.comp hu).congr |
| 181 | intro t |
| 182 | change (A (projIcc 0 T hT.le (t : ℝ))).toLp = (A t).toLp |
| 183 | rw [projIcc_of_mem hT.le t.property] |
| 184 | have hA := jetLp_continuous_of_toLp_continuous A h0 hb |
| 185 | have hbc : Continuous b := by |
| 186 | apply Continuous.subtype_mk |
| 187 | exact (continuous_toLp (fun t => projectedRhs (A t)) |
| 188 | (projectedRhs_continuous A hA 0)).comp continuous_projIcc |
| 189 | apply (scalarEuler_iff_projected A).mpr |
| 190 | refine ⟨hA, hs, ?_⟩ |
| 191 | intro t ht |
| 192 | have hdu := WeakHilbertODE.hasDerivAt_of_dense_weak_equation |
| 193 | hD huc hbc.continuousOn hud ht |
| 194 | have h := solenoidalSpace.subtypeL.hasFDerivAt.comp_hasDerivAt t hdu |
| 195 | change HasDerivAt (fun r => (A (projIcc 0 T hT.le r)).toLp) |
| 196 | (projectedRhs (A (projIcc 0 T hT.le t))).toLp t at h |
| 197 | rw [projIcc_of_mem hT.le ⟨ht.1.le, ht.2.le⟩] at h |
| 198 | exact h |
| 199 | |
| 200 | end Euler.ComparatorBridge |