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.PhysicalGraphBounds |
| 2 | import NavierStokes.CommonCoverSolve |
| 3 | import NavierStokes.SquaredPartition |
| 4 | import NavierStokes.SimilarityProfile |
| 5 | import Mathlib.Data.Set.Card |
| 6 | |
| 7 | /-! |
| 8 | # Physical waves on common covers and locally finite label sums |
| 9 | |
| 10 | Cover changes are the actual powers of `J_g`. Bounds use actual Fréchet |
| 11 | derivatives and the constructed dyadic and spatial masks. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.PhysicalWaveSum |
| 17 | |
| 18 | open Set Function Filter |
| 19 | open ProblemStatement |
| 20 | open scoped Topology ContDiff BigOperators |
| 21 | |
| 22 | |
| 23 | abbrev Plane := PhysicalGraphBounds.Plane |
| 24 | abbrev LiftPoint := PhysicalGraphBounds.LiftPoint |
| 25 | abbrev Label := SlotColoring.Label |
| 26 | abbrev Position := SlotColoring.Position |
| 27 | |
| 28 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 29 | WithTop.coe_le_coe.mpr le_top |
| 30 | |
| 31 | /-- Change only the auxiliary coordinate from native to common level. -/ |
| 32 | noncomputable def downLift (d : ℕ) : LiftPoint →L[ℝ] LiftPoint := |
| 33 | (ContinuousLinearMap.id ℝ PhysicalGraphBounds.ChartPoint).prodMap |
| 34 | ((CommonCoverSolve.coverPower d).symm : Plane →L[ℝ] Plane) |
| 35 | |
| 36 | noncomputable def upLift (d : ℕ) : LiftPoint →L[ℝ] LiftPoint := |
| 37 | (ContinuousLinearMap.id ℝ PhysicalGraphBounds.ChartPoint).prodMap |
| 38 | (CommonCoverSolve.coverPower d : Plane →L[ℝ] Plane) |
| 39 | |
| 40 | @[simp] theorem downLift_apply (d : ℕ) (y : LiftPoint) : |
| 41 | downLift d y = (y.1, (CommonCoverSolve.coverPower d).symm y.2) := rfl |
| 42 | |
| 43 | @[simp] theorem upLift_apply (d : ℕ) (y : LiftPoint) : |
| 44 | upLift d y = (y.1, CommonCoverSolve.coverPower d y.2) := rfl |
| 45 | |
| 46 | @[simp] theorem up_down (d : ℕ) (y : LiftPoint) : upLift d (downLift d y) = y := by simp |
| 47 | @[simp] theorem down_up (d : ℕ) (y : LiftPoint) : downLift d (upLift d y) = y := by simp |
| 48 | |
| 49 | noncomputable def coverBound (Δ : ℕ) : ℝ := 1 + CommonCoverSolve.coveringBound Δ |
| 50 | |
| 51 | theorem coverBound_ge_one (Δ : ℕ) : 1 ≤ coverBound Δ := by |
| 52 | unfold coverBound |
| 53 | linarith [CommonCoverSolve.coveringBound_pos Δ] |
| 54 | |
| 55 | theorem norm_downLift_le {d Δ : ℕ} (hd : d ≤ Δ) : ‖downLift d‖ ≤ coverBound Δ := by |
| 56 | have hK := coverBound_ge_one Δ |
| 57 | have hc := CommonCoverSolve.inverseCoveringNorm_le_bound hd |
| 58 | refine ContinuousLinearMap.opNorm_le_bound _ (by linarith) ?_ |
| 59 | intro y |
| 60 | rw [downLift_apply, Prod.norm_def] |
| 61 | apply max_le |
| 62 | · exact (norm_fst_le y).trans (le_mul_of_one_le_left (norm_nonneg y) hK) |
| 63 | · calc |
| 64 | _ ≤ ‖((CommonCoverSolve.coverPower d).symm : Plane →L[ℝ] Plane)‖ * ‖y.2‖ := |
| 65 | ContinuousLinearMap.le_opNorm _ _ |
| 66 | _ ≤ CommonCoverSolve.coveringBound Δ * ‖y‖ := |
| 67 | mul_le_mul hc (norm_snd_le y) (norm_nonneg _) (CommonCoverSolve.coveringBound_pos Δ).le |
| 68 | _ ≤ _ := by unfold coverBound; nlinarith [norm_nonneg y] |
| 69 | |
| 70 | noncomputable def commonLift (h : ℝ) (n d : ℕ) : SpaceTime → LiftPoint := |
| 71 | downLift d ∘ PhysicalGraphBounds.physicalLift h n |
| 72 | |
| 73 | /-- The changed coordinate is exactly `J_g^(i(n)-d) Y`, when the gap does |
| 74 | not exceed the native index. No periodicity of the source is assumed. -/ |
| 75 | theorem commonLift_formula (h : ℝ) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) |
| 76 | (w : SpaceTime) : |
| 77 | commonLift h n d w = |
| 78 | (PhysicalGraphBounds.physicalChart h n w, |
| 79 | (SlotGeometry.cover ^ (ChartScales.nativeIndex h n - d)) |
| 80 | (PhysicalGraphBounds.radialProfile (ChartScales.radialExponent h) (PhysicalGraphBounds.radialProjection w) + |
| 81 | w.1 • PhysicalGraphBounds.timeDirection)) := by |
| 82 | apply Prod.ext |
| 83 | · rfl |
| 84 | · apply (CommonCoverSolve.coverPower d).injective |
| 85 | simp only [commonLift, comp_apply, downLift_apply, PhysicalGraphBounds.physicalLift, |
| 86 | ContinuousLinearEquiv.apply_symm_apply, CommonCoverSolve.coverPower_apply] |
| 87 | rw [← _root_.mul_apply_eq_comp, ← pow_add, Nat.add_sub_of_le hd] |
| 88 | rfl |
| 89 | |
| 90 | theorem commonLift_smoothAt (h : ℝ) (n d : ℕ) {w : SpaceTime} |
| 91 | (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : ContDiffAt ℝ ∞ (commonLift h n d) w := |
| 92 | (downLift d).contDiff.contDiffAt.comp w |
| 93 | ((PhysicalGraphBounds.physicalChart_smooth h n).contDiffAt.prodMk (PhysicalGraphBounds.contDiffAt_nativeGraph h n hw)) |
| 94 | |
| 95 | theorem downLift_jet_bound {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 96 | {f : LiftPoint → E} (hf : ContDiff ℝ ∞ f) {d Δ m : ℕ} (hd : d ≤ Δ) |
| 97 | (y : LiftPoint) {B : ℝ} (hB : 0 ≤ B) |
| 98 | (hb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i f (downLift d y)‖ ≤ B) : |
| 99 | ∀ i ≤ m, ‖iteratedFDeriv ℝ i (f ∘ downLift d) y‖ ≤ B * coverBound Δ ^ m := by |
| 100 | intro i hi |
| 101 | have h := PhysicalGraphBounds.norm_jet_comp_linear (x := y) isOpen_univ hf.contDiffOn |
| 102 | (downLift d) (mem_univ _) i |
| 103 | apply h.trans |
| 104 | exact mul_le_mul (hb i hi) |
| 105 | ((pow_le_pow_left₀ (norm_nonneg _) (norm_downLift_le hd) i).trans |
| 106 | (pow_le_pow_right₀ (coverBound_ge_one Δ) hi)) (by positivity) hB |
| 107 | |
| 108 | /-- Common-cover descent changes the constant, preserving the native |
| 109 | graph loss and arbitrary input gain. The source may live only on the |
| 110 | coarsest covering torus. -/ |
| 111 | theorem common_stripped_physical_bound {E : Type*} |
| 112 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 113 | {h a b : ℝ} (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) |
| 114 | (Δ m : ℕ) (g e A : ℝ) (hA : 0 ≤ A) : |
| 115 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → |
| 116 | ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → |w.1| ≤ 1 → |
| 117 | ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 118 | ∀ f : LiftPoint → E, ContDiff ℝ ∞ f → |
| 119 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i f (commonLift h n d w)‖ ≤ |
| 120 | A * ChartScales.Q n ^ g * ChartScales.S n ^ e) → |
| 121 | ‖iteratedFDeriv ℝ m (f ∘ commonLift h n d) w‖ ≤ |
| 122 | C * q ^ (g - (PhysicalGraphBounds.graphLoss m + 1)) := by |
| 123 | have hK : 0 ≤ coverBound Δ := zero_le_one.trans (coverBound_ge_one Δ) |
| 124 | obtain ⟨C, hC, hb⟩ := PhysicalGraphBounds.stripped_class_physical_bound (E := E) (b := b) hh hh1 ha m |
| 125 | g e (A * coverBound Δ ^ m) (by positivity) |
| 126 | refine ⟨C, hC, ?_⟩ |
| 127 | intro n hn d hd w hw ht q hq hlo hhi f hf hfb |
| 128 | have hQ := ChartScales.Q_pos n |
| 129 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 130 | apply hb n hn w hw ht q hq hlo hhi (f ∘ downLift d) (hf.comp (downLift d).contDiff) |
| 131 | intro i hi |
| 132 | have h := downLift_jet_bound hf hd (PhysicalGraphBounds.physicalLift h n w) |
| 133 | (B := A * ChartScales.Q n ^ g * ChartScales.S n ^ e) (by positivity) hfb i hi |
| 134 | exact h.trans_eq (by ring) |
| 135 | |
| 136 | /-- Native phase data remain distinct from a source on a common cover. -/ |
| 137 | structure CarrierData where |
| 138 | chart : PolarCharts.Index |
| 139 | center : Plane |
| 140 | angular : ℝ |
| 141 | axial : ℝ |
| 142 | radial : ℝ |
| 143 | F : PhysicalGraphBounds.Slow → ℝ |
| 144 | G : PhysicalGraphBounds.Slow → ℝ |
| 145 | |
| 146 | noncomputable def CarrierData.phase (c : CarrierData) (a h : ℝ) (n : ℕ) (r0 : ℝ) : |
| 147 | LiftPoint → ℝ := |
| 148 | PhysicalGraphBounds.liftedPhase (PolarCharts.chart a c.chart) h n c.center r0 |
| 149 | c.angular c.axial c.radial c.F c.G |
| 150 | |
| 151 | noncomputable def commonWave (a h : ℝ) (n d : ℕ) (r0 : ℝ) (c : CarrierData) |
| 152 | (amp : LiftPoint → ℂ) (j : ℤ) (w : SpaceTime) : ℂ := |
| 153 | amp (commonLift h n d w) * |
| 154 | PhysicalGraphBounds.character ((ChartScales.carrier h n : ℝ) * (j : ℝ)) |
| 155 | (c.phase a h n r0 (PhysicalGraphBounds.physicalLift h n w)) |
| 156 | |
| 157 | theorem commonWave_smoothAt {a : ℝ} (ha : 0 < a) (h : ℝ) (n d : ℕ) (r0 : ℝ) |
| 158 | (c : CarrierData) {amp : LiftPoint → ℂ} (hamp : ContDiff ℝ ∞ amp) |
| 159 | (hF : ContDiff ℝ ∞ c.F) (hG : ContDiff ℝ ∞ c.G) (j : ℤ) {w : SpaceTime} |
| 160 | (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : |
| 161 | ContDiffAt ℝ ∞ (commonWave a h n d r0 c amp j) w := by |
| 162 | have hp := PhysicalGraphBounds.liftedPhase_smooth (PolarCharts.chart_contDiff ha c.chart) |
| 163 | h n c.center r0 c.angular c.axial c.radial hF hG |
| 164 | have hl := (PhysicalGraphBounds.physicalChart_smooth h n).contDiffAt.prodMk |
| 165 | (PhysicalGraphBounds.contDiffAt_nativeGraph h n hw) |
| 166 | exact (hamp.contDiffAt.comp w (commonLift_smoothAt h n d hw)).mul |
| 167 | ((PhysicalGraphBounds.character_smooth _).contDiffAt.comp w (hp.contDiffAt.comp w hl)) |
| 168 | |
| 169 | /-- The literal native phase may multiply an arbitrary common-cover |
| 170 | amplitude. Bounded inverse-cover changes add only the factor `coverBound^m` |
| 171 | to the stripped constant. -/ |
| 172 | theorem common_carrier_physical_bound {h a b Z r0 P B eBase : ℝ} |
| 173 | (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) |
| 174 | (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 175 | (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : |
| 176 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → |
| 177 | ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → |
| 178 | |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → |
| 179 | ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 180 | ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), |
| 181 | |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → |
| 182 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → |
| 183 | ContDiff ℝ ∞ amp → ContDiff ℝ ∞ c.F → ContDiff ℝ ∞ c.G → |(j : ℝ)| ≤ H → |
| 184 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ |
| 185 | A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → |
| 186 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F |
| 187 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) |
| 188 | (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ |
| 189 | B * ChartScales.S n ^ eBase) → |
| 190 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G |
| 191 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) |
| 192 | (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ |
| 193 | B * ChartScales.S n ^ eBase) → |
| 194 | ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ |
| 195 | C * q ^ (g - PhysicalGraphBounds.waveLoss h m) := by |
| 196 | have hK : 0 ≤ coverBound Δ := zero_le_one.trans (coverBound_ge_one Δ) |
| 197 | obtain ⟨C, hC, hb⟩ := PhysicalGraphBounds.native_carrier_physical_bound (b := b) |
| 198 | hh hh1 ha hZ hr0 hP hB heBase m g eAmp (A * coverBound Δ ^ m) H (by positivity) hH |
| 199 | refine ⟨C, hC, ?_⟩ |
| 200 | intro n hn d hd w hw ht hz q hq hlo hhi c amp j hp hpz hx0 hslot hamp hF hG hj hab hFb hGb |
| 201 | have hQ := ChartScales.Q_pos n |
| 202 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 203 | apply hb n hn w hw ht hz q hq hlo hhi c.chart c.center c.angular c.axial c.radial hp hpz hx0 hslot |
| 204 | (amp ∘ downLift d) c.F c.G j (hamp.comp (downLift d).contDiff) hF hG hj |
| 205 | · intro i hi |
| 206 | have hh := downLift_jet_bound hamp hd (PhysicalGraphBounds.physicalLift h n w) |
| 207 | (B := A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) (by positivity) hab i hi |
| 208 | exact hh.trans_eq (by ring) |
| 209 | · exact hFb |
| 210 | · exact hGb |
| 211 | |
| 212 | /-- Closed supports of the actual dyadic and slow masks. -/ |
| 213 | noncomputable def labelRegion (D : ℝ) (L : Label) : Set (ℝ × Position) := |
| 214 | tsupport (SquaredPartition.dyadicMask (L.1 : ℤ)) ×ˢ |
| 215 | tsupport (SquaredPartition.physicalSlowMask D L.1 L.2.1) |
| 216 | |
| 217 | theorem labelRegion_closed (D : ℝ) (L : Label) : IsClosed (labelRegion D L) := |
| 218 | isClosed_closure.prod isClosed_closure |
| 219 | |
| 220 | noncomputable def physicalMask (D : ℝ) (L : Label) (z : ℝ × Position) : ℝ := |
| 221 | SquaredPartition.dyadicMask (L.1 : ℤ) z.1 * |
| 222 | SquaredPartition.physicalSlowMask D L.1 L.2.1 z.2 |
| 223 | |
| 224 | theorem physicalMask_support_subset (D : ℝ) (L : Label) : |
| 225 | support (physicalMask D L) ⊆ labelRegion D L := by |
| 226 | intro z hz |
| 227 | obtain ⟨hd, hs⟩ := mul_ne_zero_iff.mp hz |
| 228 | exact ⟨subset_tsupport _ hd, subset_tsupport _ hs⟩ |
| 229 | |
| 230 | theorem physicalMask_tsupport_subset (D : ℝ) (L : Label) : |
| 231 | tsupport (physicalMask D L) ⊆ labelRegion D L := |
| 232 | closure_minimal (physicalMask_support_subset D L) (labelRegion_closed D L) |
| 233 | |
| 234 | theorem labelRegion_band {D : ℝ} {L : Label} {z : ℝ × Position} |
| 235 | (hz : z ∈ labelRegion D L) : |
| 236 | ChartScales.Q L.1 / 2 ≤ z.1 ∧ z.1 ≤ 2 * ChartScales.Q L.1 := by |
| 237 | simpa only [SquaredPartition.dyadicMask_tsupport, SquaredPartition.integerQ_nat, mem_Icc] |
| 238 | using hz.1 |
| 239 | |
| 240 | theorem labelRegion_active_relation {D : ℝ} {L : Label} {z : ℝ × Position} |
| 241 | (hz : z ∈ labelRegion D L) : z.1 / 2 ≤ ChartScales.Q L.1 ∧ ChartScales.Q L.1 ≤ 2 * z.1 := by |
| 242 | have hb := labelRegion_band hz |
| 243 | constructor <;> linarith [hb.1, hb.2] |
| 244 | |
| 245 | theorem logCoordinate_in_band {q : ℝ} (hq : 0 < q) {n : ℕ} |
| 246 | (hlo : ChartScales.Q n / 2 ≤ q) (hhi : q ≤ 2 * ChartScales.Q n) : |
| 247 | SquaredPartition.logCoordinate q ∈ Icc ((n : ℝ) - 1) ((n : ℝ) + 1) := by |
| 248 | have hQ := ChartScales.Q_pos n |
| 249 | have h2 : 0 < Real.log 2 := Real.log_pos (by norm_num) |
| 250 | have hlogQ : Real.log (ChartScales.Q n) = -(n : ℝ) * Real.log 2 := by |
| 251 | rw [← SquaredPartition.integerQ_nat, SquaredPartition.log_integerQ] |
| 252 | simp only [Int.cast_natCast] |
| 253 | have hl := Real.log_le_log (div_pos hQ (by norm_num : (0 : ℝ) < 2)) hlo |
| 254 | have hu := Real.log_le_log hq hhi |
| 255 | rw [Real.log_div hQ.ne' (by norm_num : (2 : ℝ) ≠ 0), hlogQ] at hl |
| 256 | rw [Real.log_mul (by norm_num : (2 : ℝ) ≠ 0) hQ.ne', hlogQ] at hu |
| 257 | change (n : ℝ) - 1 ≤ -Real.log q / Real.log 2 ∧ -Real.log q / Real.log 2 ≤ (n : ℝ) + 1 |
| 258 | constructor |
| 259 | · apply (le_div_iff₀ h2).mpr |
| 260 | nlinarith |
| 261 | · apply (div_le_iff₀ h2).mpr |
| 262 | nlinarith |
| 263 | |
| 264 | theorem labelRegion_adjacency {D : ℝ} {L M : Label} {z : ℝ × Position} |
| 265 | (hq : 0 < z.1) (hL : 1 ≤ L.1) (hM : 1 ≤ M.1) (hne : L ≠ M) |
| 266 | (hzL : z ∈ labelRegion D L) (hzM : z ∈ labelRegion D M) : SlotColoring.Adj D L M := by |
| 267 | have hl := logCoordinate_in_band hq (labelRegion_band hzL).1 (labelRegion_band hzL).2 |
| 268 | have hm := logCoordinate_in_band hq (labelRegion_band hzM).1 (labelRegion_band hzM).2 |
| 269 | have hLM : L.1 ≤ M.1 + 4 := by |
| 270 | have h : (L.1 : ℝ) ≤ (M.1 : ℝ) + 4 := by linarith [hl.1, hm.2] |
| 271 | exact_mod_cast h |
| 272 | have hML : M.1 ≤ L.1 + 4 := by |
| 273 | have h : (M.1 : ℝ) ≤ (L.1 : ℝ) + 4 := by linarith [hm.1, hl.2] |
| 274 | exact_mod_cast h |
| 275 | exact ⟨hL, hM, hne, hLM, hML, z.2, |
| 276 | SquaredPartition.physicalSlowMask_tsupport_subset_physicalBox D hL _ _ hzL.2, |
| 277 | SquaredPartition.physicalSlowMask_tsupport_subset_physicalBox D hM _ _ hzM.2⟩ |
| 278 | |
| 279 | theorem labelRegion_color_injective {D : ℝ} {z : ℝ × Position} (hq : 0 < z.1) : |
| 280 | Set.InjOn SlotColoring.colorData {L : Label | 1 ≤ L.1 ∧ z ∈ labelRegion D L} := by |
| 281 | intro L hL M hM hc |
| 282 | by_contra hne |
| 283 | exact SlotColoring.colorData_proper D |
| 284 | (labelRegion_adjacency hq hL.1 hM.1 hne hL.2 hM.2) hc |
| 285 | |
| 286 | abbrev PositiveParam := Ioi (0 : ℝ) × Position |
| 287 | |
| 288 | theorem dyadic_closed_locallyFinite : |
| 289 | LocallyFinite fun n : ℕ => {q : Ioi (0 : ℝ) | |
| 290 | (q : ℝ) ∈ tsupport (SquaredPartition.dyadicMask (n : ℤ))} := by |
| 291 | have hc : Continuous (fun q : Ioi (0 : ℝ) => SquaredPartition.logCoordinate q) := |
| 292 | ((continuous_subtype_val.log (fun q => q.property.ne')).neg).div_const (Real.log 2) |
| 293 | have hl := (SquaredPartition.lineMask_locallyFinite.comp_injective Int.ofNat_injective).preimage_continuous hc |
| 294 | apply hl.subset |
| 295 | intro n q hq |
| 296 | change SquaredPartition.logCoordinate q ∈ tsupport (SquaredPartition.lineMask (n : ℤ)) |
| 297 | rw [SquaredPartition.lineMask_tsupport] |
| 298 | have hb : ChartScales.Q n / 2 ≤ (q : ℝ) ∧ (q : ℝ) ≤ 2 * ChartScales.Q n := by |
| 299 | simp only [SquaredPartition.dyadicMask_tsupport, SquaredPartition.integerQ_nat, mem_Icc] at hq |
| 300 | exact hq |
| 301 | simpa only [Int.cast_natCast] using logCoordinate_in_band q.property hb.1 hb.2 |
| 302 | |
| 303 | theorem labelRegion_locallyFinite (D : ℝ) : |
| 304 | LocallyFinite fun L : Label => {z : PositiveParam | ((z.1 : ℝ), z.2) ∈ labelRegion D L} := by |
| 305 | have hb := dyadic_closed_locallyFinite.preimage_continuous |
| 306 | (continuous_fst : Continuous (Prod.fst : PositiveParam → Ioi (0 : ℝ))) |
| 307 | have hg (n : ℕ) : LocallyFinite fun k : SlotColoring.Grid => |
| 308 | {z : PositiveParam | z.2 ∈ tsupport (SquaredPartition.physicalSlowMask D n k)} := |
| 309 | (SquaredPartition.physicalSlowMask_locallyFinite D n).closure.preimage_continuous continuous_snd |
| 310 | have hs (n : ℕ) : LocallyFinite fun k : SlotColoring.Grid × Bool => |
| 311 | {z : PositiveParam | z.2 ∈ tsupport (SquaredPartition.physicalSlowMask D n k.1)} := by |
| 312 | simpa only [inter_univ] using SquaredPartition.locallyFinite_pair_inter (hg n) |
| 313 | (fun _ => locallyFinite_of_finite (fun _ : Bool => (univ : Set PositiveParam))) |
| 314 | exact SquaredPartition.locallyFinite_pair_inter hb hs |
| 315 | |
| 316 | abbrev BandLabel := {L : Label // 4 ≤ L.1} |
| 317 | abbrev Harmonic (H : ℕ) := ↥(Finset.Icc (-(H : ℤ)) (H : ℤ)) |
| 318 | abbrev WaveIndex (H : ℕ) := BandLabel × Harmonic H |
| 319 | |
| 320 | theorem harmonic_bound {H : ℕ} (j : Harmonic H) : |((j : ℤ) : ℝ)| ≤ (H : ℝ) := by |
| 321 | have hj : |(j : ℤ)| ≤ (H : ℤ) := abs_le.mpr (Finset.mem_Icc.mp j.property) |
| 322 | exact_mod_cast hj |
| 323 | |
| 324 | theorem harmonic_card (H : ℕ) : Fintype.card (Harmonic H) = 2 * H + 1 := by |
| 325 | simp only [Harmonic, Fintype.card_coe, Int.card_Icc] |
| 326 | omega |
| 327 | |
| 328 | noncomputable def waveColor {H : ℕ} (I : WaveIndex H) : SlotColoring.Palette × Harmonic H := |
| 329 | (SlotColoring.colorData I.1.val, I.2) |
| 330 | |
| 331 | theorem waveRegion_card_le {D : ℝ} {H : ℕ} {z : ℝ × Position} (hq : 0 < z.1) |
| 332 | (s : Finset (WaveIndex H)) (hs : ∀ I ∈ s, z ∈ labelRegion D I.1.val) : |
| 333 | s.card ≤ 2250 * (2 * H + 1) := by |
| 334 | classical |
| 335 | have hi : Set.InjOn waveColor (s : Set (WaveIndex H)) := by |
| 336 | intro I hI J hJ hcol |
| 337 | change (SlotColoring.colorData I.1.val, I.2) = (SlotColoring.colorData J.1.val, J.2) at hcol |
| 338 | have hlabel : I.1.val = J.1.val := labelRegion_color_injective hq |
| 339 | ⟨by have := I.1.property; omega, hs I hI⟩ |
| 340 | ⟨by have := J.1.property; omega, hs J hJ⟩ (congrArg Prod.fst hcol) |
| 341 | exact Prod.ext (Subtype.ext hlabel) |
| 342 | (congrArg (fun z : SlotColoring.Palette × Harmonic H => z.2) hcol) |
| 343 | have hf : Function.Injective (fun I : s => waveColor (H := H) I.val) := by |
| 344 | intro I J he |
| 345 | exact Subtype.ext (hi I.property J.property he) |
| 346 | have hc := Fintype.card_le_of_injective (fun I : s => waveColor (H := H) I.val) hf |
| 347 | calc |
| 348 | s.card ≤ Fintype.card (SlotColoring.Palette × Harmonic H) := by |
| 349 | simpa only [Fintype.card_coe] using hc |
| 350 | _ = _ := by rw [Fintype.card_prod, SlotColoring.palette_card, harmonic_card] |
| 351 | |
| 352 | theorem waveRegion_locallyFinite (D : ℝ) (H : ℕ) : |
| 353 | LocallyFinite fun I : WaveIndex H => |
| 354 | {z : PositiveParam | ((z.1 : ℝ), z.2) ∈ labelRegion D I.1.val} := by |
| 355 | have hb := (labelRegion_locallyFinite D).comp_injective |
| 356 | (Subtype.val_injective : Function.Injective (fun L : BandLabel => L.val)) |
| 357 | simpa only [inter_univ, Function.comp_def] using SquaredPartition.locallyFinite_pair_inter hb |
| 358 | (fun _ => locallyFinite_of_finite (fun _ : Harmonic H => (univ : Set PositiveParam))) |
| 359 | |
| 360 | noncomputable def preterminal : Set SpaceTime := {w | w.1 < 1} |
| 361 | |
| 362 | theorem preterminal_open : IsOpen preterminal := isOpen_lt continuous_fst continuous_const |
| 363 | |
| 364 | /-- The actual similarity coordinate at a Cartesian spacetime point. -/ |
| 365 | noncomputable def physicalQ (h : ℝ) (w : SpaceTime) : ℝ := |
| 366 | SimilarityProfile.q h (AxisymmetricFields.profilePoint w.1 w.2) |
| 367 | |
| 368 | theorem physicalQ_pos {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 369 | {w : SpaceTime} (hw : w ∈ preterminal) : 0 < physicalQ h w := |
| 370 | SimilarityProfile.q_pos hh hh1 hw |
| 371 | |
| 372 | theorem physicalQ_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 373 | {w : SpaceTime} (hw : w ∈ preterminal) : ContDiffAt ℝ ∞ (physicalQ h) w := |
| 374 | (SimilarityProfile.q_smoothAt (p := AxisymmetricFields.profilePoint w.1 w.2) hh hh1 hw).comp w |
| 375 | AxisymmetricFields.contDiff_profilePoint.contDiffAt |
| 376 | |
| 377 | /-- The three physical variables whose rescalings enter the slow masks. -/ |
| 378 | noncomputable def physicalPosition (w : SpaceTime) : Position := |
| 379 | ![PolarCharts.radius (PhysicalGraphBounds.radialProjection w), w.2 2, 1 - w.1] |
| 380 | |
| 381 | theorem physicalPosition_continuous : Continuous physicalPosition := by |
| 382 | apply continuous_pi |
| 383 | intro j |
| 384 | fin_cases j |
| 385 | · exact PolarCharts.radius_continuous.comp PhysicalGraphBounds.radialProjection.continuous |
| 386 | · exact ((AxisymmetricFields.projection 2).continuous.comp continuous_snd) |
| 387 | · exact continuous_const.sub continuous_fst |
| 388 | |
| 389 | noncomputable def physicalParams (h : ℝ) (w : SpaceTime) : ℝ × Position := |
| 390 | (physicalQ h w, physicalPosition w) |
| 391 | |
| 392 | theorem physicalParams_continuousAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 393 | {w : SpaceTime} (hw : w ∈ preterminal) : ContinuousAt (physicalParams h) w := |
| 394 | (physicalQ_smoothAt hh hh1 hw).continuousAt.prodMk physicalPosition_continuous.continuousAt |
| 395 | |
| 396 | noncomputable def positiveParams {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 397 | (w : preterminal) : PositiveParam := |
| 398 | (⟨physicalQ h w, physicalQ_pos hh hh1 w.property⟩, physicalPosition w) |
| 399 | |
| 400 | theorem positiveParams_continuous {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 401 | Continuous (positiveParams hh hh1) := by |
| 402 | have hq : Continuous (fun w : preterminal => physicalQ h w) := by |
| 403 | apply continuous_iff_continuousAt.mpr |
| 404 | intro w |
| 405 | exact (physicalQ_smoothAt hh hh1 w.property).continuousAt.comp continuousAt_subtype_val |
| 406 | exact (hq.subtype_mk _).prodMk (physicalPosition_continuous.comp continuous_subtype_val) |
| 407 | |
| 408 | theorem waveRegion_closed (D : ℝ) {H : ℕ} (I : WaveIndex H) : |
| 409 | IsClosed {z : PositiveParam | ((z.1 : ℝ), z.2) ∈ labelRegion D I.1.val} := |
| 410 | (labelRegion_closed D I.1.val).preimage ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) |
| 411 | |
| 412 | /-- A locally finite closed family has a neighborhood with no new |
| 413 | indices beyond the finite family active at the point. -/ |
| 414 | theorem active_neighborhood {ι X : Type*} [TopologicalSpace X] |
| 415 | {V : ι → Set X} (hV : LocallyFinite V) (hc : ∀ i, IsClosed (V i)) (x : X) : |
| 416 | ∃ s : Finset ι, (∀ i, i ∈ s ↔ x ∈ V i) ∧ |
| 417 | ∀ᶠ y in 𝓝 x, ∀ i, y ∈ V i → i ∈ s := by |
| 418 | classical |
| 419 | let s := (hV.point_finite x).toFinset |
| 420 | refine ⟨s, fun i => (hV.point_finite x).mem_toFinset, ?_⟩ |
| 421 | filter_upwards [hV.iInter_compl_mem_nhds hc x] with y hy |
| 422 | intro i hi |
| 423 | by_contra hn |
| 424 | have hx : x ∉ V i := by simpa [s] using hn |
| 425 | exact (mem_iInter₂.mp hy i hx) hi |
| 426 | |
| 427 | /-- Local finiteness is used only on the actual positive-`q` domain. -/ |
| 428 | theorem physical_active_neighborhood {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 429 | (H : ℕ) {w : SpaceTime} (hw : w ∈ preterminal) : |
| 430 | ∃ s : Finset (WaveIndex H), |
| 431 | (∀ I, I ∈ s ↔ physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val) ∧ |
| 432 | ∀ᶠ y in 𝓝 w, y ∈ preterminal ∧ |
| 433 | ∀ I, physicalParams h y ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → I ∈ s := by |
| 434 | obtain ⟨s, hs, hnear⟩ := active_neighborhood (waveRegion_locallyFinite (CoordinateAlgebra.D h) H) |
| 435 | (waveRegion_closed (CoordinateAlgebra.D h)) (positiveParams hh hh1 ⟨w, hw⟩) |
| 436 | have hsub : ∀ᶠ y : preterminal in 𝓝 (⟨w, hw⟩ : preterminal), |
| 437 | ∀ I, physicalParams h y ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → I ∈ s := |
| 438 | (positiveParams_continuous hh hh1).continuousAt hnear |
| 439 | obtain ⟨U, hU, hUs⟩ := (mem_nhds_subtype preterminal ⟨w, hw⟩ _).mp hsub |
| 440 | refine ⟨s, hs, ?_⟩ |
| 441 | filter_upwards [hU, preterminal_open.mem_nhds hw] with y hy hyt |
| 442 | exact ⟨hyt, hUs (show (⟨y, hyt⟩ : preterminal) ∈ Subtype.val ⁻¹' U from hy)⟩ |
| 443 | |
| 444 | theorem iteratedFDeriv_eq_of_eventuallyEq {E F : Type*} |
| 445 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 446 | {f g : E → F} {x : E} (he : f =ᶠ[𝓝 x] g) (m : ℕ) : |
| 447 | iteratedFDeriv ℝ m f x = iteratedFDeriv ℝ m g x := by |
| 448 | have he' : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using he |
| 449 | simpa only [iteratedFDerivWithin_univ] using he'.iteratedFDerivWithin_eq he.self_of_nhds m |
| 450 | |
| 451 | theorem iteratedFDeriv_finset_sum_at {ι E F : Type*} |
| 452 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 453 | (s : Finset ι) {f : ι → E → F} {x : E} {m : ℕ} |
| 454 | (hf : ∀ i ∈ s, ContDiffAt ℝ m (f i) x) : |
| 455 | iteratedFDeriv ℝ m (fun y => ∑ i ∈ s, f i y) x = |
| 456 | ∑ i ∈ s, iteratedFDeriv ℝ m (f i) x := by |
| 457 | simpa only [iteratedFDerivWithin_univ] using |
| 458 | iteratedFDerivWithin_fun_sum_apply uniqueDiffOn_univ (mem_univ x) |
| 459 | (fun i hi => (hf i hi).contDiffWithinAt) |
| 460 | |
| 461 | /-- A mask support hypothesis produces an actual local finite-sum identity. |
| 462 | The summands need not have any native-torus periodicity. -/ |
| 463 | theorem masked_finsum_eventually {E : Type*} [AddCommMonoid E] {h : ℝ} |
| 464 | (hh : 0 < h) (hh1 : h < 1 / 2) {H : ℕ} (f : WaveIndex H → SpaceTime → E) |
| 465 | (hsupp : ∀ I y, y ∈ preterminal → f I y ≠ 0 → |
| 466 | physicalParams h y ∈ labelRegion (CoordinateAlgebra.D h) I.1.val) |
| 467 | {w : SpaceTime} (hw : w ∈ preterminal) : |
| 468 | ∃ s : Finset (WaveIndex H), |
| 469 | (∀ I, I ∈ s ↔ physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val) ∧ |
| 470 | (fun y => ∑ᶠ I, f I y) =ᶠ[𝓝 w] fun y => ∑ I ∈ s, f I y := by |
| 471 | obtain ⟨s, hs, hn⟩ := physical_active_neighborhood hh hh1 H hw |
| 472 | refine ⟨s, hs, ?_⟩ |
| 473 | filter_upwards [hn] with y hy |
| 474 | apply finsum_eq_sum_of_support_subset |
| 475 | intro I hI |
| 476 | exact hy.2 I (hsupp I y hy.1 hI) |
| 477 | |
| 478 | theorem masked_finsum_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 479 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {H : ℕ} |
| 480 | (f : WaveIndex H → SpaceTime → E) |
| 481 | (hf : ∀ I w, w ∈ preterminal → ContDiffAt ℝ ∞ (f I) w) |
| 482 | (hsupp : ∀ I y, y ∈ preterminal → f I y ≠ 0 → |
| 483 | physicalParams h y ∈ labelRegion (CoordinateAlgebra.D h) I.1.val) : |
| 484 | ContDiffOn ℝ ∞ (fun y => ∑ᶠ I, f I y) preterminal := by |
| 485 | intro w hw |
| 486 | obtain ⟨s, _, he⟩ := masked_finsum_eventually hh hh1 f hsupp hw |
| 487 | exact ((ContDiffAt.sum (fun I _ => hf I w hw)).congr_of_eventuallyEq he).contDiffWithinAt |
| 488 | |
| 489 | theorem masked_finsum_jet_bound {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 490 | {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {H : ℕ} |
| 491 | (f : WaveIndex H → SpaceTime → E) |
| 492 | (hf : ∀ I w, w ∈ preterminal → ContDiffAt ℝ ∞ (f I) w) |
| 493 | (hsupp : ∀ I y, y ∈ preterminal → f I y ≠ 0 → |
| 494 | physicalParams h y ∈ labelRegion (CoordinateAlgebra.D h) I.1.val) |
| 495 | {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) {B : ℝ} (hB : 0 ≤ B) |
| 496 | (hb : ∀ I, physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → |
| 497 | ‖iteratedFDeriv ℝ m (f I) w‖ ≤ B) : |
| 498 | ‖iteratedFDeriv ℝ m (fun y => ∑ᶠ I, f I y) w‖ ≤ (2250 * (2 * H + 1) : ℕ) * B := by |
| 499 | classical |
| 500 | obtain ⟨s, hs, he⟩ := masked_finsum_eventually hh hh1 f hsupp hw |
| 501 | rw [iteratedFDeriv_eq_of_eventuallyEq he m, |
| 502 | iteratedFDeriv_finset_sum_at s (fun I _ => (hf I w hw).of_le (nat_le_infty m))] |
| 503 | calc |
| 504 | _ ≤ ∑ I ∈ s, ‖iteratedFDeriv ℝ m (f I) w‖ := norm_sum_le _ _ |
| 505 | _ ≤ ∑ _I ∈ s, B := Finset.sum_le_sum (fun I hI => hb I ((hs I).mp hI)) |
| 506 | _ = (s.card : ℝ) * B := by rw [Finset.sum_const, nsmul_eq_mul] |
| 507 | _ ≤ _ := mul_le_mul_of_nonneg_right (by |
| 508 | exact_mod_cast waveRegion_card_le (physicalQ_pos hh hh1 hw) s (fun I hI => (hs I).mp hI)) hB |
| 509 | |
| 510 | /-- A closed input support condition remains true on the topological |
| 511 | support of a physical field. Only continuity at the point is needed. -/ |
| 512 | theorem closed_property_on_tsupport {E X Y : Type*} [Zero E] |
| 513 | [TopologicalSpace X] [TopologicalSpace Y] {f : X → E} {g : X → Y} |
| 514 | {U : Set X} (hU : IsOpen U) {x : X} (hx : x ∈ U) |
| 515 | (hg : ContinuousAt g x) {S : Set Y} (hS : IsClosed S) |
| 516 | (hs : ∀ y ∈ U, f y ≠ 0 → g y ∈ S) (ht : x ∈ tsupport f) : g x ∈ S := by |
| 517 | by_contra ho |
| 518 | have he : f =ᶠ[𝓝 x] fun _ => 0 := by |
| 519 | filter_upwards [hU.mem_nhds hx, hg (hS.isOpen_compl.mem_nhds ho)] with y hy hys |
| 520 | by_contra hfy |
| 521 | exact hys (hs y hy hfy) |
| 522 | exact (notMem_tsupport_iff_eventuallyEq.mpr he) ht |
| 523 | |
| 524 | theorem jet_zero_off_tsupport {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 525 | [NormedAddCommGroup F] [NormedSpace ℝ F] (f : E → F) (m : ℕ) {x : E} |
| 526 | (hx : x ∉ tsupport f) : iteratedFDeriv ℝ m f x = 0 := by |
| 527 | by_contra hn |
| 528 | exact hx ((tsupport_iteratedFDeriv_subset m) (subset_tsupport _ hn)) |
| 529 | |
| 530 | noncomputable def CarrierData.withChart (c : CarrierData) (i : PolarCharts.Index) : CarrierData := |
| 531 | {c with chart := i} |
| 532 | |
| 533 | noncomputable def chooseChart (a : ℝ) (x : Plane) : PolarCharts.Index := by |
| 534 | classical |
| 535 | exact if hi : ∃ i : PolarCharts.Index, x ∈ PolarCharts.chartDomain a i then Classical.choose hi else 0 |
| 536 | |
| 537 | theorem chooseChart_valid {a b : ℝ} (ha : 0 < a) {x : Plane} |
| 538 | (hx : x ∈ PhysicalGraphBounds.annulus a b) : x ∈ PolarCharts.chartDomain a (chooseChart a x) := by |
| 539 | obtain ⟨i, hi⟩ := PolarCharts.annulus_covered ha hx |
| 540 | have he : ∃ j : PolarCharts.Index, x ∈ PolarCharts.chartDomain a j := |
| 541 | ⟨i, PolarCharts.sector_subset_chartDomain ha i hi⟩ |
| 542 | simp only [chooseChart, dite_eq_left he] |
| 543 | exact Classical.choose_spec he |
| 544 | |
| 545 | noncomputable def polarCarrier (c : CarrierData) (k : ℝ) (j : ℤ) (ε : ℝ) |
| 546 | (zt : ℝ × ℝ) (v : ℝ) (rθ : Plane) : ℂ := |
| 547 | PhaseCalculus.harmonic k j ε c.angular c.axial c.radial c.F c.G ((rθ.1, zt), (rθ.2, v)) |
| 548 | |
| 549 | @[simp] theorem withChart_chart (c : CarrierData) (i : PolarCharts.Index) : |
| 550 | (c.withChart i).chart = i := rfl |
| 551 | |
| 552 | @[simp] theorem withChart_center (c : CarrierData) (i : PolarCharts.Index) : |
| 553 | (c.withChart i).center = c.center := rfl |
| 554 | |
| 555 | @[simp] theorem polarCarrier_withChart (c : CarrierData) (i : PolarCharts.Index) |
| 556 | (k : ℝ) (j : ℤ) (ε : ℝ) (zt : ℝ × ℝ) (v : ℝ) : |
| 557 | polarCarrier (c.withChart i) k j ε zt v = polarCarrier c k j ε zt v := rfl |
| 558 | |
| 559 | theorem polarCarrier_periodic (c : CarrierData) (k : ℝ) (j : ℤ) (ε : ℝ) |
| 560 | (zt : ℝ × ℝ) (v : ℝ) (m : ℤ) (hkp : k * c.angular = (m : ℝ)) : |
| 561 | ∀ r : ℝ, Periodic (fun θ => polarCarrier c k j ε zt v (r, θ)) (2 * Real.pi) := by |
| 562 | intro r |
| 563 | exact PhaseCalculus.harmonic_theta_periodic k j m ε c.angular c.axial c.radial c.F c.G |
| 564 | (r, zt) v hkp |
| 565 | |
| 566 | theorem commonWave_polar (a h : ℝ) (n d : ℕ) (r0 : ℝ) (c : CarrierData) |
| 567 | (amp : LiftPoint → ℂ) (j : ℤ) (w : SpaceTime) : |
| 568 | commonWave a h n d r0 c amp j w = amp (commonLift h n d w) * |
| 569 | polarCarrier c (ChartScales.carrier h n) j (ChartScales.epsilon h n) |
| 570 | (PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)) |
| 571 | (PhysicalGraphBounds.slotTime h n c.center r0 w) |
| 572 | (PolarCharts.chart a c.chart (PhysicalGraphBounds.scaledRadial n w)) := by |
| 573 | unfold commonWave CarrierData.phase PhysicalGraphBounds.liftedPhase |
| 574 | rw [Function.comp_apply, PhysicalGraphBounds.character_phase_eq_harmonic, |
| 575 | PhysicalGraphBounds.slotMap_formula, PhysicalGraphBounds.liftXY_physicalLift] |
| 576 | rfl |
| 577 | |
| 578 | theorem commonWave_charts_agree {a : ℝ} (ha : 0 < a) (h : ℝ) (n d : ℕ) (r0 : ℝ) |
| 579 | (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) (w : SpaceTime) |
| 580 | (m : ℤ) (hkp : (ChartScales.carrier h n : ℝ) * c.angular = (m : ℝ)) |
| 581 | (i k : PolarCharts.Index) |
| 582 | (hi : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a i) |
| 583 | (hk : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a k) : |
| 584 | commonWave a h n d r0 (c.withChart i) amp j w = |
| 585 | commonWave a h n d r0 (c.withChart k) amp j w := by |
| 586 | rw [commonWave_polar, commonWave_polar] |
| 587 | simp only [withChart_center, withChart_chart, polarCarrier_withChart] |
| 588 | have hp := polarCarrier_periodic c (ChartScales.carrier h n : ℝ) j (ChartScales.epsilon h n) |
| 589 | (PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)) |
| 590 | (PhysicalGraphBounds.slotTime h n c.center r0 w) m hkp |
| 591 | have he := PolarCharts.chart_periodic_agree ha |
| 592 | (polarCarrier c (ChartScales.carrier h n) j (ChartScales.epsilon h n) |
| 593 | (PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)) |
| 594 | (PhysicalGraphBounds.slotTime h n c.center r0 w)) hp i k hi hk |
| 595 | exact congrArg (fun z : ℂ => amp (commonLift h n d w) * z) he |
| 596 | |
| 597 | /-- A genuine angular carrier: valid polar charts are selected pointwise; |
| 598 | the integer angular mode will prove that the selection is smooth. -/ |
| 599 | noncomputable def globalWave (a h : ℝ) (n d : ℕ) (r0 : ℝ) (c : CarrierData) |
| 600 | (amp : LiftPoint → ℂ) (j : ℤ) (w : SpaceTime) : ℂ := |
| 601 | commonWave a h n d r0 (c.withChart (chooseChart a (PhysicalGraphBounds.scaledRadial n w))) amp j w |
| 602 | |
| 603 | theorem globalWave_eq_zero {a h r0 : ℝ} {n d : ℕ} {c : CarrierData} |
| 604 | {amp : LiftPoint → ℂ} {j : ℤ} {w : SpaceTime} (hz : amp (commonLift h n d w) = 0) : |
| 605 | globalWave a h n d r0 c amp j w = 0 := by simp only [globalWave, commonWave, hz, zero_mul] |
| 606 | |
| 607 | theorem globalWave_eventually_common {a b h r0 : ℝ} (ha : 0 < a) (n d : ℕ) |
| 608 | (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) (m : ℤ) |
| 609 | (hkp : (ChartScales.carrier h n : ℝ) * c.angular = (m : ℝ)) |
| 610 | (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → |
| 611 | PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b) |
| 612 | {w : SpaceTime} (i : PolarCharts.Index) |
| 613 | (hi : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a i) : |
| 614 | globalWave a h n d r0 c amp j =ᶠ[𝓝 w] commonWave a h n d r0 (c.withChart i) amp j := by |
| 615 | filter_upwards [(PhysicalGraphBounds.scaledRadial n).continuous.continuousAt |
| 616 | ((PolarCharts.chartDomain_open a i).mem_nhds hi)] with y hy |
| 617 | by_cases hz : amp (commonLift h n d y) = 0 |
| 618 | · simp only [globalWave, commonWave, hz, zero_mul] |
| 619 | · exact commonWave_charts_agree ha h n d r0 c amp j y m hkp _ i (chooseChart_valid ha (hs y hz)) hy |
| 620 | |
| 621 | theorem globalWave_eventually_zero_off_annulus {a b h r0 : ℝ} {n d : ℕ} |
| 622 | (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) |
| 623 | (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → |
| 624 | PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b) |
| 625 | {w : SpaceTime} (hw : PhysicalGraphBounds.scaledRadial n w ∉ PhysicalGraphBounds.annulus a b) : |
| 626 | globalWave a h n d r0 c amp j =ᶠ[𝓝 w] fun _ => 0 := by |
| 627 | filter_upwards [(PhysicalGraphBounds.scaledRadial n).continuous.continuousAt |
| 628 | ((PhysicalGraphBounds.isCompact_annulus a b).isClosed.isOpen_compl.mem_nhds hw)] with y hy |
| 629 | apply globalWave_eq_zero |
| 630 | by_contra hn |
| 631 | exact hy (hs y hn) |
| 632 | |
| 633 | theorem globalWave_smooth {a b h r0 : ℝ} (ha : 0 < a) (n d : ℕ) |
| 634 | (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) (m : ℤ) |
| 635 | (hkp : (ChartScales.carrier h n : ℝ) * c.angular = (m : ℝ)) |
| 636 | (hamp : ContDiff ℝ ∞ amp) (hF : ContDiff ℝ ∞ c.F) (hG : ContDiff ℝ ∞ c.G) |
| 637 | (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → |
| 638 | PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b) : |
| 639 | ContDiff ℝ ∞ (globalWave a h n d r0 c amp j) := by |
| 640 | apply contDiff_iff_contDiffAt.mpr |
| 641 | intro w |
| 642 | by_cases hw : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b |
| 643 | · let i := chooseChart a (PhysicalGraphBounds.scaledRadial n w) |
| 644 | have hi : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a i := chooseChart_valid ha hw |
| 645 | have he : globalWave a h n d r0 c amp j =ᶠ[𝓝 w] commonWave a h n d r0 (c.withChart i) amp j := |
| 646 | globalWave_eventually_common (r0 := r0) ha n d c amp j m hkp hs i hi |
| 647 | have hc : ContDiffAt ℝ ∞ (commonWave a h n d r0 (c.withChart i) amp j) w := |
| 648 | commonWave_smoothAt ha h n d r0 (c.withChart i) hamp hF hG j |
| 649 | (PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hw)) |
| 650 | exact hc.congr_of_eventuallyEq he |
| 651 | · exact contDiffAt_const.congr_of_eventuallyEq (globalWave_eventually_zero_off_annulus c amp j hs hw) |
| 652 | |
| 653 | theorem globalWave_ne_zero_amp {a h r0 : ℝ} {n d : ℕ} {c : CarrierData} |
| 654 | {amp : LiftPoint → ℂ} {j : ℤ} {w : SpaceTime} |
| 655 | (hw : globalWave a h n d r0 c amp j w ≠ 0) : amp (commonLift h n d w) ≠ 0 := by |
| 656 | intro hz |
| 657 | exact hw (globalWave_eq_zero hz) |
| 658 | |
| 659 | theorem physicalSlowPair_eq (h : ℝ) (n : ℕ) (w : SpaceTime) : |
| 660 | PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w) = |
| 661 | (ChartScales.Q n ^ (-CoordinateAlgebra.D h) * w.2 2, (1 - w.1) / ChartScales.Q n) := by |
| 662 | simp only [PhysicalGraphBounds.liftZT_apply, PhysicalGraphBounds.physicalLift, |
| 663 | PhysicalGraphBounds.physicalChart, PhysicalGraphBounds.chartLinear_apply] |
| 664 | ext <;> simp [Real.rpow_neg_one, div_eq_mul_inv] |
| 665 | ring |
| 666 | |
| 667 | theorem physicalSlowPair_continuous (h : ℝ) (n : ℕ) : |
| 668 | Continuous (fun w => PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)) := by |
| 669 | simp_rw [physicalSlowPair_eq] |
| 670 | exact (continuous_const.mul ((AxisymmetricFields.projection 2).continuous.comp continuous_snd)).prodMk |
| 671 | ((continuous_const.sub continuous_fst).div_const _) |
| 672 | |
| 673 | theorem nativeSlotCoordinate_eq (h : ℝ) (n : ℕ) (center : Plane) (w : SpaceTime) : |
| 674 | PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - center) = |
| 675 | ChartScales.Tg ^ ChartScales.nativeIndex h n * w.1 - PhysicalGraphBounds.etaCoordinate center := by |
| 676 | rw [map_sub, PhysicalGraphBounds.etaCoordinate_nativeGraph] |
| 677 | |
| 678 | theorem nativeSlotCoordinate_continuous (h : ℝ) (n : ℕ) (center : Plane) : |
| 679 | Continuous (fun w => PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - center)) := by |
| 680 | simp_rw [nativeSlotCoordinate_eq] |
| 681 | exact (continuous_const.mul continuous_fst).sub continuous_const |
| 682 | |
| 683 | theorem globalWave_tsupport_geometry {a b h r0 Z : ℝ} {n d : ℕ} (c : CarrierData) |
| 684 | (amp : LiftPoint → ℂ) (j : ℤ) |
| 685 | (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → |
| 686 | PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b ∧ |
| 687 | ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n y)‖ ≤ Z ∧ |
| 688 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n y - c.center)| ≤ r0) |
| 689 | {w : SpaceTime} (hw : w ∈ tsupport (globalWave a h n d r0 c amp j)) : |
| 690 | PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b ∧ |
| 691 | ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z ∧ |
| 692 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 := by |
| 693 | refine ⟨?_, ?_, ?_⟩ |
| 694 | · exact closed_property_on_tsupport isOpen_univ (mem_univ w) |
| 695 | (PhysicalGraphBounds.scaledRadial n).continuous.continuousAt |
| 696 | (PhysicalGraphBounds.isCompact_annulus a b).isClosed |
| 697 | (fun y _ hy => (hs y (globalWave_ne_zero_amp hy)).1) hw |
| 698 | · exact closed_property_on_tsupport isOpen_univ (mem_univ w) |
| 699 | (physicalSlowPair_continuous h n).norm.continuousAt isClosed_Iic |
| 700 | (fun y _ hy => (hs y (globalWave_ne_zero_amp hy)).2.1) hw |
| 701 | · exact closed_property_on_tsupport isOpen_univ (mem_univ w) |
| 702 | (nativeSlotCoordinate_continuous h n c.center).abs.continuousAt isClosed_Iic |
| 703 | (fun y _ hy => (hs y (globalWave_ne_zero_amp hy)).2.2) hw |
| 704 | |
| 705 | structure WaveFamily (H : ℕ) where |
| 706 | gap : BandLabel → ℕ |
| 707 | carrier : BandLabel → CarrierData |
| 708 | amplitude : WaveIndex H → LiftPoint → ℂ |
| 709 | |
| 710 | noncomputable def WaveFamily.term {H : ℕ} (f : WaveFamily H) (a h r0 : ℝ) |
| 711 | (I : WaveIndex H) : SpaceTime → ℂ := |
| 712 | globalWave a h I.1.val.1 (f.gap I.1) r0 (f.carrier I.1) (f.amplitude I) I.2.val |
| 713 | |
| 714 | noncomputable def WaveFamily.sum {H : ℕ} (f : WaveFamily H) (a h r0 : ℝ) (w : SpaceTime) : ℂ := |
| 715 | ∑ᶠ I : WaveIndex H, f.term a h r0 I w |
| 716 | |
| 717 | /-- Smooth coefficients, the genuine angular integrality condition, and |
| 718 | input amplitude supports. No output derivative estimate is assumed. -/ |
| 719 | structure RegularFamily {H : ℕ} (f : WaveFamily H) (a b h r0 Z : ℝ) (Δ : ℕ) : Prop where |
| 720 | gap_le : ∀ L, f.gap L ≤ Δ |
| 721 | gap_native : ∀ L, f.gap L ≤ ChartScales.nativeIndex h L.val.1 |
| 722 | amplitude_smooth : ∀ I, ContDiff ℝ ∞ (f.amplitude I) |
| 723 | F_smooth : ∀ L, ContDiff ℝ ∞ (f.carrier L).F |
| 724 | G_smooth : ∀ L, ContDiff ℝ ∞ (f.carrier L).G |
| 725 | angular_integer : ∀ L, ∃ m : ℤ, |
| 726 | (ChartScales.carrier h L.val.1 : ℝ) * (f.carrier L).angular = (m : ℝ) |
| 727 | geometry_support : ∀ I y, |
| 728 | f.amplitude I (commonLift h I.1.val.1 (f.gap I.1) y) ≠ 0 → |
| 729 | PhysicalGraphBounds.scaledRadial I.1.val.1 y ∈ PhysicalGraphBounds.annulus a b ∧ |
| 730 | ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h I.1.val.1 y)‖ ≤ Z ∧ |
| 731 | |PhysicalGraphBounds.etaCoordinate |
| 732 | (PhysicalGraphBounds.nativeGraph h I.1.val.1 y - (f.carrier I.1).center)| ≤ r0 |
| 733 | mask_support : ∀ I y, y ∈ preterminal → |
| 734 | f.amplitude I (commonLift h I.1.val.1 (f.gap I.1) y) ≠ 0 → |
| 735 | physicalMask (CoordinateAlgebra.D h) I.1.val (physicalParams h y) ≠ 0 |
| 736 | |
| 737 | theorem RegularFamily.term_smooth {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} |
| 738 | (hf : RegularFamily f a b h r0 Z Δ) (ha : 0 < a) (I : WaveIndex H) : |
| 739 | ContDiff ℝ ∞ (f.term a h r0 I) := by |
| 740 | obtain ⟨m, hm⟩ := hf.angular_integer I.1 |
| 741 | exact globalWave_smooth ha I.1.val.1 (f.gap I.1) (f.carrier I.1) (f.amplitude I) I.2.val m hm |
| 742 | (hf.amplitude_smooth I) (hf.F_smooth I.1) (hf.G_smooth I.1) |
| 743 | (fun y hy => (hf.geometry_support I y hy).1) |
| 744 | |
| 745 | theorem RegularFamily.term_support {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} |
| 746 | (hf : RegularFamily f a b h r0 Z Δ) (I : WaveIndex H) (w : SpaceTime) |
| 747 | (hw : w ∈ preterminal) (hn : f.term a h r0 I w ≠ 0) : |
| 748 | physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val := |
| 749 | physicalMask_support_subset _ _ (hf.mask_support I w hw (globalWave_ne_zero_amp hn)) |
| 750 | |
| 751 | theorem RegularFamily.sum_smooth {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} |
| 752 | (hf : RegularFamily f a b h r0 Z Δ) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 753 | ContDiffOn ℝ ∞ (f.sum a h r0) preterminal := |
| 754 | masked_finsum_smooth hh hh1 (f.term a h r0) |
| 755 | (fun I _ _ => (hf.term_smooth ha I).contDiffAt) hf.term_support |
| 756 | |
| 757 | /-- Bounds on genuine input coefficient jets in common coordinates, and |
| 758 | on the genuine base profiles entering the native phase. -/ |
| 759 | structure StrippedClass {H : ℕ} (f : WaveFamily H) |
| 760 | (a b h r0 P A B g eAmp eBase : ℝ) (m : ℕ) : Prop where |
| 761 | parameters : ∀ L, |(f.carrier L).angular| ≤ P ∧ |
| 762 | |(f.carrier L).axial| ≤ P ∧ |(f.carrier L).radial| ≤ P |
| 763 | amplitude : ∀ (I : WaveIndex H) (w : SpaceTime), w ∈ preterminal → |
| 764 | physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → |
| 765 | PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PhysicalGraphBounds.annulus a b → |
| 766 | ∀ i ≤ m, ‖iteratedFDeriv ℝ i (f.amplitude I) (commonLift h I.1.val.1 (f.gap I.1) w)‖ ≤ |
| 767 | A * ChartScales.Q I.1.val.1 ^ g * ChartScales.S I.1.val.1 ^ eAmp |
| 768 | base_F : ∀ (I : WaveIndex H) (w : SpaceTime), w ∈ preterminal → |
| 769 | physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → |
| 770 | PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PhysicalGraphBounds.annulus a b → |
| 771 | ∀ chart : PolarCharts.Index, |
| 772 | PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart → |
| 773 | ∀ i ≤ m, ‖iteratedFDeriv ℝ i (f.carrier I.1).F |
| 774 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a chart) |
| 775 | (ChartScales.timeCoefficient h I.1.val.1) (f.carrier I.1).center r0 |
| 776 | (PhysicalGraphBounds.physicalLift h I.1.val.1 w)).1‖ ≤ B * ChartScales.S I.1.val.1 ^ eBase |
| 777 | base_G : ∀ (I : WaveIndex H) (w : SpaceTime), w ∈ preterminal → |
| 778 | physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → |
| 779 | PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PhysicalGraphBounds.annulus a b → |
| 780 | ∀ chart : PolarCharts.Index, |
| 781 | PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart → |
| 782 | ∀ i ≤ m, ‖iteratedFDeriv ℝ i (f.carrier I.1).G |
| 783 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a chart) |
| 784 | (ChartScales.timeCoefficient h I.1.val.1) (f.carrier I.1).center r0 |
| 785 | (PhysicalGraphBounds.physicalLift h I.1.val.1 w)).1‖ ≤ B * ChartScales.S I.1.val.1 ^ eBase |
| 786 | |
| 787 | /-- The full physical sum has exactly the same power loss as one native |
| 788 | carrier. The number of harmonics, bounded cover gap, overlap count, and |
| 789 | stripped-class degrees affect its constant only. -/ |
| 790 | theorem physical_sum_jet_bound {h a b Z r0 P B eBase : ℝ} |
| 791 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) |
| 792 | (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 793 | (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : |
| 794 | ∃ C : ℝ, 0 ≤ C ∧ ∀ f : WaveFamily H, |
| 795 | RegularFamily f a b h r0 Z Δ → StrippedClass f a b h r0 P A B g eAmp eBase m → |
| 796 | ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → |
| 797 | ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ |
| 798 | C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by |
| 799 | obtain ⟨C, hC, hpoint⟩ := common_carrier_physical_bound (b := b) hh.le hh1.le ha |
| 800 | hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) |
| 801 | refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, ?_⟩ |
| 802 | intro f hregular hclass w hw ht |
| 803 | have hq := physicalQ_pos hh hh1 hw |
| 804 | have hsum := masked_finsum_jet_bound hh hh1 (f.term a h r0) |
| 805 | (fun I _ _ => (hregular.term_smooth ha I).contDiffAt) hregular.term_support hw m |
| 806 | (B := C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m)) (by positivity) |
| 807 | refine (hsum ?_).trans_eq (by ring) |
| 808 | · intro I hregion |
| 809 | by_cases hs : w ∈ tsupport (f.term a h r0 I) |
| 810 | · have hgeo := globalWave_tsupport_geometry (f.carrier I.1) (f.amplitude I) I.2.val |
| 811 | (hregular.geometry_support I) hs |
| 812 | obtain ⟨mode, hmode⟩ := hregular.angular_integer I.1 |
| 813 | let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) |
| 814 | have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := |
| 815 | chooseChart_valid ha hgeo.1 |
| 816 | have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) |
| 817 | (f.carrier I.1) (f.amplitude I) I.2.val mode hmode |
| 818 | (fun y hy => (hregular.geometry_support I y hy).1) chart hchart |
| 819 | change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 |
| 820 | (f.carrier I.1) (f.amplitude I) I.2.val) w‖ ≤ _ |
| 821 | rw [iteratedFDeriv_eq_of_eventuallyEq he m] |
| 822 | have hband := labelRegion_active_relation hregion |
| 823 | exact hpoint I.1.val.1 I.1.property (f.gap I.1) (hregular.gap_le I.1) |
| 824 | w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 |
| 825 | ((f.carrier I.1).withChart chart) (f.amplitude I) I.2.val |
| 826 | (hclass.parameters I.1).1 (hclass.parameters I.1).2.1 (hclass.parameters I.1).2.2 hgeo.2.2 |
| 827 | (hregular.amplitude_smooth I) (hregular.F_smooth I.1) (hregular.G_smooth I.1) (harmonic_bound I.2) |
| 828 | (hclass.amplitude I w hw hregion hgeo.1) |
| 829 | (hclass.base_F I w hw hregion hgeo.1 chart hchart) |
| 830 | (hclass.base_G I w hw hregion hgeo.1 chart hchart) |
| 831 | · rw [jet_zero_off_tsupport _ _ hs, norm_zero] |
| 832 | positivity |
| 833 | |
| 834 | theorem RegularFamily.sum_locally_finite {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} |
| 835 | (hf : RegularFamily f a b h r0 Z Δ) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 836 | {w : SpaceTime} (hw : w ∈ preterminal) : |
| 837 | ∃ s : Finset (WaveIndex H), s.card ≤ 2250 * (2 * H + 1) ∧ |
| 838 | f.sum a h r0 =ᶠ[𝓝 w] fun y => ∑ I ∈ s, f.term a h r0 I y := by |
| 839 | obtain ⟨s, hs, he⟩ := masked_finsum_eventually hh hh1 (f.term a h r0) hf.term_support hw |
| 840 | exact ⟨s, waveRegion_card_le (physicalQ_pos hh hh1 hw) s (fun I hI => (hs I).mp hI), he⟩ |
| 841 | |
| 842 | noncomputable def realCoordinate (i : Fin 3) : ℂ →L[ℝ] Space := |
| 843 | Complex.reCLM.smulRight (coordinateVector i) |
| 844 | |
| 845 | @[simp] theorem realCoordinate_apply (i : Fin 3) (z : ℂ) : |
| 846 | realCoordinate i z = z.re • coordinateVector i := rfl |
| 847 | |
| 848 | theorem norm_realCoordinate_le (i : Fin 3) : ‖realCoordinate i‖ ≤ 1 := by |
| 849 | refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one ?_ |
| 850 | intro z |
| 851 | rw [realCoordinate_apply, norm_smul, coordinateVector, PiLp.norm_single, norm_one, |
| 852 | mul_one, one_mul] |
| 853 | exact Complex.abs_re_le_norm z |
| 854 | |
| 855 | /-- Real Euclidean vector assembled from the three scalar carrier sums. -/ |
| 856 | noncomputable def vectorSum {H : ℕ} (f : Fin 3 → WaveFamily H) (a h r0 : ℝ) |
| 857 | (w : SpaceTime) : Space := ∑ i : Fin 3, realCoordinate i ((f i).sum a h r0 w) |
| 858 | |
| 859 | theorem norm_jet_linear_comp_at {E F G : Type*} |
| 860 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 861 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 862 | {f : E → F} {w : E} {m : ℕ} (hf : ContDiffAt ℝ m f w) (L : F →L[ℝ] G) : |
| 863 | ‖iteratedFDeriv ℝ m (L ∘ f) w‖ ≤ ‖L‖ * ‖iteratedFDeriv ℝ m f w‖ := by |
| 864 | rw [L.iteratedFDeriv_comp_left hf le_rfl] |
| 865 | exact L.norm_compContinuousMultilinearMap_le _ |
| 866 | |
| 867 | theorem vectorSum_jet_bound {H : ℕ} {f : Fin 3 → WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} |
| 868 | (hf : ∀ i, RegularFamily (f i) a b h r0 Z Δ) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 869 | {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) {B : ℝ} |
| 870 | (hb : ∀ i, ‖iteratedFDeriv ℝ m ((f i).sum a h r0) w‖ ≤ B) : |
| 871 | ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ 3 * B := by |
| 872 | have hlocal (i : Fin 3) : ContDiffAt ℝ m ((f i).sum a h r0) w := |
| 873 | (((hf i).sum_smooth ha hh hh1).contDiffAt (preterminal_open.mem_nhds hw)).of_le (nat_le_infty m) |
| 874 | unfold vectorSum |
| 875 | rw [iteratedFDeriv_finset_sum_at (f := fun i y => realCoordinate i ((f i).sum a h r0 y)) Finset.univ |
| 876 | (fun i _ => (realCoordinate i).contDiff.contDiffAt.comp w (hlocal i))] |
| 877 | calc |
| 878 | _ ≤ ∑ i : Fin 3, ‖iteratedFDeriv ℝ m (fun y => realCoordinate i ((f i).sum a h r0 y)) w‖ := |
| 879 | norm_sum_le _ _ |
| 880 | _ ≤ ∑ _i : Fin 3, B := by |
| 881 | apply Finset.sum_le_sum |
| 882 | intro i _ |
| 883 | exact (norm_jet_linear_comp_at (hlocal i) (realCoordinate i)).trans |
| 884 | ((mul_le_of_le_one_left (norm_nonneg _) (norm_realCoordinate_le i)).trans (hb i)) |
| 885 | _ = _ := by simp |
| 886 | |
| 887 | /-- The same stage-independent loss for an actual real Cartesian vector |
| 888 | field. Passing from scalar components costs only a factor of three. -/ |
| 889 | theorem physical_vector_sum_jet_bound {h a b Z r0 P B eBase : ℝ} |
| 890 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) |
| 891 | (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) |
| 892 | (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : |
| 893 | ∃ C : ℝ, 0 ≤ C ∧ ∀ f : Fin 3 → WaveFamily H, |
| 894 | (∀ i, RegularFamily (f i) a b h r0 Z Δ) → |
| 895 | (∀ i, StrippedClass (f i) a b h r0 P A B g eAmp eBase m) → |
| 896 | ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → |
| 897 | ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ |
| 898 | C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by |
| 899 | obtain ⟨C, hC, hb⟩ := physical_sum_jet_bound (b := b) hh hh1 ha hZ hr0 hP hB heBase H Δ m g eAmp A hA |
| 900 | refine ⟨3 * C, by positivity, ?_⟩ |
| 901 | intro f hreg hclass w hw ht |
| 902 | exact (vectorSum_jet_bound hreg ha hh hh1 hw m (fun i => hb (f i) (hreg i) (hclass i) w hw ht)).trans_eq |
| 903 | (by ring) |
| 904 | |
| 905 | end NavierStokes.PhysicalWaveSum |