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.GaussianTailFlat |
| 2 | import NavierStokes.CommonCoverClass |
| 3 | |
| 4 | /-! |
| 5 | # Source envelopes along an entire common-cover slot path |
| 6 | |
| 7 | The common-cover envelope is an actual sum over native copies. Injectivity |
| 8 | of the padded native rectangle identifies the one copy met by a slot path. |
| 9 | The source itself is not assumed periodic on the native torus. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.WaveEnvelopeTransport |
| 15 | |
| 16 | open Set Function Filter |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | open CommonCoverSolve CommonCoverClass TorusInverse |
| 19 | |
| 20 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 21 | ENat.natCast_le_of_coe_top_le_withTop le_rfl n |
| 22 | |
| 23 | /-- The full padded integration rectangle, including both time endpoints. -/ |
| 24 | noncomputable def rectangle (r L : ℝ) : Set Plane := Icc (-r) r ×ˢ Icc 0 L |
| 25 | |
| 26 | noncomputable def nativeRegion (g : Geometry) (r L : ℝ) : Set Plane := |
| 27 | (fun z => g.center + g.basis z) '' rectangle r L |
| 28 | |
| 29 | /-- A geometric injectivity condition, independent of all source fields. -/ |
| 30 | noncomputable def Separated (g : Geometry) (r L : ℝ) : Prop := |
| 31 | InjOn TorusAverages.quotientPoint (nativeRegion g r L) |
| 32 | |
| 33 | theorem native_coordinate_lattice (g : Geometry) (k : Frequency) (Y : Plane) : |
| 34 | g.center + g.basis (g.coordinates k Y) = |
| 35 | TorusAverages.latticePoint (-k) + coverPower g.gap Y := by |
| 36 | have hneg : TorusAverages.latticePoint (-k) = -TorusAverages.latticePoint k := by |
| 37 | ext <;> simp [TorusAverages.latticePoint] |
| 38 | rw [Geometry.coordinates, ContinuousLinearEquiv.apply_symm_apply, hneg] |
| 39 | abel |
| 40 | |
| 41 | theorem copy_unique {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 42 | {k l : Frequency} {Y : Plane} (hk : g.coordinates k Y ∈ rectangle r L) |
| 43 | (hl : g.coordinates l Y ∈ rectangle r L) : k = l := by |
| 44 | have hkm : TorusAverages.latticePoint (-k) + coverPower g.gap Y ∈ nativeRegion g r L := by |
| 45 | rw [← native_coordinate_lattice] |
| 46 | exact ⟨g.coordinates k Y, hk, rfl⟩ |
| 47 | have hlm : TorusAverages.latticePoint (-l) + coverPower g.gap Y ∈ nativeRegion g r L := by |
| 48 | rw [← native_coordinate_lattice] |
| 49 | exact ⟨g.coordinates l Y, hl, rfl⟩ |
| 50 | exact neg_injective (TorusAverages.latticeTranslate_unique hsep hkm hlm) |
| 51 | |
| 52 | /-- The envelope of the grouped label on the common cover. The summands |
| 53 | are nonzero only on their own native integration rectangles. -/ |
| 54 | noncomputable def copyEnvelope (g : Geometry) (r L : ℝ) (W : ℝ → ℝ) (Y : Plane) : ℝ := by |
| 55 | classical |
| 56 | exact ∑' k : Frequency, if g.coordinates k Y ∈ rectangle r L then W (g.coordinates k Y).2 else 0 |
| 57 | |
| 58 | theorem copyEnvelope_nonneg (g : Geometry) (r L : ℝ) {W : ℝ → ℝ} |
| 59 | (hW : ∀ s, 0 ≤ W s) (Y : Plane) : 0 ≤ copyEnvelope g r L W Y := by |
| 60 | classical |
| 61 | apply tsum_nonneg |
| 62 | intro k |
| 63 | split_ifs |
| 64 | · exact hW _ |
| 65 | · exact le_rfl |
| 66 | |
| 67 | theorem copyEnvelope_eq_copy {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 68 | (W : ℝ → ℝ) {k : Frequency} {Y : Plane} (hk : g.coordinates k Y ∈ rectangle r L) : |
| 69 | copyEnvelope g r L W Y = W (g.coordinates k Y).2 := by |
| 70 | classical |
| 71 | unfold copyEnvelope |
| 72 | rw [tsum_eq_single k] |
| 73 | · simp only [ite_eq_left hk] |
| 74 | · intro l hl |
| 75 | split_ifs with hmem |
| 76 | · exact (hl (copy_unique hsep hmem hk)).elim |
| 77 | · rfl |
| 78 | |
| 79 | theorem coordinates_path_in_rectangle (g : Geometry) (k : Frequency) (Y : Plane) |
| 80 | {r L s : ℝ} (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) (hs : s ∈ Icc 0 L) : |
| 81 | g.coordinates k (g.path k Y s) ∈ rectangle r L := by |
| 82 | rw [g.coordinates_path] |
| 83 | exact ⟨hξ, hs⟩ |
| 84 | |
| 85 | /-- Exact envelope identification at every integration time, including |
| 86 | the entry and exit. No bound at the current point is extrapolated. -/ |
| 87 | theorem copyEnvelope_path {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 88 | (W : ℝ → ℝ) (k : Frequency) (Y : Plane) |
| 89 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) {s : ℝ} (hs : s ∈ Icc 0 L) : |
| 90 | copyEnvelope g r L W (g.path k Y s) = W s := by |
| 91 | rw [copyEnvelope_eq_copy hsep W (coordinates_path_in_rectangle g k Y hξ hs), |
| 92 | g.coordinates_path] |
| 93 | |
| 94 | theorem entire_path_in_rectangle (g : Geometry) (k : Frequency) (Y : Plane) |
| 95 | {r L : ℝ} (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) : |
| 96 | MapsTo (g.path k Y) (Icc 0 L) {Z | g.coordinates k Z ∈ rectangle r L} := |
| 97 | fun _ hs => coordinates_path_in_rectangle g k Y hξ hs |
| 98 | |
| 99 | theorem path_transverse (g : Geometry) (k : Frequency) (Y : Plane) (s : ℝ) : |
| 100 | (g.coordinates k (g.path k Y s)).1 = (g.coordinates k Y).1 := by |
| 101 | rw [g.coordinates_path] |
| 102 | |
| 103 | theorem path_time (g : Geometry) (k : Frequency) (Y : Plane) (s : ℝ) : |
| 104 | (g.coordinates k (g.path k Y s)).2 = s := by rw [g.coordinates_path] |
| 105 | |
| 106 | section SlowCoordinates |
| 107 | |
| 108 | variable {P : Type} {V : Type*} |
| 109 | |
| 110 | theorem source_path_observable (g : Geometry) (k : Frequency) (F : P → V) |
| 111 | (z : P × Plane) (s : ℝ) : F (sourceArgument g k (z, s)).1 = F z.1 := rfl |
| 112 | |
| 113 | theorem source_path_mem (g : Geometry) (k : Frequency) {U : Set P} |
| 114 | {z : P × Plane} (hz : z.1 ∈ U) (s : ℝ) : |
| 115 | sourceArgument g k (z, s) ∈ U ×ˢ univ := ⟨hz, mem_univ _⟩ |
| 116 | |
| 117 | theorem source_path_domain (g : Geometry) (k : Frequency) (U : Set P) (r L : ℝ) : |
| 118 | MapsTo (sourceArgument (P := P) g k) |
| 119 | ({z : P × Plane | z.1 ∈ U ∧ (g.coordinates k z.2).1 ∈ Icc (-r) r} ×ˢ Icc 0 L) |
| 120 | {z : P × Plane | z.1 ∈ U ∧ g.coordinates k z.2 ∈ rectangle r L} := by |
| 121 | rintro ⟨⟨p, Y⟩, s⟩ ⟨⟨hp, hξ⟩, hs⟩ |
| 122 | exact ⟨hp, coordinates_path_in_rectangle g k Y hξ hs⟩ |
| 123 | |
| 124 | end SlowCoordinates |
| 125 | |
| 126 | /-- The actual GaussianTailFlat cutoff is evaluated at the integration |
| 127 | time, on the same native copy used to evaluate the source. -/ |
| 128 | theorem cutoff_on_path (g : Geometry) (k : Frequency) (Y : Plane) (L s : ℝ) : |
| 129 | GaussianTailFlat.slotCutoff L (g.coordinates k (g.path k Y s)).2 = |
| 130 | GaussianTailFlat.slotCutoff L s := by rw [g.coordinates_path] |
| 131 | |
| 132 | theorem reference_envelope_on_path {g : Geometry} {r L : ℝ} |
| 133 | (hsep : Separated g r L) (lam u : ℝ) (k : Frequency) (Y : Plane) |
| 134 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) {s : ℝ} (hs : s ∈ Icc 0 L) : |
| 135 | copyEnvelope g r L (GaussianEnvelope.envelope (GaussianEnvelope.referenceRate lam u L) (L / 2)) |
| 136 | (g.path k Y s) = |
| 137 | GaussianEnvelope.envelope (GaussianEnvelope.referenceRate lam u L) (L / 2) s := |
| 138 | copyEnvelope_path hsep _ k Y hξ hs |
| 139 | |
| 140 | theorem reference_envelope_path_gaussian {g : Geometry} {r L lam u : ℝ} |
| 141 | (hsep : Separated g r L) (hlam : 0 < lam) (hu : 0 < u) (hL : 0 < L) |
| 142 | (k : Frequency) (Y : Plane) (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) |
| 143 | {s : ℝ} (hs : s ∈ Icc 0 L) : |
| 144 | Real.exp (-(u * GaussianEnvelope.referenceMaxSlope lam u) * (s - L / 2) ^ 2 / (2 * L)) ≤ |
| 145 | copyEnvelope g r L (GaussianEnvelope.envelope (GaussianEnvelope.referenceRate lam u L) (L / 2)) |
| 146 | (g.path k Y s) ∧ |
| 147 | copyEnvelope g r L (GaussianEnvelope.envelope (GaussianEnvelope.referenceRate lam u L) (L / 2)) |
| 148 | (g.path k Y s) ≤ |
| 149 | Real.exp (-(u * GaussianEnvelope.referenceMinSlope lam u) * (s - L / 2) ^ 2 / (2 * L)) := by |
| 150 | rw [reference_envelope_on_path hsep lam u k Y hξ hs] |
| 151 | exact GaussianEnvelope.reference_gaussian_bounds hlam hu hL hs |
| 152 | |
| 153 | /-- A concrete geometric criterion, uniform in the band and covering gap. |
| 154 | After multiplying slot time by `ci`, the full rectangle has transverse |
| 155 | half-width `r0`, so its injectivity does not deteriorate as `L` grows. -/ |
| 156 | theorem separated_bandGeometry (B : Plane ≃L[ℝ] Plane) (h : ℝ) (n gap : ℕ) |
| 157 | (center : Plane) {r r0 R : ℝ} (hr : r < R) (hr0 : r0 < R) |
| 158 | (hsmall : ‖(B : Plane →L[ℝ] Plane)‖ * R < 1 / 2) : |
| 159 | Separated (bandGeometry B h n gap center) r (ChartScales.slotLength r0 h n) := by |
| 160 | apply (TorusAverages.quotientPoint_injOn_small_chart B (center + B (0, r0)) R hsmall).mono |
| 161 | rintro Y ⟨z, hz, rfl⟩ |
| 162 | have hci := ChartScales.timeCoefficient_pos h n |
| 163 | have htime : 0 ≤ ChartScales.timeCoefficient h n * z.2 ∧ |
| 164 | ChartScales.timeCoefficient h n * z.2 ≤ 2 * r0 := by |
| 165 | refine ⟨mul_nonneg hci.le hz.2.1, ?_⟩ |
| 166 | have ht := (le_div_iff₀ hci).1 hz.2.2 |
| 167 | simpa only [mul_comm] using ht |
| 168 | refine ⟨(z.1, ChartScales.timeCoefficient h n * z.2 - r0), ?_, ?_⟩ |
| 169 | · rw [Metric.mem_ball, dist_zero_right, Prod.norm_def, max_lt_iff, |
| 170 | Real.norm_eq_abs, Real.norm_eq_abs] |
| 171 | constructor |
| 172 | · exact (abs_le.mpr hz.1).trans_lt hr |
| 173 | · apply (abs_le.mpr ?_).trans_lt hr0 |
| 174 | dsimp only |
| 175 | constructor <;> linarith [htime.1, htime.2] |
| 176 | · change (center + B (0, r0)) + B (z.1, ChartScales.timeCoefficient h n * z.2 - r0) = |
| 177 | center + scaledBasis B _ _ z |
| 178 | rw [scaledBasis_apply, add_assoc, ← map_add] |
| 179 | congr 2 |
| 180 | ext <;> simp |
| 181 | |
| 182 | theorem exists_separated_native_rectangle (B : Plane ≃L[ℝ] Plane) : |
| 183 | ∃ r : ℝ, 0 < r ∧ ∀ h : ℝ, ∀ n gap : ℕ, ∀ center : Plane, |
| 184 | Separated (bandGeometry B h n gap center) r (ChartScales.slotLength r h n) := by |
| 185 | let M := ‖(B : Plane →L[ℝ] Plane)‖ |
| 186 | let r := 1 / (8 * (M + 1)) |
| 187 | have hM : 0 ≤ M := norm_nonneg _ |
| 188 | have hr : 0 < r := by dsimp [r]; positivity |
| 189 | refine ⟨r, hr, fun h n gap center => separated_bandGeometry B h n gap center |
| 190 | (R := 2 * r) (by linarith) (by linarith) ?_⟩ |
| 191 | change M * (2 * (1 / (8 * (M + 1)))) < 1 / 2 |
| 192 | apply (mul_lt_mul_iff_of_pos_right (show 0 < 8 * (M + 1) by positivity)).1 |
| 193 | field_simp |
| 194 | linarith |
| 195 | |
| 196 | section GroupedSources |
| 197 | |
| 198 | open WeightedClasses |
| 199 | |
| 200 | variable {P V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 201 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 202 | |
| 203 | noncomputable def copyCell (g : Geometry) (r L : ℝ) (k : Frequency) : Set (P × Plane) := |
| 204 | {z | g.coordinates k z.2 ∈ rectangle r L} |
| 205 | |
| 206 | omit [NormedSpace ℝ P] in |
| 207 | theorem copyCell_closed (g : Geometry) (r L : ℝ) (k : Frequency) : |
| 208 | IsClosed (copyCell (P := P) g r L k) := |
| 209 | (isClosed_Icc.prod isClosed_Icc).preimage |
| 210 | ((g.coordinates_contDiff k).continuous.comp continuous_snd) |
| 211 | |
| 212 | omit [NormedSpace ℝ P] in |
| 213 | theorem copyCell_locallyFinite (g : Geometry) (r L : ℝ) : |
| 214 | LocallyFinite (copyCell (P := P) g r L) := by |
| 215 | classical |
| 216 | let κ : Plane → ℝ := (rectangle r L).indicator (fun _ => 1) |
| 217 | have hκ : HasCompactSupport κ := |
| 218 | HasCompactSupport.intro' (K := rectangle r L) (isCompact_Icc.prod isCompact_Icc) |
| 219 | (isClosed_Icc.prod isClosed_Icc) (fun z hz => by simp [κ, hz]) |
| 220 | intro z |
| 221 | obtain ⟨s, hs⟩ := g.finite_copy_cutoffs hκ (‖z.2‖ + 1) |
| 222 | refine ⟨{y : P × Plane | ‖y.2‖ < ‖z.2‖ + 1}, |
| 223 | (isOpen_lt continuous_snd.norm continuous_const).mem_nhds (by simp), ?_⟩ |
| 224 | apply s.finite_toSet.subset |
| 225 | intro k hk |
| 226 | obtain ⟨y, hy, hnorm⟩ := hk |
| 227 | by_contra hnot |
| 228 | have hh := hs y.2 hnorm.le k hnot |
| 229 | change g.coordinates k y.2 ∈ rectangle r L at hy |
| 230 | simp [κ, hy] at hh |
| 231 | |
| 232 | /-- Coefficients may differ in every native copy. This is an actual sum |
| 233 | of common-cover fields, with no substitution of a native-periodic source. -/ |
| 234 | noncomputable def grouped (F : Frequency → P × Plane → V) (z : P × Plane) : V := |
| 235 | ∑' k : Frequency, F k z |
| 236 | |
| 237 | omit [NormedSpace ℝ P] [NormedSpace ℝ V] in |
| 238 | theorem grouped_eventually_eq_copy {g : Geometry} {r L : ℝ} |
| 239 | (hsep : Separated g r L) (F : Frequency → P × Plane → V) |
| 240 | (hsupport : ∀ k, support (F k) ⊆ copyCell g r L k) |
| 241 | {k : Frequency} {z : P × Plane} (hz : z ∈ copyCell g r L k) : |
| 242 | grouped F =ᶠ[𝓝 z] F k := by |
| 243 | classical |
| 244 | have hn := (copyCell_locallyFinite (P := P) g r L).iInter_compl_mem_nhds |
| 245 | (copyCell_closed g r L) z |
| 246 | filter_upwards [hn] with y hy |
| 247 | apply tsum_eq_single k |
| 248 | intro l hl |
| 249 | have hznot : z ∉ copyCell g r L l := fun hzl => hl (copy_unique hsep hzl hz) |
| 250 | have hynot := mem_iInter₂.mp hy l hznot |
| 251 | by_contra hne |
| 252 | exact hynot (hsupport l hne) |
| 253 | |
| 254 | omit [NormedSpace ℝ P] [NormedSpace ℝ V] in |
| 255 | theorem grouped_eventually_zero {g : Geometry} {r L : ℝ} |
| 256 | (F : Frequency → P × Plane → V) |
| 257 | (hsupport : ∀ k, support (F k) ⊆ copyCell g r L k) |
| 258 | {z : P × Plane} (hz : ∀ k, z ∉ copyCell g r L k) : |
| 259 | grouped F =ᶠ[𝓝 z] fun _ => 0 := by |
| 260 | classical |
| 261 | have hn := (copyCell_locallyFinite (P := P) g r L).iInter_compl_mem_nhds |
| 262 | (copyCell_closed g r L) z |
| 263 | filter_upwards [hn] with y hy |
| 264 | have hzero : ∀ k, F k y = 0 := by |
| 265 | intro k |
| 266 | by_contra hne |
| 267 | exact (mem_iInter₂.mp hy k (hz k)) (hsupport k hne) |
| 268 | simp only [grouped, hzero, tsum_zero] |
| 269 | |
| 270 | omit [NormedSpace ℝ P] [NormedSpace ℝ V] in |
| 271 | theorem grouped_on_entire_path {g : Geometry} {r L : ℝ} |
| 272 | (hsep : Separated g r L) (F : Frequency → P × Plane → V) |
| 273 | (hsupport : ∀ k, support (F k) ⊆ copyCell g r L k) |
| 274 | (k : Frequency) (p : P) (Y : Plane) |
| 275 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) : |
| 276 | ∀ v ∈ Icc 0 L, grouped F (p, g.path k Y v) = F k (p, g.path k Y v) := by |
| 277 | intro v hv |
| 278 | have hmem : (p, g.path k Y v) ∈ copyCell g r L k := |
| 279 | coordinates_path_in_rectangle g k Y hξ hv |
| 280 | exact (grouped_eventually_eq_copy hsep F hsupport hmem).self_of_nhds |
| 281 | |
| 282 | omit [NormedSpace ℝ P] [NormedSpace ℝ V] in |
| 283 | /-- A transverse support exclusion for the actual copy coefficient excludes |
| 284 | the entire grouped source on the entire integration path. -/ |
| 285 | theorem grouped_path_zero_of_transverse_support {g : Geometry} {r L : ℝ} |
| 286 | (hsep : Separated g r L) (F : Frequency → P × Plane → V) |
| 287 | (hsupport : ∀ k, support (F k) ⊆ copyCell g r L k) |
| 288 | (k : Frequency) (p : P) (Y : Plane) (T : Set ℝ) |
| 289 | (htransverse : support (F k) ⊆ {z | (g.coordinates k z.2).1 ∈ T}) |
| 290 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) (hξT : (g.coordinates k Y).1 ∉ T) : |
| 291 | ∀ v ∈ Icc 0 L, grouped F (p, g.path k Y v) = 0 := by |
| 292 | intro v hv |
| 293 | rw [grouped_on_entire_path hsep F hsupport k p Y hξ v hv] |
| 294 | by_contra hne |
| 295 | have hh := htransverse hne |
| 296 | exact hξT (by simpa only [Set.mem_ofPred_eq, path_transverse] using hh) |
| 297 | |
| 298 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedSpace ℝ V] in |
| 299 | theorem grouped_path_zero_of_slow_support (g : Geometry) |
| 300 | (F : Frequency → P × Plane → V) (U : Set P) |
| 301 | (hsupport : ∀ k, support (F k) ⊆ {z | z.1 ∈ U}) |
| 302 | (k : Frequency) {p : P} (hp : p ∉ U) (Y : Plane) (v : ℝ) : |
| 303 | grouped F (p, g.path k Y v) = 0 := by |
| 304 | have hz : ∀ l, F l (p, g.path k Y v) = 0 := by |
| 305 | intro l |
| 306 | by_contra hne |
| 307 | exact hp (hsupport l hne) |
| 308 | simp only [grouped, hz, tsum_zero] |
| 309 | |
| 310 | private theorem jet_congr {f g : P × Plane → V} {x : P × Plane} |
| 311 | (he : f =ᶠ[𝓝 x] g) (j : ℕ) : iteratedFDeriv ℝ j f x = iteratedFDeriv ℝ j g x := by |
| 312 | have he' : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using he |
| 313 | simpa only [iteratedFDerivWithin_univ] using |
| 314 | he'.iteratedFDerivWithin_eq (𝕜 := ℝ) he.self_of_nhds j |
| 315 | |
| 316 | /-- Uniform bounds on the actual supported copy coefficients give the |
| 317 | WaveClass of their actual grouped field. Local finiteness and geometric |
| 318 | separation justify all derivatives of the sum. -/ |
| 319 | theorem grouped_waveClass (s : StripData P) (g : ℕ → Geometry) (r L : ℕ → ℝ) |
| 320 | (hsep : ∀ n, Separated (g n) (r n) (L n)) |
| 321 | (W : ℕ → ℝ → ℝ) (hW : ∀ n v, 0 ≤ W n v) (α : ℝ) |
| 322 | (F : ℕ → Frequency → P × Plane → V) |
| 323 | (hFs : ∀ n k, ContDiffOn ℝ ∞ (F n k) (sourceStrip s).domain) |
| 324 | (hFsupport : ∀ n k, support (F n k) ⊆ copyCell (g n) (r n) (L n) k) |
| 325 | (hFjets : ∀ N : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ d : ℕ, ∀ n k z, |
| 326 | z.1 ∈ s.domain → ∀ j ≤ N, ‖iteratedFDeriv ℝ j (F n k) z‖ ≤ |
| 327 | C * s.epsilon n ^ α * s.growth n z.1 ^ d * Real.sqrt (s.zeta z.1) * |
| 328 | W n ((g n).coordinates k z.2).2) : |
| 329 | WaveClass (sourceStrip s) (fun n z => copyEnvelope (g n) (r n) (L n) (W n) z.2) |
| 330 | α (fun n => grouped (F n)) := by |
| 331 | classical |
| 332 | refine ⟨fun n z _ => mul_nonneg (Real.sqrt_nonneg _) (copyEnvelope_nonneg _ _ _ (hW n) _), ?_, ?_⟩ |
| 333 | · intro n z hz |
| 334 | by_cases hk : ∃ k, z ∈ copyCell (g n) (r n) (L n) k |
| 335 | · obtain ⟨k, hk⟩ := hk |
| 336 | exact ((hFs n k).contDiffAt ((sourceStrip s).isOpen_domain.mem_nhds hz)).congr_of_eventuallyEq |
| 337 | (grouped_eventually_eq_copy (hsep n) (F n) (hFsupport n) hk) |>.contDiffWithinAt |
| 338 | · have hn : ∀ k, z ∉ copyCell (g n) (r n) (L n) k := by simpa using hk |
| 339 | exact (contDiffAt_const.congr_of_eventuallyEq |
| 340 | (grouped_eventually_zero (F n) (hFsupport n) hn)).contDiffWithinAt |
| 341 | · intro N |
| 342 | obtain ⟨C, hC, d, hb⟩ := hFjets N |
| 343 | refine ⟨C, hC, d, ?_⟩ |
| 344 | intro n z hz j hj |
| 345 | by_cases hk : ∃ k, z ∈ copyCell (g n) (r n) (L n) k |
| 346 | · obtain ⟨k, hk⟩ := hk |
| 347 | rw [jet_congr (grouped_eventually_eq_copy (hsep n) (F n) (hFsupport n) hk) j] |
| 348 | have hh := hb n k z hz j hj |
| 349 | change ‖iteratedFDeriv ℝ j (F n k) z‖ ≤ |
| 350 | C * s.epsilon n ^ α * s.growth n z.1 ^ d * |
| 351 | (Real.sqrt (s.zeta z.1) * copyEnvelope (g n) (r n) (L n) (W n) z.2) |
| 352 | rw [copyEnvelope_eq_copy (hsep n) (W n) hk] |
| 353 | nlinarith |
| 354 | · have hn : ∀ k, z ∉ copyCell (g n) (r n) (L n) k := by simpa using hk |
| 355 | rw [jet_congr (grouped_eventually_zero (F n) (hFsupport n) hn) j, |
| 356 | iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 357 | exact majorant_nonneg _ _ _ hC _ _ _ |
| 358 | (mul_nonneg (Real.sqrt_nonneg _) (copyEnvelope_nonneg _ _ _ (hW n) _)) |
| 359 | |
| 360 | end GroupedSources |
| 361 | |
| 362 | section SourceJetTransport |
| 363 | |
| 364 | open WeightedClasses |
| 365 | |
| 366 | variable {P V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 367 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 368 | |
| 369 | /-- Full joint derivatives of the actual source along every point of the |
| 370 | slot. The inverse-edge factor remains frozen in `s.growth n z.1`. |
| 371 | The source may depend on the common coordinate in any way allowed by its |
| 372 | actual WaveClass; native periodicity is not a premise. -/ |
| 373 | theorem waveClass_sourceArgument_bound |
| 374 | (s : StripData P) (B : Plane ≃L[ℝ] Plane) {h : ℝ} (hh : 0 ≤ h) |
| 375 | (gapBound : ℕ) (band gap : ℕ → ℕ) (center : ℕ → Plane) (r L : ℕ → ℝ) |
| 376 | (hband : ∀ n, 4 ≤ band n) (hgap : ∀ n, gap n ≤ gapBound) |
| 377 | (hslow : ∀ n, s.slow n = ChartScales.S (band n)) |
| 378 | (hsep : ∀ n, Separated (bandGeometry B h (band n) (gap n) (center n)) (r n) (L n)) |
| 379 | (W : ℕ → ℝ → ℝ) (hW : ∀ n v, 0 ≤ W n v) |
| 380 | {α : ℝ} {f : ℕ → P × Plane → V} |
| 381 | (hf : WaveClass (sourceStrip s) |
| 382 | (fun n z => copyEnvelope (bandGeometry B h (band n) (gap n) (center n)) (r n) (L n) (W n) z.2) |
| 383 | α f) (N : ℕ) : |
| 384 | ∃ C : ℝ, 0 ≤ C ∧ ∃ d : ℕ, ∀ n (k : Frequency) (z : P × Plane), z.1 ∈ s.domain → |
| 385 | ((bandGeometry B h (band n) (gap n) (center n)).coordinates k z.2).1 ∈ Icc (-(r n)) (r n) → |
| 386 | ∀ v ∈ Icc 0 (L n), ∀ j ≤ N, |
| 387 | ‖iteratedFDeriv ℝ j |
| 388 | (fun x : Joint P => f n (sourceArgument (bandGeometry B h (band n) (gap n) (center n)) k x)) |
| 389 | (z, v)‖ ≤ |
| 390 | C * s.growth n z.1 ^ d * (s.epsilon n ^ α * Real.sqrt (s.zeta z.1)) * W n v := by |
| 391 | obtain ⟨A, hA, p, ha⟩ := hf.bounds N |
| 392 | let K := bandArgumentCost B gapBound |
| 393 | have hK : 1 ≤ K := bandArgumentCost_one_le B gapBound |
| 394 | refine ⟨A * K ^ N, by positivity, p + N, ?_⟩ |
| 395 | intro n k z hz hξ v hv j hj |
| 396 | let g := bandGeometry B h (band n) (gap n) (center n) |
| 397 | have hmap : sourceArgument g k (z, v) ∈ (sourceStrip s).domain := hz |
| 398 | have hlocal : sourceArgument g k 0 + sourceLinear P g (z, v) ∈ (sourceStrip s).domain := by |
| 399 | rw [← sourceArgument_affine] |
| 400 | exact hmap |
| 401 | have hjet := CommonCoverClass.norm_affine_jet_le_on (sourceStrip s).isOpen_domain |
| 402 | (hf.smooth n) (sourceLinear P g) (sourceArgument g k 0) hlocal j |
| 403 | simp_rw [← sourceArgument_affine] at hjet |
| 404 | have hsrc := ha n (sourceArgument g k (z, v)) hmap j hj |
| 405 | change ‖iteratedFDeriv ℝ j (f n) (sourceArgument g k (z, v))‖ ≤ |
| 406 | A * s.epsilon n ^ α * s.growth n z.1 ^ p * |
| 407 | (Real.sqrt (s.zeta z.1) * copyEnvelope g (r n) (L n) (W n) (g.path k z.2 v)) at hsrc |
| 408 | rw [copyEnvelope_path (hsep n) (W n) k z.2 hξ hv] at hsrc |
| 409 | have hG := s.one_le_growth n z.1 |
| 410 | have hGn := s.growth_nonneg n z.1 |
| 411 | have hlin : ‖sourceLinear P g‖ ≤ K * s.growth n z.1 := by |
| 412 | apply (norm_sourceLinear_le g).trans |
| 413 | apply (bandGeometry_argumentCost_le B hh (hband n) (hgap n) (center n)).trans |
| 414 | rw [← hslow n] |
| 415 | exact mul_le_mul_of_nonneg_left (s.slow_le_growth n z.1) (zero_le_one.trans hK) |
| 416 | have hpow : ‖sourceLinear P g‖ ^ j ≤ K ^ N * s.growth n z.1 ^ N := by |
| 417 | rw [← mul_pow] |
| 418 | exact (pow_le_pow_left₀ (norm_nonneg _) hlin j).trans |
| 419 | (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le hK hG) hj) |
| 420 | have hw := hW n v |
| 421 | have he := s.epsilon_pos n |
| 422 | calc |
| 423 | _ ≤ ‖iteratedFDeriv ℝ j (f n) (sourceArgument g k (z, v))‖ * |
| 424 | ‖sourceLinear P g‖ ^ j := hjet |
| 425 | _ ≤ (A * s.epsilon n ^ α * s.growth n z.1 ^ p * (Real.sqrt (s.zeta z.1) * W n v)) * |
| 426 | (K ^ N * s.growth n z.1 ^ N) := |
| 427 | mul_le_mul hsrc hpow (pow_nonneg (norm_nonneg _) _) (by positivity) |
| 428 | _ = _ := by rw [pow_add]; ring |
| 429 | |
| 430 | end SourceJetTransport |
| 431 | |
| 432 | section ForcingJetTransport |
| 433 | |
| 434 | open WeightedClasses |
| 435 | |
| 436 | variable {X P V H : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 437 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 438 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 439 | [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 440 | |
| 441 | theorem clm_apply_jet_bound_on {U : Set X} (hU : IsOpen U) |
| 442 | {A : X → V →L[ℝ] H} {f : X → V} (hA : ContDiffOn ℝ ∞ A U) |
| 443 | (hf : ContDiffOn ℝ ∞ f U) {x : X} (hx : x ∈ U) (N : ℕ) {C D : ℝ} |
| 444 | (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 445 | (hAj : ∀ j ≤ N, ‖iteratedFDeriv ℝ j A x‖ ≤ C) |
| 446 | (hfj : ∀ j ≤ N, ‖iteratedFDeriv ℝ j f x‖ ≤ D) (j : ℕ) (hj : j ≤ N) : |
| 447 | ‖iteratedFDeriv ℝ j (fun y => A y (f y)) x‖ ≤ (2 : ℝ) ^ N * C * D := by |
| 448 | have hb := norm_iteratedFDerivWithin_clm_apply hA hf hU.uniqueDiffOn hx (nat_le_infty j) |
| 449 | simp only [iteratedFDerivWithin_of_isOpen _ hU hx] at hb |
| 450 | apply hb.trans |
| 451 | calc |
| 452 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * C * D := by |
| 453 | apply Finset.sum_le_sum |
| 454 | intro i hi |
| 455 | have hij : i ≤ j := Nat.le_of_lt_succ (Finset.mem_range.mp hi) |
| 456 | exact mul_le_mul (mul_le_mul_of_nonneg_left (hAj i (hij.trans hj)) (Nat.cast_nonneg _)) |
| 457 | (hfj (j - i) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 458 | (mul_nonneg (Nat.cast_nonneg _) hC) |
| 459 | _ = (2 : ℝ) ^ j * C * D := by |
| 460 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 461 | congr 2 |
| 462 | exact_mod_cast Nat.sum_range_choose j |
| 463 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 464 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hC) hD |
| 465 | |
| 466 | /-- The actual projected source operator along the whole integration path. |
| 467 | Only native forcing-map jets and the original common-cover source class are |
| 468 | inputs. Both affine pullbacks and their Leibniz product are differentiated. -/ |
| 469 | theorem waveClass_forcingAlong_bound |
| 470 | (s : StripData P) (B : Plane ≃L[ℝ] Plane) {h : ℝ} (hh : 0 ≤ h) |
| 471 | (gapBound : ℕ) (band gap : ℕ → ℕ) (center : ℕ → Plane) (r L : ℕ → ℝ) |
| 472 | (hband : ∀ n, 4 ≤ band n) (hgap : ∀ n, gap n ≤ gapBound) |
| 473 | (hslow : ∀ n, s.slow n = ChartScales.S (band n)) |
| 474 | (hsep : ∀ n, Separated (bandGeometry B h (band n) (gap n) (center n)) (r n) (L n)) |
| 475 | (W : ℕ → ℝ → ℝ) (hW : ∀ n v, 0 ≤ W n v) |
| 476 | (I : ℕ → Set ℝ) (hI : ∀ n, IsOpen (I n)) (hLI : ∀ n, Icc 0 (L n) ⊆ I n) |
| 477 | (d : ℕ → LinearData P V H) {α : ℝ} |
| 478 | (hf : WaveClass (sourceStrip s) |
| 479 | (fun n z => copyEnvelope (bandGeometry B h (band n) (gap n) (center n)) (r n) (L n) (W n) z.2) |
| 480 | α (fun n => (d n).source)) |
| 481 | (hB : ∀ n, ContDiffOn ℝ ∞ (d n).forcingMap (s.domain ×ˢ (univ ×ˢ I n))) |
| 482 | (hBj : ∀ N : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, |
| 483 | ∀ n x, x ∈ s.domain → ∀ ξ ∈ Icc (-(r n)) (r n), ∀ v ∈ Icc 0 (L n), ∀ j ≤ N, |
| 484 | ‖iteratedFDeriv ℝ j (d n).forcingMap (x, (ξ, v))‖ ≤ C * s.growth n x ^ p) |
| 485 | (N : ℕ) : |
| 486 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n (k : Frequency) (z : P × Plane), z.1 ∈ s.domain → |
| 487 | ((bandGeometry B h (band n) (gap n) (center n)).coordinates k z.2).1 ∈ Icc (-(r n)) (r n) → |
| 488 | ∀ v ∈ Icc 0 (L n), ∀ j ≤ N, |
| 489 | ‖iteratedFDeriv ℝ j |
| 490 | ((d n).forcingAlong (bandGeometry B h (band n) (gap n) (center n)) k) (z, v)‖ ≤ |
| 491 | C * s.growth n z.1 ^ p * (s.epsilon n ^ α * Real.sqrt (s.zeta z.1)) * W n v := by |
| 492 | obtain ⟨C, hC, p, hsource⟩ := waveClass_sourceArgument_bound s B hh gapBound band gap center r L |
| 493 | hband hgap hslow hsep W hW hf N |
| 494 | obtain ⟨A, hA, q, hnative⟩ := hBj N |
| 495 | let K := bandArgumentCost B gapBound |
| 496 | have hK : 1 ≤ K := bandArgumentCost_one_le B gapBound |
| 497 | refine ⟨(2 : ℝ) ^ N * A * K ^ N * C, by positivity, q + N + p, ?_⟩ |
| 498 | intro n k z hz hξ v hv j hj |
| 499 | let g := bandGeometry B h (band n) (gap n) (center n) |
| 500 | let U := (s.domain ×ˢ (univ : Set Plane)) ×ˢ I n |
| 501 | have hU : IsOpen U := (s.isOpen_domain.prod isOpen_univ).prod (hI n) |
| 502 | have hx : (z, v) ∈ U := ⟨⟨hz, mem_univ _⟩, hLI n hv⟩ |
| 503 | have hnativeOpen : IsOpen (s.domain ×ˢ (univ : Set ℝ) ×ˢ I n) := |
| 504 | s.isOpen_domain.prod (isOpen_univ.prod (hI n)) |
| 505 | have hBs : ContDiffOn ℝ ∞ (fun y => (d n).forcingMap (nativeArgument g k y)) U := |
| 506 | (hB n).comp (nativeArgument_smooth g k).contDiffOn (fun y hy => ⟨hy.1.1, mem_univ _, hy.2⟩) |
| 507 | have hfs : ContDiffOn ℝ ∞ (fun y => (d n).source (sourceArgument g k y)) U := |
| 508 | (hf.smooth n).comp (sourceArgument_smooth g k).contDiffOn (fun y hy => hy.1.1) |
| 509 | have hGn := s.growth_nonneg n z.1 |
| 510 | have hG := s.one_le_growth n z.1 |
| 511 | have hw := hW n v |
| 512 | have he := s.epsilon_pos n |
| 513 | have hlin : ‖nativeLinear P g‖ ≤ K * s.growth n z.1 := by |
| 514 | apply (norm_nativeLinear_le g).trans |
| 515 | apply (bandGeometry_argumentCost_le B hh (hband n) (hgap n) (center n)).trans |
| 516 | rw [← hslow n] |
| 517 | exact mul_le_mul_of_nonneg_left (s.slow_le_growth n z.1) (zero_le_one.trans hK) |
| 518 | have hBbound : ∀ i ≤ N, |
| 519 | ‖iteratedFDeriv ℝ i (fun y => (d n).forcingMap (nativeArgument g k y)) (z, v)‖ ≤ |
| 520 | A * K ^ N * s.growth n z.1 ^ (q + N) := by |
| 521 | intro i hi |
| 522 | have hpoint : nativeArgument g k 0 + nativeLinear P g (z, v) ∈ |
| 523 | s.domain ×ˢ (univ : Set ℝ) ×ˢ I n := by |
| 524 | rw [← nativeArgument_affine] |
| 525 | exact ⟨hz, mem_univ _, hLI n hv⟩ |
| 526 | have hb := CommonCoverClass.norm_affine_jet_le_on hnativeOpen (hB n) |
| 527 | (nativeLinear P g) (nativeArgument g k 0) hpoint i |
| 528 | simp_rw [← nativeArgument_affine] at hb |
| 529 | have hpow : ‖nativeLinear P g‖ ^ i ≤ K ^ N * s.growth n z.1 ^ N := by |
| 530 | rw [← mul_pow] |
| 531 | exact (pow_le_pow_left₀ (norm_nonneg _) hlin i).trans |
| 532 | (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le hK hG) hi) |
| 533 | calc |
| 534 | _ ≤ ‖iteratedFDeriv ℝ i (d n).forcingMap (nativeArgument g k (z, v))‖ * |
| 535 | ‖nativeLinear P g‖ ^ i := hb |
| 536 | _ ≤ (A * s.growth n z.1 ^ q) * (K ^ N * s.growth n z.1 ^ N) := |
| 537 | mul_le_mul (hnative n z.1 hz _ hξ v hv i hi) hpow |
| 538 | (pow_nonneg (norm_nonneg _) _) (by positivity) |
| 539 | _ = _ := by rw [pow_add]; ring |
| 540 | have hb := clm_apply_jet_bound_on hU hBs hfs hx N (by positivity) |
| 541 | (show 0 ≤ C * s.growth n z.1 ^ p * (s.epsilon n ^ α * Real.sqrt (s.zeta z.1)) * W n v by positivity) |
| 542 | hBbound (fun i hi => hsource n k z hz hξ v hv i hi) j hj |
| 543 | change ‖iteratedFDeriv ℝ j ((d n).forcingAlong g k) (z, v)‖ ≤ _ at hb |
| 544 | apply hb.trans_eq |
| 545 | rw [pow_add] |
| 546 | ring |
| 547 | |
| 548 | end ForcingJetTransport |
| 549 | |
| 550 | section NativePathAndSupport |
| 551 | |
| 552 | variable {P V H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 553 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 554 | [NormedAddCommGroup H] [NormedSpace ℝ H] [CompleteSpace H] |
| 555 | |
| 556 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 557 | /-- The path used by the source estimate is the manuscript's literal path, |
| 558 | with its actual time coefficient and inverse integer covering. -/ |
| 559 | theorem native_source_path (h : ℝ) (n gap : ℕ) (center : Plane) (k : Frequency) |
| 560 | (z : P × Plane) (v : ℝ) : |
| 561 | sourceArgument (bandGeometry nativeBasis h n gap center) k (z, v) = |
| 562 | (z.1, z.2 + (coverPower gap).symm |
| 563 | ((ChartScales.timeCoefficient h n * |
| 564 | (v - ((bandGeometry nativeBasis h n gap center).coordinates k z.2).2)) • |
| 565 | PhysicalGraphBounds.timeDirection)) := by |
| 566 | exact congrArg (fun Y => (z.1, Y)) (native_band_path h n gap center k z.2 v) |
| 567 | |
| 568 | /-- The constructed zero-entry solve vanishes where the grouped source has |
| 569 | no transverse support, using its values along every integration time. -/ |
| 570 | theorem anchoredSolve_zero_of_grouped_transverse_support |
| 571 | (d : LinearData P V H) {g : Geometry} {r L : ℝ} (hL : 0 ≤ L) |
| 572 | (hsep : Separated g r L) (F : Frequency → P × Plane → V) |
| 573 | (hsource : d.source = grouped F) |
| 574 | (hsupport : ∀ k, support (F k) ⊆ copyCell g r L k) |
| 575 | (k : Frequency) (p : P) (Y : Plane) (T : Set ℝ) |
| 576 | (htransverse : support (F k) ⊆ {z | (g.coordinates k z.2).1 ∈ T}) |
| 577 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) (hξT : (g.coordinates k Y).1 ∉ T) |
| 578 | (v : ℝ) : d.anchoredSolve g hL k (p, Y) v = 0 := by |
| 579 | apply d.anchoredSolve_zero_of_source_zero g hL k p Y |
| 580 | rw [hsource] |
| 581 | exact grouped_path_zero_of_transverse_support hsep F hsupport k p Y T htransverse hξ hξT |
| 582 | |
| 583 | end NativePathAndSupport |
| 584 | |
| 585 | end NavierStokes.WaveEnvelopeTransport |