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