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.ActualSignedPhysicalData |
| 2 | |
| 3 | /-! |
| 4 | # Signed physical families with label-dependent phase domains |
| 5 | |
| 6 | Each active primary label retains its own phase domain, primary data, views, |
| 7 | and state. Homogeneous singleton views permit reuse of the existing per-label |
| 8 | constructors. Physical copies are then assembled before the locally finite |
| 9 | sum is estimated; no maximum over infinitely many per-label constants occurs. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.DependentSignedPhysicalFamily |
| 15 | |
| 16 | open Set Function Filter ProblemStatement PhysicalWaveSum PhysicalCopyBounds |
| 17 | open WeightedClasses |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | abbrev NativeLabel := ActualSignedPhysicalData.NativeLabel |
| 21 | |
| 22 | /-- Only active labels carry primary data, and their phase domains may differ. -/ |
| 23 | structure Family where |
| 24 | active : Set BandLabel |
| 25 | domain : NativeLabel active → PhaseJetBounds.Domain ℕ PhaseCalculus.Slow |
| 26 | primary : (L : NativeLabel active) → PhysicalSignedWave.PrimaryData (domain L) |
| 27 | view : (L : NativeLabel active) → (primary L).Views L.val.1 |
| 28 | state : (L : NativeLabel active) → (view L).StateData |
| 29 | column : NativeLabel active → Fin 2 |
| 30 | |
| 31 | namespace Family |
| 32 | |
| 33 | variable (f : Family) |
| 34 | |
| 35 | noncomputable def singletonLabel (L : NativeLabel f.active) : |
| 36 | NativeLabel ({(L : BandLabel)} : Set BandLabel) := |
| 37 | ⟨L.val, L.property, Set.mem_singleton _⟩ |
| 38 | |
| 39 | theorem singleton_label_val (L : NativeLabel f.active) |
| 40 | (K : NativeLabel ({(L : BandLabel)} : Set BandLabel)) : K.val = L.val := |
| 41 | congrArg Subtype.val (Set.mem_singleton_iff.mp K.mem) |
| 42 | |
| 43 | noncomputable def singletonPayload (L : NativeLabel f.active) |
| 44 | (K : NativeLabel ({(L : BandLabel)} : Set BandLabel)) : |
| 45 | Σ V : (f.primary L).Views K.val.1, V.StateData := by |
| 46 | have hband : K.val.1 = L.val.1 := congrArg Prod.fst (f.singleton_label_val L K) |
| 47 | rw [hband] |
| 48 | exact ⟨f.view L, f.state L⟩ |
| 49 | |
| 50 | /-- Reuse the old homogeneous interface for exactly one actual label. |
| 51 | There is no choice of data for an omitted label. -/ |
| 52 | noncomputable def singleton (L : NativeLabel f.active) : |
| 53 | ActualSignedPhysicalData.SignedFamily (f.domain L) where |
| 54 | active := {(L : BandLabel)} |
| 55 | primary _ := f.primary L |
| 56 | view K := (f.singletonPayload L K).1 |
| 57 | state K := (f.singletonPayload L K).2 |
| 58 | column _ := f.column L |
| 59 | |
| 60 | @[simp] theorem singleton_active (L : NativeLabel f.active) : |
| 61 | (f.singleton L).active = {(L : BandLabel)} := rfl |
| 62 | |
| 63 | @[simp] theorem singleton_primary (L : NativeLabel f.active) |
| 64 | (K : NativeLabel (f.singleton L).active) : |
| 65 | (f.singleton L).primary K = f.primary L := rfl |
| 66 | |
| 67 | @[simp] theorem singleton_view (L : NativeLabel f.active) : |
| 68 | (f.singleton L).view (f.singletonLabel L) = f.view L := by |
| 69 | rfl |
| 70 | |
| 71 | @[simp] theorem singleton_state (L : NativeLabel f.active) : |
| 72 | (f.singleton L).state (f.singletonLabel L) = f.state L := by |
| 73 | rfl |
| 74 | |
| 75 | @[simp] theorem singleton_column (L : NativeLabel f.active) |
| 76 | (K : NativeLabel (f.singleton L).active) : |
| 77 | (f.singleton L).column K = f.column L := rfl |
| 78 | |
| 79 | @[simp] theorem singleton_referenceRequest (L : NativeLabel f.active) : |
| 80 | ((f.singleton L).state (f.singletonLabel L)).referenceRequest = |
| 81 | (f.state L).referenceRequest := by |
| 82 | rfl |
| 83 | |
| 84 | @[simp] theorem singleton_request (L : NativeLabel f.active) : |
| 85 | ((f.singleton L).state (f.singletonLabel L)).request = (f.state L).request := by |
| 86 | rfl |
| 87 | |
| 88 | /-- Extend actual values by zero without extending their primary data. -/ |
| 89 | noncomputable def valueAt {V : Type*} [Zero V] |
| 90 | (value : NativeLabel f.active → V) (L : BandLabel) : V := by |
| 91 | classical |
| 92 | exact if hL : L ∈ f.active then value ⟨L.val, L.property, hL⟩ else 0 |
| 93 | |
| 94 | @[simp] theorem valueAt_active {V : Type*} [Zero V] |
| 95 | (value : NativeLabel f.active → V) (L : NativeLabel f.active) : |
| 96 | f.valueAt value L = value L := by |
| 97 | classical |
| 98 | simp only [valueAt, dite_eq_left L.mem] |
| 99 | |
| 100 | theorem valueAt_inactive {V : Type*} [Zero V] |
| 101 | (value : NativeLabel f.active → V) {L : BandLabel} (hL : L ∉ f.active) : |
| 102 | f.valueAt value L = 0 := by |
| 103 | classical |
| 104 | simp only [valueAt, dite_eq_right hL] |
| 105 | |
| 106 | end Family |
| 107 | |
| 108 | /-! ## One physical copy family, selected label by label -/ |
| 109 | |
| 110 | variable {H : ℕ} {K : Type*} |
| 111 | |
| 112 | noncomputable def zeroCopies : CopyFamily H K where |
| 113 | gap _ := 0 |
| 114 | carrier _ _ := ⟨0, 0, 0, 0, 0, fun _ => 0, fun _ => 0⟩ |
| 115 | amplitude _ _ _ := 0 |
| 116 | |
| 117 | @[simp] theorem zeroCopies_term (a h r0 : ℝ) (I : WaveIndex H) (k : K) : |
| 118 | (zeroCopies : CopyFamily H K).term a h r0 I k = 0 := by |
| 119 | funext w |
| 120 | exact globalWave_eq_zero rfl |
| 121 | |
| 122 | noncomputable def zeroCells : SupportCells (zeroCopies : CopyFamily H K) where |
| 123 | cells _ := { |
| 124 | carrier := fun _ _ => ∅ |
| 125 | closed := fun _ _ => isClosed_empty |
| 126 | locallyFinite := fun _ _ => ⟨univ, univ_mem, by simp⟩ |
| 127 | unique := fun _ _ _ _ hx _ => hx.elim } |
| 128 | support _ _ _ hx := (hx rfl).elim |
| 129 | |
| 130 | theorem zeroSupport {a b h r0 Z : ℝ} {Δ : ℕ} : |
| 131 | LocalPhysicalCopyBounds.SupportData (zeroCopies : CopyFamily H K) a b h r0 Z Δ where |
| 132 | gap_le _ := Nat.zero_le _ |
| 133 | gap_native _ := Nat.zero_le _ |
| 134 | angular_integer _ _ := ⟨0, by simp [zeroCopies]⟩ |
| 135 | geometry_support _ _ _ hx := (hx rfl).elim |
| 136 | mask_support _ _ _ _ hx := (hx rfl).elim |
| 137 | |
| 138 | theorem zeroSmooth {a h r0 : ℝ} : |
| 139 | LocalPhysicalCopyBounds.SmoothData (zeroCopies : CopyFamily H K) a h r0 where |
| 140 | amplitude _ _ _ _ _ := ⟨univ, isOpen_univ, mem_univ _, contDiffOn_const⟩ |
| 141 | profiles _ _ _ _ _ _ _ := |
| 142 | ⟨⟨univ, isOpen_univ, mem_univ _, contDiffOn_const⟩, |
| 143 | ⟨univ, isOpen_univ, mem_univ _, contDiffOn_const⟩⟩ |
| 144 | |
| 145 | noncomputable def diagonal (f : BandLabel → CopyFamily H K) : CopyFamily H K where |
| 146 | gap L := (f L).gap L |
| 147 | carrier k L := (f L).carrier k L |
| 148 | amplitude k I := (f I.1).amplitude k I |
| 149 | |
| 150 | @[simp] theorem diagonal_gap (f : BandLabel → CopyFamily H K) (L : BandLabel) : |
| 151 | (diagonal f).gap L = (f L).gap L := rfl |
| 152 | |
| 153 | @[simp] theorem diagonal_carrier (f : BandLabel → CopyFamily H K) (k : K) (L : BandLabel) : |
| 154 | (diagonal f).carrier k L = (f L).carrier k L := rfl |
| 155 | |
| 156 | @[simp] theorem diagonal_amplitude (f : BandLabel → CopyFamily H K) (k : K) (I : WaveIndex H) : |
| 157 | (diagonal f).amplitude k I = (f I.1).amplitude k I := rfl |
| 158 | |
| 159 | @[simp] theorem diagonal_term (f : BandLabel → CopyFamily H K) (a h r0 : ℝ) |
| 160 | (I : WaveIndex H) (k : K) : |
| 161 | (diagonal f).term a h r0 I k = (f I.1).term a h r0 I k := rfl |
| 162 | |
| 163 | @[simp] theorem diagonal_periodized (f : BandLabel → CopyFamily H K) (a h r0 : ℝ) |
| 164 | (I : WaveIndex H) : |
| 165 | (diagonal f).periodized a h r0 I = (f I.1).periodized a h r0 I := rfl |
| 166 | |
| 167 | theorem diagonal_sum (f : BandLabel → CopyFamily H K) (a h r0 : ℝ) (w : SpaceTime) : |
| 168 | (diagonal f).sum a h r0 w = ∑ᶠ I : WaveIndex H, (f I.1).periodized a h r0 I w := rfl |
| 169 | |
| 170 | noncomputable def diagonalCells (f : BandLabel → CopyFamily H K) |
| 171 | (c : ∀ L, SupportCells (f L)) : SupportCells (diagonal f) where |
| 172 | cells L := (c L).cells L |
| 173 | support I k := (c I.1).support I k |
| 174 | |
| 175 | @[simp] theorem diagonalCells_cells (f : BandLabel → CopyFamily H K) |
| 176 | (c : ∀ L, SupportCells (f L)) (L : BandLabel) : |
| 177 | (diagonalCells f c).cells L = (c L).cells L := rfl |
| 178 | |
| 179 | theorem diagonalSupport (f : BandLabel → CopyFamily H K) {a b h r0 Z : ℝ} {Δ : ℕ} |
| 180 | (s : ∀ L, LocalPhysicalCopyBounds.SupportData (f L) a b h r0 Z Δ) : |
| 181 | LocalPhysicalCopyBounds.SupportData (diagonal f) a b h r0 Z Δ where |
| 182 | gap_le L := (s L).gap_le L |
| 183 | gap_native L := (s L).gap_native L |
| 184 | angular_integer k L := (s L).angular_integer k L |
| 185 | geometry_support k I := (s I.1).geometry_support k I |
| 186 | mask_support k I := (s I.1).mask_support k I |
| 187 | |
| 188 | theorem diagonalSmooth (f : BandLabel → CopyFamily H K) {a h r0 : ℝ} |
| 189 | (s : ∀ L, LocalPhysicalCopyBounds.SmoothData (f L) a h r0) : |
| 190 | LocalPhysicalCopyBounds.SmoothData (diagonal f) a h r0 where |
| 191 | amplitude k I := (s I.1).amplitude k I |
| 192 | profiles k I := (s I.1).profiles k I |
| 193 | |
| 194 | /-- The assembled infinite family retains the original uniform overlap |
| 195 | bound and has a genuine local finite-sum identity. -/ |
| 196 | theorem diagonal_sum_locally_finite (f : BandLabel → CopyFamily H K) |
| 197 | {a b h r0 Z : ℝ} {Δ : ℕ} |
| 198 | (s : ∀ L, LocalPhysicalCopyBounds.SupportData (f L) a b h r0 Z Δ) |
| 199 | (hh : 0 < h) (hh1 : h < 1 / 2) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 200 | ∃ t : Finset (WaveIndex H), t.card ≤ 2250 * (2 * H + 1) ∧ |
| 201 | (diagonal f).sum a h r0 =ᶠ[𝓝 w] |
| 202 | fun y => ∑ I ∈ t, (f I.1).periodized a h r0 I y := by |
| 203 | simpa only [diagonal_periodized] using |
| 204 | (diagonalSupport f s).sum_locally_finite hh hh1 hw |
| 205 | |
| 206 | theorem diagonal_sum_smooth (f : BandLabel → CopyFamily H K) |
| 207 | {a b h r0 Z : ℝ} {Δ : ℕ} |
| 208 | (c : ∀ L, SupportCells (f L)) |
| 209 | (s : ∀ L, LocalPhysicalCopyBounds.SupportData (f L) a b h r0 Z Δ) |
| 210 | (sm : ∀ L, LocalPhysicalCopyBounds.SmoothData (f L) a h r0) |
| 211 | (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 212 | ContDiffOn ℝ ∞ ((diagonal f).sum a h r0) preterminal := |
| 213 | (diagonalSupport f s).sum_smooth (diagonalSmooth f sm) (diagonalCells f c) ha hh hh1 |
| 214 | |
| 215 | namespace Family |
| 216 | |
| 217 | variable (f : Family) |
| 218 | |
| 219 | /-- The missing labels receive zero copies, never invented primary data. -/ |
| 220 | noncomputable def copyAt (copies : NativeLabel f.active → CopyFamily H K) |
| 221 | (L : BandLabel) : CopyFamily H K := by |
| 222 | classical |
| 223 | exact if hL : L ∈ f.active then copies ⟨L.val, L.property, hL⟩ else zeroCopies |
| 224 | |
| 225 | @[simp] theorem copyAt_active (copies : NativeLabel f.active → CopyFamily H K) |
| 226 | (L : NativeLabel f.active) : f.copyAt copies L = copies L := by |
| 227 | classical |
| 228 | simp only [copyAt, dite_eq_left L.mem] |
| 229 | |
| 230 | theorem copyAt_inactive (copies : NativeLabel f.active → CopyFamily H K) |
| 231 | {L : BandLabel} (hL : L ∉ f.active) : |
| 232 | f.copyAt copies L = zeroCopies := by |
| 233 | classical |
| 234 | simp only [copyAt, dite_eq_right hL] |
| 235 | |
| 236 | noncomputable def assembled (copies : NativeLabel f.active → CopyFamily H K) : |
| 237 | CopyFamily H K := diagonal (f.copyAt copies) |
| 238 | |
| 239 | theorem assembled_term_active (copies : NativeLabel f.active → CopyFamily H K) |
| 240 | (L : NativeLabel f.active) (j : Harmonic H) (a h r0 : ℝ) (k : K) : |
| 241 | (f.assembled copies).term a h r0 ((L : BandLabel), j) k = |
| 242 | (copies L).term a h r0 ((L : BandLabel), j) k := by |
| 243 | rw [assembled, diagonal_term, copyAt_active] |
| 244 | |
| 245 | theorem assembled_term_inactive (copies : NativeLabel f.active → CopyFamily H K) |
| 246 | (I : WaveIndex H) (hI : I.1 ∉ f.active) (a h r0 : ℝ) (k : K) : |
| 247 | (f.assembled copies).term a h r0 I k = 0 := by |
| 248 | rw [assembled, diagonal_term, copyAt_inactive f copies hI, zeroCopies_term] |
| 249 | |
| 250 | noncomputable def branchCells (copies : NativeLabel f.active → CopyFamily H K) |
| 251 | (c : ∀ L, SupportCells (copies L)) (L : BandLabel) : |
| 252 | SupportCells (f.copyAt copies L) := by |
| 253 | classical |
| 254 | by_cases hL : L ∈ f.active |
| 255 | · simp only [copyAt, dite_eq_left hL] |
| 256 | exact c ⟨L.val, L.property, hL⟩ |
| 257 | · rw [f.copyAt_inactive copies hL] |
| 258 | exact zeroCells |
| 259 | |
| 260 | theorem branchSupport (copies : NativeLabel f.active → CopyFamily H K) |
| 261 | {a b h r0 Z : ℝ} {Δ : ℕ} |
| 262 | (s : ∀ L, LocalPhysicalCopyBounds.SupportData (copies L) a b h r0 Z Δ) |
| 263 | (L : BandLabel) : |
| 264 | LocalPhysicalCopyBounds.SupportData (f.copyAt copies L) a b h r0 Z Δ := by |
| 265 | classical |
| 266 | by_cases hL : L ∈ f.active |
| 267 | · simp only [copyAt, dite_eq_left hL] |
| 268 | exact s ⟨L.val, L.property, hL⟩ |
| 269 | · rw [f.copyAt_inactive copies hL] |
| 270 | exact zeroSupport |
| 271 | |
| 272 | theorem branchSmooth (copies : NativeLabel f.active → CopyFamily H K) |
| 273 | {a h r0 : ℝ} |
| 274 | (s : ∀ L, LocalPhysicalCopyBounds.SmoothData (copies L) a h r0) |
| 275 | (L : BandLabel) : |
| 276 | LocalPhysicalCopyBounds.SmoothData (f.copyAt copies L) a h r0 := by |
| 277 | classical |
| 278 | by_cases hL : L ∈ f.active |
| 279 | · simp only [copyAt, dite_eq_left hL] |
| 280 | exact s ⟨L.val, L.property, hL⟩ |
| 281 | · rw [f.copyAt_inactive copies hL] |
| 282 | exact zeroSmooth |
| 283 | |
| 284 | section SignedCopies |
| 285 | |
| 286 | variable {D h : ℝ} |
| 287 | (sys : PartitionedCovariance.SlotSystem D h |
| 288 | ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 289 | (hh : 0 ≤ h) |
| 290 | |
| 291 | /-- The exact native source belonging to a primary label. Uniform bounds |
| 292 | must hold jointly over this label and the native source index. -/ |
| 293 | noncomputable def potentialSource (L : BandLabel) : |
| 294 | ActualSignedPhysicalData.SourceIndex → ℕ → ActualSignedPhysicalData.Native → |
| 295 | HarmonicCalculus.ComplexVector := |
| 296 | f.valueAt (fun L => ActualSignedPhysicalData.nativePotentialSource sys hh (f.singleton L)) L |
| 297 | |
| 298 | noncomputable def pressureSource (L : BandLabel) : |
| 299 | ActualSignedPhysicalData.SourceIndex → ℕ → ActualSignedPhysicalData.Native → ℂ := |
| 300 | f.valueAt (fun L => ActualSignedPhysicalData.nativePressureSource sys hh (f.singleton L)) L |
| 301 | |
| 302 | @[simp] theorem potentialSource_active (L : NativeLabel f.active) : |
| 303 | f.potentialSource sys hh L = |
| 304 | ActualSignedPhysicalData.nativePotentialSource sys hh (f.singleton L) := |
| 305 | f.valueAt_active _ L |
| 306 | |
| 307 | @[simp] theorem pressureSource_active (L : NativeLabel f.active) : |
| 308 | f.pressureSource sys hh L = |
| 309 | ActualSignedPhysicalData.nativePressureSource sys hh (f.singleton L) := |
| 310 | f.valueAt_active _ L |
| 311 | |
| 312 | noncomputable def potentialCopies (i : Fin 3) : |
| 313 | CopyFamily 1 TorusInverse.Frequency := |
| 314 | f.assembled (fun L => ActualSignedPhysicalData.potentialFamily sys hh (f.singleton L) i) |
| 315 | |
| 316 | noncomputable def pressureCopies : CopyFamily 1 TorusInverse.Frequency := |
| 317 | f.assembled (fun L => ActualSignedPhysicalData.pressureFamily sys hh (f.singleton L)) |
| 318 | |
| 319 | /-- Native Cartesian rotation and the physical factor are retained |
| 320 | exactly by the dependent assembly. -/ |
| 321 | theorem potential_amplitude_eq_source (i : Fin 3) (k : TorusInverse.Frequency) |
| 322 | (I : WaveIndex 1) (x : PhysicalGraphBounds.LiftPoint) : |
| 323 | (f.potentialCopies sys hh i).amplitude k I x = |
| 324 | (ChartScales.Q I.1.val.1 ^ (-h) : ℝ) • |
| 325 | CartesianCopySource.rotatedSource (f.potentialSource sys hh I.1) |
| 326 | (I, k) I.1.val.1 x i := by |
| 327 | classical |
| 328 | change (f.copyAt (fun L => ActualSignedPhysicalData.potentialFamily sys hh |
| 329 | (f.singleton L) i) I.1).amplitude k I x = _ |
| 330 | by_cases hL : I.1 ∈ f.active |
| 331 | · simp only [copyAt, potentialSource, valueAt, dite_eq_left hL] |
| 332 | exact ActualSignedPhysicalData.potential_amplitude_eq_source sys hh |
| 333 | (f.singleton ⟨I.1.val, I.1.property, hL⟩) i k I x |
| 334 | · simp [copyAt, potentialSource, valueAt, hL, zeroCopies, |
| 335 | CartesianCopySource.rotatedSource] |
| 336 | |
| 337 | theorem pressure_amplitude_eq_source (k : TorusInverse.Frequency) |
| 338 | (I : WaveIndex 1) (x : PhysicalGraphBounds.LiftPoint) : |
| 339 | (f.pressureCopies sys hh).amplitude k I x = |
| 340 | (ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • |
| 341 | f.pressureSource sys hh I.1 (I, k) I.1.val.1 (PhysicalClassBounds.cylindricalMap x) := by |
| 342 | classical |
| 343 | change (f.copyAt (fun L => ActualSignedPhysicalData.pressureFamily sys hh |
| 344 | (f.singleton L)) I.1).amplitude k I x = _ |
| 345 | by_cases hL : I.1 ∈ f.active |
| 346 | · simp only [copyAt, pressureSource, valueAt, dite_eq_left hL] |
| 347 | exact ActualSignedPhysicalData.pressure_amplitude_eq_source sys hh |
| 348 | (f.singleton ⟨I.1.val, I.1.property, hL⟩) k I x |
| 349 | · simp [copyAt, pressureSource, valueAt, hL, zeroCopies] |
| 350 | |
| 351 | theorem potential_periodized_active (L : NativeLabel f.active) (i : Fin 3) |
| 352 | (a r0 : ℝ) : |
| 353 | (f.potentialCopies sys hh i).periodized a h r0 |
| 354 | (ActualSignedPhysicalData.positiveIndex L) = |
| 355 | (ActualSignedPhysicalData.potentialFamily sys hh (f.singleton L) i).periodized |
| 356 | a h r0 (ActualSignedPhysicalData.positiveIndex L) := by |
| 357 | change (diagonal (f.copyAt _)).periodized _ _ _ _ = _ |
| 358 | rw [diagonal_periodized] |
| 359 | simp only [ActualSignedPhysicalData.positiveIndex, copyAt_active] |
| 360 | |
| 361 | theorem pressure_periodized_active (L : NativeLabel f.active) (a r0 : ℝ) : |
| 362 | (f.pressureCopies sys hh).periodized a h r0 (ActualSignedPhysicalData.positiveIndex L) = |
| 363 | (ActualSignedPhysicalData.pressureFamily sys hh (f.singleton L)).periodized |
| 364 | a h r0 (ActualSignedPhysicalData.positiveIndex L) := by |
| 365 | change (diagonal (f.copyAt _)).periodized _ _ _ _ = _ |
| 366 | rw [diagonal_periodized] |
| 367 | simp only [ActualSignedPhysicalData.positiveIndex, copyAt_active] |
| 368 | |
| 369 | end SignedCopies |
| 370 | |
| 371 | end Family |
| 372 | |
| 373 | /-! ## Sources retain their label in a dependent index -/ |
| 374 | |
| 375 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 376 | {ι : BandLabel → Type*} |
| 377 | |
| 378 | noncomputable def jointSource {V : Type*} |
| 379 | (source : (L : BandLabel) → ι L → ℕ → E → V) : |
| 380 | (Σ L, ι L) → ℕ → E → V := fun I => source I.1 I.2 |
| 381 | |
| 382 | theorem localSourceBounds_slice {V : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 383 | {s : StripData E} {h α : ℝ} |
| 384 | {w : (L : BandLabel) → ι L → ℕ → E → ℝ} |
| 385 | {source : (L : BandLabel) → ι L → ℕ → E → V} |
| 386 | (hs : LocalPhysicalCopyBounds.LocalSourceBounds s h α (jointSource w) (jointSource source)) |
| 387 | (L : BandLabel) : |
| 388 | LocalPhysicalCopyBounds.LocalSourceBounds s h α (w L) (source L) where |
| 389 | uniform := hs.uniform.reindex (Sigma.mk L) |
| 390 | flat_geometry := hs.flat_geometry |
| 391 | weight_le := by |
| 392 | obtain ⟨c, hc, hb⟩ := hs.weight_le |
| 393 | exact ⟨c, hc, fun i => hb ⟨L, i⟩⟩ |
| 394 | epsilon_eq := hs.epsilon_eq |
| 395 | slow_le := hs.slow_le |
| 396 | |
| 397 | /-! ## Native chart and carrier bounds are uniform before label selection -/ |
| 398 | |
| 399 | noncomputable def diagonalChart (f : BandLabel → CopyFamily H K) |
| 400 | (c : ∀ L, SupportCells (f L)) {a b h r0 σ : ℝ} |
| 401 | (source : (L : BandLabel) → ι L → ℕ → E → ℂ) |
| 402 | (ch : ∀ L, LocalPhysicalCopyBounds.CommonChart (f L) (c L) a b h r0 σ (source L)) |
| 403 | (hj : ∀ m : ℕ, ∃ B : ℝ, 1 ≤ B ∧ ∃ q : ℕ, |
| 404 | ∀ k I x, x ∈ (ch I.1).domain k I → ∀ j, 1 ≤ j → j ≤ m → |
| 405 | ‖iteratedFDeriv ℝ j ((ch I.1).map k I) x‖ ≤ B * ChartScales.S I.1.val.1 ^ q) : |
| 406 | LocalPhysicalCopyBounds.CommonChart (diagonal f) (diagonalCells f c) |
| 407 | a b h r0 σ (jointSource source) where |
| 408 | sourceIndex k I := ⟨I.1, (ch I.1).sourceIndex k I⟩ |
| 409 | map k I := (ch I.1).map k I |
| 410 | domain k I := (ch I.1).domain k I |
| 411 | open_domain k I := (ch I.1).open_domain k I |
| 412 | smooth k I := (ch I.1).smooth k I |
| 413 | positive_jets := hj |
| 414 | amplitude_eq k I := (ch I.1).amplitude_eq k I |
| 415 | contains k I := (ch I.1).contains k I |
| 416 | |
| 417 | noncomputable def diagonalCarrier (f : BandLabel → CopyFamily H K) |
| 418 | (c : ∀ L, SupportCells (f L)) {a b h r0 : ℝ} |
| 419 | (bc : ∀ L, CarrierBounds (f L) (c L) a b h r0) |
| 420 | (hj : PhaseJetBounds.PolynomialJets |
| 421 | (copyBandDomain (fun k L => (bc L).region k L) (fun k L => (bc L).open_region k L)) |
| 422 | (fun I x => (((f I.2).carrier I.1 I.2).F x, ((f I.2).carrier I.1 I.2).G x))) : |
| 423 | CarrierBounds (diagonal f) (diagonalCells f c) a b h r0 where |
| 424 | region k L := (bc L).region k L |
| 425 | open_region k L := (bc L).open_region k L |
| 426 | jets := hj |
| 427 | contains k I := (bc I.1).contains k I |
| 428 | |
| 429 | /-- No native region is required for an omitted label whose amplitude |
| 430 | vanishes identically. -/ |
| 431 | noncomputable def zeroCarrier {a b h r0 : ℝ} : |
| 432 | CarrierBounds (zeroCopies : CopyFamily H K) zeroCells a b h r0 where |
| 433 | region _ _ := ∅ |
| 434 | open_region _ _ := isOpen_empty |
| 435 | jets := PhaseJetBounds.PolynomialJets.const_fixed (0 : ℝ × ℝ) |
| 436 | contains _ _ _ _ _ _ hx := hx.elim |
| 437 | |
| 438 | noncomputable def zeroChart {ν : Type*} {a b h r0 σ : ℝ} |
| 439 | (source : ν → ℕ → E → ℂ) (index : K → WaveIndex H → ν) : |
| 440 | LocalPhysicalCopyBounds.CommonChart (zeroCopies : CopyFamily H K) zeroCells |
| 441 | a b h r0 σ source where |
| 442 | sourceIndex := index |
| 443 | map _ _ _ := 0 |
| 444 | domain _ _ := ∅ |
| 445 | open_domain _ _ := isOpen_empty |
| 446 | smooth _ _ := contDiffOn_const |
| 447 | positive_jets _ := ⟨1, le_rfl, 0, fun _ _ _ hx => hx.elim⟩ |
| 448 | amplitude_eq _ _ _ hx := hx.elim |
| 449 | contains _ _ _ _ _ _ hx _ := hx.elim |
| 450 | |
| 451 | /-- In the actual Cartesian source adapter every local map is the identity. |
| 452 | Its common positive-jet bound is exactly one, with polynomial degree zero. -/ |
| 453 | theorem identity_chart_jets |
| 454 | (f : BandLabel → CopyFamily H K) (c : ∀ L, SupportCells (f L)) |
| 455 | {a b h r0 σ : ℝ} |
| 456 | (source : (L : BandLabel) → ι L → ℕ → PhysicalGraphBounds.LiftPoint → ℂ) |
| 457 | (ch : ∀ L, LocalPhysicalCopyBounds.CommonChart (f L) (c L) a b h r0 σ (source L)) |
| 458 | (hid : ∀ k I, (ch I.1).map k I = fun x => x) : |
| 459 | ∀ m : ℕ, ∃ B : ℝ, 1 ≤ B ∧ ∃ q : ℕ, |
| 460 | ∀ k I x, x ∈ (ch I.1).domain k I → ∀ j, 1 ≤ j → j ≤ m → |
| 461 | ‖iteratedFDeriv ℝ j ((ch I.1).map k I) x‖ ≤ B * ChartScales.S I.1.val.1 ^ q := by |
| 462 | intro m |
| 463 | refine ⟨1, le_rfl, 0, ?_⟩ |
| 464 | intro k I x _ j hj _ |
| 465 | rw [hid k I] |
| 466 | simp only [pow_zero, mul_one] |
| 467 | exact (PhysicalGraphBounds.norm_positive_jet_linear_le |
| 468 | (ContinuousLinearMap.id ℝ PhysicalGraphBounds.LiftPoint) x hj).trans (by simp) |
| 469 | |
| 470 | /-- Empty inactive charts do not alter the common bound for identity |
| 471 | charts of active labels. -/ |
| 472 | theorem identity_or_empty_chart_jets |
| 473 | (f : BandLabel → CopyFamily H K) (c : ∀ L, SupportCells (f L)) |
| 474 | {a b h r0 σ : ℝ} |
| 475 | (source : (L : BandLabel) → ι L → ℕ → PhysicalGraphBounds.LiftPoint → ℂ) |
| 476 | (ch : ∀ L, LocalPhysicalCopyBounds.CommonChart (f L) (c L) a b h r0 σ (source L)) |
| 477 | (hid : ∀ k I, (ch I.1).domain k I = ∅ ∨ (ch I.1).map k I = fun x => x) : |
| 478 | ∀ m : ℕ, ∃ B : ℝ, 1 ≤ B ∧ ∃ q : ℕ, |
| 479 | ∀ k I x, x ∈ (ch I.1).domain k I → ∀ j, 1 ≤ j → j ≤ m → |
| 480 | ‖iteratedFDeriv ℝ j ((ch I.1).map k I) x‖ ≤ B * ChartScales.S I.1.val.1 ^ q := by |
| 481 | intro m |
| 482 | refine ⟨1, le_rfl, 0, ?_⟩ |
| 483 | intro k I x hx j hj _ |
| 484 | rcases hid k I with he | hi |
| 485 | · rw [he] at hx |
| 486 | exact hx.elim |
| 487 | · rw [hi] |
| 488 | simp only [pow_zero, mul_one] |
| 489 | exact (PhysicalGraphBounds.norm_positive_jet_linear_le |
| 490 | (ContinuousLinearMap.id ℝ PhysicalGraphBounds.LiftPoint) x hj).trans (by simp) |
| 491 | |
| 492 | /-! ## One application of the physical-family estimate -/ |
| 493 | |
| 494 | section Assembly |
| 495 | |
| 496 | variable {J : Type*} {a b h r0 Z P0 α σ : ℝ} {Δ : ℕ} |
| 497 | (s : StripData E) |
| 498 | (f : J → BandLabel → CopyFamily H K) |
| 499 | (c : ∀ i L, SupportCells (f i L)) |
| 500 | (source : (L : BandLabel) → ι L → ℕ → E → ℂ) |
| 501 | (weight : (L : BandLabel) → ι L → ℕ → E → ℝ) |
| 502 | (hsource : LocalPhysicalCopyBounds.LocalSourceBounds s h α |
| 503 | (jointSource weight) (jointSource source)) |
| 504 | (ch : ∀ i L, LocalPhysicalCopyBounds.CommonChart (f i L) (c i L) |
| 505 | a b h r0 σ (source L)) |
| 506 | (hchart : ∀ i m, ∃ B : ℝ, 1 ≤ B ∧ ∃ q : ℕ, |
| 507 | ∀ k I x, x ∈ (ch i I.1).domain k I → ∀ j, 1 ≤ j → j ≤ m → |
| 508 | ‖iteratedFDeriv ℝ j ((ch i I.1).map k I) x‖ ≤ B * ChartScales.S I.1.val.1 ^ q) |
| 509 | (hmap : ∀ i k I, MapsTo ((ch i I.1).map k I) ((ch i I.1).domain k I) s.domain) |
| 510 | (bc : ∀ i L, CarrierBounds (f i L) (c i L) a b h r0) |
| 511 | (hphase : ∀ i, PhaseJetBounds.PolynomialJets |
| 512 | (copyBandDomain (fun k L => (bc i L).region k L) |
| 513 | (fun k L => (bc i L).open_region k L)) |
| 514 | (fun I x => (((f i I.2).carrier I.1 I.2).F x, ((f i I.2).carrier I.1 I.2).G x))) |
| 515 | (hsupport : ∀ i L, LocalPhysicalCopyBounds.SupportData (f i L) a b h r0 Z Δ) |
| 516 | (hsmooth : ∀ i L, LocalPhysicalCopyBounds.SmoothData (f i L) a h r0) |
| 517 | (ha : 0 < a) (hr0 : 0 ≤ r0) (hZ : 0 ≤ Z) (hP : 1 ≤ P0) |
| 518 | (hfrequency : ∀ i k L, |((f i L).carrier k L).angular| ≤ P0 ∧ |
| 519 | |((f i L).carrier k L).axial| ≤ P0 ∧ |((f i L).carrier k L).radial| ≤ P0) |
| 520 | |
| 521 | /-- The physical factory is applied once to all labels. Its source and |
| 522 | phase bounds are jointly quantified; individual physical bounds are not |
| 523 | inputs to this constructor. -/ |
| 524 | noncomputable def waveData : PhysicalStageBounds.WaveData h E (Σ L, ι L) K J where |
| 525 | lowerRadius := a |
| 526 | upperRadius := b |
| 527 | nativeWidth := r0 |
| 528 | slowBound := Z |
| 529 | frequencyBound := P0 |
| 530 | alpha := α |
| 531 | shift := σ |
| 532 | harmonics := H |
| 533 | gapBound := Δ |
| 534 | lower_pos := ha |
| 535 | width_nonneg := hr0 |
| 536 | slow_nonneg := hZ |
| 537 | frequency_one_le := hP |
| 538 | strip := s |
| 539 | weight := jointSource weight |
| 540 | source := jointSource source |
| 541 | source_bounds := hsource |
| 542 | copies i := diagonal (f i) |
| 543 | cells i := diagonalCells (f i) (c i) |
| 544 | chart i := diagonalChart (f i) (c i) source (ch i) (hchart i) |
| 545 | chart_maps := hmap |
| 546 | carrier i := diagonalCarrier (f i) (c i) (bc i) (hphase i) |
| 547 | support i := diagonalSupport (f i) (hsupport i) |
| 548 | smooth i := diagonalSmooth (f i) (hsmooth i) |
| 549 | frequencies := hfrequency |
| 550 | |
| 551 | theorem waveData_copies (i : J) : |
| 552 | (waveData s f c source weight hsource ch hchart hmap bc hphase |
| 553 | hsupport hsmooth ha hr0 hZ hP hfrequency).copies i = diagonal (f i) := rfl |
| 554 | |
| 555 | theorem waveData_scalar (i : J) : |
| 556 | (waveData s f c source weight hsource ch hchart hmap bc hphase |
| 557 | hsupport hsmooth ha hr0 hZ hP hfrequency).scalar i = |
| 558 | (diagonal (f i)).sum a h r0 := rfl |
| 559 | |
| 560 | include s c source weight hsource ch hchart hmap bc hphase hsupport hsmooth |
| 561 | ha hr0 hZ hP hfrequency in |
| 562 | theorem physical_scalar_bound (hh : 0 < h) (hh1 : h < 1 / 2) (i : J) (m : ℕ) : |
| 563 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ h w ≤ 1 → |
| 564 | ‖iteratedFDeriv ℝ m ((diagonal (f i)).sum a h r0) w‖ ≤ |
| 565 | C * physicalQ h w ^ (h * α - PhysicalClassBounds.physicalLoss h σ m) := |
| 566 | (waveData s f c source weight hsource ch hchart hmap bc hphase |
| 567 | hsupport hsmooth ha hr0 hZ hP hfrequency).scalar_bound hh hh1 i m |
| 568 | |
| 569 | end Assembly |
| 570 | |
| 571 | end NavierStokes.DependentSignedPhysicalFamily |