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

chore(NavierStokes/Wave): delete 1 file nothing imports #56
Merged
+0 −269 NavierStokes/WaveDataReindex.lean deleted
| @@ -1,269 +0,0 @@ | ||
| 1 | -import NavierStokes.PhysicalStageBounds | |
| 2 | - | |
| 3 | -/-! | |
| 4 | -# Injective source reindexing for actual physical wave data | |
| 5 | - | |
| 6 | -Only the discrete native source index is enlarged. The source and its weight | |
| 7 | -are extended by zero outside the embedding's image. Physical copies, support | |
| 8 | -cells, chart maps, frequencies and all physical fields remain unchanged. | |
| 9 | --/ | |
| 10 | - | |
| 11 | -noncomputable section | |
| 12 | - | |
| 13 | -namespace NavierStokes.WaveDataReindex | |
| 14 | - | |
| 15 | -open Set Function Filter ProblemStatement | |
| 16 | -open PhysicalStageBounds | |
| 17 | -open scoped Topology ContDiff BigOperators | |
| 18 | - | |
| 19 | -variable {I I' : Type*} | |
| 20 | - | |
| 21 | -/-- An injective extension with a specified zero value off the image. -/ | |
| 22 | -noncomputable def zeroExtend {V : Type*} [Zero V] (e : I ↪ I') (f : I → V) : I' → V := | |
| 23 | - Function.extend e f 0 | |
| 24 | - | |
| 25 | -@[simp] theorem zeroExtend_apply {V : Type*} [Zero V] (e : I ↪ I') (f : I → V) (i : I) : | |
| 26 | - zeroExtend e f (e i) = f i := | |
| 27 | - e.injective.extend_apply f 0 i | |
| 28 | - | |
| 29 | -theorem zeroExtend_of_not_mem_range {V : Type*} [Zero V] (e : I ↪ I') (f : I → V) | |
| 30 | - {i : I'} (hi : i ∉ Set.range e) : zeroExtend e f i = 0 := | |
| 31 | - Function.extend_apply' (f := (e : I → I')) f (0 : I' → V) i hi | |
| 32 | - | |
| 33 | -section Bounds | |
| 34 | - | |
| 35 | -variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 36 | - {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 37 | - {s : WeightedClasses.StripData D} {h α : ℝ} | |
| 38 | - {weight : I → ℕ → D → ℝ} {source : I → ℕ → D → E} | |
| 39 | - | |
| 40 | -/-- Every supplied finite-jet constant and degree works unchanged after | |
| 41 | -extension. At the added indices both sides of the estimate are zero. -/ | |
| 42 | -theorem zeroExtend_bounds (e : I ↪ I') {m p : ℕ} {C : ℝ} | |
| 43 | - (hb : ∀ i n x, x ∈ s.domain → ∀ j : ℕ, j ≤ m → | |
| 44 | - ‖iteratedFDeriv ℝ j (source i n) x‖ ≤ WeightedClasses.majorant s (weight i) α C p n x) : | |
| 45 | - ∀ i n x, x ∈ s.domain → ∀ j : ℕ, j ≤ m → | |
| 46 | - ‖iteratedFDeriv ℝ j (zeroExtend e source i n) x‖ ≤ | |
| 47 | - WeightedClasses.majorant s (zeroExtend e weight i) α C p n x := by | |
| 48 | - intro i n x hx j hj | |
| 49 | - by_cases hi : i ∈ Set.range e | |
| 50 | - · obtain ⟨l, rfl⟩ := hi | |
| 51 | - simpa only [zeroExtend_apply] using hb l n x hx j hj | |
| 52 | - · rw [zeroExtend_of_not_mem_range e source hi, zeroExtend_of_not_mem_range e weight hi] | |
| 53 | - change ‖iteratedFDeriv ℝ j (fun _ : D => (0 : E)) x‖ ≤ | |
| 54 | - WeightedClasses.majorant s (fun _ _ => 0) α C p n x | |
| 55 | - rw [iteratedFDeriv_fun_zero] | |
| 56 | - simp [WeightedClasses.majorant] | |
| 57 | - | |
| 58 | -theorem uniformClass_zeroExtend (e : I ↪ I') | |
| 59 | - (hf : LabelSumBounds.UniformClass s weight α source) : | |
| 60 | - LabelSumBounds.UniformClass s (zeroExtend e weight) α (zeroExtend e source) := by | |
| 61 | - refine ⟨?_, ?_, ?_⟩ | |
| 62 | - · intro i n x hx | |
| 63 | - by_cases hi : i ∈ Set.range e | |
| 64 | - · obtain ⟨l, rfl⟩ := hi | |
| 65 | - simpa only [zeroExtend_apply] using hf.weight_nonneg l n x hx | |
| 66 | - · rw [zeroExtend_of_not_mem_range e weight hi] | |
| 67 | - exact le_rfl | |
| 68 | - · intro i n | |
| 69 | - by_cases hi : i ∈ Set.range e | |
| 70 | - · obtain ⟨l, rfl⟩ := hi | |
| 71 | - simpa only [zeroExtend_apply] using hf.smooth l n | |
| 72 | - · rw [zeroExtend_of_not_mem_range e source hi] | |
| 73 | - exact contDiffOn_const | |
| 74 | - · intro m | |
| 75 | - obtain ⟨C, hC, p, hb⟩ := hf.bounds m | |
| 76 | - exact ⟨C, hC, p, zeroExtend_bounds e hb⟩ | |
| 77 | - | |
| 78 | -/-- All geometric and band constants are retained; no global extension in the | |
| 79 | -continuous variables is involved. -/ | |
| 80 | -theorem localSourceBounds_zeroExtend (e : I ↪ I') | |
| 81 | - (hf : LocalPhysicalCopyBounds.LocalSourceBounds (E := E) s h α weight source) : | |
| 82 | - LocalPhysicalCopyBounds.LocalSourceBounds (E := E) s h α | |
| 83 | - (zeroExtend e weight) (zeroExtend e source) := by | |
| 84 | - refine ⟨uniformClass_zeroExtend e hf.uniform, hf.flat_geometry, ?_, hf.epsilon_eq, hf.slow_le⟩ | |
| 85 | - obtain ⟨c, hc, hb⟩ := hf.weight_le | |
| 86 | - refine ⟨c, hc, ?_⟩ | |
| 87 | - intro i n x hx | |
| 88 | - by_cases hi : i ∈ Set.range e | |
| 89 | - · obtain ⟨l, rfl⟩ := hi | |
| 90 | - simpa only [zeroExtend_apply] using hb l n x hx | |
| 91 | - · rw [zeroExtend_of_not_mem_range e weight hi] | |
| 92 | - exact Real.rpow_nonneg (s.zeta_nonneg x hx) c | |
| 93 | - | |
| 94 | -end Bounds | |
| 95 | - | |
| 96 | -section WaveData | |
| 97 | - | |
| 98 | -variable {h : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 99 | - {K J : Type*} | |
| 100 | - | |
| 101 | -/-- Reindex the native reference used by each unchanged physical copy. -/ | |
| 102 | -noncomputable def reindexChart {N : ℕ} {f : PhysicalCopyBounds.CopyFamily N K} | |
| 103 | - {cells : PhysicalCopyBounds.SupportCells f} {a b r σ : ℝ} | |
| 104 | - {source : I → ℕ → D → ℂ} (e : I ↪ I') | |
| 105 | - (c : LocalPhysicalCopyBounds.CommonChart f cells a b h r σ source) : | |
| 106 | - LocalPhysicalCopyBounds.CommonChart f cells a b h r σ (zeroExtend e source) where | |
| 107 | - sourceIndex k L := e (c.sourceIndex k L) | |
| 108 | - map := c.map | |
| 109 | - domain := c.domain | |
| 110 | - open_domain := c.open_domain | |
| 111 | - smooth := c.smooth | |
| 112 | - positive_jets := c.positive_jets | |
| 113 | - amplitude_eq := by | |
| 114 | - intro k L x hx | |
| 115 | - simpa only [zeroExtend_apply] using c.amplitude_eq k L hx | |
| 116 | - contains := c.contains | |
| 117 | - | |
| 118 | -/-- Enlarge only the source type. Every copy, carrier, support cell and chart | |
| 119 | -map is literally the original one. -/ | |
| 120 | -noncomputable def reindexSource (e : I ↪ I') (W : WaveData h D I K J) : WaveData h D I' K J where | |
| 121 | - lowerRadius := W.lowerRadius | |
| 122 | - upperRadius := W.upperRadius | |
| 123 | - nativeWidth := W.nativeWidth | |
| 124 | - slowBound := W.slowBound | |
| 125 | - frequencyBound := W.frequencyBound | |
| 126 | - alpha := W.alpha | |
| 127 | - shift := W.shift | |
| 128 | - harmonics := W.harmonics | |
| 129 | - gapBound := W.gapBound | |
| 130 | - lower_pos := W.lower_pos | |
| 131 | - width_nonneg := W.width_nonneg | |
| 132 | - slow_nonneg := W.slow_nonneg | |
| 133 | - frequency_one_le := W.frequency_one_le | |
| 134 | - strip := W.strip | |
| 135 | - weight := zeroExtend e W.weight | |
| 136 | - source := zeroExtend e W.source | |
| 137 | - source_bounds := localSourceBounds_zeroExtend e W.source_bounds | |
| 138 | - copies := W.copies | |
| 139 | - cells := W.cells | |
| 140 | - chart i := reindexChart e (W.chart i) | |
| 141 | - chart_maps := W.chart_maps | |
| 142 | - carrier := W.carrier | |
| 143 | - support := W.support | |
| 144 | - smooth := W.smooth | |
| 145 | - frequencies := W.frequencies | |
| 146 | - | |
| 147 | -@[simp] theorem reindexSource_alpha (e : I ↪ I') (W : WaveData h D I K J) : | |
| 148 | - (reindexSource e W).alpha = W.alpha := rfl | |
| 149 | - | |
| 150 | -@[simp] theorem reindexSource_shift (e : I ↪ I') (W : WaveData h D I K J) : | |
| 151 | - (reindexSource e W).shift = W.shift := rfl | |
| 152 | - | |
| 153 | -@[simp] theorem reindexSource_harmonics (e : I ↪ I') (W : WaveData h D I K J) : | |
| 154 | - (reindexSource e W).harmonics = W.harmonics := rfl | |
| 155 | - | |
| 156 | -@[simp] theorem reindexSource_lowerRadius (e : I ↪ I') (W : WaveData h D I K J) : | |
| 157 | - (reindexSource e W).lowerRadius = W.lowerRadius := rfl | |
| 158 | - | |
| 159 | -@[simp] theorem reindexSource_upperRadius (e : I ↪ I') (W : WaveData h D I K J) : | |
| 160 | - (reindexSource e W).upperRadius = W.upperRadius := rfl | |
| 161 | - | |
| 162 | -@[simp] theorem reindexSource_nativeWidth (e : I ↪ I') (W : WaveData h D I K J) : | |
| 163 | - (reindexSource e W).nativeWidth = W.nativeWidth := rfl | |
| 164 | - | |
| 165 | -@[simp] theorem reindexSource_slowBound (e : I ↪ I') (W : WaveData h D I K J) : | |
| 166 | - (reindexSource e W).slowBound = W.slowBound := rfl | |
| 167 | - | |
| 168 | -@[simp] theorem reindexSource_frequencyBound (e : I ↪ I') (W : WaveData h D I K J) : | |
| 169 | - (reindexSource e W).frequencyBound = W.frequencyBound := rfl | |
| 170 | - | |
| 171 | -@[simp] theorem reindexSource_gapBound (e : I ↪ I') (W : WaveData h D I K J) : | |
| 172 | - (reindexSource e W).gapBound = W.gapBound := rfl | |
| 173 | - | |
| 174 | -@[simp] theorem reindexSource_strip (e : I ↪ I') (W : WaveData h D I K J) : | |
| 175 | - (reindexSource e W).strip = W.strip := rfl | |
| 176 | - | |
| 177 | -@[simp] theorem reindexSource_source (e : I ↪ I') (W : WaveData h D I K J) (i : I) : | |
| 178 | - (reindexSource e W).source (e i) = W.source i := zeroExtend_apply e W.source i | |
| 179 | - | |
| 180 | -@[simp] theorem reindexSource_weight (e : I ↪ I') (W : WaveData h D I K J) (i : I) : | |
| 181 | - (reindexSource e W).weight (e i) = W.weight i := zeroExtend_apply e W.weight i | |
| 182 | - | |
| 183 | -theorem reindexSource_source_zero (e : I ↪ I') (W : WaveData h D I K J) {i : I'} | |
| 184 | - (hi : i ∉ Set.range e) : (reindexSource e W).source i = 0 := | |
| 185 | - zeroExtend_of_not_mem_range e W.source hi | |
| 186 | - | |
| 187 | -theorem reindexSource_weight_zero (e : I ↪ I') (W : WaveData h D I K J) {i : I'} | |
| 188 | - (hi : i ∉ Set.range e) : (reindexSource e W).weight i = 0 := | |
| 189 | - zeroExtend_of_not_mem_range e W.weight hi | |
| 190 | - | |
| 191 | -@[simp] theorem reindexSource_copies (e : I ↪ I') (W : WaveData h D I K J) : | |
| 192 | - (reindexSource e W).copies = W.copies := rfl | |
| 193 | - | |
| 194 | -@[simp] theorem reindexSource_cells (e : I ↪ I') (W : WaveData h D I K J) : | |
| 195 | - (reindexSource e W).cells = W.cells := rfl | |
| 196 | - | |
| 197 | -@[simp] theorem reindexSource_chart_map (e : I ↪ I') (W : WaveData h D I K J) (i : J) : | |
| 198 | - ((reindexSource e W).chart i).map = (W.chart i).map := rfl | |
| 199 | - | |
| 200 | -@[simp] theorem reindexSource_chart_domain (e : I ↪ I') (W : WaveData h D I K J) (i : J) : | |
| 201 | - ((reindexSource e W).chart i).domain = (W.chart i).domain := rfl | |
| 202 | - | |
| 203 | -@[simp] theorem reindexSource_chart_index (e : I ↪ I') (W : WaveData h D I K J) | |
| 204 | - (i : J) (k : K) (L : PhysicalWaveSum.WaveIndex W.harmonics) : | |
| 205 | - ((reindexSource e W).chart i).sourceIndex k L = e ((W.chart i).sourceIndex k L) := rfl | |
| 206 | - | |
| 207 | -@[simp] theorem reindexSource_scalar (e : I ↪ I') (W : WaveData h D I K J) (i : J) : | |
| 208 | - (reindexSource e W).scalar i = W.scalar i := rfl | |
| 209 | - | |
| 210 | -@[simp] theorem reindexSource_vector (e : I ↪ I') (W : WaveData h D I K (Fin 3)) : | |
| 211 | - (reindexSource e W).vector = W.vector := rfl | |
| 212 | - | |
| 213 | -@[simp] theorem reindexSource_pressure (e : I ↪ I') (W : WaveData h D I K Unit) : | |
| 214 | - (reindexSource e W).pressure = W.pressure := rfl | |
| 215 | - | |
| 216 | -/-- The original locally finite representation and its precise overlap | |
| 217 | -bound are retained; the enlarged source type contributes no new summands. -/ | |
| 218 | -theorem reindexSource_locally_finite (e : I ↪ I') (W : WaveData h D I K J) | |
| 219 | - (hh : 0 < h) (hh1 : h < 1 / 2) (i : J) {w : SpaceTime} | |
| 220 | - (hw : w ∈ PhysicalWaveSum.preterminal) : | |
| 221 | - ∃ s : Finset (PhysicalWaveSum.WaveIndex W.harmonics), | |
| 222 | - s.card ≤ 2250 * (2 * W.harmonics + 1) ∧ | |
| 223 | - (reindexSource e W).scalar i =ᶠ[𝓝 w] fun y => | |
| 224 | - ∑ L ∈ s, (W.copies i).periodized W.lowerRadius h W.nativeWidth L y := | |
| 225 | - (W.support i).sum_locally_finite hh hh1 hw | |
| 226 | - | |
| 227 | -end WaveData | |
| 228 | - | |
| 229 | -section FixedSourceType | |
| 230 | - | |
| 231 | -variable {T : Type*} {S : Type*} {family : S → Type*} | |
| 232 | - {h : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {K J : Type*} | |
| 233 | - | |
| 234 | -/-- A varying source type is embedded in one fixed disjoint union. -/ | |
| 235 | -noncomputable def toSigma (s : S) (W : WaveData h D (family s) K J) : | |
| 236 | - WaveData h D (Sigma family) K J := | |
| 237 | - reindexSource (Function.Embedding.sigmaMk s) W | |
| 238 | - | |
| 239 | -/-- The potential component tag stays outside the same fixed source type | |
| 240 | -used by pressure data. In applications `T = Fin 3`. -/ | |
| 241 | -noncomputable def toSigmaComponents (s : S) (W : WaveData h D (T × family s) K J) : | |
| 242 | - WaveData h D (T × Sigma family) K J := | |
| 243 | - reindexSource ((Function.Embedding.refl T).prodMap (Function.Embedding.sigmaMk s)) W | |
| 244 | - | |
| 245 | -@[simp] theorem toSigma_source (s : S) (W : WaveData h D (family s) K J) (i : family s) : | |
| 246 | - (toSigma s W).source ⟨s, i⟩ = W.source i := | |
| 247 | - zeroExtend_apply (Function.Embedding.sigmaMk s) W.source i | |
| 248 | - | |
| 249 | -theorem toSigma_source_of_ne {s t : S} (hst : s ≠ t) (W : WaveData h D (family s) K J) | |
| 250 | - (i : family t) : (toSigma s W).source ⟨t, i⟩ = 0 := by | |
| 251 | - apply reindexSource_source_zero | |
| 252 | - rintro ⟨j, hj⟩ | |
| 253 | - exact hst (congrArg Sigma.fst hj) | |
| 254 | - | |
| 255 | -@[simp] theorem toSigma_pressure (s : S) (W : WaveData h D (family s) K Unit) : | |
| 256 | - (toSigma s W).pressure = W.pressure := rfl | |
| 257 | - | |
| 258 | -@[simp] theorem toSigmaComponents_source (s : S) (W : WaveData h D (T × family s) K J) | |
| 259 | - (t : T) (i : family s) : | |
| 260 | - (toSigmaComponents s W).source (t, ⟨s, i⟩) = W.source (t, i) := | |
| 261 | - zeroExtend_apply ((Function.Embedding.refl T).prodMap (Function.Embedding.sigmaMk s)) | |
| 262 | - W.source (t, i) | |
| 263 | - | |
| 264 | -@[simp] theorem toSigmaComponents_vector (s : S) (W : WaveData h D (T × family s) K (Fin 3)) : | |
| 265 | - (toSigmaComponents s W).vector = W.vector := rfl | |
| 266 | - | |
| 267 | -end FixedSourceType | |
| 268 | - | |
| 269 | -end NavierStokes.WaveDataReindex | |
+30 −0 routes/s1-ns-wave-files/README.md added View file
| @@ -0,0 +1,30 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-wave-files | |
| 6 | + | |
| 7 | +One file unit of S-1 (issue #10), family `NavierStokes/Wave*`. The unit named two files; this deletes one, | |
| 8 | +`NavierStokes/WaveDataReindex.lean` (269 lines: injective reindexing of the discrete native source index for | |
| 9 | +actual physical wave data, with the source and weight extended by zero off the embedding's image). | |
| 10 | + | |
| 11 | +The other, `NavierStokes/WaveStageContinuation.lean` (1995 lines), stays: two files still in the tree import it — | |
| 12 | +`NavierStokes/CycleContinuationInvariant.lean:1` and `NavierStokes/InitialHarmonicContinuation.lean:3` — and both | |
| 13 | +use its declarations (`WaveStageContinuation.FieldContinuation`, `RadialSupport`, `HarmonicPrimitives`, …), so it | |
| 14 | +is left out of this pull request. | |
| 15 | + | |
| 16 | +Nothing in the tree imports the deleted module or names it: `git grep -n '^import NavierStokes\.WaveDataReindex$'` | |
| 17 | +and `git grep -n 'WaveDataReindex'` find only the file's own namespace lines. No statement of | |
| 18 | +`NavierStokes/PaperResults.lean` or `NavierStokes/PeriodicPaperTheorem.lean` changes, and no other file is touched. | |
| 19 | +`python3 checks/challenge.py .` ends with `ok: …`. | |
| 20 | + | |
| 21 | +The deletion matches Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, branch `treant/01-dead_modules`), | |
| 22 | +which cut this module as dead; it comes from the graph of `import` lines alone, which shows that nothing reachable | |
| 23 | +from `NavierStokes/ComparatorSolution.lean`, `NavierStokes/PaperResults.lean` or `Euler/Solution.lean` imports the | |
| 24 | +file — not that every file left is needed. | |
| 25 | + | |
| 26 | +## Next | |
| 27 | + | |
| 28 | +The maintainer's review after `challenge` and `build`; the other wave-0 file units (`s1-ns-*-files`) follow in pull | |
| 29 | +requests of their own. `WaveStageContinuation.lean` can go in a later unit once the two files that import it | |
| 30 | +(`s1-ns-cycle-files`, `s1-ns-initial-files`) are gone. | |