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.R3SpaceTimePressure |
| 2 | import NavierStokes.SchwartzCompactApproximation |
| 3 | import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts |
| 4 | import Mathlib.Analysis.Calculus.FDeriv.Symmetric |
| 5 | |
| 6 | /-! |
| 7 | # Recovering the physical pressure gradient |
| 8 | |
| 9 | A distribution represented on compact tests by a smooth pressure gradient |
| 10 | is curl-free. The finite-energy momentum equation places that gradient in |
| 11 | negative Sobolev space, where its Poisson equation determines it uniquely. |
| 12 | No growth condition on the physical pressure is assumed. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | namespace NavierStokes.R3WeakPressure |
| 17 | |
| 18 | open Set Filter MeasureTheory TemperedDistribution FourierTransform |
| 19 | open R3SpaceTime R3SpaceTimePressure |
| 20 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 21 | |
| 22 | def Represents (T : 𝓢'(Domain, ℂ)) (f : Domain → ℂ) : Prop := |
| 23 | ∀ φ : 𝓢(Domain, ℂ), HasCompactSupport (φ : Domain → ℂ) → |
| 24 | T φ = ∫ z : Domain, φ z * f z |
| 25 | |
| 26 | theorem represents_lp {q : ℝ≥0∞} [Fact (1 ≤ q)] {f : Domain → ℂ} (hf : MemLp f q) : |
| 27 | Represents (hf.toLp f : 𝓢'(Domain, ℂ)) f := by |
| 28 | intro φ _ |
| 29 | rw [Lp.toTemperedDistribution_apply] |
| 30 | apply integral_congr_ae |
| 31 | filter_upwards [hf.coeFn_toLp] with z hz |
| 32 | simp only [hz, smul_eq_mul] |
| 33 | |
| 34 | theorem Represents.ext {S T : 𝓢'(Domain, ℂ)} {f : Domain → ℂ} |
| 35 | (hS : Represents S f) (hT : Represents T f) : S = T := |
| 36 | SchwartzCompactApproximation.tempered_eq_of_compact_tests fun φ hφ => |
| 37 | (hS φ hφ).trans (hT φ hφ).symm |
| 38 | |
| 39 | def directional (m : Domain) (f : Domain → ℂ) (z : Domain) : ℂ := fderiv ℝ f z m |
| 40 | |
| 41 | theorem partial_contDiff {f : Domain → ℂ} (hf : ContDiff ℝ ∞ f) (m : Domain) : |
| 42 | ContDiff ℝ ∞ (directional m f) := by |
| 43 | exact (hf.fderiv_right (by simp)).clm_apply contDiff_const |
| 44 | |
| 45 | theorem compact_lineDeriv (φ : 𝓢(Domain, ℂ)) (hφ : HasCompactSupport (φ : Domain → ℂ)) |
| 46 | (m : Domain) : HasCompactSupport ((∂_{m} φ : 𝓢(Domain, ℂ)) : Domain → ℂ) := by |
| 47 | convert! hφ.fderiv_apply ℝ m using 1 |
| 48 | |
| 49 | theorem integration_by_parts {f : Domain → ℂ} (hf : ContDiff ℝ 1 f) |
| 50 | (φ : 𝓢(Domain, ℂ)) (hφ : HasCompactSupport (φ : Domain → ℂ)) (m : Domain) : |
| 51 | (∫ z : Domain, φ z * directional m f z) = -(∫ z : Domain, (∂_{m} φ) z * f z) := by |
| 52 | apply integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable |
| 53 | · exact ((∂_{m} φ).continuous.mul hf.continuous).integrable_of_hasCompactSupport |
| 54 | (compact_lineDeriv φ hφ m).mul_right |
| 55 | · exact (φ.continuous.mul ((hf.continuous_fderiv (by norm_num)).clm_apply continuous_const)).integrable_of_hasCompactSupport hφ.mul_right |
| 56 | · exact (φ.continuous.mul hf.continuous).integrable_of_hasCompactSupport hφ.mul_right |
| 57 | · intro z _ |
| 58 | exact φ.differentiableAt |
| 59 | · intro z _ |
| 60 | exact hf.differentiable (by norm_num) z |
| 61 | |
| 62 | theorem Represents.lineDeriv {T : 𝓢'(Domain, ℂ)} {f : Domain → ℂ} |
| 63 | (hT : Represents T f) (hf : ContDiff ℝ 1 f) (m : Domain) : |
| 64 | Represents (∂_{m} T) (directional m f) := by |
| 65 | intro φ hφ |
| 66 | rw [TemperedDistribution.lineDerivOp_apply_apply, map_neg, |
| 67 | hT (∂_{m} φ) (compact_lineDeriv φ hφ m)] |
| 68 | exact (integration_by_parts hf φ hφ m).symm |
| 69 | |
| 70 | theorem schwartz_derivatives_commute (φ : 𝓢(Domain, ℂ)) (m n : Domain) : |
| 71 | ∂_{m} (∂_{n} φ) = ∂_{n} (∂_{m} φ) := by |
| 72 | ext z |
| 73 | change (∂^{![m, n]} φ) z = (∂^{![n, m]} φ) z |
| 74 | rw [SchwartzMap.iteratedLineDerivOp_eq_iteratedFDeriv, |
| 75 | SchwartzMap.iteratedLineDerivOp_eq_iteratedFDeriv] |
| 76 | exact IsSymmSndFDerivAt.iteratedFDeriv_cons |
| 77 | (hf := (φ.smooth ⊤).contDiffAt.isSymmSndFDerivAt (by simp)) |
| 78 | |
| 79 | theorem derivatives_commute (T : 𝓢'(Domain, ℂ)) (m n : Domain) : |
| 80 | ∂_{m} (∂_{n} T) = ∂_{n} (∂_{m} T) := by |
| 81 | ext φ |
| 82 | simp only [TemperedDistribution.lineDerivOp_apply_apply, map_neg, |
| 83 | neg_neg, schwartz_derivatives_commute φ n m] |
| 84 | |
| 85 | def divergence (U : Fin 3 → 𝓢'(Domain, ℂ)) : 𝓢'(Domain, ℂ) := |
| 86 | ∑ i, ∂_{spaceDirection i} (U i) |
| 87 | |
| 88 | def momentumGradient (U V : Fin 3 → Lp ℂ 2 (volume : Measure Domain)) |
| 89 | (G : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain)) (i : Fin 3) : 𝓢'(Domain, ℂ) := |
| 90 | spatialLaplacian (U i) - ∂_{timeDirection} (U i : 𝓢'(Domain, ℂ)) + V i - |
| 91 | ∑ j, ∂_{spaceDirection j} (G i j : 𝓢'(Domain, ℂ)) |
| 92 | |
| 93 | theorem lp_two_memSobolev (u : Lp ℂ 2 (volume : Measure Domain)) : |
| 94 | MemSobolev 0 2 (u : 𝓢'(Domain, ℂ)) := by |
| 95 | use u |
| 96 | simp |
| 97 | |
| 98 | theorem momentumGradient_memSobolev |
| 99 | (U V : Fin 3 → Lp ℂ 2 (volume : Measure Domain)) |
| 100 | (G : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain)) (i : Fin 3) : |
| 101 | MemSobolev (-5) 2 (momentumGradient U V G i) := by |
| 102 | apply MemSobolev.sub |
| 103 | · apply MemSobolev.add |
| 104 | · apply MemSobolev.sub |
| 105 | · unfold spatialLaplacian |
| 106 | apply memSobolev_finset_sum |
| 107 | intro j _ |
| 108 | exact MemSobolev.mono (by norm_num) (lp_two_memSobolev (U i)).lineDerivOp.lineDerivOp |
| 109 | · exact MemSobolev.mono (by norm_num) (lp_two_memSobolev (U i)).lineDerivOp |
| 110 | · exact MemSobolev.mono (by norm_num) (lp_two_memSobolev (V i)) |
| 111 | · apply memSobolev_finset_sum |
| 112 | intro j _ |
| 113 | convert! (lp_memSobolev (G i j)).lineDerivOp using 1 |
| 114 | norm_num |
| 115 | |
| 116 | theorem spatialLaplacian_sum {ι : Type*} (s : Finset ι) (f : ι → 𝓢'(Domain, ℂ)) : |
| 117 | spatialLaplacian (∑ i ∈ s, f i) = ∑ i ∈ s, spatialLaplacian (f i) := |
| 118 | spatialLaplacian_finset_sum s f |
| 119 | |
| 120 | theorem momentumGradient_divergence |
| 121 | (U V : Fin 3 → Lp ℂ 2 (volume : Measure Domain)) |
| 122 | (G : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain)) |
| 123 | (hU : divergence (fun i => (U i : 𝓢'(Domain, ℂ))) = 0) |
| 124 | (hV : divergence (fun i => (V i : 𝓢'(Domain, ℂ))) = 0) : |
| 125 | divergence (momentumGradient U V G) = |
| 126 | -(∑ i, ∑ j, ∂_{spaceDirection i} (∂_{spaceDirection j} (G i j : 𝓢'(Domain, ℂ)))) := by |
| 127 | have hLap : (∑ i, ∂_{spaceDirection i} (spatialLaplacian (U i))) = 0 := by |
| 128 | simp_rw [← spatialLaplacian_lineDeriv] |
| 129 | rw [← spatialLaplacian_sum] |
| 130 | change spatialLaplacian (divergence (fun i => (U i : 𝓢'(Domain, ℂ)))) = 0 |
| 131 | rw [hU] |
| 132 | simp [spatialLaplacian, LineDeriv.lineDerivOp_zero] |
| 133 | have hTime : (∑ i, ∂_{spaceDirection i} (∂_{timeDirection} (U i : 𝓢'(Domain, ℂ)))) = 0 := by |
| 134 | simp_rw [derivatives_commute (U _) (spaceDirection _) timeDirection] |
| 135 | rw [← LineDeriv.lineDerivOp_sum] |
| 136 | change ∂_{timeDirection} (divergence (fun i => (U i : 𝓢'(Domain, ℂ)))) = 0 |
| 137 | rw [hU, LineDeriv.lineDerivOp_zero] |
| 138 | unfold divergence momentumGradient |
| 139 | simp only [sub_eq_add_neg, LineDeriv.lineDerivOp_add, LineDeriv.lineDerivOp_neg, |
| 140 | LineDeriv.lineDerivOp_sum, Finset.sum_add_distrib, Finset.sum_neg_distrib] |
| 141 | change (∑ i, ∂_{spaceDirection i} (spatialLaplacian (U i))) + |
| 142 | -(∑ i, ∂_{spaceDirection i} (∂_{timeDirection} (U i : 𝓢'(Domain, ℂ)))) + |
| 143 | divergence (fun i => (V i : 𝓢'(Domain, ℂ))) + _ = _ |
| 144 | rw [hLap, hTime, hV] |
| 145 | simp |
| 146 | |
| 147 | /-- A physical pressure specified only through compact tests gives a |
| 148 | curl-free tempered gradient. -/ |
| 149 | theorem curl_free_of_pressure (P : Fin 3 → 𝓢'(Domain, ℂ)) (p : Domain → ℂ) |
| 150 | (hP : ∀ i (φ : 𝓢(Domain, ℂ)), HasCompactSupport (φ : Domain → ℂ) → |
| 151 | P i φ = -(∫ z : Domain, (∂_{spaceDirection i} φ) z * p z)) (i j : Fin 3) : |
| 152 | ∂_{spaceDirection j} (P i) = ∂_{spaceDirection i} (P j) := by |
| 153 | apply SchwartzCompactApproximation.tempered_eq_of_compact_tests |
| 154 | intro φ hφ |
| 155 | simp only [TemperedDistribution.lineDerivOp_apply_apply, map_neg] |
| 156 | rw [hP i _ (compact_lineDeriv φ hφ _), hP j _ (compact_lineDeriv φ hφ _), |
| 157 | schwartz_derivatives_commute φ (spaceDirection i) (spaceDirection j)] |
| 158 | |
| 159 | /-- The physical pressure gradient in the finite-energy equation equals the |
| 160 | canonical Fourier pressure gradient. -/ |
| 161 | theorem pressure_gradient_unique |
| 162 | (U V : Fin 3 → Lp ℂ 2 (volume : Measure Domain)) |
| 163 | (G : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain)) (p : Domain → ℂ) |
| 164 | (hU : divergence (fun i => (U i : 𝓢'(Domain, ℂ))) = 0) |
| 165 | (hV : divergence (fun i => (V i : 𝓢'(Domain, ℂ))) = 0) |
| 166 | (hP : ∀ i (φ : 𝓢(Domain, ℂ)), HasCompactSupport (φ : Domain → ℂ) → |
| 167 | momentumGradient U V G i φ = -(∫ z : Domain, (∂_{spaceDirection i} φ) z * p z)) |
| 168 | (m : Fin 3) : |
| 169 | momentumGradient U V G m = ∂_{spaceDirection m} (stressPressure G) := by |
| 170 | apply stressPressure_gradient_unique G (spaceDirection m) (momentumGradient_memSobolev U V G m) |
| 171 | calc |
| 172 | spatialLaplacian (momentumGradient U V G m) = |
| 173 | ∑ i, ∂_{spaceDirection i} (∂_{spaceDirection m} (momentumGradient U V G i)) := by |
| 174 | unfold spatialLaplacian |
| 175 | apply Finset.sum_congr rfl |
| 176 | intro i _ |
| 177 | rw [curl_free_of_pressure _ p hP m i] |
| 178 | _ = ∂_{spaceDirection m} (divergence (momentumGradient U V G)) := by |
| 179 | simp only [divergence, LineDeriv.lineDerivOp_sum] |
| 180 | exact Finset.sum_congr rfl fun i _ => derivatives_commute _ _ _ |
| 181 | _ = _ := by rw [momentumGradient_divergence U V G hU hV, LineDeriv.lineDerivOp_neg] |
| 182 | |
| 183 | end NavierStokes.R3WeakPressure |