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.WeakFourierUniqueness |
| 2 | import Mathlib.Analysis.Fourier.LpSpace |
| 3 | |
| 4 | /-! # Orthogonality of square integrable divergence-free and curl-free fields -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | open MeasureTheory Set |
| 9 | open scoped BigOperators FourierTransform |
| 10 | |
| 11 | namespace NavierStokesR3.H3DivCurlFourier |
| 12 | |
| 13 | open ProblemStatement |
| 14 | open NavierStokes.ProblemStatement (coordinateVector) |
| 15 | |
| 16 | abbrev ComplexL2 := Lp ℂ 2 (volume : Measure Space) |
| 17 | abbrev ComplexDistribution := TemperedDistribution Space ℂ |
| 18 | |
| 19 | def coordinate (i : Fin 3) (ξ : Space) : ℂ := ξ i |
| 20 | |
| 21 | theorem coordinate_eq_inner (i : Fin 3) : |
| 22 | coordinate i = fun ξ : Space => (inner ℝ ξ (coordinateVector i) : ℂ) := by |
| 23 | funext ξ |
| 24 | simp [coordinate, coordinateVector, EuclideanSpace.inner_single_right] |
| 25 | |
| 26 | theorem coordinate_temperate (i : Fin 3) : (coordinate i).HasTemperateGrowth := by |
| 27 | rw [coordinate_eq_inner] |
| 28 | fun_prop |
| 29 | |
| 30 | theorem coordinate_continuous (i : Fin 3) : Continuous (coordinate i) := by |
| 31 | rw [coordinate_eq_inner] |
| 32 | fun_prop |
| 33 | |
| 34 | def multiplier (i : Fin 3) (f : ComplexL2) : ComplexDistribution := |
| 35 | TemperedDistribution.smulLeftCLM ℂ (coordinate i) (Lp.toTemperedDistribution f) |
| 36 | |
| 37 | theorem multiplier_apply (i : Fin 3) (f : ComplexL2) (ψ : Comparison.ComplexTest) : |
| 38 | multiplier i f ψ = ∫ ξ : Space, coordinate i ξ * f ξ * ψ ξ := by |
| 39 | simp only [multiplier, TemperedDistribution.smulLeftCLM_apply_apply, |
| 40 | Lp.toTemperedDistribution_apply] |
| 41 | apply integral_congr_ae |
| 42 | filter_upwards [] with ξ |
| 43 | rw [SchwartzMap.smulLeftCLM_apply_apply (coordinate_temperate i)] |
| 44 | simp only [smul_eq_mul] |
| 45 | ring |
| 46 | |
| 47 | theorem integrable_coordinate_test (i : Fin 3) (f : ComplexL2) |
| 48 | (ψ : Comparison.ComplexTest) : |
| 49 | Integrable (fun ξ : Space => coordinate i ξ * f ξ * ψ ξ) := by |
| 50 | have ht := (SchwartzMap.smulLeftCLM ℂ (coordinate i) ψ).memLp (p := 2) (μ := volume) |
| 51 | have hi := ht.integrable_mul (Lp.memLp f) |
| 52 | convert hi using 1 |
| 53 | ext ξ |
| 54 | simp only [Pi.mul_apply] |
| 55 | rw [SchwartzMap.smulLeftCLM_apply_apply (coordinate_temperate i)] |
| 56 | simp only [smul_eq_mul] |
| 57 | ring |
| 58 | |
| 59 | theorem locallyIntegrable_coordinate (i : Fin 3) (f : ComplexL2) : |
| 60 | LocallyIntegrable (fun ξ : Space => coordinate i ξ * f ξ) volume := by |
| 61 | have h := ((Lp.memLp f).locallyIntegrable (by norm_num)).locallyIntegrableOn univ |
| 62 | have hm := h.mul_continuousOn (coordinate_continuous i).continuousOn |
| 63 | isClosed_univ.isLocallyClosed |
| 64 | simpa only [mul_comm] using locallyIntegrableOn_univ.mp hm |
| 65 | |
| 66 | theorem ae_sum_coordinate_eq_zero (f : Fin 3 → ComplexL2) |
| 67 | (hf : (∑ i : Fin 3, multiplier i (f i)) = 0) : |
| 68 | ∀ᵐ ξ : Space ∂volume, ∑ i : Fin 3, coordinate i ξ * f i ξ = 0 := by |
| 69 | apply WeakFourierUniqueness.ae_eq_zero_of_integral_schwartz_test_mul_eq_zero |
| 70 | · exact locallyIntegrable_finsetSum _ (fun i _ => locallyIntegrable_coordinate i (f i)) |
| 71 | intro ψ |
| 72 | have h := congrArg (fun T : ComplexDistribution => T ψ) hf |
| 73 | change (∑ i : Fin 3, multiplier i (f i) ψ) = 0 at h |
| 74 | simp only [multiplier_apply] at h |
| 75 | rw [show (fun ξ : Space => (∑ i : Fin 3, coordinate i ξ * f i ξ) * ψ ξ) = |
| 76 | (fun ξ : Space => ∑ i : Fin 3, coordinate i ξ * f i ξ * ψ ξ) by |
| 77 | funext ξ; rw [Finset.sum_mul]] |
| 78 | rw [integral_finsetSum _ (fun i _ => integrable_coordinate_test i (f i) ψ)] |
| 79 | exact h |
| 80 | |
| 81 | theorem ae_coordinate_eq (i j : Fin 3) (f g : ComplexL2) |
| 82 | (hf : multiplier i f = multiplier j g) : |
| 83 | ∀ᵐ ξ : Space ∂volume, coordinate i ξ * f ξ = coordinate j ξ * g ξ := by |
| 84 | have hz : (fun ξ : Space => coordinate i ξ * f ξ - coordinate j ξ * g ξ) |
| 85 | =ᵐ[volume] 0 := by |
| 86 | apply WeakFourierUniqueness.ae_eq_zero_of_integral_schwartz_test_mul_eq_zero |
| 87 | · exact (locallyIntegrable_coordinate i f).sub (locallyIntegrable_coordinate j g) |
| 88 | intro ψ |
| 89 | have h := congrArg (fun T : ComplexDistribution => T ψ) hf |
| 90 | rw [multiplier_apply, multiplier_apply] at h |
| 91 | simp_rw [sub_mul] |
| 92 | rw [integral_sub (integrable_coordinate_test i f ψ) |
| 93 | (integrable_coordinate_test j g ψ), h, sub_self] |
| 94 | filter_upwards [hz] with ξ hξ |
| 95 | exact sub_eq_zero.mp hξ |
| 96 | |
| 97 | theorem coordinate_conj (i : Fin 3) (ξ : Space) : star (coordinate i ξ) = coordinate i ξ := by |
| 98 | simp [coordinate] |
| 99 | |
| 100 | theorem inner_eq_zero_of_coordinate_relations (ξ : Space) (hξ : ξ ≠ 0) |
| 101 | (w g : Fin 3 → ℂ) |
| 102 | (hw : ∑ i : Fin 3, coordinate i ξ * w i = 0) |
| 103 | (hg : ∀ i j, coordinate i ξ * g j = coordinate j ξ * g i) : |
| 104 | ∑ i : Fin 3, star (w i) * g i = 0 := by |
| 105 | have he : ∃ k : Fin 3, coordinate k ξ ≠ 0 := by |
| 106 | by_contra hn |
| 107 | push Not at hn |
| 108 | apply hξ |
| 109 | ext k |
| 110 | simpa [coordinate] using hn k |
| 111 | obtain ⟨k, hk⟩ := he |
| 112 | have hwc : ∑ i : Fin 3, coordinate i ξ * star (w i) = 0 := by |
| 113 | have h := congrArg star hw |
| 114 | simpa only [star_sum, star_mul, coordinate_conj, star_zero, mul_comm] using h |
| 115 | apply (mul_eq_zero.mp (show coordinate k ξ * |
| 116 | (∑ i : Fin 3, star (w i) * g i) = 0 from ?_)).resolve_left hk |
| 117 | calc |
| 118 | coordinate k ξ * (∑ i : Fin 3, star (w i) * g i) = |
| 119 | ∑ i : Fin 3, star (w i) * (coordinate k ξ * g i) := by |
| 120 | rw [Finset.mul_sum] |
| 121 | apply Finset.sum_congr rfl |
| 122 | intro i _ |
| 123 | ring |
| 124 | _ = ∑ i : Fin 3, star (w i) * (coordinate i ξ * g k) := by |
| 125 | congr 1 |
| 126 | funext i |
| 127 | rw [hg k i] |
| 128 | _ = (∑ i : Fin 3, coordinate i ξ * star (w i)) * g k := by |
| 129 | rw [Finset.sum_mul] |
| 130 | apply Finset.sum_congr rfl |
| 131 | intro i _ |
| 132 | ring |
| 133 | _ = 0 := by rw [hwc, zero_mul] |
| 134 | |
| 135 | theorem fourier_coordinate_derivative (i : Fin 3) (f : ComplexL2) : |
| 136 | 𝓕 (LineDeriv.lineDerivOp (coordinateVector i) (Lp.toTemperedDistribution f)) = |
| 137 | (2 * (Real.pi : ℂ) * Complex.I) • multiplier i (𝓕 f) := by |
| 138 | rw [TemperedDistribution.fourier_lineDerivOp_eq, Lp.fourier_toTemperedDistribution_eq] |
| 139 | rw [multiplier, coordinate_eq_inner] |
| 140 | |
| 141 | theorem fourier_constant_ne_zero : 2 * (Real.pi : ℂ) * Complex.I ≠ 0 := by |
| 142 | exact mul_ne_zero (mul_ne_zero (by norm_num) |
| 143 | (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero)) Complex.I_ne_zero |
| 144 | |
| 145 | theorem fourier_divergence (W : Fin 3 → ComplexL2) |
| 146 | (hW : (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 147 | (Lp.toTemperedDistribution (W i))) = 0) : |
| 148 | ∀ᵐ ξ : Space ∂volume, ∑ i : Fin 3, coordinate i ξ * (𝓕 (W i)) ξ = 0 := by |
| 149 | apply ae_sum_coordinate_eq_zero |
| 150 | have h := congrArg (FourierTransform.fourierCLM ℂ ComplexDistribution) hW |
| 151 | change 𝓕 (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 152 | (Lp.toTemperedDistribution (W i))) = 𝓕 (0 : ComplexDistribution) at h |
| 153 | rw [FourierTransform.fourier_sum, FourierTransform.fourier_zero] at h |
| 154 | simp_rw [fourier_coordinate_derivative] at h |
| 155 | rw [← Finset.smul_sum] at h |
| 156 | exact (smul_eq_zero.mp h).resolve_left fourier_constant_ne_zero |
| 157 | |
| 158 | theorem fourier_curl (G : Fin 3 → ComplexL2) |
| 159 | (hG : ∀ i j : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 160 | (Lp.toTemperedDistribution (G j)) = LineDeriv.lineDerivOp (coordinateVector j) |
| 161 | (Lp.toTemperedDistribution (G i))) : |
| 162 | ∀ i j : Fin 3, ∀ᵐ ξ : Space ∂volume, |
| 163 | coordinate i ξ * (𝓕 (G j)) ξ = coordinate j ξ * (𝓕 (G i)) ξ := by |
| 164 | intro i j |
| 165 | apply ae_coordinate_eq |
| 166 | have h := congrArg (FourierTransform.fourierCLM ℂ ComplexDistribution) (hG i j) |
| 167 | change 𝓕 (LineDeriv.lineDerivOp (coordinateVector i) |
| 168 | (Lp.toTemperedDistribution (G j))) = |
| 169 | 𝓕 (LineDeriv.lineDerivOp (coordinateVector j) |
| 170 | (Lp.toTemperedDistribution (G i))) at h |
| 171 | rw [fourier_coordinate_derivative, fourier_coordinate_derivative] at h |
| 172 | apply sub_eq_zero.mp |
| 173 | apply (smul_eq_zero.mp (show (2 * (Real.pi : ℂ) * Complex.I) • |
| 174 | (multiplier i (𝓕 (G j)) - multiplier j (𝓕 (G i))) = 0 from ?_)).resolve_left |
| 175 | fourier_constant_ne_zero |
| 176 | rw [smul_sub, h, sub_self] |
| 177 | |
| 178 | theorem sum_inner_eq_integral (W G : Fin 3 → ComplexL2) : |
| 179 | (∑ i : Fin 3, inner ℂ (W i) (G i)) = |
| 180 | ∫ ξ : Space, ∑ i : Fin 3, star (W i ξ) * G i ξ := by |
| 181 | simp only [L2.inner_def, RCLike.inner_apply] |
| 182 | rw [integral_finsetSum] |
| 183 | · congr 1 |
| 184 | funext i |
| 185 | apply integral_congr_ae |
| 186 | filter_upwards [] with ξ |
| 187 | change G i ξ * star (W i ξ) = star (W i ξ) * G i ξ |
| 188 | exact mul_comm _ _ |
| 189 | · intro i _ |
| 190 | exact ((Lp.memLp (W i)).star).integrable_mul (Lp.memLp (G i)) |
| 191 | |
| 192 | theorem fourier_inner_ae_zero (W G : Fin 3 → ComplexL2) |
| 193 | (hW : (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 194 | (Lp.toTemperedDistribution (W i))) = 0) |
| 195 | (hG : ∀ i j : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 196 | (Lp.toTemperedDistribution (G j)) = LineDeriv.lineDerivOp (coordinateVector j) |
| 197 | (Lp.toTemperedDistribution (G i))) : |
| 198 | ∀ᵐ ξ : Space ∂volume, |
| 199 | ∑ i : Fin 3, star ((𝓕 (W i)) ξ) * (𝓕 (G i)) ξ = 0 := by |
| 200 | have hd := fourier_divergence W hW |
| 201 | have hc : ∀ᵐ ξ : Space ∂volume, ∀ i j : Fin 3, |
| 202 | coordinate i ξ * (𝓕 (G j)) ξ = coordinate j ξ * (𝓕 (G i)) ξ := by |
| 203 | rw [ae_all_iff] |
| 204 | intro i |
| 205 | rw [ae_all_iff] |
| 206 | exact fourier_curl G hG i |
| 207 | have hne : ∀ᵐ ξ : Space ∂volume, ξ ≠ 0 := by simp [ae_iff] |
| 208 | filter_upwards [hd, hc, hne] with ξ hdξ hcξ hξ |
| 209 | exact inner_eq_zero_of_coordinate_relations ξ hξ _ _ hdξ hcξ |
| 210 | |
| 211 | /-- Plancherel orthogonality needs only the distributional divergence and curl |
| 212 | equations and square integrability of the two fields. -/ |
| 213 | theorem inner_eq_zero_of_divergence_eq_zero_curl_eq_zero (W G : Fin 3 → ComplexL2) |
| 214 | (hW : (∑ i : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 215 | (Lp.toTemperedDistribution (W i))) = 0) |
| 216 | (hG : ∀ i j : Fin 3, LineDeriv.lineDerivOp (coordinateVector i) |
| 217 | (Lp.toTemperedDistribution (G j)) = LineDeriv.lineDerivOp (coordinateVector j) |
| 218 | (Lp.toTemperedDistribution (G i))) : |
| 219 | ∑ i : Fin 3, inner ℂ (W i) (G i) = 0 := by |
| 220 | have hF : (∑ i : Fin 3, inner ℂ (W i) (G i)) = |
| 221 | ∑ i : Fin 3, inner ℂ (𝓕 (W i)) (𝓕 (G i)) := by |
| 222 | apply Finset.sum_congr rfl |
| 223 | intro i _ |
| 224 | exact (Lp.inner_fourier_eq (W i) (G i)).symm |
| 225 | rw [hF, sum_inner_eq_integral] |
| 226 | exact integral_eq_zero_of_ae (fourier_inner_ae_zero W G hW hG) |
| 227 | |
| 228 | end NavierStokesR3.H3DivCurlFourier |