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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #57 chore(NavierStokes/Schwartz): delete 1 file nothing imports
5 commits
+0 −180 NavierStokes/SchwartzCompactApproximation.lean deleted
| @@ -1,180 +0,0 @@ | ||
| 1 | -import Mathlib.Analysis.Distribution.TemperedDistribution | |
| 2 | -import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct | |
| 3 | - | |
| 4 | -/-! | |
| 5 | -# Compact smooth approximation in Schwartz space | |
| 6 | - | |
| 7 | -Expanding smooth cutoffs converge in every Schwartz seminorm. Consequently, | |
| 8 | -two tempered distributions that agree on compact smooth tests are equal. | |
| 9 | --/ | |
| 10 | - | |
| 11 | -noncomputable section | |
| 12 | -namespace NavierStokes.SchwartzCompactApproximation | |
| 13 | - | |
| 14 | -open Set Filter | |
| 15 | -open scoped SchwartzMap Topology ContDiff | |
| 16 | - | |
| 17 | -variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| 18 | - [FiniteDimensional ℝ E] | |
| 19 | - | |
| 20 | -def bump : ContDiffBump (0 : E) where | |
| 21 | - rIn := 1 | |
| 22 | - rOut := 2 | |
| 23 | - rIn_pos := by norm_num | |
| 24 | - rIn_lt_rOut := by norm_num | |
| 25 | - | |
| 26 | -def cutoff (R : ℝ) (x : E) : ℝ := (bump (E := E)) (R⁻¹ • x) | |
| 27 | - | |
| 28 | -theorem cutoff_contDiff (R : ℝ) : ContDiff ℝ ∞ (cutoff (E := E) R) := by | |
| 29 | - apply ((bump (E := E)).contDiff (n := (⊤ : ℕ∞))).comp | |
| 30 | - fun_prop | |
| 31 | - | |
| 32 | -theorem cutoff_compact {R : ℝ} (hR : R ≠ 0) : HasCompactSupport (cutoff (E := E) R) := | |
| 33 | - (bump (E := E)).hasCompactSupport.comp_smul (G₀ := ℝ) (c := R⁻¹) (inv_ne_zero hR) | |
| 34 | - | |
| 35 | -theorem cutoff_one {R : ℝ} (hR : 0 < R) {x : E} (hx : ‖x‖ ≤ R) : cutoff R x = 1 := by | |
| 36 | - apply (bump (E := E)).one_of_mem_closedBall | |
| 37 | - simp only [Metric.mem_closedBall, dist_zero_right, norm_smul, Real.norm_eq_abs, | |
| 38 | - abs_of_pos (inv_pos.mpr hR)] | |
| 39 | - change R⁻¹ * ‖x‖ ≤ 1 | |
| 40 | - exact (inv_mul_le_iff₀ hR).mpr (by simpa using hx) | |
| 41 | - | |
| 42 | -def bumpSchwartz : 𝓢(E, ℝ) := (bump (E := E)).hasCompactSupport.toSchwartzMap ((bump (E := E)).contDiff (n := (⊤ : ℕ∞))) | |
| 43 | - | |
| 44 | -def derivativeBound (n : ℕ) : ℝ := SchwartzMap.seminorm ℝ 0 n (bumpSchwartz (E := E)) + 1 | |
| 45 | - | |
| 46 | -theorem derivativeBound_nonneg (n : ℕ) : 0 ≤ derivativeBound (E := E) n := by | |
| 47 | - unfold derivativeBound | |
| 48 | - positivity | |
| 49 | - | |
| 50 | -theorem cutoff_derivative_bound {R : ℝ} (hR : 1 ≤ R) (n : ℕ) (x : E) : | |
| 51 | - ‖iteratedFDeriv ℝ n (cutoff R) x‖ ≤ | |
| 52 | - SchwartzMap.seminorm ℝ 0 n (bumpSchwartz (E := E)) := by | |
| 53 | - have hRpos : 0 < R := lt_of_lt_of_le zero_lt_one hR | |
| 54 | - have he := congrFun (iteratedFDeriv_comp_const_smul (R⁻¹) | |
| 55 | - ((bump (E := E)).contDiff (n := (n : ℕ∞)))) x | |
| 56 | - change ‖iteratedFDeriv ℝ n (fun z : E => (bump (E := E)) (R⁻¹ • z)) x‖ ≤ _ | |
| 57 | - rw [he, norm_smul, Real.norm_eq_abs, abs_of_nonneg (by positivity)] | |
| 58 | - have hp : R⁻¹ ^ n ≤ 1 := pow_le_one₀ (by positivity) (inv_le_one_of_one_le₀ hR) | |
| 59 | - exact (mul_le_of_le_one_left (norm_nonneg _) hp).trans | |
| 60 | - (SchwartzMap.norm_iteratedFDeriv_le_seminorm ℝ bumpSchwartz n _) | |
| 61 | - | |
| 62 | -def approximate (R : ℝ) (f : 𝓢(E, ℂ)) : 𝓢(E, ℂ) := | |
| 63 | - SchwartzMap.smulLeftCLM ℂ (fun x : E => (cutoff R x : ℂ)) f | |
| 64 | - | |
| 65 | -theorem cutoff_temperate {R : ℝ} (hR : R ≠ 0) : | |
| 66 | - (fun x : E => (cutoff R x : ℂ)).HasTemperateGrowth := | |
| 67 | - Complex.ofRealCLM.hasTemperateGrowth.comp | |
| 68 | - ((cutoff_compact hR).hasTemperateGrowth (cutoff_contDiff R)) | |
| 69 | - | |
| 70 | -theorem approximate_apply {R : ℝ} (hR : R ≠ 0) (f : 𝓢(E, ℂ)) (x : E) : | |
| 71 | - approximate R f x = (cutoff R x : ℂ) * f x := by | |
| 72 | - simp [approximate, cutoff_temperate hR, smul_eq_mul] | |
| 73 | - | |
| 74 | -theorem approximate_compact {R : ℝ} (hR : R ≠ 0) (f : 𝓢(E, ℂ)) : | |
| 75 | - HasCompactSupport (approximate R f : E → ℂ) := by | |
| 76 | - have hc : HasCompactSupport (fun x : E => (cutoff R x : ℂ) * f x) := | |
| 77 | - ((cutoff_compact (E := E) hR).comp_left (g := Complex.ofReal) (by simp)).mul_right | |
| 78 | - convert hc using 1 | |
| 79 | - funext x | |
| 80 | - exact approximate_apply hR f x | |
| 81 | - | |
| 82 | -theorem cutoff_sub_one_derivative_bound {R : ℝ} (hR : 1 ≤ R) (n : ℕ) (x : E) : | |
| 83 | - ‖iteratedFDeriv ℝ n (fun y => cutoff R y - 1) x‖ ≤ derivativeBound (E := E) n := by | |
| 84 | - change ‖iteratedFDeriv ℝ n (cutoff R - fun _ : E => (1 : ℝ)) x‖ ≤ _ | |
| 85 | - rw [iteratedFDeriv_sub_apply ((cutoff_contDiff R).of_le (by simp)).contDiffAt | |
| 86 | - contDiffAt_const] | |
| 87 | - apply (norm_sub_le _ _).trans | |
| 88 | - apply add_le_add (cutoff_derivative_bound hR n x) | |
| 89 | - cases n with | |
| 90 | - | zero => simp | |
| 91 | - | succ n => simp [iteratedFDeriv_succ_const] | |
| 92 | - | |
| 93 | -theorem approximate_sub_apply {R : ℝ} (hR : R ≠ 0) (f : 𝓢(E, ℂ)) : | |
| 94 | - ((approximate R f - f : 𝓢(E, ℂ)) : E → ℂ) = fun x => (cutoff R x - 1) • f x := by | |
| 95 | - funext x | |
| 96 | - simp [approximate_apply hR, sub_smul, Complex.real_smul] | |
| 97 | - | |
| 98 | -def approximationBound (k n : ℕ) (f : 𝓢(E, ℂ)) : ℝ := | |
| 99 | - ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * derivativeBound (E := E) i * | |
| 100 | - SchwartzMap.seminorm ℝ k (n - i) f | |
| 101 | - | |
| 102 | -theorem approximationBound_nonneg (k n : ℕ) (f : 𝓢(E, ℂ)) : | |
| 103 | - 0 ≤ approximationBound k n f := by | |
| 104 | - unfold approximationBound | |
| 105 | - exact Finset.sum_nonneg fun i _ => mul_nonneg | |
| 106 | - (mul_nonneg (Nat.cast_nonneg _) (derivativeBound_nonneg i)) (apply_nonneg _ _) | |
| 107 | - | |
| 108 | -theorem approximation_derivative_bound {R : ℝ} (hR : 1 ≤ R) (k n : ℕ) | |
| 109 | - (f : 𝓢(E, ℂ)) (x : E) : | |
| 110 | - ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (approximate R f - f : 𝓢(E, ℂ)) x‖ ≤ | |
| 111 | - approximationBound k n f := by | |
| 112 | - rw [approximate_sub_apply (ne_of_gt (lt_of_lt_of_le zero_lt_one hR))] | |
| 113 | - have hd := norm_iteratedFDeriv_smul_le ((cutoff_contDiff R).sub (contDiff_const (c := (1 : ℝ)))) | |
| 114 | - (f.smooth ⊤) x (n := n) (by simp) | |
| 115 | - apply (mul_le_mul_of_nonneg_left hd (by positivity)).trans | |
| 116 | - rw [Finset.mul_sum] | |
| 117 | - apply Finset.sum_le_sum | |
| 118 | - intro i hi | |
| 119 | - calc | |
| 120 | - _ = (n.choose i : ℝ) * ‖iteratedFDeriv ℝ i (fun y => cutoff R y - 1) x‖ * | |
| 121 | - (‖x‖ ^ k * ‖iteratedFDeriv ℝ (n - i) f x‖) := by ring | |
| 122 | - _ ≤ _ := mul_le_mul | |
| 123 | - (mul_le_mul_of_nonneg_left (cutoff_sub_one_derivative_bound hR i x) (by positivity)) | |
| 124 | - (SchwartzMap.le_seminorm ℝ k (n - i) f x) (by positivity) | |
| 125 | - (mul_nonneg (Nat.cast_nonneg _) (derivativeBound_nonneg i)) | |
| 126 | - | |
| 127 | -theorem approximation_derivative_zero {R : ℝ} (hR : 0 < R) (n : ℕ) | |
| 128 | - (f : 𝓢(E, ℂ)) {x : E} (hx : ‖x‖ < R) : | |
| 129 | - iteratedFDeriv ℝ n (approximate R f - f : 𝓢(E, ℂ)) x = 0 := by | |
| 130 | - have he : (approximate R f - f : 𝓢(E, ℂ)) =ᶠ[𝓝 x] (fun _ : E => (0 : ℂ)) := by | |
| 131 | - filter_upwards [((continuous_norm : Continuous (fun x : E => ‖x‖)).isOpen_preimage | |
| 132 | - (Iio R) isOpen_Iio).mem_nhds hx] with y hy | |
| 133 | - change approximate R f y - f y = 0 | |
| 134 | - rw [approximate_apply (ne_of_gt hR), cutoff_one hR (le_of_lt hy)] | |
| 135 | - simp | |
| 136 | - have hd := (he.iteratedFDeriv ℝ n).self_of_nhds | |
| 137 | - simpa using hd | |
| 138 | - | |
| 139 | -/-- The cutoff error is at most a fixed Schwartz seminorm bound divided by | |
| 140 | -its radius. -/ | |
| 141 | -theorem approximation_seminorm_le {R : ℝ} (hR : 1 ≤ R) (k n : ℕ) (f : 𝓢(E, ℂ)) : | |
| 142 | - SchwartzMap.seminorm ℝ k n (approximate R f - f) ≤ approximationBound (k + 1) n f / R := by | |
| 143 | - have hRpos : 0 < R := lt_of_lt_of_le zero_lt_one hR | |
| 144 | - apply SchwartzMap.seminorm_le_bound ℝ k n _ (div_nonneg (approximationBound_nonneg _ _ _) hRpos.le) | |
| 145 | - intro x | |
| 146 | - by_cases hx : ‖x‖ < R | |
| 147 | - · rw [approximation_derivative_zero hRpos n f hx, norm_zero, mul_zero] | |
| 148 | - exact div_nonneg (approximationBound_nonneg _ _ _) hRpos.le | |
| 149 | - · have hb := approximation_derivative_bound hR (k + 1) n f x | |
| 150 | - rw [le_div_iff₀ hRpos] | |
| 151 | - calc | |
| 152 | - _ ≤ ‖x‖ ^ k * ‖iteratedFDeriv ℝ n (approximate R f - f : 𝓢(E, ℂ)) x‖ * ‖x‖ := | |
| 153 | - mul_le_mul_of_nonneg_left (le_of_not_gt hx) (by positivity) | |
| 154 | - _ = ‖x‖ ^ (k + 1) * ‖iteratedFDeriv ℝ n (approximate R f - f : 𝓢(E, ℂ)) x‖ := by ring | |
| 155 | - _ ≤ _ := hb | |
| 156 | - | |
| 157 | -theorem approximate_tendsto (f : 𝓢(E, ℂ)) : | |
| 158 | - Tendsto (fun n : ℕ => approximate ((n : ℝ) + 1) f) atTop (𝓝 f) := by | |
| 159 | - apply (schwartz_withSeminorms ℝ E ℂ).tendsto_nhds _ _ |>.mpr | |
| 160 | - rintro ⟨k, n⟩ ε hε | |
| 161 | - have hr : Tendsto (fun N : ℕ => (N : ℝ) + 1) atTop atTop := | |
| 162 | - (tendsto_natCast_atTop_atTop : Tendsto (fun N : ℕ => (N : ℝ)) atTop atTop).atTop_add | |
| 163 | - (tendsto_const_nhds (x := (1 : ℝ))) | |
| 164 | - have hb : Tendsto (fun N : ℕ => approximationBound (k + 1) n f / ((N : ℝ) + 1)) atTop (𝓝 0) := by | |
| 165 | - simpa only [div_eq_mul_inv, mul_zero, Pi.inv_apply] using tendsto_const_nhds.mul hr.inv_tendsto_atTop | |
| 166 | - filter_upwards [hb.eventually (gt_mem_nhds hε)] with N hN | |
| 167 | - exact (approximation_seminorm_le (R := (N : ℝ) + 1) (by linarith [Nat.cast_nonneg (α := ℝ) N]) k n f).trans_lt hN | |
| 168 | - | |
| 169 | -/-- Compact smooth tests determine a tempered distribution. -/ | |
| 170 | -theorem tempered_eq_of_compact_tests {S T : 𝓢'(E, ℂ)} | |
| 171 | - (h : ∀ f : 𝓢(E, ℂ), HasCompactSupport (f : E → ℂ) → S f = T f) : S = T := by | |
| 172 | - ext f | |
| 173 | - have hS := S.continuous.continuousAt.tendsto.comp (approximate_tendsto f) | |
| 174 | - have hT := T.continuous.continuousAt.tendsto.comp (approximate_tendsto f) | |
| 175 | - apply tendsto_nhds_unique hS | |
| 176 | - apply hT.congr' | |
| 177 | - filter_upwards with n | |
| 178 | - exact (h _ (approximate_compact (by positivity) f)).symm | |
| 179 | - | |
| 180 | -end NavierStokes.SchwartzCompactApproximation | |
+33 −0 routes/s1-ns-schwartz-files/README.md added View file
| @@ -0,0 +1,33 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-schwartz-files | |
| 6 | + | |
| 7 | +Wave 0 of #10 (S-1, its first step: the files), family `NavierStokes/Schwartz*`. The unit names one file, | |
| 8 | +`NavierStokes/SchwartzCompactApproximation.lean` (181 lines by the unit's count; `wc -l` says 180, the off-by-one | |
| 9 | +of #44). I delete it and nothing else. | |
| 10 | + | |
| 11 | +Checked at main `5b71790`: no file in the tree has an `import` line naming the module. | |
| 12 | +`git grep -n -E '^import NavierStokes\.SchwartzCompactApproximation$' -- '*.lean'` prints nothing. The only other | |
| 13 | +files whose text mentions the name are `NavierStokes/R3/SchwartzCompactApproximation.lean` — a different module, | |
| 14 | +namespace `NavierStokesR3.SchwartzCompactApproximation` — and its two importers, | |
| 15 | +`NavierStokes/R3/H3PressureDistribution.lean:2` and `NavierStokes/R3/HarmonicTestFunctionals.lean:5`; that module | |
| 16 | +and the `NavierStokes/R3/` folder stay. | |
| 17 | + | |
| 18 | +An earlier version of this note kept the file because `NavierStokes/R3WeakPressure.lean:2` imported it and used | |
| 19 | +`SchwartzCompactApproximation.tempered_eq_of_compact_tests` (declared at line 170 of the file) at its lines 36 and | |
| 20 | +153. That importer was itself dead by #10's criterion: walking importers up from the file gave a closed set of ten | |
| 21 | +modules, and none was in the closure from `NavierStokes/ComparatorSolution.lean`, | |
| 22 | +`NavierStokes/PaperResults.lean` or `Euler/Solution.lean` — `SchwartzCompactApproximation` ← `R3WeakPressure` ← | |
| 23 | +`R3SmoothPressure` ← `R3LocalizedPressure` ← {`R3SpaceTimeCalculus`, `R3PressurePairing`} ← | |
| 24 | +{`R3CutoffTestFields`, `R3DifferenceStress`, `R3LocalizedPressureTests`} ← `R3PhysicalPressureBound`, which | |
| 25 | +nothing imported. Nine of those ten were the `s1-ns-r3-files` row (top-level `NavierStokes/R3*.lean`), merged as | |
| 26 | +#55 and deleted; with them gone the file has no importer, so it goes here rather than with that row. | |
| 27 | + | |
| 28 | +## Next | |
| 29 | + | |
| 30 | +Nothing left in this unit. The remaining question of #10 is the declaration step (S-2), a family at a time, | |
| 31 | +which needs a full build. | |
| 32 | + | |
| 33 | +What this does not show: that every remaining file is needed. | |