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.PhaseJetBounds |
| 2 | import NavierStokes.WeightedClasses |
| 3 | import NavierStokes.WeightedQuotients |
| 4 | import NavierStokes.PartitionedCovariance |
| 5 | import NavierStokes.JointODE |
| 6 | import NavierStokes.CurlClassBounds |
| 7 | import NavierStokes.SignedCovariance |
| 8 | import NavierStokes.GaussianTailFlat |
| 9 | |
| 10 | /-! |
| 11 | # Weighted bounds for the actual primary pulses |
| 12 | |
| 13 | The homogeneous ODE is reparametrized onto a fixed unit interval. Its |
| 14 | current endpoint becomes an additional parameter, so the weighted ODE jet |
| 15 | estimate controls actual joint parameter and slot derivatives. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace NavierStokes.PrimaryPulseBounds |
| 21 | |
| 22 | open Set Function |
| 23 | open scoped ContDiff Topology InnerProductSpace BigOperators |
| 24 | |
| 25 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 26 | ENat.natCast_le_of_coe_top_le_withTop le_rfl n |
| 27 | |
| 28 | section TimeRescaling |
| 29 | |
| 30 | variable {Q E F : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 31 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 32 | variable [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 33 | |
| 34 | noncomputable def timeLinear (σ : ℝ) : (Q × ℝ) →L[ℝ] (Q × ℝ) := |
| 35 | (ContinuousLinearMap.fst ℝ Q ℝ).prod (σ • ContinuousLinearMap.snd ℝ Q ℝ) |
| 36 | |
| 37 | @[simp] theorem timeLinear_apply (σ : ℝ) (z : Q × ℝ) : timeLinear σ z = (z.1, σ * z.2) := rfl |
| 38 | |
| 39 | theorem timeLinear_norm_le {σ : ℝ} (hσ : |σ| ≤ 1) : ‖timeLinear (Q := Q) σ‖ ≤ 1 := by |
| 40 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 41 | intro z |
| 42 | simp only [timeLinear_apply, Prod.norm_def, one_mul, Real.norm_eq_abs, abs_mul] |
| 43 | apply max_le |
| 44 | · exact le_max_left _ _ |
| 45 | · exact (mul_le_of_le_one_left (abs_nonneg z.2) hσ).trans (le_max_right _ _) |
| 46 | |
| 47 | theorem norm_jet_slot_coordinate (z : Q × ℝ) (j : ℕ) : |
| 48 | ‖iteratedFDeriv ℝ j (fun y : Q × ℝ => y.2) z‖ ≤ max 1 |z.2| := by |
| 49 | have hfd : fderiv ℝ (fun y : Q × ℝ => y.2) = |
| 50 | fun _ => ContinuousLinearMap.snd ℝ Q ℝ := by |
| 51 | funext y |
| 52 | exact (ContinuousLinearMap.snd ℝ Q ℝ).hasFDerivAt.fderiv |
| 53 | cases j with |
| 54 | | zero => simpa only [norm_iteratedFDeriv_zero, Real.norm_eq_abs] using le_max_right 1 |z.2| |
| 55 | | succ j => |
| 56 | rw [← norm_iteratedFDeriv_fderiv, hfd] |
| 57 | cases j with |
| 58 | | zero => |
| 59 | rw [norm_iteratedFDeriv_zero] |
| 60 | have hs : ‖ContinuousLinearMap.snd ℝ Q ℝ‖ ≤ 1 := by |
| 61 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 62 | intro y |
| 63 | change ‖y.2‖ ≤ 1 * ‖y‖ |
| 64 | simpa only [one_mul] using norm_snd_le y |
| 65 | exact hs.trans (le_max_left _ _) |
| 66 | | succ j => |
| 67 | rw [iteratedFDeriv_succ_const] |
| 68 | simp only [Pi.zero_apply, norm_zero] |
| 69 | exact zero_le_one.trans (le_max_left _ _) |
| 70 | |
| 71 | theorem norm_lsmul_le_one : ‖ContinuousLinearMap.lsmul ℝ ℝ (E := E)‖ ≤ 1 := by |
| 72 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 73 | intro r |
| 74 | rw [one_mul] |
| 75 | apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg r) |
| 76 | intro x |
| 77 | exact le_of_eq (norm_smul r x) |
| 78 | |
| 79 | /-- Pointwise higher Leibniz bound. The right-hand bounds may be frozen |
| 80 | weights at this point, so no derivative of a majorant is introduced. -/ |
| 81 | theorem smul_jet_bound {A : Q → ℝ} {B : Q → E} {U : Set Q} |
| 82 | (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) (hB : ContDiffOn ℝ ∞ B U) |
| 83 | {x : Q} (hx : x ∈ U) {N j : ℕ} (hj : j ≤ N) {C D : ℝ} |
| 84 | (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 85 | (ha : ∀ i ≤ N, ‖iteratedFDeriv ℝ i A x‖ ≤ C) |
| 86 | (hb : ∀ i ≤ N, ‖iteratedFDeriv ℝ i B x‖ ≤ D) : |
| 87 | ‖iteratedFDeriv ℝ j (fun y => A y • B y) x‖ ≤ |
| 88 | (2 : ℝ) ^ N * C * D := by |
| 89 | have h := JetBounds.norm_iteratedFDeriv_bilinear_le_on |
| 90 | (ContinuousLinearMap.lsmul ℝ ℝ (E := E)) hU hA hB hx (nat_le_infty j) |
| 91 | have hs : (∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * |
| 92 | ‖iteratedFDeriv ℝ i A x‖ * ‖iteratedFDeriv ℝ (j - i) B x‖) ≤ 2 ^ N * C * D := by |
| 93 | calc |
| 94 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * C * D := by |
| 95 | apply Finset.sum_le_sum |
| 96 | intro i hi |
| 97 | have hij : i ≤ j := Nat.le_of_lt_succ (Finset.mem_range.mp hi) |
| 98 | exact mul_le_mul |
| 99 | (mul_le_mul_of_nonneg_left (ha i (hij.trans hj)) (Nat.cast_nonneg _)) |
| 100 | (hb (j - i) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 101 | (mul_nonneg (Nat.cast_nonneg _) hC) |
| 102 | _ = (2 : ℝ) ^ j * C * D := by |
| 103 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 104 | have hc : (∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ)) = (2 : ℝ) ^ j := by |
| 105 | exact_mod_cast Nat.sum_range_choose j |
| 106 | rw [hc] |
| 107 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 108 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hC) hD |
| 109 | calc |
| 110 | _ ≤ ‖ContinuousLinearMap.lsmul ℝ ℝ (E := E)‖ * ((2 : ℝ) ^ N * C * D) := |
| 111 | h.trans (mul_le_mul_of_nonneg_left hs |
| 112 | (norm_nonneg (ContinuousLinearMap.lsmul ℝ ℝ (E := E)))) |
| 113 | _ ≤ 1 * ((2 : ℝ) ^ N * C * D) := |
| 114 | mul_le_mul_of_nonneg_right (norm_lsmul_le_one (E := E)) (by positivity) |
| 115 | _ = _ := one_mul _ |
| 116 | |
| 117 | /-- All derivatives of the rescaled coefficient, including derivatives of |
| 118 | its endpoint prefactor, follow from the original joint coefficient jets. -/ |
| 119 | theorem rescale_jet_bound {A : Q × ℝ → E} {U : Set (Q × ℝ)} |
| 120 | (hU : IsOpen U) (hA : ContDiffOn ℝ ∞ A U) |
| 121 | {z : Q × ℝ} {σ C T : ℝ} (hσ : |σ| ≤ 1) (hz : timeLinear σ z ∈ U) |
| 122 | (hC : 0 ≤ C) (hT : 1 ≤ T) (ht : |z.2| ≤ T) {N j : ℕ} (hj : j ≤ N) |
| 123 | (hjet : ∀ i ≤ N, ‖iteratedFDeriv ℝ i A (timeLinear σ z)‖ ≤ C) : |
| 124 | ‖iteratedFDeriv ℝ j (fun y : Q × ℝ => y.2 • A (y.1, σ * y.2)) z‖ ≤ |
| 125 | (2 : ℝ) ^ N * T * C := by |
| 126 | let V := (timeLinear (Q := Q) σ) ⁻¹' U |
| 127 | have hV : IsOpen V := hU.preimage (timeLinear σ).continuous |
| 128 | have hg : ContDiffOn ℝ ∞ (fun y : Q × ℝ => A (timeLinear σ y)) V := |
| 129 | hA.comp_continuousLinearMap _ |
| 130 | apply smul_jet_bound hV contDiffOn_snd hg hz hj (zero_le_one.trans hT) hC |
| 131 | · intro i _ |
| 132 | exact (norm_jet_slot_coordinate z i).trans (max_le hT ht) |
| 133 | · intro i hi |
| 134 | have hh := PhaseJetBounds.norm_jet_comp_linear hU hA (timeLinear σ) hz i |
| 135 | apply hh.trans |
| 136 | have hn : ‖timeLinear (Q := Q) σ‖ ^ i ≤ 1 := by |
| 137 | simpa using pow_le_pow_left₀ (norm_nonneg (timeLinear (Q := Q) σ)) |
| 138 | (timeLinear_norm_le (Q := Q) hσ) i |
| 139 | exact (mul_le_mul (hjet i hi) hn (pow_nonneg (norm_nonneg _) i) hC).trans_eq (mul_one C) |
| 140 | |
| 141 | end TimeRescaling |
| 142 | |
| 143 | noncomputable def rescaleConstant (N : ℕ) (K : ℝ) : ℝ := 2 ^ N * K ^ 2 + K + 1 |
| 144 | |
| 145 | theorem le_rescaleConstant (N : ℕ) (K : ℝ) : K ≤ rescaleConstant N K := by |
| 146 | unfold rescaleConstant |
| 147 | nlinarith [mul_nonneg (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) N) (sq_nonneg K)] |
| 148 | |
| 149 | section JointEstimate |
| 150 | |
| 151 | variable {Q H : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 152 | variable [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 153 | |
| 154 | /-- Actual joint derivatives of a homogeneous fundamental solution retain |
| 155 | the reference envelope. The solution is the constructed Volterra solution |
| 156 | in `JointODE`, rather than an assumed smooth solution family. -/ |
| 157 | theorem homogeneous_joint_jet_bound |
| 158 | {L S K μ : ℝ} (_hL : 0 < L) (hS : 1 ≤ S) (hK : 1 ≤ K) (hμ : 0 ≤ μ) |
| 159 | (hslot : L ≤ K * S) (hExp : Real.exp (μ * L) ≤ K) |
| 160 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc 0 L ⊆ V) |
| 161 | (A : Q × ℝ → H →L[ℝ] H) (hA : ContDiffOn ℝ ∞ A (U ×ˢ V)) |
| 162 | (P rate : ℝ → ℝ) (hP : ∀ t, 0 < P t) |
| 163 | (hdP : ∀ t, HasDerivAt P (rate t * P t) t) |
| 164 | (e : H) (he : ‖e‖ ≤ 1) {p : Q} (hp : p ∈ U) {t : ℝ} (ht : t ∈ Icc 0 L) |
| 165 | (henergy : ∀ v ∈ Icc 0 L, ∀ x : H, |
| 166 | ⟪x, A (p, v) x⟫_ℝ ≤ (rate v + μ) * ‖x‖ ^ 2) |
| 167 | (m N : ℕ) |
| 168 | (hjets : ∀ j ≤ N, ∀ v ∈ Icc 0 L, |
| 169 | ‖iteratedFDeriv ℝ j A (p, v)‖ ≤ K * S ^ m) |
| 170 | (j : ℕ) (hj : j ≤ N) : |
| 171 | ‖iteratedFDeriv ℝ j |
| 172 | (JointODE.reparamSolution 0 A (fun _ => P 0 • e) (fun _ => 0)) (p, t)‖ ≤ |
| 173 | ((2 : ℝ) ^ (N + 1) * rescaleConstant N K ^ 3) ^ (j + 1) * |
| 174 | S ^ ((m + 2) * (j + 1)) * P t := by |
| 175 | let K' := rescaleConstant N K |
| 176 | have hKK' : K ≤ K' := le_rescaleConstant N K |
| 177 | have hK' : 1 ≤ K' := hK.trans hKK' |
| 178 | have hKS : 1 ≤ K * S := one_le_mul_of_one_le_of_one_le hK hS |
| 179 | have hz : (p, t) ∈ U ×ˢ Icc 0 L := ⟨hp, ht⟩ |
| 180 | let Ω := (JointODE.timeMap (P := Q) 0) ⁻¹' (U ×ˢ V) |
| 181 | have hΩ : IsOpen Ω := (hU.prod hV).preimage (JointODE.contDiff_timeMap 0).continuous |
| 182 | have hsubset : ({(p, t)} : Set (Q × ℝ)) ×ˢ Icc (0 : ℝ) 1 ⊆ Ω := by |
| 183 | rintro ⟨z, σ⟩ ⟨hz', hσ⟩ |
| 184 | have heq : z = (p, t) := mem_singleton_iff.mp hz' |
| 185 | subst z |
| 186 | exact ⟨hp, hI (JointODE.affineTime_mem ht hσ)⟩ |
| 187 | obtain ⟨O, T, hO, hT, hzO, hIT, hOT⟩ := |
| 188 | generalized_tube_lemma isCompact_singleton isCompact_Icc hΩ hsubset |
| 189 | have hpoint : (p, t) ∈ O := hzO (mem_singleton _) |
| 190 | have hmap : MapsTo (JointODE.timeMap (P := Q) 0) (O ×ˢ T) (U ×ˢ V) := hOT |
| 191 | have hAr : ContDiffOn ℝ ∞ (JointODE.rescale 0 A) (O ×ˢ T) := |
| 192 | JointODE.rescale_contDiffOn A hA hmap |
| 193 | have hfr : ContDiffOn ℝ ∞ (JointODE.rescale 0 (fun _ : Q × ℝ => (0 : H))) (O ×ˢ T) := |
| 194 | JointODE.rescale_contDiffOn _ contDiffOn_const hmap |
| 195 | have hinside (σ : Icc (0 : ℝ) 1) : σ.1 * t ∈ Icc 0 L := by |
| 196 | simpa only [JointODE.affineTime, sub_zero, zero_add] using JointODE.affineTime_mem ht σ.2 |
| 197 | have hweight : ∀ σ, HasDerivAt (fun r => P (r * t)) |
| 198 | ((t * rate (σ * t)) * P (σ * t)) σ := by |
| 199 | intro σ |
| 200 | convert! (hdP (σ * t)).comp σ ((hasDerivAt_id σ).mul_const t) using 1 |
| 201 | ring |
| 202 | have henergy' : ∀ σ : Icc (0 : ℝ) 1, ∀ x : H, |
| 203 | ⟪x, JointODE.rescale 0 A ((p, t), σ) x⟫_ℝ ≤ |
| 204 | ((t * rate (σ * t)) + t * μ) * ‖x‖ ^ 2 := by |
| 205 | intro σ x |
| 206 | have hh := mul_le_mul_of_nonneg_left (henergy _ (hinside σ) x) ht.1 |
| 207 | convert! hh using 1 |
| 208 | · simp only [JointODE.rescale, JointODE.timeMap, JointODE.affineTime, sub_zero, zero_add, |
| 209 | _root_.smul_apply, real_inner_smul_right] |
| 210 | · ring |
| 211 | have hAjet : ∀ k ≤ N, ∀ σ : Icc (0 : ℝ) 1, |
| 212 | ‖iteratedFDeriv ℝ k (fun q => JointODE.rescale 0 A (q, σ)) (p, t)‖ ≤ K' * S ^ (m + 1) := by |
| 213 | intro k hk σ |
| 214 | have hσ : |(σ : ℝ)| ≤ 1 := by rw [abs_of_nonneg σ.2.1]; exact σ.2.2 |
| 215 | have hh := rescale_jet_bound (hU.prod hV) hA hσ |
| 216 | (show timeLinear (σ : ℝ) (p, t) ∈ U ×ˢ V from ⟨hp, hI (hinside σ)⟩) |
| 217 | (show 0 ≤ K * S ^ m by positivity) hKS |
| 218 | (show |t| ≤ K * S by rw [abs_of_nonneg ht.1]; exact ht.2.trans hslot) hk |
| 219 | (fun i hi => hjets i hi _ (hinside σ)) |
| 220 | have hconst : (2 : ℝ) ^ N * K ^ 2 ≤ K' := by |
| 221 | dsimp [K', rescaleConstant] |
| 222 | linarith |
| 223 | calc |
| 224 | _ ≤ (2 : ℝ) ^ N * (K * S) * (K * S ^ m) := by |
| 225 | simpa only [JointODE.rescale, JointODE.timeMap, JointODE.affineTime, sub_zero, zero_add] using hh |
| 226 | _ = ((2 : ℝ) ^ N * K ^ 2) * S ^ (m + 1) := by rw [pow_succ]; ring |
| 227 | _ ≤ _ := mul_le_mul_of_nonneg_right hconst (by positivity) |
| 228 | have hxjet : ∀ k ≤ N, |
| 229 | ‖iteratedFDeriv ℝ k (fun _ : Q × ℝ => P 0 • e) (p, t)‖ ≤ |
| 230 | 1 * K' * S ^ (m + 1) * P ((0 : ℝ) * t) := by |
| 231 | intro k _ |
| 232 | have hcoef : 1 ≤ K' * S ^ (m + 1) := |
| 233 | one_le_mul_of_one_le_of_one_le hK' (one_le_pow₀ hS) |
| 234 | cases k with |
| 235 | | zero => |
| 236 | rw [norm_iteratedFDeriv_zero, norm_smul, Real.norm_eq_abs, abs_of_pos (hP 0)] |
| 237 | simp only [one_mul, zero_mul] |
| 238 | nlinarith [hP 0] |
| 239 | | succ k => |
| 240 | rw [iteratedFDeriv_succ_const] |
| 241 | simp only [Pi.zero_apply, norm_zero, one_mul, zero_mul] |
| 242 | have hp0 := hP 0 |
| 243 | positivity |
| 244 | have hfjet : ∀ k ≤ N, ∀ σ : Icc (0 : ℝ) 1, |
| 245 | ‖iteratedFDeriv ℝ k (fun q => JointODE.rescale 0 (fun _ : Q × ℝ => (0 : H)) (q, σ)) (p, t)‖ ≤ |
| 246 | 1 * K' * S ^ (m + 1) * P ((σ : ℝ) * t) := by |
| 247 | intro k _ σ |
| 248 | simp only [JointODE.rescale, smul_zero, iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero, one_mul] |
| 249 | have hp0 := hP ((σ : ℝ) * t) |
| 250 | exact mul_nonneg (mul_nonneg (zero_le_one.trans hK') |
| 251 | (pow_nonneg (zero_le_one.trans hS) _)) hp0.le |
| 252 | have hExp' : Real.exp ((t * μ) * ((1 : ℝ) - 0)) ≤ K' := by |
| 253 | apply (Real.exp_le_exp.mpr (show (t * μ) * (1 - 0) ≤ μ * L by nlinarith [ht.2])).trans |
| 254 | exact hExp.trans hKK' |
| 255 | have hh := WeightedODEJets.norm_iteratedFDeriv_odeFamily_le_polynomial |
| 256 | (a := 0) (b := 1) zero_le_one O T hO hT hIT |
| 257 | (JointODE.rescale 0 A) (fun _ : Q × ℝ => P 0 • e) |
| 258 | (JointODE.rescale 0 (fun _ : Q × ℝ => (0 : H))) |
| 259 | hAr contDiffOn_const hfr hpoint (fun σ => t * rate (σ * t)) (fun σ => P (σ * t)) |
| 260 | (mul_nonneg ht.1 hμ) (fun σ => hP _) hweight henergy' hExp' hS hK' zero_le_one |
| 261 | (show (1 : ℝ) - 0 ≤ K' * S by nlinarith) (m + 1) N hAjet hxjet hfjet j hj |
| 262 | ⟨1, zero_le_one, le_rfl⟩ |
| 263 | unfold JointODE.reparamSolution |
| 264 | simpa only [one_mul, Nat.add_assoc] using hh |
| 265 | |
| 266 | end JointEstimate |
| 267 | |
| 268 | /-- Polynomial jets with a retained pointwise envelope. This is only an |
| 269 | intermediate family predicate; the constructed solution is proved to satisfy it. -/ |
| 270 | structure EnvelopeJets {ι E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 271 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 272 | (D : PhaseJetBounds.Domain ι E) (w : ι → E → ℝ) (f : ι → E → F) : Prop where |
| 273 | nonneg : ∀ i x, x ∈ D.carrier i → 0 ≤ w i x |
| 274 | smooth : ∀ i, ContDiffOn ℝ ∞ (f i) (D.carrier i) |
| 275 | bound : ∀ N : ℕ, ∃ C : ℝ, 1 ≤ C ∧ ∃ m : ℕ, ∀ i x, x ∈ D.carrier i → |
| 276 | ∀ j ≤ N, ‖iteratedFDeriv ℝ j (f i) x‖ ≤ C * D.scale i ^ m * w i x |
| 277 | |
| 278 | noncomputable def productDomain {ι E : Type*} [NormedAddCommGroup E] |
| 279 | (D : PhaseJetBounds.Domain ι E) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) : |
| 280 | PhaseJetBounds.Domain ι (E × ℝ) where |
| 281 | scale := D.scale |
| 282 | carrier i := D.carrier i ×ˢ V i |
| 283 | isOpen i := (D.isOpen i).prod (hV i) |
| 284 | one_le_scale := D.one_le_scale |
| 285 | |
| 286 | section EnvelopeCalculus |
| 287 | |
| 288 | variable {ι E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 289 | variable [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 290 | variable {D : PhaseJetBounds.Domain ι E} {D' : PhaseJetBounds.Domain ι F} |
| 291 | |
| 292 | theorem EnvelopeJets.comp {f : ι → F → G} {w : ι → F → ℝ} |
| 293 | (hf : EnvelopeJets D' w f) {g : ι → E → F} (hg : PhaseJetBounds.PolynomialJets D g) |
| 294 | (hscale : ∀ i, D'.scale i = D.scale i) |
| 295 | (hmap : ∀ i, MapsTo (g i) (D.carrier i) (D'.carrier i)) : |
| 296 | EnvelopeJets D (fun i x => w i (g i x)) (fun i x => f i (g i x)) := by |
| 297 | refine ⟨fun i x hx => hf.nonneg i _ (hmap i hx), |
| 298 | fun i => (hf.smooth i).comp (hg.smooth i) (hmap i), ?_⟩ |
| 299 | intro N |
| 300 | obtain ⟨A, hA, m, ha⟩ := hf.bound N |
| 301 | obtain ⟨B, hB, k, hb⟩ := hg.bound N |
| 302 | refine ⟨(N.factorial : ℝ) * A * B ^ N, ?_, m + k * N, ?_⟩ |
| 303 | · have hfac : (1 : ℝ) ≤ N.factorial := by exact_mod_cast Nat.factorial_pos N |
| 304 | exact one_le_mul_of_one_le_of_one_le (one_le_mul_of_one_le_of_one_le hfac hA) |
| 305 | (one_le_pow₀ hB) |
| 306 | intro i x hx j hj |
| 307 | have hC : 1 ≤ B * D.scale i ^ k := |
| 308 | one_le_mul_of_one_le_of_one_le hB (one_le_pow₀ (D.one_le_scale i)) |
| 309 | have hw := hf.nonneg i (g i x) (hmap i hx) |
| 310 | have h := norm_iteratedFDerivWithin_comp_le (hf.smooth i) (hg.smooth i) (nat_le_infty j) |
| 311 | (D'.isOpen i).uniqueDiffOn (D.isOpen i).uniqueDiffOn (hmap i) hx |
| 312 | (C := A * D'.scale i ^ m * w i (g i x)) (D := B * D.scale i ^ k) |
| 313 | (fun a haj => ?_) (fun a ha1 haj => ?_) |
| 314 | · rw [iteratedFDerivWithin_of_isOpen j (D.isOpen i) hx] at h |
| 315 | change ‖iteratedFDeriv ℝ j (f i ∘ g i) x‖ ≤ _ |
| 316 | have hA0 : 0 ≤ A * D'.scale i ^ m * w i (g i x) := by |
| 317 | have := zero_le_one.trans (D'.one_le_scale i) |
| 318 | positivity |
| 319 | calc |
| 320 | _ ≤ (j.factorial : ℝ) * (A * D'.scale i ^ m * w i (g i x)) * |
| 321 | (B * D.scale i ^ k) ^ j := h |
| 322 | _ ≤ (N.factorial : ℝ) * (A * D'.scale i ^ m * w i (g i x)) * |
| 323 | (B * D.scale i ^ k) ^ N := by |
| 324 | apply mul_le_mul |
| 325 | · exact mul_le_mul_of_nonneg_right (by exact_mod_cast Nat.factorial_le hj) hA0 |
| 326 | · exact pow_le_pow_right₀ hC hj |
| 327 | · positivity |
| 328 | · positivity |
| 329 | _ = _ := by rw [hscale, mul_pow, pow_add, pow_mul]; ring |
| 330 | · rw [iteratedFDerivWithin_of_isOpen a (D'.isOpen i) (hmap i hx)] |
| 331 | exact ha i _ (hmap i hx) a (haj.trans hj) |
| 332 | · rw [iteratedFDerivWithin_of_isOpen a (D.isOpen i) hx] |
| 333 | exact (hb i a (haj.trans hj) x hx).trans |
| 334 | (by simpa using pow_le_pow_right₀ hC ha1) |
| 335 | |
| 336 | end EnvelopeCalculus |
| 337 | |
| 338 | section LinearPullback |
| 339 | |
| 340 | variable {ι E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 341 | variable [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 342 | variable {D : PhaseJetBounds.Domain ι E} {D' : PhaseJetBounds.Domain ι F} |
| 343 | |
| 344 | theorem EnvelopeJets.of_polynomial {f : ι → E → G} (hf : PhaseJetBounds.PolynomialJets D f) : |
| 345 | EnvelopeJets D (fun _ _ => 1) f := by |
| 346 | refine ⟨fun _ _ _ => zero_le_one, hf.smooth, ?_⟩ |
| 347 | intro N |
| 348 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 349 | exact ⟨C, hC, m, fun i x hx j hj => by simpa only [mul_one] using hm i j hj x hx⟩ |
| 350 | |
| 351 | theorem EnvelopeJets.to_polynomial {w : ι → E → ℝ} {f : ι → E → G} |
| 352 | (hf : EnvelopeJets D w f) (hw : ∀ i x, x ∈ D.carrier i → w i x ≤ 1) : |
| 353 | PhaseJetBounds.PolynomialJets D f := by |
| 354 | refine ⟨hf.smooth, ?_⟩ |
| 355 | intro N |
| 356 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 357 | refine ⟨C, hC, m, ?_⟩ |
| 358 | intro i j hj x hx |
| 359 | exact (hm i x hx j hj).trans (by |
| 360 | have h0 : 0 ≤ C * D.scale i ^ m := |
| 361 | mul_nonneg (zero_le_one.trans hC) (pow_nonneg (zero_le_one.trans (D.one_le_scale i)) _) |
| 362 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (hw i x hx) h0) |
| 363 | |
| 364 | theorem EnvelopeJets.precomp_linear {f : ι → F → G} {w : ι → F → ℝ} |
| 365 | (hf : EnvelopeJets D' w f) (L : ι → E →L[ℝ] F) |
| 366 | (hscale : ∀ i, D'.scale i = D.scale i) |
| 367 | (hmap : ∀ i, MapsTo (L i) (D.carrier i) (D'.carrier i)) |
| 368 | {C : ℝ} {k : ℕ} (hC : 1 ≤ C) (hL : ∀ i, ‖L i‖ ≤ C * D.scale i ^ k) : |
| 369 | EnvelopeJets D (fun i x => w i (L i x)) (fun i x => f i (L i x)) := by |
| 370 | refine ⟨fun i x hx => hf.nonneg i _ (hmap i hx), |
| 371 | fun i => (hf.smooth i).comp (L i).contDiff.contDiffOn (hmap i), ?_⟩ |
| 372 | intro N |
| 373 | obtain ⟨A, hA, m, hm⟩ := hf.bound N |
| 374 | refine ⟨A * C ^ N, one_le_mul_of_one_le_of_one_le hA (one_le_pow₀ hC), m + k * N, ?_⟩ |
| 375 | intro i x hx j hj |
| 376 | have hc : 1 ≤ C * D.scale i ^ k := |
| 377 | one_le_mul_of_one_le_of_one_le hC (one_le_pow₀ (D.one_le_scale i)) |
| 378 | have hpow : ‖L i‖ ^ j ≤ (C * D.scale i ^ k) ^ N := |
| 379 | (pow_le_pow_left₀ (norm_nonneg _) (hL i) j).trans (pow_le_pow_right₀ hc hj) |
| 380 | have hw := hf.nonneg i (L i x) (hmap i hx) |
| 381 | have hb : 0 ≤ A * D'.scale i ^ m * w i (L i x) := |
| 382 | mul_nonneg (mul_nonneg (zero_le_one.trans hA) |
| 383 | (pow_nonneg (zero_le_one.trans (D'.one_le_scale i)) _)) hw |
| 384 | calc |
| 385 | _ ≤ ‖iteratedFDeriv ℝ j (f i) (L i x)‖ * ‖L i‖ ^ j := |
| 386 | PhaseJetBounds.norm_jet_comp_linear (D'.isOpen i) (hf.smooth i) (L i) (hmap i hx) j |
| 387 | _ ≤ (A * D'.scale i ^ m * w i (L i x)) * (C * D.scale i ^ k) ^ N := |
| 388 | mul_le_mul (hm i _ (hmap i hx) j hj) hpow (pow_nonneg (norm_nonneg _) _) hb |
| 389 | _ = _ := by rw [hscale, mul_pow, pow_add, pow_mul]; ring |
| 390 | |
| 391 | end LinearPullback |
| 392 | |
| 393 | section Classes |
| 394 | |
| 395 | open WeightedClasses |
| 396 | |
| 397 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 398 | variable [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 399 | |
| 400 | noncomputable def phaseDomain (s : StripData E) : PhaseJetBounds.Domain ℕ E where |
| 401 | scale := s.slow |
| 402 | carrier _ := s.domain |
| 403 | isOpen _ := s.isOpen_domain |
| 404 | one_le_scale := s.one_le_slow |
| 405 | |
| 406 | theorem EnvelopeJets.memClass {D : PhaseJetBounds.Domain ℕ E} |
| 407 | {w : ℕ → E → ℝ} {f : ℕ → E → F} (hf : EnvelopeJets D w f) (s : StripData E) |
| 408 | (hscale : ∀ n, D.scale n = s.slow n) (hdom : ∀ n, D.carrier n = s.domain) : |
| 409 | MemClass s w 0 f := by |
| 410 | refine ⟨fun n x hx => hf.nonneg n x (hdom n ▸ hx), |
| 411 | fun n => hdom n ▸ hf.smooth n, ?_⟩ |
| 412 | intro N |
| 413 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 414 | refine ⟨C, zero_le_one.trans hC, m, ?_⟩ |
| 415 | intro n x hx j hj |
| 416 | have hw := hf.nonneg n x (hdom n ▸ hx) |
| 417 | have hh := hm n x (hdom n ▸ hx) j hj |
| 418 | rw [hscale n] at hh |
| 419 | apply hh.trans |
| 420 | simp only [majorant, Real.rpow_zero, mul_one] |
| 421 | exact mul_le_mul_of_nonneg_right |
| 422 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (zero_le_one.trans (s.one_le_slow n)) |
| 423 | (s.slow_le_growth n x) m) (zero_le_one.trans hC)) hw |
| 424 | |
| 425 | theorem polynomial_memClass (s : StripData E) {f : ℕ → E → F} |
| 426 | (hf : PhaseJetBounds.PolynomialJets (phaseDomain s) f) : UnweightedClass s 0 f := |
| 427 | (EnvelopeJets.of_polynomial hf).memClass s (fun _ => rfl) (fun _ => rfl) |
| 428 | |
| 429 | end Classes |
| 430 | |
| 431 | section FamilyODE |
| 432 | |
| 433 | variable {ι : Type*} {Q H : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 434 | variable [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 435 | |
| 436 | /-- Every fixed joint jet of the actual homogeneous family has a single |
| 437 | band-uniform polynomial bound times the original reference envelope. -/ |
| 438 | theorem homogeneous_family_envelope_jets |
| 439 | (D : PhaseJetBounds.Domain ι Q) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) |
| 440 | (L μ : ι → ℝ) (hL : ∀ i, 0 < L i) (hI : ∀ i, Icc 0 (L i) ⊆ V i) |
| 441 | (A : ι → Q × ℝ → H →L[ℝ] H) |
| 442 | (hA : PhaseJetBounds.PolynomialJets (productDomain D V hV) A) |
| 443 | (P rate : ι → ℝ → ℝ) (hP : ∀ i t, 0 < P i t) |
| 444 | (hdP : ∀ i t, HasDerivAt (P i) (rate i t * P i t) t) |
| 445 | (e : H) (he : ‖e‖ ≤ 1) {K₀ : ℝ} (hK₀ : 1 ≤ K₀) |
| 446 | (hμ : ∀ i, 0 ≤ μ i) (hslot : ∀ i, L i ≤ K₀ * D.scale i) |
| 447 | (hExp : ∀ i, Real.exp (μ i * L i) ≤ K₀) |
| 448 | (henergy : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), ∀ x : H, |
| 449 | ⟪x, A i (p, v) x⟫_ℝ ≤ (rate i v + μ i) * ‖x‖ ^ 2) : |
| 450 | EnvelopeJets (productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) |
| 451 | (fun i z => P i z.2) |
| 452 | (fun i => JointODE.reparamSolution 0 (A i) (fun _ => P i 0 • e) (fun _ => 0)) := by |
| 453 | refine ⟨fun i x _ => (hP i x.2).le, ?_, ?_⟩ |
| 454 | · intro i z hz |
| 455 | exact (JointODE.reparamSolution_contDiffAt (D.carrier i) (V i) (D.isOpen i) (hV i) (hI i) |
| 456 | (A i) (fun _ => P i 0 • e) (fun _ => 0) (hA.smooth i) contDiffOn_const contDiffOn_const |
| 457 | (show z ∈ D.carrier i ×ˢ Icc 0 (L i) from ⟨hz.1, hz.2.1.le, hz.2.2.le⟩)).contDiffWithinAt |
| 458 | intro N |
| 459 | obtain ⟨C, hC, m, hm⟩ := hA.bound N |
| 460 | let K := C + K₀ + 1 |
| 461 | have hK : 1 ≤ K := by dsimp [K]; linarith |
| 462 | have hCK : C ≤ K := by dsimp [K]; linarith |
| 463 | have hK₀K : K₀ ≤ K := by dsimp [K]; linarith |
| 464 | let B := (2 : ℝ) ^ (N + 1) * rescaleConstant N K ^ 3 |
| 465 | have hB : 1 ≤ B := one_le_mul_of_one_le_of_one_le (one_le_pow₀ (by norm_num)) |
| 466 | (one_le_pow₀ (hK.trans (le_rescaleConstant N K))) |
| 467 | refine ⟨B ^ (N + 1), one_le_pow₀ hB, (m + 2) * (N + 1), ?_⟩ |
| 468 | intro i z hz j hj |
| 469 | have hAj : ∀ k ≤ N, ∀ v ∈ Icc 0 (L i), |
| 470 | ‖iteratedFDeriv ℝ k (A i) (z.1, v)‖ ≤ K * D.scale i ^ m := by |
| 471 | intro k hk v hv |
| 472 | exact (hm i k hk (z.1, v) ⟨hz.1, hI i hv⟩).trans |
| 473 | (mul_le_mul_of_nonneg_right hCK (pow_nonneg (zero_le_one.trans (D.one_le_scale i)) _)) |
| 474 | have hh := homogeneous_joint_jet_bound (hL i) (D.one_le_scale i) hK (hμ i) |
| 475 | ((hslot i).trans (mul_le_mul_of_nonneg_right hK₀K (zero_le_one.trans (D.one_le_scale i)))) |
| 476 | ((hExp i).trans hK₀K) (D.carrier i) (V i) (D.isOpen i) (hV i) (hI i) |
| 477 | (A i) (hA.smooth i) (P i) (rate i) (hP i) (hdP i) e he hz.1 |
| 478 | ⟨hz.2.1.le, hz.2.2.le⟩ (henergy i z.1 hz.1) m N hAj j hj |
| 479 | apply hh.trans |
| 480 | apply mul_le_mul_of_nonneg_right _ (hP i z.2).le |
| 481 | exact mul_le_mul (pow_le_pow_right₀ hB (Nat.add_le_add_right hj 1)) |
| 482 | (pow_le_pow_right₀ (D.one_le_scale i) (Nat.mul_le_mul_left (m + 2) (Nat.add_le_add_right hj 1))) |
| 483 | (pow_nonneg (zero_le_one.trans (D.one_le_scale i)) _) (pow_nonneg (zero_le_one.trans hB) _) |
| 484 | |
| 485 | end FamilyODE |
| 486 | |
| 487 | section IntegratedJets |
| 488 | |
| 489 | variable {ι : Type*} {Q H : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 490 | variable [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 491 | |
| 492 | /-- Joint coefficient jets control the actual continuous-path jets in the |
| 493 | supremum norm, uniformly on a fixed compact integration interval. -/ |
| 494 | theorem pathFamily_polynomial (D : PhaseJetBounds.Domain ι Q) |
| 495 | (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) {a b : ℝ} |
| 496 | (hI : ∀ i, Icc a b ⊆ V i) {F : ι → Q × ℝ → H} |
| 497 | (hF : PhaseJetBounds.PolynomialJets (productDomain D V hV) F) : |
| 498 | PhaseJetBounds.PolynomialJets D (fun i => SmoothPathFamily.pathFamily (a := a) (b := b) (F i)) := by |
| 499 | refine ⟨fun i => SmoothPathFamily.contDiffOn_pathFamily_of_joint |
| 500 | (D.carrier i) (V i) (D.isOpen i) (hV i) (hI i) (F i) (hF.smooth i), ?_⟩ |
| 501 | intro N |
| 502 | obtain ⟨C, hC, m, hm⟩ := hF.parameter_bound N |
| 503 | refine ⟨C, hC, m, ?_⟩ |
| 504 | intro i k hk p hp |
| 505 | have hC0 : 0 ≤ C * D.scale i ^ m := |
| 506 | mul_nonneg (zero_le_one.trans hC) (pow_nonneg (zero_le_one.trans (D.one_le_scale i)) _) |
| 507 | apply WeightedODEJets.multilinear_norm_le_of_unit _ hC0 |
| 508 | intro v hv |
| 509 | apply (ContinuousMap.norm_le _ hC0).mpr |
| 510 | intro t |
| 511 | rw [SmoothPathFamily.iteratedFDeriv_pathFamily_apply (D.carrier i) (V i) |
| 512 | (D.isOpen i) (hV i) (hI i) (F i) (hF.smooth i) hp] |
| 513 | have hprod : (∏ j, ‖v j‖) ≤ 1 := Finset.prod_le_one (fun _ _ => norm_nonneg _) |
| 514 | (fun j _ => hv j) |
| 515 | exact ((iteratedFDeriv ℝ k (fun q => F i (q, t)) p).le_opNorm v).trans |
| 516 | ((mul_le_mul (hm i p t ⟨hp, hI i t.2⟩ k hk) hprod |
| 517 | (Finset.prod_nonneg (fun _ _ => norm_nonneg _)) hC0).trans_eq (mul_one _)) |
| 518 | |
| 519 | variable [CompleteSpace H] |
| 520 | |
| 521 | noncomputable def intervalIntegralCLM {a b : ℝ} (hab : a ≤ b) : |
| 522 | C(Icc a b, H) →L[ℝ] H := |
| 523 | (ContinuousMap.evalCLM ℝ (⟨b, hab, le_rfl⟩ : Icc a b)).comp (ParametricODE.integrator hab) |
| 524 | |
| 525 | /-- The actual parameter-dependent integral has polynomial jets; no |
| 526 | smoothness or derivative estimate for the integral is an input. -/ |
| 527 | theorem intervalIntegral_polynomial (D : PhaseJetBounds.Domain ι Q) |
| 528 | (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) {a b : ℝ} (hab : a ≤ b) |
| 529 | (hI : ∀ i, Icc a b ⊆ V i) {F : ι → Q × ℝ → H} |
| 530 | (hF : PhaseJetBounds.PolynomialJets (productDomain D V hV) F) : |
| 531 | PhaseJetBounds.PolynomialJets D (fun i p => ∫ t in a..b, F i (p, t)) := by |
| 532 | apply ((pathFamily_polynomial D V hV hI hF).clm (intervalIntegralCLM (H := H) hab)).congr |
| 533 | intro i p hp |
| 534 | change (∫ t in a..b, ParametricODE.extend hab |
| 535 | (SmoothPathFamily.pathFamily (F i) p) t) = ∫ t in a..b, F i (p, t) |
| 536 | apply intervalIntegral.integral_congr |
| 537 | intro t ht |
| 538 | have ht' : t ∈ Icc a b := by simpa only [uIcc_of_le hab] using ht |
| 539 | exact (ParametricODE.extend_coe hab _ ⟨t, ht'⟩).trans |
| 540 | (SmoothPathFamily.pathFamily_apply (F i) p |
| 541 | (SmoothPathFamily.slice_continuous ((hF.smooth i).continuousOn.mono |
| 542 | (Set.prod_mono Subset.rfl (hI i))) hp) ⟨t, ht'⟩) |
| 543 | |
| 544 | end IntegratedJets |
| 545 | |
| 546 | abbrev State := MovingFrameODE.Plane |
| 547 | abbrev Space := MovingFrameODE.Space |
| 548 | |
| 549 | noncomputable def positiveSeed : State := !₂[1, 0] |
| 550 | |
| 551 | theorem positiveSeed_norm : ‖positiveSeed‖ = 1 := by |
| 552 | have h : ‖positiveSeed‖ ^ 2 = 1 := by |
| 553 | calc |
| 554 | _ = (positiveSeed 0) ^ 2 + (positiveSeed 1) ^ 2 := ViscousPropagator.plane_norm_sq positiveSeed |
| 555 | _ = 1 := by norm_num [positiveSeed] |
| 556 | nlinarith [norm_nonneg positiveSeed] |
| 557 | |
| 558 | noncomputable def referenceP (lam u L t : ℝ) : ℝ := |
| 559 | GaussianEnvelope.envelope (GaussianEnvelope.referenceRate lam u L) (L / 2) t |
| 560 | |
| 561 | theorem referenceP_pos (lam u L t : ℝ) : 0 < referenceP lam u L t := |
| 562 | GaussianEnvelope.envelope_pos _ _ _ |
| 563 | |
| 564 | theorem referenceP_hasDerivAt (lam u L t : ℝ) : |
| 565 | HasDerivAt (referenceP lam u L) |
| 566 | (GaussianEnvelope.referenceRate lam u L t * referenceP lam u L t) t := |
| 567 | ViscousPropagator.hasDerivAt_envelope (ViscousPropagator.continuous_referenceRate lam u L) _ _ |
| 568 | |
| 569 | theorem referenceP_le_one {lam u L t : ℝ} (hlam : 0 < lam) (hu : 0 < u) |
| 570 | (hL : 0 < L) (ht : t ∈ Icc 0 L) : referenceP lam u L t ≤ 1 := by |
| 571 | apply (GaussianEnvelope.reference_gaussian_bounds hlam hu hL ht).2.trans |
| 572 | apply Real.exp_le_one_iff.mpr |
| 573 | have hc := GaussianEnvelope.referenceMinSlope_pos hlam hu |
| 574 | exact div_nonpos_of_nonpos_of_nonneg |
| 575 | (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr (mul_nonneg hu.le hc.le)) (sq_nonneg _)) |
| 576 | (by positivity) |
| 577 | |
| 578 | section ActualFundamental |
| 579 | |
| 580 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 581 | |
| 582 | noncomputable def fundamental (d : PrimaryODE.FrameData Q) (lam u L : ℝ) : Q × ℝ → State := |
| 583 | JointODE.reparamSolution 0 (d.coefficient 1) |
| 584 | (fun _ => referenceP lam u L 0 • positiveSeed) (fun _ => 0) |
| 585 | |
| 586 | /-- The phase-derived coefficient jets are applied to the actual growing |
| 587 | fundamental, with its actual viscosity and four moving-basis errors. -/ |
| 588 | theorem fundamental_envelope_jets |
| 589 | (D : PhaseJetBounds.Domain ι Q) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) |
| 590 | (d : ι → PrimaryODE.FrameData Q) |
| 591 | (hd : PhaseJetBounds.FrameJets (productDomain D V hV) d) |
| 592 | (lam u L : ι → ℝ) (hlam : ∀ i, 0 < lam i) (_hu : ∀ i, 0 < u i) |
| 593 | (hL : ∀ i, 0 < L i) (hI : ∀ i, Icc 0 (L i) ⊆ V i) |
| 594 | {M C B : ℝ} (hM : 1 ≤ M) (hC : 0 ≤ C) (hB : 0 ≤ B) |
| 595 | (hslot : ∀ i, L i ≤ M * D.scale i) |
| 596 | (heigen : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 597 | (d i).eigenvalue (p, v) = ViscousPropagator.referenceEigenvalue (lam i) (u i) (L i) v) |
| 598 | (hν : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), 0 ≤ (d i).viscosity (p, v)) |
| 599 | (hνerr : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 600 | ViscousPropagator.referenceViscosity (lam i) (u i) (L i) v - B / D.scale i ≤ |
| 601 | (d i).viscosity (p, v)) |
| 602 | (herr : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 603 | |(d i).error11 (p, v)| ≤ C / D.scale i ∧ |(d i).error12 (p, v)| ≤ C / D.scale i ∧ |
| 604 | |(d i).error21 (p, v)| ≤ C / D.scale i ∧ |(d i).error22 (p, v)| ≤ C / D.scale i) : |
| 605 | EnvelopeJets (productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) |
| 606 | (fun i z => referenceP (lam i) (u i) (L i) z.2) |
| 607 | (fun i => fundamental (d i) (lam i) (u i) (L i)) := by |
| 608 | let μ := fun i => (B + 4 * C) / D.scale i |
| 609 | let K := M + Real.exp ((B + 4 * C) * M) + 1 |
| 610 | have hK : 1 ≤ K := by dsimp [K]; linarith [Real.exp_pos ((B + 4 * C) * M)] |
| 611 | have hμ (i) : 0 ≤ μ i := div_nonneg (by positivity) (zero_le_one.trans (D.one_le_scale i)) |
| 612 | apply homogeneous_family_envelope_jets D V hV L μ hL hI (fun i => (d i).coefficient 1) |
| 613 | (hd.coefficient 1) (fun i => referenceP (lam i) (u i) (L i)) |
| 614 | (fun i => GaussianEnvelope.referenceRate (lam i) (u i) (L i)) |
| 615 | (fun i => referenceP_pos _ _ _) (fun i => referenceP_hasDerivAt _ _ _) |
| 616 | positiveSeed positiveSeed_norm.le hK hμ |
| 617 | · intro i |
| 618 | apply (hslot i).trans |
| 619 | apply mul_le_mul_of_nonneg_right _ (zero_le_one.trans (D.one_le_scale i)) |
| 620 | dsimp [K] |
| 621 | linarith [Real.exp_pos ((B + 4 * C) * M)] |
| 622 | · intro i |
| 623 | have hS : 0 < D.scale i := zero_lt_one.trans_le (D.one_le_scale i) |
| 624 | have hμL : μ i * L i ≤ (B + 4 * C) * M := by |
| 625 | calc |
| 626 | _ ≤ μ i * (M * D.scale i) := mul_le_mul_of_nonneg_left (hslot i) (hμ i) |
| 627 | _ = _ := by dsimp [μ]; field_simp |
| 628 | apply (Real.exp_le_exp.mpr hμL).trans |
| 629 | dsimp [K] |
| 630 | linarith |
| 631 | · intro i p hp v hv x |
| 632 | have he := (d i).energy_bound (p, v) (by norm_num : (1 : ℤ) ≠ 0) |
| 633 | (by rw [heigen i p hp v hv]; exact ViscousPropagator.referenceEigenvalue_nonneg (hlam i).le _ _ _) |
| 634 | (hν i p hp v hv) (hνerr i p hp v hv) (herr i p hp v hv) x |
| 635 | rw [heigen i p hp v hv] at he |
| 636 | exact he |
| 637 | |
| 638 | omit [NormedSpace ℝ Q] in |
| 639 | theorem fundamental_eq_primary {d : PrimaryODE.FrameData Q} {lam u L : ℝ} (hL : 0 < L) |
| 640 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 641 | {p : Q} (hp : p ∈ U) {t : ℝ} (ht : t ∈ Icc 0 L) : |
| 642 | fundamental d lam u L (p, t) = |
| 643 | PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t := by |
| 644 | have he := JointODE.reparamSolution_eq_actualSolution hL.le |
| 645 | (d.coefficient 1) (fun _ : Q => referenceP lam u L 0 • positiveSeed) (fun _ => 0) |
| 646 | hA continuousOn_const (z := (p, t)) ⟨hp, ht⟩ |
| 647 | convert! he using 1 |
| 648 | simp only [PrimaryODE.primary, PrimaryODE.solution, PrimaryODE.extendedFamily, |
| 649 | JointODE.actualSolution, PrimaryODE.FrameData.forcing_zero_function] |
| 650 | congr 2 |
| 651 | ext k |
| 652 | fin_cases k <;> simp [PrimaryODE.primarySeed, positiveSeed] |
| 653 | |
| 654 | end ActualFundamental |
| 655 | |
| 656 | section NormalizeSlot |
| 657 | |
| 658 | variable {ι : Type*} {Q H : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 659 | variable [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 660 | |
| 661 | theorem timeLinear_norm_le_max (t : ℝ) : ‖timeLinear (Q := Q) t‖ ≤ max 1 |t| := by |
| 662 | apply ContinuousLinearMap.opNorm_le_bound _ (zero_le_one.trans (le_max_left _ _)) |
| 663 | intro z |
| 664 | rw [timeLinear_apply, Prod.norm_def] |
| 665 | apply max_le |
| 666 | · exact (norm_fst_le z).trans (le_mul_of_one_le_left (norm_nonneg z) (le_max_left _ _)) |
| 667 | · rw [Real.norm_eq_abs, abs_mul] |
| 668 | exact mul_le_mul (le_max_right _ _) (norm_snd_le z) (abs_nonneg z.2) |
| 669 | (zero_le_one.trans (le_max_left _ _)) |
| 670 | |
| 671 | /-- Changing v to Lθ costs polynomial factors only and preserves the exact |
| 672 | Gaussian weight at v=Lθ. -/ |
| 673 | theorem EnvelopeJets.normalize_slot |
| 674 | (D : PhaseJetBounds.Domain ι Q) (L : ι → ℝ) (hL : ∀ i, 0 < L i) |
| 675 | {w : ι → Q × ℝ → ℝ} {f : ι → Q × ℝ → H} |
| 676 | (hf : EnvelopeJets (productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) w f) |
| 677 | {M : ℝ} (hM : 1 ≤ M) (hslot : ∀ i, L i ≤ M * D.scale i) : |
| 678 | EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 679 | (fun i z => w i (z.1, L i * z.2)) (fun i z => f i (z.1, L i * z.2)) := by |
| 680 | refine hf.precomp_linear |
| 681 | (D := productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 682 | (fun i => timeLinear (L i)) (fun _ => rfl) ?_ |
| 683 | (show 1 ≤ M + 1 by linarith) (k := 1) ?_ |
| 684 | · intro i z hz |
| 685 | refine ⟨hz.1, ?_, ?_⟩ |
| 686 | · exact mul_pos (hL i) hz.2.1 |
| 687 | · change L i * z.2 < L i |
| 688 | nlinarith [hL i, hz.2.2] |
| 689 | · intro i |
| 690 | apply (timeLinear_norm_le_max (L i)).trans |
| 691 | rw [abs_of_pos (hL i), pow_one] |
| 692 | change max 1 (L i) ≤ (M + 1) * D.scale i |
| 693 | apply max_le |
| 694 | · nlinarith [D.one_le_scale i] |
| 695 | · nlinarith [hslot i, D.one_le_scale i] |
| 696 | |
| 697 | end NormalizeSlot |
| 698 | |
| 699 | section GeometrySynthesis |
| 700 | |
| 701 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 702 | |
| 703 | noncomputable def synthesisColumn (d : PrimaryODE.FrameData Q) (j : Fin 2) (z : Q × ℝ) : Space := |
| 704 | MovingFrameODE.pack 1 ((-d.rho z) • d.frame z 0 + |
| 705 | (if j = 0 then d.eigenvector z else -d.eigenvector z) • d.frame z 1) |
| 706 | |
| 707 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 708 | theorem ambient_eq_synthesis (d : PrimaryODE.FrameData Q) (z : Q × ℝ) (w : State) : |
| 709 | d.ambient z w = w 0 • synthesisColumn d 0 z + w 1 • synthesisColumn d 1 z := by |
| 710 | ext i |
| 711 | fin_cases i <;> |
| 712 | simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.pack, synthesisColumn] <;> ring |
| 713 | |
| 714 | theorem synthesisColumn_polynomial {D : PhaseJetBounds.Domain ι (Q × ℝ)} |
| 715 | {d : ι → PrimaryODE.FrameData Q} (hd : PhaseJetBounds.FrameJets D d) (j : Fin 2) : |
| 716 | PhaseJetBounds.PolynomialJets D (fun i => synthesisColumn (d i) j) := by |
| 717 | have hk := hd.rho.neg.smul hd.K |
| 718 | have hn := hd.eigenvector.smul hd.N |
| 719 | fin_cases j |
| 720 | · exact ((PhaseJetBounds.PolynomialJets.const_fixed (D := D) (1 : ℝ)).pair (hk.add hn)).clm |
| 721 | MovingFrameODE.packCLM |
| 722 | · apply (((PhaseJetBounds.PolynomialJets.const_fixed (D := D) (1 : ℝ)).pair |
| 723 | (hk.sub hn)).clm MovingFrameODE.packCLM).congr |
| 724 | intro i x hx |
| 725 | change MovingFrameODE.pack 1 ((-(d i).rho x) • (d i).frame x 0 - |
| 726 | (d i).eigenvector x • (d i).frame x 1) = synthesisColumn (d i) 1 x |
| 727 | simp [synthesisColumn, sub_eq_add_neg, neg_smul] |
| 728 | |
| 729 | end GeometrySynthesis |
| 730 | |
| 731 | section DomainRestriction |
| 732 | |
| 733 | variable {ι E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 734 | variable [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 735 | |
| 736 | theorem EnvelopeJets.restrict {D D' : PhaseJetBounds.Domain ι E} {w : ι → E → ℝ} |
| 737 | {f : ι → E → F} (hf : EnvelopeJets D w f) |
| 738 | (hscale : ∀ i, D.scale i = D'.scale i) (hsub : ∀ i, D'.carrier i ⊆ D.carrier i) : |
| 739 | EnvelopeJets D' w f := by |
| 740 | refine ⟨fun i x hx => hf.nonneg i x (hsub i hx), fun i => (hf.smooth i).mono (hsub i), ?_⟩ |
| 741 | intro N |
| 742 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 743 | refine ⟨C, hC, m, ?_⟩ |
| 744 | intro i x hx j hj |
| 745 | simpa only [hscale i] using hm i x (hsub i hx) j hj |
| 746 | |
| 747 | theorem polynomial_memClass_of_domain {D : PhaseJetBounds.Domain ℕ E} {f : ℕ → E → F} |
| 748 | (hf : PhaseJetBounds.PolynomialJets D f) (s : WeightedClasses.StripData E) |
| 749 | (hscale : ∀ i, D.scale i = s.slow i) (hdom : ∀ i, D.carrier i = s.domain) : |
| 750 | WeightedClasses.UnweightedClass s 0 f := |
| 751 | (EnvelopeJets.of_polynomial hf).memClass s hscale hdom |
| 752 | |
| 753 | end DomainRestriction |
| 754 | |
| 755 | section AmbientClass |
| 756 | |
| 757 | open WeightedClasses |
| 758 | |
| 759 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 760 | variable {s : StripData (Q × ℝ)} {P : ℕ → Q × ℝ → ℝ} |
| 761 | |
| 762 | theorem synthesis_memClass {c : Fin 2 → ℕ → Q × ℝ → Space} |
| 763 | {z : ℕ → Q × ℝ → State} (hc : ∀ j, UnweightedClass s 0 (c j)) |
| 764 | (hz : MemClass s P 0 z) : |
| 765 | MemClass s P 0 (fun n x => z n x 0 • c 0 n x + z n x 1 • c 1 n x) := by |
| 766 | have hz0 := hz.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0) |
| 767 | have hz1 := hz.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 1) |
| 768 | have h0 : MemClass s P 0 (fun n x => z n x 0 • c 0 n x) := by |
| 769 | simpa only [PiLp.proj_apply, mul_one, zero_add] using hz0.smul (hc 0) |
| 770 | have h1 : MemClass s P 0 (fun n x => z n x 1 • c 1 n x) := by |
| 771 | simpa only [PiLp.proj_apply, mul_one, zero_add] using hz1.smul (hc 1) |
| 772 | exact h0.add h1 |
| 773 | |
| 774 | end AmbientClass |
| 775 | |
| 776 | section CovarianceIntegrals |
| 777 | |
| 778 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 779 | |
| 780 | /-- The two actual normalized-slot integrals making up each covariance |
| 781 | column. The prefactor includes the native Haar factor and ci times L. -/ |
| 782 | noncomputable def covarianceMatrix (a b : ℝ) (pref : Fin 2 → ι → ℝ) |
| 783 | (ψ : Fin 2 → ι → Q × ℝ → ℝ) (v : Fin 2 → ι → Q × ℝ → Space) |
| 784 | (n : ι) (p : Q) : SmoothCovariance.Mat2 := |
| 785 | fun r c => pref c n * ∫ t in a..b, (ψ c n (p, t)) ^ 2 * |
| 786 | (v c n (p, t) 0 * v c n (p, t) r.succ) |
| 787 | |
| 788 | theorem covarianceMatrix_entry_polynomial |
| 789 | (D : PhaseJetBounds.Domain ι Q) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) |
| 790 | {a b : ℝ} (hab : a ≤ b) (hI : ∀ i, Icc a b ⊆ V i) |
| 791 | {pref : Fin 2 → ι → ℝ} {ψ : Fin 2 → ι → Q × ℝ → ℝ} |
| 792 | {v : Fin 2 → ι → Q × ℝ → Space} |
| 793 | (hpref : ∀ c, PhaseJetBounds.PolynomialJets D (fun n _ => pref c n)) |
| 794 | (hψ : ∀ c, PhaseJetBounds.PolynomialJets (productDomain D V hV) (ψ c)) |
| 795 | (hv : ∀ c, PhaseJetBounds.PolynomialJets (productDomain D V hV) (v c)) (r c : Fin 2) : |
| 796 | PhaseJetBounds.PolynomialJets D (fun n p => covarianceMatrix a b pref ψ v n p r c) := by |
| 797 | have hr := (hv c).clm (PiLp.proj 2 (fun _ : Fin 3 => ℝ) 0) |
| 798 | have ht := (hv c).clm (PiLp.proj 2 (fun _ : Fin 3 => ℝ) r.succ) |
| 799 | exact (hpref c).mul (intervalIntegral_polynomial D V hV hab hI ((hψ c).pow 2 |>.mul (hr.mul ht))) |
| 800 | |
| 801 | /-- A fixed smooth cutoff has the required jets, derived by compactness of |
| 802 | the fixed profile rather than supplied as a family of derivative bounds. -/ |
| 803 | theorem slot_profile_polynomial (D : PhaseJetBounds.Domain ι Q) |
| 804 | (ψ : ℝ → ℝ) (hψ : ContDiff ℝ ∞ ψ) : |
| 805 | PhaseJetBounds.PolynomialJets |
| 806 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) (fun _ z => ψ z.2) := by |
| 807 | have ht : PhaseJetBounds.PolynomialJets |
| 808 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) (fun _ z => z.2) := by |
| 809 | simpa only [ContinuousLinearMap.coe_snd', add_zero] using |
| 810 | (PhaseJetBounds.PolynomialJets.affine |
| 811 | (D := productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 812 | (ContinuousLinearMap.snd ℝ Q ℝ) (fun _ => 0) (C := 1) (m := 0) le_rfl |
| 813 | (fun _ z hz => by simpa only [ContinuousLinearMap.coe_snd', add_zero, pow_zero, one_mul, |
| 814 | Real.norm_eq_abs, abs_of_pos hz.2.1] using hz.2.2.le)) |
| 815 | exact ht.compact_comp isOpen_univ hψ.contDiffOn isCompact_Icc (subset_univ _) |
| 816 | (fun _ _ hz => ⟨hz.2.1.le, hz.2.2.le⟩) |
| 817 | |
| 818 | end CovarianceIntegrals |
| 819 | |
| 820 | section CovarianceInverse |
| 821 | |
| 822 | open WeightedClasses |
| 823 | |
| 824 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 825 | variable {s : StripData E} |
| 826 | |
| 827 | noncomputable def normalizedMatrix (r : ℝ) (H : SmoothCovariance.Mat2) : |
| 828 | SmoothCovariance.Mat2 := fun i j => r * H i j |
| 829 | |
| 830 | theorem normalizedMatrix_det (r : ℝ) (H : SmoothCovariance.Mat2) : |
| 831 | (normalizedMatrix r H).det = r ^ 2 * H.det := by |
| 832 | simp only [Matrix.det_fin_two, normalizedMatrix] |
| 833 | ring |
| 834 | |
| 835 | theorem weights_eq_normalized (r : ℝ) (H : SmoothCovariance.Mat2) |
| 836 | (T : SmoothCovariance.Vec2) (hr : r ≠ 0) (hH : H.det ≠ 0) (j : Fin 2) : |
| 837 | SmoothCovariance.weights H T j = |
| 838 | (r ^ 2 * (normalizedMatrix r H).det⁻¹) * SmoothCovariance.cramerNumerator H T j := by |
| 839 | rw [SmoothCovariance.weights, normalizedMatrix_det] |
| 840 | field_simp |
| 841 | |
| 842 | /-- Only the normalized matrix's zeroth-order range and determinant gap are |
| 843 | inputs. All inverse jets follow from the actual integrated matrix entries. -/ |
| 844 | theorem covariance_weights_class |
| 845 | {r : ℕ → ℝ} {H : ℕ → E → SmoothCovariance.Mat2} |
| 846 | {T : ℕ → E → SmoothCovariance.Vec2} {w : ℕ → E → ℝ} |
| 847 | (hr : PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n _ => r n)) |
| 848 | (hrne : ∀ n, r n ≠ 0) |
| 849 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n x => H n x i j)) |
| 850 | (hT : ∀ i, MemClass s w 0 (fun n x => T n x i)) |
| 851 | {b M : ℝ} (hb : 0 < b) (hM : 1 ≤ M) |
| 852 | (hdet : ∀ n x, x ∈ s.domain → b ≤ |(normalizedMatrix (r n) (H n x)).det|) |
| 853 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |r n * H n x i j| ≤ M) |
| 854 | (j : Fin 2) : |
| 855 | MemClass s w 0 (fun n x => SmoothCovariance.weights (H n x) (T n x) j) := by |
| 856 | have hN (i j : Fin 2) := hr.mul (hH i j) |
| 857 | have hD : PhaseJetBounds.PolynomialJets (phaseDomain s) |
| 858 | (fun n x => (normalizedMatrix (r n) (H n x)).det) := by |
| 859 | simpa only [Matrix.det_fin_two, normalizedMatrix] using |
| 860 | ((hN 0 0).mul (hN 1 1)).sub ((hN 0 1).mul (hN 1 0)) |
| 861 | have hDupper : ∀ n x, x ∈ s.domain → |
| 862 | |(normalizedMatrix (r n) (H n x)).det| ≤ 2 * M ^ 2 := by |
| 863 | intro n x hx |
| 864 | simp only [Matrix.det_fin_two, normalizedMatrix] |
| 865 | apply (abs_sub _ _).trans |
| 866 | have h1 := mul_le_mul (hentry n x hx 0 0) (hentry n x hx 1 1) |
| 867 | (abs_nonneg _) (zero_le_one.trans hM) |
| 868 | have h2 := mul_le_mul (hentry n x hx 0 1) (hentry n x hx 1 0) |
| 869 | (abs_nonneg _) (zero_le_one.trans hM) |
| 870 | simp only [abs_mul] at h1 h2 ⊢ |
| 871 | nlinarith |
| 872 | have hinv := hD.inv hb hdet hDupper |
| 873 | have hscale : UnweightedClass s 0 (fun n x => r n ^ 2 * |
| 874 | (normalizedMatrix (r n) (H n x)).det⁻¹) := polynomial_memClass s ((hr.pow 2).mul hinv) |
| 875 | have hP (k l i : Fin 2) : MemClass s w 0 (fun n x => T n x i * H n x k l) := by |
| 876 | simpa only [mul_one, zero_add] using (hT i).mul (polynomial_memClass s (hH k l)) |
| 877 | have hnum : MemClass s w 0 (fun n x => SmoothCovariance.cramerNumerator (H n x) (T n x) j) := by |
| 878 | fin_cases j |
| 879 | · have h := CurlClassBounds.class_sub (hP 1 1 0) (hP 0 1 1) |
| 880 | simp only [SmoothCovariance.cramerNumerator, mul_comm] at h ⊢ |
| 881 | exact h |
| 882 | · have h := CurlClassBounds.class_sub (hP 0 0 1) (hP 1 0 0) |
| 883 | simp only [SmoothCovariance.cramerNumerator, |
| 884 | mul_comm] at h ⊢ |
| 885 | exact h |
| 886 | apply CurlClassBounds.class_congr (show MemClass s w 0 |
| 887 | (fun n x => (r n ^ 2 * (normalizedMatrix (r n) (H n x)).det⁻¹) * |
| 888 | SmoothCovariance.cramerNumerator (H n x) (T n x) j) from |
| 889 | by simpa only [one_mul, zero_add] using hscale.mul hnum) |
| 890 | intro n x hx |
| 891 | apply (weights_eq_normalized (r n) (H n x) (T n x) (hrne n) _ j).symm |
| 892 | intro hz |
| 893 | have h := hdet n x hx |
| 894 | rw [normalizedMatrix_det, hz, mul_zero, abs_zero] at h |
| 895 | linarith |
| 896 | |
| 897 | /-- The primary square root retains the edge factor. Positivity is derived |
| 898 | from the positive edge weight and the order-zero lower bound. -/ |
| 899 | theorem covariance_amplitudes_class |
| 900 | {r : ℕ → ℝ} {H : ℕ → E → SmoothCovariance.Mat2} |
| 901 | {T : ℕ → E → SmoothCovariance.Vec2} {w : ℕ → E → ℝ} |
| 902 | (hr : PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n _ => r n)) |
| 903 | (hrne : ∀ n, r n ≠ 0) |
| 904 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n x => H n x i j)) |
| 905 | (hT : ∀ i, MemClass s w 0 (fun n x => T n x i)) |
| 906 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 907 | (hdet : ∀ n x, x ∈ s.domain → b ≤ |(normalizedMatrix (r n) (H n x)).det|) |
| 908 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |r n * H n x i j| ≤ M) |
| 909 | (hw : ∀ n x, x ∈ s.domain → 0 < w n x) |
| 910 | (hlower : ∀ n x, x ∈ s.domain → ∀ j, |
| 911 | c * w n x ≤ SmoothCovariance.weights (H n x) (T n x) j) |
| 912 | (j : Fin 2) : |
| 913 | MemClass s (fun n x => Real.sqrt (w n x)) 0 |
| 914 | (fun n x => SmoothCovariance.amplitudes (H n x) (T n x) j) := by |
| 915 | have hpos : ∀ n x, x ∈ s.domain → |
| 916 | 0 < SmoothCovariance.weights (H n x) (T n x) j := |
| 917 | fun n x hx => (mul_pos hc (hw n x hx)).trans_le (hlower n x hx j) |
| 918 | exact SignedCovariance.sqrt_class hw hpos |
| 919 | (covariance_weights_class hr hrne hH hT hb hM hdet hentry j) |
| 920 | (SignedCovariance.inverseControl_of_lower hpos hc 0 |
| 921 | (fun n x hx => by simpa only [pow_zero, div_one] using hlower n x hx j)) |
| 922 | |
| 923 | /-- The manuscript's normalization r=√S is a frozen polynomial family. -/ |
| 924 | theorem sqrt_slow_polynomial (s : StripData E) : |
| 925 | PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n _ => Real.sqrt (s.slow n)) := by |
| 926 | apply PhaseJetBounds.PolynomialJets.const _ (C := 1) (m := 1) le_rfl |
| 927 | intro n |
| 928 | simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), one_mul, pow_one, |
| 929 | phaseDomain] |
| 930 | have hs := s.one_le_slow n |
| 931 | have hsq := Real.sq_sqrt (zero_le_one.trans hs) |
| 932 | nlinarith [Real.sqrt_nonneg (s.slow n)] |
| 933 | |
| 934 | end CovarianceInverse |
| 935 | |
| 936 | section PrimaryClass |
| 937 | |
| 938 | open WeightedClasses |
| 939 | |
| 940 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 941 | |
| 942 | /-- The stripped coefficient uses exactly the positive inverse-weight |
| 943 | amplitude of the physical covariance construction. -/ |
| 944 | noncomputable def primaryCoefficient (s : StripData E) |
| 945 | (H : ℕ → E → SmoothCovariance.Mat2) (T : ℕ → E → SmoothCovariance.Vec2) |
| 946 | (mask : ℕ → E → ℝ) (v : ℕ → E → Space) (j : Fin 2) : |
| 947 | ℕ → E → HarmonicCalculus.ComplexVector := fun n x => |
| 948 | PartitionedCovariance.amplitude (s.epsilon n) (mask n x) (H n x) (T n x) j • |
| 949 | CurlClassBounds.complexify (v n x) |
| 950 | |
| 951 | /-- All stripped jets of the constructed amplitude retain √ζ P. The |
| 952 | half-power comes from the actual √ε factor, not a bound assumed on it. -/ |
| 953 | theorem primaryCoefficient_waveClass |
| 954 | {s : StripData E} {P : ℕ → E → ℝ} |
| 955 | {H : ℕ → E → SmoothCovariance.Mat2} {T : ℕ → E → SmoothCovariance.Vec2} |
| 956 | {mask : ℕ → E → ℝ} {v : ℕ → E → Space} |
| 957 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (phaseDomain s) (fun n x => H n x i j)) |
| 958 | (hT : ∀ i, MeanClass s 0 (fun n x => T n x i)) |
| 959 | (hmask : PhaseJetBounds.PolynomialJets (phaseDomain s) mask) |
| 960 | (hv : MemClass s P 0 v) |
| 961 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 962 | (hdet : ∀ n x, x ∈ s.domain → |
| 963 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) (H n x)).det|) |
| 964 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |
| 965 | |Real.sqrt (s.slow n) * H n x i j| ≤ M) |
| 966 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 967 | (hlower : ∀ n x, x ∈ s.domain → ∀ j, |
| 968 | c * s.zeta x ≤ SmoothCovariance.weights (H n x) (T n x) j) |
| 969 | (j : Fin 2) : WaveClass s P (1 / 2) (primaryCoefficient s H T mask v j) := by |
| 970 | have ha := covariance_amplitudes_class (sqrt_slow_polynomial s) |
| 971 | (fun n => (Real.sqrt_pos.mpr (zero_lt_one.trans_le (s.one_le_slow n))).ne') |
| 972 | hH hT hb hM hc hdet hentry (fun _ x hx => hζ x hx) hlower j |
| 973 | have ham : WaveClass s P 0 (fun n x => |
| 974 | SmoothCovariance.amplitudes (H n x) (T n x) j • CurlClassBounds.complexify (v n x)) := by |
| 975 | simpa only [zero_add] using ha.smul (hv.map CurlClassBounds.complexify) |
| 976 | have hm : WaveClass s P 0 (fun n x => mask n x • |
| 977 | (SmoothCovariance.amplitudes (H n x) (T n x) j • CurlClassBounds.complexify (v n x))) := by |
| 978 | simpa only [zero_add] using CurlClassBounds.class_mul_real (polynomial_memClass s hmask) ham |
| 979 | have hε : BandBound s (1 / 2) (fun n => Real.sqrt (s.epsilon n)) := by |
| 980 | simpa only [Real.sqrt_eq_rpow] using bandBound_rpow s (1 / 2) |
| 981 | apply CurlClassBounds.class_congr (show WaveClass s P (1 / 2) |
| 982 | (fun n x => Real.sqrt (s.epsilon n) • (mask n x • |
| 983 | (SmoothCovariance.amplitudes (H n x) (T n x) j • CurlClassBounds.complexify (v n x)))) from |
| 984 | by simpa only [zero_add] using hm.band_smul hε) |
| 985 | intro n x hx |
| 986 | simp only [primaryCoefficient, PartitionedCovariance.amplitude, smul_smul] |
| 987 | congr 1 |
| 988 | ring |
| 989 | |
| 990 | /-- The actual normal-cross-product curl correction with the rounded |
| 991 | carrier and any nonzero integer harmonic. -/ |
| 992 | noncomputable def primaryCurlRemainder (s : StripData E) |
| 993 | (N : ℕ → E → Space) (R : E → ℝ) (Vr Vθ Vz : ℕ → E → E) |
| 994 | (harmonic : ℕ → ℤ) (a : ℕ → E → HarmonicCalculus.ComplexVector) : |
| 995 | ℕ → E → HarmonicCalculus.ComplexVector := fun n => |
| 996 | CurlClassBounds.curlRemainder |
| 997 | (CurlClassBounds.carrierFrequency s n * (harmonic n : ℝ)) R (Vr n) (Vθ n) (Vz n) |
| 998 | (fun x => CurlClassBounds.normalCoefficient (N n x) (a n x)) |
| 999 | |
| 1000 | theorem primaryCurlRemainder_waveClass |
| 1001 | {s : StripData E} {P : ℕ → E → ℝ} {κ : ℝ} |
| 1002 | {N : ℕ → E → Space} {R : E → ℝ} {Vr Vθ Vz : ℕ → E → E} |
| 1003 | {harmonic : ℕ → ℤ} {a : ℕ → E → HarmonicCalculus.ComplexVector} |
| 1004 | (hN : PhaseJetBounds.PolynomialJets (phaseDomain s) N) |
| 1005 | (ha : WaveClass s P (1 / 2) a) |
| 1006 | {b M : ℝ} (hb : 0 < b) |
| 1007 | (hlower : ∀ n x, x ∈ s.domain → b ≤ ‖N n x‖) |
| 1008 | (hupper : ∀ n x, x ∈ s.domain → ‖N n x‖ ≤ M) |
| 1009 | (hκ : 0 ≤ κ) (hr : UnweightedClass s (-κ) Vr) (hθ : UnweightedClass s 0 Vθ) |
| 1010 | (hz : UnweightedClass s 1 Vz) (hR : UnweightedClass s 0 (fun _ x => (R x)⁻¹)) |
| 1011 | (hharmonic : ∀ n, harmonic n ≠ 0) : |
| 1012 | WaveClass s P (1 - κ) (primaryCurlRemainder s N R Vr Vθ Vz harmonic a) := by |
| 1013 | have h := CurlClassBounds.normalCurlRemainder_class hN ha hb hlower hupper hκ hr hθ hz hR |
| 1014 | (CurlClassBounds.harmonic_inverse_bandBound s harmonic hharmonic) |
| 1015 | simp only [show (1 / 2 + 1 / 2 : ℝ) = 1 by norm_num] at h |
| 1016 | exact h |
| 1017 | |
| 1018 | /-- In particular the exact-curl change meets the cumulative 0.68 budget. -/ |
| 1019 | theorem primaryCurlRemainder_budget |
| 1020 | {s : StripData E} {P : ℕ → E → ℝ} {κ : ℝ} |
| 1021 | {N : ℕ → E → Space} {R : E → ℝ} {Vr Vθ Vz : ℕ → E → E} |
| 1022 | {harmonic : ℕ → ℤ} {a : ℕ → E → HarmonicCalculus.ComplexVector} |
| 1023 | (h : WaveClass s P (1 - κ) (primaryCurlRemainder s N R Vr Vθ Vz harmonic a)) |
| 1024 | (hκ : κ ≤ 8 / 25) : |
| 1025 | WaveClass s P (17 / 25) (primaryCurlRemainder s N R Vr Vθ Vz harmonic a) := |
| 1026 | h.mono_exponent (by linarith) |
| 1027 | |
| 1028 | end PrimaryClass |
| 1029 | |
| 1030 | section EnvelopeAlgebra |
| 1031 | |
| 1032 | variable {ι : Type*} {E F G : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1033 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 1034 | {D : PhaseJetBounds.Domain ι E} {w : ι → E → ℝ} |
| 1035 | |
| 1036 | theorem EnvelopeJets.congr {f g : ι → E → F} (hf : EnvelopeJets D w f) |
| 1037 | (hfg : ∀ i, EqOn (f i) (g i) (D.carrier i)) : EnvelopeJets D w g := by |
| 1038 | refine ⟨hf.nonneg, fun i => (hf.smooth i).congr (fun x hx => (hfg i hx).symm), ?_⟩ |
| 1039 | intro N |
| 1040 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 1041 | refine ⟨C, hC, m, ?_⟩ |
| 1042 | intro i x hx j hj |
| 1043 | have he := iteratedFDerivWithin_congr (𝕜 := ℝ) (hfg i) hx j |
| 1044 | rw [iteratedFDerivWithin_of_isOpen j (D.isOpen i) hx, |
| 1045 | iteratedFDerivWithin_of_isOpen j (D.isOpen i) hx] at he |
| 1046 | rw [← he] |
| 1047 | exact hm i x hx j hj |
| 1048 | |
| 1049 | theorem EnvelopeJets.map {f : ι → E → F} (hf : EnvelopeJets D w f) |
| 1050 | (L : F →L[ℝ] G) : EnvelopeJets D w (fun i x => L (f i x)) := by |
| 1051 | refine ⟨hf.nonneg, fun i => L.contDiff.comp_contDiffOn (hf.smooth i), ?_⟩ |
| 1052 | intro N |
| 1053 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 1054 | refine ⟨(‖L‖ + 1) * C, by nlinarith [norm_nonneg L], m, ?_⟩ |
| 1055 | intro i x hx j hj |
| 1056 | change ‖iteratedFDeriv ℝ j (L ∘ f i) x‖ ≤ _ |
| 1057 | rw [L.iteratedFDeriv_comp_left ((hf.smooth i).contDiffAt ((D.isOpen i).mem_nhds hx)) |
| 1058 | (nat_le_infty j)] |
| 1059 | calc |
| 1060 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ j (f i) x‖ := L.norm_compContinuousMultilinearMap_le _ |
| 1061 | _ ≤ ‖L‖ * (C * D.scale i ^ m * w i x) := |
| 1062 | mul_le_mul_of_nonneg_left (hm i x hx j hj) (norm_nonneg L) |
| 1063 | _ ≤ _ := by |
| 1064 | have hs := pow_nonneg (zero_le_one.trans (D.one_le_scale i)) m |
| 1065 | have hw := hf.nonneg i x hx |
| 1066 | have hcw : 0 ≤ C * D.scale i ^ m * w i x := by positivity |
| 1067 | nlinarith [mul_nonneg (show 0 ≤ C by linarith) (mul_nonneg hs hw)] |
| 1068 | |
| 1069 | theorem EnvelopeJets.add {f g : ι → E → F} |
| 1070 | (hf : EnvelopeJets D w f) (hg : EnvelopeJets D w g) : |
| 1071 | EnvelopeJets D w (fun i x => f i x + g i x) := by |
| 1072 | refine ⟨hf.nonneg, fun i => (hf.smooth i).add (hg.smooth i), ?_⟩ |
| 1073 | intro N |
| 1074 | obtain ⟨A, hA, m, hm⟩ := hf.bound N |
| 1075 | obtain ⟨B, hB, k, hk⟩ := hg.bound N |
| 1076 | refine ⟨A + B, by linarith, m + k, ?_⟩ |
| 1077 | intro i x hx j hj |
| 1078 | rw [fun_iteratedFDeriv_add_apply |
| 1079 | (((hf.smooth i).contDiffAt ((D.isOpen i).mem_nhds hx)).of_le (nat_le_infty j)) |
| 1080 | (((hg.smooth i).contDiffAt ((D.isOpen i).mem_nhds hx)).of_le (nat_le_infty j))] |
| 1081 | have hsm := pow_le_pow_right₀ (D.one_le_scale i) (Nat.le_add_right m k) |
| 1082 | have hsk := pow_le_pow_right₀ (D.one_le_scale i) (Nat.le_add_left k m) |
| 1083 | have hw := hf.nonneg i x hx |
| 1084 | calc |
| 1085 | _ ≤ ‖iteratedFDeriv ℝ j (f i) x‖ + ‖iteratedFDeriv ℝ j (g i) x‖ := norm_add_le _ _ |
| 1086 | _ ≤ A * D.scale i ^ m * w i x + B * D.scale i ^ k * w i x := |
| 1087 | add_le_add (hm i x hx j hj) (hk i x hx j hj) |
| 1088 | _ ≤ A * D.scale i ^ (m + k) * w i x + B * D.scale i ^ (m + k) * w i x := |
| 1089 | add_le_add (mul_le_mul_of_nonneg_right |
| 1090 | (mul_le_mul_of_nonneg_left hsm (zero_le_one.trans hA)) hw) |
| 1091 | (mul_le_mul_of_nonneg_right |
| 1092 | (mul_le_mul_of_nonneg_left hsk (zero_le_one.trans hB)) hw) |
| 1093 | _ = _ := by ring |
| 1094 | |
| 1095 | /-- Multiplying by an actual polynomial-jet geometric factor preserves the |
| 1096 | full envelope, including weights which can become arbitrarily small. -/ |
| 1097 | theorem EnvelopeJets.smul_polynomial {a : ι → E → ℝ} {f : ι → E → F} |
| 1098 | (ha : EnvelopeJets D w a) (hf : PhaseJetBounds.PolynomialJets D f) : |
| 1099 | EnvelopeJets D w (fun i x => a i x • f i x) := by |
| 1100 | refine ⟨ha.nonneg, fun i => (ha.smooth i).smul (hf.smooth i), ?_⟩ |
| 1101 | intro N |
| 1102 | obtain ⟨A, hA, m, hm⟩ := ha.bound N |
| 1103 | obtain ⟨B, hB, k, hk⟩ := hf.bound N |
| 1104 | refine ⟨(2 : ℝ) ^ N * A * B, ?_, m + k, ?_⟩ |
| 1105 | · exact one_le_mul_of_one_le_of_one_le |
| 1106 | (one_le_mul_of_one_le_of_one_le (one_le_pow₀ (by norm_num)) hA) hB |
| 1107 | intro i x hx j hj |
| 1108 | have hs : 0 ≤ D.scale i := zero_le_one.trans (D.one_le_scale i) |
| 1109 | have hw := ha.nonneg i x hx |
| 1110 | calc |
| 1111 | _ ≤ (2 : ℝ) ^ N * (A * D.scale i ^ m * w i x) * (B * D.scale i ^ k) := |
| 1112 | smul_jet_bound (A := a i) (B := f i) (D.isOpen i) (ha.smooth i) (hf.smooth i) hx hj |
| 1113 | (by positivity) (by positivity) (hm i x hx) (fun l hl => hk i l hl x hx) |
| 1114 | _ = _ := by rw [pow_add]; ring |
| 1115 | |
| 1116 | end EnvelopeAlgebra |
| 1117 | |
| 1118 | section ActualAmbient |
| 1119 | |
| 1120 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 1121 | |
| 1122 | theorem ambient_envelope_jets {D : PhaseJetBounds.Domain ι (Q × ℝ)} |
| 1123 | {d : ι → PrimaryODE.FrameData Q} {w : ι → Q × ℝ → ℝ} {z : ι → Q × ℝ → State} |
| 1124 | (hz : EnvelopeJets D w z) |
| 1125 | (hc : ∀ j, PhaseJetBounds.PolynomialJets D (fun n => synthesisColumn (d n) j)) : |
| 1126 | EnvelopeJets D w (fun n x => (d n).ambient x (z n x)) := by |
| 1127 | have h0 := (hz.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0)).smul_polynomial (hc 0) |
| 1128 | have h1 := (hz.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 1)).smul_polynomial (hc 1) |
| 1129 | apply (h0.add h1).congr |
| 1130 | intro i x hx |
| 1131 | exact (ambient_eq_synthesis _ _ _).symm |
| 1132 | |
| 1133 | noncomputable def normalizedPulse (d : PrimaryODE.FrameData Q) (lam u L : ℝ) |
| 1134 | (z : Q × ℝ) : Space := |
| 1135 | d.ambient (z.1, L * z.2) (fundamental d lam u L (z.1, L * z.2)) |
| 1136 | |
| 1137 | theorem normalizedPulse_envelope_jets |
| 1138 | (D : PhaseJetBounds.Domain ι Q) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) |
| 1139 | (d : ι → PrimaryODE.FrameData Q) |
| 1140 | (hd : PhaseJetBounds.FrameJets (productDomain D V hV) d) |
| 1141 | (lam u L : ι → ℝ) (hL : ∀ i, 0 < L i) (hI : ∀ i, Icc 0 (L i) ⊆ V i) |
| 1142 | (hf : EnvelopeJets (productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) |
| 1143 | (fun i z => referenceP (lam i) (u i) (L i) z.2) |
| 1144 | (fun i => fundamental (d i) (lam i) (u i) (L i))) |
| 1145 | {M : ℝ} (hM : 1 ≤ M) (hslot : ∀ i, L i ≤ M * D.scale i) : |
| 1146 | EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1147 | (fun i z => referenceP (lam i) (u i) (L i) (L i * z.2)) |
| 1148 | (fun i => normalizedPulse (d i) (lam i) (u i) (L i)) := by |
| 1149 | have hc (j : Fin 2) : PhaseJetBounds.PolynomialJets |
| 1150 | (productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) |
| 1151 | (fun i => synthesisColumn (d i) j) := by |
| 1152 | apply ((EnvelopeJets.of_polynomial (synthesisColumn_polynomial hd j)).restrict |
| 1153 | (D' := productDomain D (fun i => Ioo 0 (L i)) (fun _ => isOpen_Ioo)) |
| 1154 | (fun _ => rfl) (fun i z hz => ⟨hz.1, hI i ⟨hz.2.1.le, hz.2.2.le⟩⟩)).to_polynomial |
| 1155 | intro i z hz |
| 1156 | rfl |
| 1157 | exact (ambient_envelope_jets hf hc).normalize_slot D L hL hM hslot |
| 1158 | |
| 1159 | theorem normalizedPulse_polynomial |
| 1160 | (D : PhaseJetBounds.Domain ι Q) (lam u L : ι → ℝ) |
| 1161 | (d : ι → PrimaryODE.FrameData Q) |
| 1162 | (h : EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1163 | (fun i z => referenceP (lam i) (u i) (L i) (L i * z.2)) |
| 1164 | (fun i => normalizedPulse (d i) (lam i) (u i) (L i))) |
| 1165 | (hlam : ∀ i, 0 < lam i) (hu : ∀ i, 0 < u i) (hL : ∀ i, 0 < L i) : |
| 1166 | PhaseJetBounds.PolynomialJets |
| 1167 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1168 | (fun i => normalizedPulse (d i) (lam i) (u i) (L i)) := by |
| 1169 | apply h.to_polynomial |
| 1170 | intro i z hz |
| 1171 | apply referenceP_le_one (hlam i) (hu i) (hL i) |
| 1172 | constructor |
| 1173 | · exact mul_nonneg (hL i).le hz.2.1.le |
| 1174 | · nlinarith [hL i, hz.2.2] |
| 1175 | |
| 1176 | end ActualAmbient |
| 1177 | |
| 1178 | section ActualCovariance |
| 1179 | |
| 1180 | open MeasureTheory |
| 1181 | |
| 1182 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 1183 | |
| 1184 | /-- The covariance matrix is made from the two constructed ambient pulses, |
| 1185 | with the fixed smooth middle cutoff. -/ |
| 1186 | noncomputable def primaryCovariance (pref : Fin 2 → ι → ℝ) |
| 1187 | (d : Fin 2 → ι → PrimaryODE.FrameData Q) (lam u L : Fin 2 → ι → ℝ) : |
| 1188 | ι → Q → SmoothCovariance.Mat2 := |
| 1189 | covarianceMatrix (1 / 10) (9 / 10) pref |
| 1190 | (fun _ _ z => GaussianTailFlat.profile z.2) |
| 1191 | (fun c n => normalizedPulse (d c n) (lam c n) (u c n) (L c n)) |
| 1192 | |
| 1193 | theorem primaryCovariance_entry_polynomial |
| 1194 | (D : PhaseJetBounds.Domain ι Q) |
| 1195 | (pref : Fin 2 → ι → ℝ) (d : Fin 2 → ι → PrimaryODE.FrameData Q) |
| 1196 | (lam u L : Fin 2 → ι → ℝ) |
| 1197 | (hpref : ∀ c, PhaseJetBounds.PolynomialJets D (fun n _ => pref c n)) |
| 1198 | (hpulse : ∀ c, EnvelopeJets |
| 1199 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1200 | (fun i z => referenceP (lam c i) (u c i) (L c i) (L c i * z.2)) |
| 1201 | (fun i => normalizedPulse (d c i) (lam c i) (u c i) (L c i))) |
| 1202 | (hlam : ∀ c i, 0 < lam c i) (hu : ∀ c i, 0 < u c i) (hL : ∀ c i, 0 < L c i) |
| 1203 | (r c : Fin 2) : |
| 1204 | PhaseJetBounds.PolynomialJets D (fun n p => primaryCovariance pref d lam u L n p r c) := by |
| 1205 | exact covarianceMatrix_entry_polynomial D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo) |
| 1206 | (by norm_num) (fun _ t ht => by constructor <;> linarith [ht.1, ht.2]) |
| 1207 | hpref (fun _ => slot_profile_polynomial D _ GaussianTailFlat.profile_contDiff) |
| 1208 | (fun c => normalizedPulse_polynomial D (lam c) (u c) (L c) (d c) (hpulse c) |
| 1209 | (hlam c) (hu c) (hL c)) r c |
| 1210 | |
| 1211 | theorem profile_support_covariance_interval : |
| 1212 | support GaussianTailFlat.profile ⊆ Ioc (1 / 10 : ℝ) (9 / 10) := by |
| 1213 | intro t ht |
| 1214 | have hd : |t - 1 / 2| < 1 / 3 := by |
| 1215 | by_contra hn |
| 1216 | exact ht (GaussianTailFlat.profile_zero (le_of_not_gt hn)) |
| 1217 | obtain ⟨hlo, hhi⟩ := abs_lt.mp hd |
| 1218 | constructor <;> linarith |
| 1219 | |
| 1220 | /-- Exact change of variables from the physical slot to the fixed middle |
| 1221 | interval. The integrand identity can be checked only where the cutoff is |
| 1222 | nonzero; no global equality of clamped ODE extensions is required. -/ |
| 1223 | theorem actualColumn_normalization |
| 1224 | {a b L : ℝ} (hL : 0 < L) (ci : ℝ) (ψ x : ℝ → ℝ) |
| 1225 | (t : ℝ → SmoothCovariance.Vec2) (χ : ℝ → ℝ) (v : ℝ → Space) |
| 1226 | (hχ : support χ ⊆ Ioc a b) (r : Fin 2) |
| 1227 | (hmatch : ∀ s, ψ s ^ 2 * x s * t s r = |
| 1228 | χ (s / L) ^ 2 * (v (s / L) 0 * v (s / L) r.succ)) : |
| 1229 | PulseCovariance.actualColumn ci ψ x t r = |
| 1230 | ci * L * ∫ s in a..b, χ s ^ 2 * (v s 0 * v s r.succ) := by |
| 1231 | let g := fun s => χ s ^ 2 * (v s 0 * v s r.succ) |
| 1232 | have hsupp : support g ⊆ Ioc a b := by |
| 1233 | intro s hs |
| 1234 | apply hχ |
| 1235 | intro hz |
| 1236 | apply hs |
| 1237 | simp [g, hz] |
| 1238 | unfold PulseCovariance.actualColumn |
| 1239 | calc |
| 1240 | _ = ci * ∫ s : ℝ, g (s / L) := by |
| 1241 | congr 1 |
| 1242 | exact integral_congr_ae (Filter.Eventually.of_forall hmatch) |
| 1243 | _ = ci * (L * ∫ s : ℝ, g s) := by |
| 1244 | rw [Measure.integral_comp_div, abs_of_pos hL, smul_eq_mul] |
| 1245 | _ = _ := by |
| 1246 | rw [← intervalIntegral.integral_eq_integral_of_support_subset hsupp] |
| 1247 | dsimp [g] |
| 1248 | ring |
| 1249 | |
| 1250 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 1251 | /-- The matrix estimated above is the literal matrix of native pulse |
| 1252 | covariances when the two original pulse integrands are identified. -/ |
| 1253 | theorem primaryCovariance_eq_pairMatrix |
| 1254 | (pref : Fin 2 → ι → ℝ) (d : Fin 2 → ι → PrimaryODE.FrameData Q) |
| 1255 | (lam u L : Fin 2 → ι → ℝ) (n : ι) (p : Q) |
| 1256 | (vr vt : TorusInverse.Plane) (radius : ℝ) (ci : SmoothCovariance.Vec2) |
| 1257 | (pulses : Fin 2 → PartitionedCovariance.Pulse) |
| 1258 | (hL : ∀ c, 0 < L c n) |
| 1259 | (hpref : ∀ c, pref c n = PartitionedCovariance.nativePrefactor vr vt radius * ci c * L c n) |
| 1260 | (hmatch : ∀ c r s, (pulses c).ψ s ^ 2 * (pulses c).x s * (pulses c).t s r = |
| 1261 | GaussianTailFlat.profile (s / L c n) ^ 2 * |
| 1262 | (normalizedPulse (d c n) (lam c n) (u c n) (L c n) (p, s / L c n) 0 * |
| 1263 | normalizedPulse (d c n) (lam c n) (u c n) (L c n) (p, s / L c n) r.succ)) : |
| 1264 | primaryCovariance pref d lam u L n p = PartitionedCovariance.pairMatrix vr vt radius ci pulses := by |
| 1265 | ext r c |
| 1266 | rw [PartitionedCovariance.pairMatrix, PartitionedCovariance.Pulse.column, |
| 1267 | actualColumn_normalization (hL c) (ci c) (pulses c).ψ (pulses c).x (pulses c).t |
| 1268 | GaussianTailFlat.profile |
| 1269 | (fun s => normalizedPulse (d c n) (lam c n) (u c n) (L c n) (p, s)) |
| 1270 | profile_support_covariance_interval r (hmatch c r)] |
| 1271 | simp only [primaryCovariance, covarianceMatrix, hpref] |
| 1272 | ring |
| 1273 | |
| 1274 | end ActualCovariance |
| 1275 | |
| 1276 | section Localization |
| 1277 | |
| 1278 | open Filter |
| 1279 | |
| 1280 | variable {ι : Type*} {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1281 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 1282 | |
| 1283 | theorem EnvelopeJets.polynomial_smul {D : PhaseJetBounds.Domain ι E} |
| 1284 | {w : ι → E → ℝ} {a : ι → E → ℝ} {f : ι → E → F} |
| 1285 | (hf : EnvelopeJets D w f) (ha : PhaseJetBounds.PolynomialJets D a) : |
| 1286 | EnvelopeJets D w (fun i x => a i x • f i x) := by |
| 1287 | refine ⟨hf.nonneg, fun i => (ha.smooth i).smul (hf.smooth i), ?_⟩ |
| 1288 | intro N |
| 1289 | obtain ⟨A, hA, m, hm⟩ := ha.bound N |
| 1290 | obtain ⟨B, hB, k, hk⟩ := hf.bound N |
| 1291 | refine ⟨(2 : ℝ) ^ N * A * B, ?_, m + k, ?_⟩ |
| 1292 | · exact one_le_mul_of_one_le_of_one_le |
| 1293 | (one_le_mul_of_one_le_of_one_le (one_le_pow₀ (by norm_num)) hA) hB |
| 1294 | intro i x hx j hj |
| 1295 | have hs : 0 ≤ D.scale i := zero_le_one.trans (D.one_le_scale i) |
| 1296 | have hw := hf.nonneg i x hx |
| 1297 | calc |
| 1298 | _ ≤ (2 : ℝ) ^ N * (A * D.scale i ^ m) * (B * D.scale i ^ k * w i x) := |
| 1299 | smul_jet_bound (A := a i) (B := f i) (D.isOpen i) (ha.smooth i) (hf.smooth i) hx hj |
| 1300 | (by positivity) (by positivity) (fun l hl => hm i l hl x hx) (hk i x hx) |
| 1301 | _ = _ := by rw [pow_add]; ring |
| 1302 | |
| 1303 | theorem EnvelopeJets.mono_weight {D : PhaseJetBounds.Domain ι E} |
| 1304 | {w v : ι → E → ℝ} {f : ι → E → F} (hf : EnvelopeJets D w f) |
| 1305 | (hvw : ∀ i x, x ∈ D.carrier i → w i x ≤ v i x) : EnvelopeJets D v f := by |
| 1306 | refine ⟨fun i x hx => (hf.nonneg i x hx).trans (hvw i x hx), hf.smooth, ?_⟩ |
| 1307 | intro N |
| 1308 | obtain ⟨C, hC, m, hm⟩ := hf.bound N |
| 1309 | refine ⟨C, hC, m, ?_⟩ |
| 1310 | intro i x hx j hj |
| 1311 | exact (hm i x hx j hj).trans (mul_le_mul_of_nonneg_left (hvw i x hx) |
| 1312 | (mul_nonneg (zero_le_one.trans hC) (pow_nonneg (zero_le_one.trans (D.one_le_scale i)) m))) |
| 1313 | |
| 1314 | private theorem jet_eq_of_eventuallyEq {f g : E → F} {x : E} |
| 1315 | (h : f =ᶠ[𝓝 x] g) (j : ℕ) : iteratedFDeriv ℝ j f x = iteratedFDeriv ℝ j g x := by |
| 1316 | have h' : f =ᶠ[𝓝[univ] x] g := by simpa using h |
| 1317 | simpa only [iteratedFDerivWithin_univ] using h'.iteratedFDerivWithin_eq h.eq_of_nhds j |
| 1318 | |
| 1319 | /-- A compactly contained cutoff extends the actual slot solution with all |
| 1320 | jets. No smoothness of the uncut solution outside the slot is used. -/ |
| 1321 | theorem EnvelopeJets.localize {D D' : PhaseJetBounds.Domain ι E} |
| 1322 | {w : ι → E → ℝ} {f : ι → E → F} {a : ι → E → ℝ} |
| 1323 | (hf : EnvelopeJets D w f) (ha : PhaseJetBounds.PolynomialJets D' a) |
| 1324 | (hscale : ∀ i, D.scale i = D'.scale i) (hsub : ∀ i, D.carrier i ⊆ D'.carrier i) |
| 1325 | (hw : ∀ i x, x ∈ D'.carrier i → 0 ≤ w i x) |
| 1326 | (hsupport : ∀ i, tsupport (a i) ∩ D'.carrier i ⊆ D.carrier i) : |
| 1327 | EnvelopeJets D' w (fun i x => a i x • f i x) := by |
| 1328 | have hasmall : PhaseJetBounds.PolynomialJets D a := by |
| 1329 | apply ((EnvelopeJets.of_polynomial ha).restrict (D' := D) |
| 1330 | (fun i => (hscale i).symm) hsub).to_polynomial |
| 1331 | intro i x hx |
| 1332 | rfl |
| 1333 | have hp := hf.polynomial_smul hasmall |
| 1334 | have hout (i) (x) (hx : x ∈ D'.carrier i) (hn : x ∉ D.carrier i) : |
| 1335 | (fun y => a i y • f i y) =ᶠ[𝓝 x] fun _ => (0 : F) := by |
| 1336 | have hn' : x ∉ tsupport (a i) := fun h => hn (hsupport i ⟨h, hx⟩) |
| 1337 | filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hn'] with y hy |
| 1338 | simp only [hy, Pi.zero_apply, zero_smul] |
| 1339 | refine ⟨hw, ?_, ?_⟩ |
| 1340 | · intro i x hx |
| 1341 | by_cases hn : x ∈ D.carrier i |
| 1342 | · exact ((hp.smooth i).contDiffAt ((D.isOpen i).mem_nhds hn)).contDiffWithinAt |
| 1343 | · exact (contDiffAt_const.congr_of_eventuallyEq (hout i x hx hn)).contDiffWithinAt |
| 1344 | · intro N |
| 1345 | obtain ⟨C, hC, m, hm⟩ := hp.bound N |
| 1346 | refine ⟨C, hC, m, ?_⟩ |
| 1347 | intro i x hx j hj |
| 1348 | by_cases hn : x ∈ D.carrier i |
| 1349 | · simpa only [hscale i] using hm i x hn j hj |
| 1350 | · rw [jet_eq_of_eventuallyEq (hout i x hx hn) j] |
| 1351 | have hz : ‖iteratedFDeriv ℝ j (fun _ : E => (0 : F)) x‖ = 0 := by |
| 1352 | cases j with |
| 1353 | | zero => simp only [norm_iteratedFDeriv_zero, norm_zero] |
| 1354 | | succ j => simp only [iteratedFDeriv_succ_const, Pi.zero_apply, norm_zero] |
| 1355 | rw [hz] |
| 1356 | exact mul_nonneg (mul_nonneg (zero_le_one.trans hC) |
| 1357 | (pow_nonneg (zero_le_one.trans (D'.one_le_scale i)) m)) (hw i x hx) |
| 1358 | |
| 1359 | /-- All profile jets are obtained from the constructed compact smooth bump. -/ |
| 1360 | theorem profile_linear_polynomial (D : PhaseJetBounds.Domain ι E) (L : E →L[ℝ] ℝ) : |
| 1361 | PhaseJetBounds.PolynomialJets D (fun _ x => GaussianTailFlat.profile (L x)) := by |
| 1362 | let R : PhaseJetBounds.Domain ι ℝ := { |
| 1363 | scale := D.scale |
| 1364 | carrier := fun _ => univ |
| 1365 | isOpen := fun _ => isOpen_univ |
| 1366 | one_le_scale := D.one_le_scale } |
| 1367 | have hp : PhaseJetBounds.PolynomialJets R (fun _ => GaussianTailFlat.profile) := by |
| 1368 | refine ⟨fun _ => GaussianTailFlat.profile_contDiff.contDiffOn, ?_⟩ |
| 1369 | intro N |
| 1370 | obtain ⟨C, hC, hc⟩ := GaussianTailFlat.finite_jet_bounds GaussianTailFlat.profile_jet_bounded N |
| 1371 | refine ⟨C + 1, by linarith, 0, ?_⟩ |
| 1372 | intro i j hj x hx |
| 1373 | simpa only [pow_zero, mul_one] using (hc j hj x).trans (le_add_of_nonneg_right zero_le_one) |
| 1374 | simpa only [add_zero] using hp.precomp_affine (D := D) L (fun _ => 0) (fun _ => rfl) |
| 1375 | (fun _ _ _ => mem_univ _) |
| 1376 | |
| 1377 | end Localization |
| 1378 | |
| 1379 | section CutoffPulse |
| 1380 | |
| 1381 | variable {ι : Type*} {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 1382 | |
| 1383 | noncomputable def cutoffPulse (d : PrimaryODE.FrameData Q) (lam u L : ℝ) |
| 1384 | (z : Q × ℝ) : Space := |
| 1385 | GaussianTailFlat.profile z.2 • normalizedPulse d lam u L z |
| 1386 | |
| 1387 | omit [NormedSpace ℝ Q] in |
| 1388 | theorem profile_tsupport_slot : |
| 1389 | tsupport (fun z : Q × ℝ => GaussianTailFlat.profile z.2) ⊆ |
| 1390 | {z : Q × ℝ | z.2 ∈ Ioo (0 : ℝ) 1} := by |
| 1391 | have hcl : tsupport (fun z : Q × ℝ => GaussianTailFlat.profile z.2) ⊆ |
| 1392 | {z : Q × ℝ | z.2 ∈ Icc (1 / 10 : ℝ) (9 / 10)} := by |
| 1393 | apply closure_minimal _ (isClosed_Icc.preimage continuous_snd) |
| 1394 | intro z hz |
| 1395 | exact ⟨(profile_support_covariance_interval hz).1.le, |
| 1396 | (profile_support_covariance_interval hz).2⟩ |
| 1397 | intro z hz |
| 1398 | obtain ⟨hl, hr⟩ := hcl hz |
| 1399 | constructor <;> linarith |
| 1400 | |
| 1401 | /-- The actual cutoff pulse has global slot-coordinate jets with the |
| 1402 | zero-extended Gaussian envelope. This is the form used in physical charts. -/ |
| 1403 | theorem cutoffPulse_envelope_jets |
| 1404 | (D : PhaseJetBounds.Domain ι Q) (d : ι → PrimaryODE.FrameData Q) (lam u L : ι → ℝ) |
| 1405 | (hp : EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1406 | (fun i z => referenceP (lam i) (u i) (L i) (L i * z.2)) |
| 1407 | (fun i => normalizedPulse (d i) (lam i) (u i) (L i))) : |
| 1408 | EnvelopeJets (productDomain D (fun _ => (univ : Set ℝ)) (fun _ => isOpen_univ)) |
| 1409 | (fun i z => GaussianTailFlat.referenceSlotEnvelope (lam i) (u i) (L i) z.2) |
| 1410 | (fun i => cutoffPulse (d i) (lam i) (u i) (L i)) := by |
| 1411 | have hweight : ∀ i (z : Q × ℝ), |
| 1412 | 0 ≤ GaussianTailFlat.referenceSlotEnvelope (lam i) (u i) (L i) z.2 := by |
| 1413 | intro i z |
| 1414 | unfold GaussianTailFlat.referenceSlotEnvelope |
| 1415 | split_ifs |
| 1416 | · exact (GaussianEnvelope.envelope_pos _ _ _).le |
| 1417 | · rfl |
| 1418 | have hp' := hp.mono_weight (v := fun i z => |
| 1419 | GaussianTailFlat.referenceSlotEnvelope (lam i) (u i) (L i) z.2) (by |
| 1420 | intro i z hz |
| 1421 | rw [GaussianTailFlat.referenceSlotEnvelope, ite_eq_left ⟨hz.2.1.le, hz.2.2.le⟩] |
| 1422 | rfl) |
| 1423 | apply hp'.localize |
| 1424 | (profile_linear_polynomial |
| 1425 | (productDomain D (fun _ => (univ : Set ℝ)) (fun _ => isOpen_univ)) |
| 1426 | (ContinuousLinearMap.snd ℝ Q ℝ)) (fun _ => rfl) |
| 1427 | (fun _ z hz => ⟨hz.1, mem_univ _⟩) (fun i z _ => hweight i z) |
| 1428 | intro i z hz |
| 1429 | exact ⟨hz.2.1, profile_tsupport_slot hz.1⟩ |
| 1430 | |
| 1431 | end CutoffPulse |
| 1432 | |
| 1433 | section PhaseInstantiation |
| 1434 | |
| 1435 | open PhaseJetBounds |
| 1436 | |
| 1437 | variable {ι : Type*} |
| 1438 | |
| 1439 | /-- The actual PhaseCalculus normal and reconstructed frame supply the ODE |
| 1440 | coefficient jets. Only normalized base-field jets and previously quantified |
| 1441 | zeroth-order geometric/viscous errors are inputs. Rounding and all fixed |
| 1442 | representative choices stay constant within each label. -/ |
| 1443 | theorem phase_normalizedPulse_envelope_jets |
| 1444 | (a : PhaseFamily ι) (D : Domain ι Slow) (V : ι → Set ℝ) (hV : ∀ i, IsOpen (V i)) |
| 1445 | (lam c0 u L ν B : ι → ℝ) (K : ι → Plane) (s δ : ι → Slow × ℝ → ℝ) |
| 1446 | (hF : PolynomialJets D a.F) (hG : PolynomialJets D a.G) |
| 1447 | {r b M : ℝ} (hr : 0 < r) (hb : 0 < b) (hM : 1 ≤ M) |
| 1448 | (hconstant : ∀ i, |a.epsilon i| ≤ M ∧ |a.p i| ≤ M ∧ |a.pz i| ≤ M ∧ |a.x0 i| ≤ M) |
| 1449 | (heps : ∀ i, a.epsilon i ≠ 0) |
| 1450 | (hR : ∀ i, ∀ q ∈ D.carrier i, r ≤ |q.1| ∧ |q.1| ≤ M) |
| 1451 | (hslot : ∀ i, ∀ v ∈ V i, |v| ≤ M * D.scale i) |
| 1452 | (hlam : ∀ i, |lam i| ≤ M) (hc : ∀ i, b ≤ |c0 i| ∧ |c0 i| ≤ M) |
| 1453 | (hu : ∀ i, |u i| ≤ M) (hrate : ∀ i, |u i / L i| * D.scale i ≤ M) |
| 1454 | (hν : ∀ i, |ν i| ≤ M) |
| 1455 | (hB : ∀ i, 2 * b ≤ B i ∧ B i ≤ M) (hK : ∀ i, ‖K i‖ = 1) |
| 1456 | (hs : ∀ i, ∀ z ∈ (D.slot V hV).carrier i, |s i z| ≤ M) |
| 1457 | (hδ : ∀ i, ∀ z ∈ (D.slot V hV).carrier i, δ i z ≤ B i / 2) |
| 1458 | (hclose : ∀ i, ∀ z ∈ (D.slot V hV).carrier i, |
| 1459 | ‖a.normal i z - MovingFrameODE.pack (B i * s i z) (B i • K i)‖ ≤ δ i z) |
| 1460 | (hlampos : ∀ i, 0 < lam i) (hupos : ∀ i, 0 < u i) (hL : ∀ i, 0 < L i) |
| 1461 | (hI : ∀ i, Icc 0 (L i) ⊆ V i) (hνpos : ∀ i, 0 ≤ ν i) |
| 1462 | {C E : ℝ} (hC : 0 ≤ C) (hE : 0 ≤ E) |
| 1463 | (hvisc : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 1464 | ViscousPropagator.referenceViscosity (lam i) (u i) (L i) v - E / D.scale i ≤ |
| 1465 | (a.frameData lam c0 u L ν i).viscosity (p, v)) |
| 1466 | (herr : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 1467 | |(a.frameData lam c0 u L ν i).error11 (p, v)| ≤ C / D.scale i ∧ |
| 1468 | |(a.frameData lam c0 u L ν i).error12 (p, v)| ≤ C / D.scale i ∧ |
| 1469 | |(a.frameData lam c0 u L ν i).error21 (p, v)| ≤ C / D.scale i ∧ |
| 1470 | |(a.frameData lam c0 u L ν i).error22 (p, v)| ≤ C / D.scale i) : |
| 1471 | EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1472 | (fun i z => referenceP (lam i) (u i) (L i) (L i * z.2)) |
| 1473 | (fun i => normalizedPulse (a.frameData lam c0 u L ν i) (lam i) (u i) (L i)) := by |
| 1474 | have hd := a.frameData_jets_of_phase_comparison D V hV lam c0 u L ν B K s δ hF hG |
| 1475 | hr hb hM hconstant heps hR hslot hlam hc hu hrate hν hB hK hs hδ hclose |
| 1476 | have hlen (i) : L i ≤ M * D.scale i := by |
| 1477 | simpa only [abs_of_pos (hL i)] using hslot i (L i) (hI i ⟨(hL i).le, le_rfl⟩) |
| 1478 | have hνactual : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 1479 | 0 ≤ (a.frameData lam c0 u L ν i).viscosity (p, v) := by |
| 1480 | intro i p hp v hv |
| 1481 | change 0 ≤ ν i * ‖a.normal i (p, v)‖ ^ 2 |
| 1482 | exact mul_nonneg (hνpos i) (sq_nonneg _) |
| 1483 | have hf := fundamental_envelope_jets D V hV (a.frameData lam c0 u L ν) hd lam u L |
| 1484 | hlampos hupos hL hI hM hC hE hlen (fun _ _ _ _ _ => rfl) hνactual hvisc herr |
| 1485 | exact normalizedPulse_envelope_jets D V hV (a.frameData lam c0 u L ν) hd lam u L hL hI |
| 1486 | hf hM hlen |
| 1487 | |
| 1488 | end PhaseInstantiation |
| 1489 | |
| 1490 | section ChartAssembly |
| 1491 | |
| 1492 | open WeightedClasses |
| 1493 | |
| 1494 | variable {Q E : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 1495 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1496 | |
| 1497 | noncomputable def chartCovariance |
| 1498 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 1499 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) : |
| 1500 | ℕ → E → SmoothCovariance.Mat2 := fun n x => primaryCovariance pref d lam u L n (χ n x).1 |
| 1501 | |
| 1502 | noncomputable def primaryWave (s : StripData E) |
| 1503 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 1504 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) |
| 1505 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) (c : Fin 2) : |
| 1506 | ℕ → E → HarmonicCalculus.ComplexVector := |
| 1507 | primaryCoefficient s (chartCovariance pref d lam u L χ) T mask |
| 1508 | (fun n x => cutoffPulse (d c n) (lam c n) (u c n) (L c n) (χ n x)) c |
| 1509 | |
| 1510 | /-- Assembly with the actual phase-frame pulse, the actual integrated |
| 1511 | covariance matrix, the fixed slot cutoff, and a chart of polynomial scale. |
| 1512 | The remaining matrix hypotheses are strictly order zero. -/ |
| 1513 | theorem primaryWave_waveClass |
| 1514 | (s : StripData E) (D : PhaseJetBounds.Domain ℕ Q) |
| 1515 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 1516 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) |
| 1517 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) |
| 1518 | (hscale : ∀ n, D.scale n = s.slow n) |
| 1519 | (hχ : PhaseJetBounds.PolynomialJets (phaseDomain s) χ) |
| 1520 | (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ D.carrier n) |
| 1521 | (hpref : ∀ c, PhaseJetBounds.PolynomialJets D (fun n _ => pref c n)) |
| 1522 | (hpulse : ∀ c, EnvelopeJets |
| 1523 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1524 | (fun n z => referenceP (lam c n) (u c n) (L c n) (L c n * z.2)) |
| 1525 | (fun n => normalizedPulse (d c n) (lam c n) (u c n) (L c n))) |
| 1526 | (hlam : ∀ c n, 0 < lam c n) (hu : ∀ c n, 0 < u c n) (hL : ∀ c n, 0 < L c n) |
| 1527 | (hT : ∀ i, MeanClass s 0 (fun n x => T n x i)) |
| 1528 | (hmask : PhaseJetBounds.PolynomialJets (phaseDomain s) mask) |
| 1529 | {b M a : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (ha : 0 < a) |
| 1530 | (hdet : ∀ n x, x ∈ s.domain → |
| 1531 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) (chartCovariance pref d lam u L χ n x)).det|) |
| 1532 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |
| 1533 | |Real.sqrt (s.slow n) * chartCovariance pref d lam u L χ n x i j| ≤ M) |
| 1534 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 1535 | (hlower : ∀ n x, x ∈ s.domain → ∀ j, |
| 1536 | a * s.zeta x ≤ SmoothCovariance.weights (chartCovariance pref d lam u L χ n x) (T n x) j) |
| 1537 | (c : Fin 2) : |
| 1538 | WaveClass s (fun n x => GaussianTailFlat.referenceSlotEnvelope |
| 1539 | (lam c n) (u c n) (L c n) (χ n x).2) (1 / 2) |
| 1540 | (primaryWave s pref d lam u L χ T mask c) := by |
| 1541 | have hH (i j : Fin 2) : PhaseJetBounds.PolynomialJets (phaseDomain s) |
| 1542 | (fun n x => chartCovariance pref d lam u L χ n x i j) := by |
| 1543 | apply ((EnvelopeJets.of_polynomial |
| 1544 | (primaryCovariance_entry_polynomial D pref d lam u L hpref hpulse hlam hu hL i j)).comp |
| 1545 | (hχ.clm (ContinuousLinearMap.fst ℝ Q ℝ)) hscale hmap).to_polynomial |
| 1546 | intro n x hx |
| 1547 | rfl |
| 1548 | have hp := cutoffPulse_envelope_jets D (d c) (lam c) (u c) (L c) (hpulse c) |
| 1549 | have hpc := hp.comp hχ hscale (fun n x hx => ⟨hmap n x hx, mem_univ _⟩) |
| 1550 | have hv := hpc.memClass s (fun _ => rfl) (fun _ => rfl) |
| 1551 | exact primaryCoefficient_waveClass hH hT hmask hv hb hM ha hdet hentry hζ hlower c |
| 1552 | |
| 1553 | end ChartAssembly |
| 1554 | |
| 1555 | section PhaseConstruction |
| 1556 | |
| 1557 | open PhaseJetBounds WeightedClasses |
| 1558 | |
| 1559 | variable {ι : Type*} |
| 1560 | |
| 1561 | /-- Explicit input data for one sign of the phase construction. There are |
| 1562 | no solution, propagator, covariance, or output-jet assumptions in this |
| 1563 | record. The error fields are the order-zero moving-frame estimates. -/ |
| 1564 | structure PhaseConstruction (D : Domain ι Slow) where |
| 1565 | phase : PhaseFamily ι |
| 1566 | V : ι → Set ℝ |
| 1567 | openV : ∀ i, IsOpen (V i) |
| 1568 | lam : ι → ℝ |
| 1569 | c0 : ι → ℝ |
| 1570 | u : ι → ℝ |
| 1571 | L : ι → ℝ |
| 1572 | viscosity : ι → ℝ |
| 1573 | B : ι → ℝ |
| 1574 | K : ι → Plane |
| 1575 | slope : ι → Slow × ℝ → ℝ |
| 1576 | error : ι → Slow × ℝ → ℝ |
| 1577 | r : ℝ |
| 1578 | b : ℝ |
| 1579 | M : ℝ |
| 1580 | C : ℝ |
| 1581 | E : ℝ |
| 1582 | r_pos : 0 < r |
| 1583 | b_pos : 0 < b |
| 1584 | one_le_M : 1 ≤ M |
| 1585 | C_nonneg : 0 ≤ C |
| 1586 | E_nonneg : 0 ≤ E |
| 1587 | baseF : PolynomialJets D phase.F |
| 1588 | baseG : PolynomialJets D phase.G |
| 1589 | constants : ∀ i, |phase.epsilon i| ≤ M ∧ |phase.p i| ≤ M ∧ |
| 1590 | |phase.pz i| ≤ M ∧ |phase.x0 i| ≤ M |
| 1591 | epsilon_ne : ∀ i, phase.epsilon i ≠ 0 |
| 1592 | radius : ∀ i, ∀ q ∈ D.carrier i, r ≤ |q.1| ∧ |q.1| ≤ M |
| 1593 | slot : ∀ i, ∀ v ∈ V i, |v| ≤ M * D.scale i |
| 1594 | lam_bound : ∀ i, |lam i| ≤ M |
| 1595 | c0_bound : ∀ i, b ≤ |c0 i| ∧ |c0 i| ≤ M |
| 1596 | u_bound : ∀ i, |u i| ≤ M |
| 1597 | rate_bound : ∀ i, |u i / L i| * D.scale i ≤ M |
| 1598 | viscosity_bound : ∀ i, |viscosity i| ≤ M |
| 1599 | B_bound : ∀ i, 2 * b ≤ B i ∧ B i ≤ M |
| 1600 | K_unit : ∀ i, ‖K i‖ = 1 |
| 1601 | slope_bound : ∀ i, ∀ z ∈ (D.slot V openV).carrier i, |slope i z| ≤ M |
| 1602 | error_small : ∀ i, ∀ z ∈ (D.slot V openV).carrier i, error i z ≤ B i / 2 |
| 1603 | normal_close : ∀ i, ∀ z ∈ (D.slot V openV).carrier i, |
| 1604 | ‖phase.normal i z - MovingFrameODE.pack (B i * slope i z) (B i • K i)‖ ≤ error i z |
| 1605 | lam_pos : ∀ i, 0 < lam i |
| 1606 | u_pos : ∀ i, 0 < u i |
| 1607 | L_pos : ∀ i, 0 < L i |
| 1608 | interval : ∀ i, Icc 0 (L i) ⊆ V i |
| 1609 | viscosity_nonneg : ∀ i, 0 ≤ viscosity i |
| 1610 | damping_error : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 1611 | ViscousPropagator.referenceViscosity (lam i) (u i) (L i) v - E / D.scale i ≤ |
| 1612 | (phase.frameData lam c0 u L viscosity i).viscosity (p, v) |
| 1613 | modal_errors : ∀ i p, p ∈ D.carrier i → ∀ v ∈ Icc 0 (L i), |
| 1614 | |(phase.frameData lam c0 u L viscosity i).error11 (p, v)| ≤ C / D.scale i ∧ |
| 1615 | |(phase.frameData lam c0 u L viscosity i).error12 (p, v)| ≤ C / D.scale i ∧ |
| 1616 | |(phase.frameData lam c0 u L viscosity i).error21 (p, v)| ≤ C / D.scale i ∧ |
| 1617 | |(phase.frameData lam c0 u L viscosity i).error22 (p, v)| ≤ C / D.scale i |
| 1618 | |
| 1619 | noncomputable def PhaseConstruction.frame {D : Domain ι Slow} (p : PhaseConstruction D) : |
| 1620 | ι → PrimaryODE.FrameData Slow := p.phase.frameData p.lam p.c0 p.u p.L p.viscosity |
| 1621 | |
| 1622 | theorem PhaseConstruction.pulse_jets {D : Domain ι Slow} (p : PhaseConstruction D) : |
| 1623 | EnvelopeJets (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 1624 | (fun i z => referenceP (p.lam i) (p.u i) (p.L i) (p.L i * z.2)) |
| 1625 | (fun i => normalizedPulse (p.frame i) (p.lam i) (p.u i) (p.L i)) := |
| 1626 | phase_normalizedPulse_envelope_jets p.phase D p.V p.openV p.lam p.c0 p.u p.L p.viscosity |
| 1627 | p.B p.K p.slope p.error p.baseF p.baseG p.r_pos p.b_pos p.one_le_M p.constants |
| 1628 | p.epsilon_ne p.radius p.slot p.lam_bound p.c0_bound p.u_bound p.rate_bound |
| 1629 | p.viscosity_bound p.B_bound p.K_unit p.slope_bound p.error_small p.normal_close |
| 1630 | p.lam_pos p.u_pos p.L_pos p.interval p.viscosity_nonneg p.C_nonneg p.E_nonneg |
| 1631 | p.damping_error p.modal_errors |
| 1632 | |
| 1633 | theorem PhaseConstruction.normal_jets {D : Domain ι Slow} (p : PhaseConstruction D) : |
| 1634 | PolynomialJets (D.slot p.V p.openV) p.phase.normal := |
| 1635 | (p.phase.polynomial_jets D p.V p.openV p.baseF p.baseG p.r_pos p.one_le_M p.constants |
| 1636 | p.epsilon_ne p.radius p.slot).1 |
| 1637 | |
| 1638 | theorem PhaseConstruction.normal_range {D : Domain ι Slow} (p : PhaseConstruction D) : |
| 1639 | (∀ i, ∀ z ∈ (D.slot p.V p.openV).carrier i, p.b ≤ ‖p.phase.normal i z‖) ∧ |
| 1640 | (∀ i, ∀ z ∈ (D.slot p.V p.openV).carrier i, ‖p.phase.normal i z‖ ≤ p.M ^ 2 + 3 * p.M) := by |
| 1641 | have h := normal_range_of_reference_close p.B p.K p.slope p.error p.b_pos p.one_le_M |
| 1642 | p.B_bound p.K_unit p.slope_bound p.error_small p.normal_close |
| 1643 | exact ⟨fun i z hz => (h.1 i z hz).trans (PhaseEstimates.tail_norm_le _), h.2⟩ |
| 1644 | |
| 1645 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1646 | |
| 1647 | noncomputable def phaseCovariance {D : Domain ℕ Slow} (F : Fin 2 → PhaseConstruction D) |
| 1648 | (pref : Fin 2 → ℕ → ℝ) : ℕ → Slow → SmoothCovariance.Mat2 := |
| 1649 | primaryCovariance pref (fun c => (F c).frame) (fun c => (F c).lam) |
| 1650 | (fun c => (F c).u) (fun c => (F c).L) |
| 1651 | |
| 1652 | noncomputable def phaseWave (s : StripData E) {D : Domain ℕ Slow} |
| 1653 | (F : Fin 2 → PhaseConstruction D) (pref : Fin 2 → ℕ → ℝ) |
| 1654 | (χ : ℕ → E → Slow × ℝ) (T : ℕ → E → SmoothCovariance.Vec2) |
| 1655 | (mask : ℕ → E → ℝ) (c : Fin 2) : ℕ → E → HarmonicCalculus.ComplexVector := |
| 1656 | primaryWave s pref (fun c => (F c).frame) (fun c => (F c).lam) |
| 1657 | (fun c => (F c).u) (fun c => (F c).L) χ T mask c |
| 1658 | |
| 1659 | /-- End-to-end primary class membership from the actual phase/base inputs. |
| 1660 | The covariance matrix in the hypotheses is the integral of these same |
| 1661 | constructed pulses. Its derivative bounds and all amplitude jets are |
| 1662 | derived in the proof. -/ |
| 1663 | theorem phaseWave_waveClass |
| 1664 | (s : StripData E) (D : Domain ℕ Slow) (F : Fin 2 → PhaseConstruction D) |
| 1665 | (pref : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Slow × ℝ) |
| 1666 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) |
| 1667 | (hscale : ∀ n, D.scale n = s.slow n) |
| 1668 | (hχ : PolynomialJets (phaseDomain s) χ) |
| 1669 | (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ D.carrier n) |
| 1670 | (hpref : ∀ c, PolynomialJets D (fun n _ => pref c n)) |
| 1671 | (hT : ∀ i, MeanClass s 0 (fun n x => T n x i)) |
| 1672 | (hmask : PolynomialJets (phaseDomain s) mask) |
| 1673 | {b M a : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (ha : 0 < a) |
| 1674 | (hdet : ∀ n x, x ∈ s.domain → |
| 1675 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) |
| 1676 | (phaseCovariance F pref n (χ n x).1)).det|) |
| 1677 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |
| 1678 | |Real.sqrt (s.slow n) * phaseCovariance F pref n (χ n x).1 i j| ≤ M) |
| 1679 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 1680 | (hlower : ∀ n x, x ∈ s.domain → ∀ j, |
| 1681 | a * s.zeta x ≤ SmoothCovariance.weights (phaseCovariance F pref n (χ n x).1) (T n x) j) |
| 1682 | (c : Fin 2) : |
| 1683 | WaveClass s (fun n x => GaussianTailFlat.referenceSlotEnvelope |
| 1684 | ((F c).lam n) ((F c).u n) ((F c).L n) (χ n x).2) (1 / 2) |
| 1685 | (phaseWave s F pref χ T mask c) := |
| 1686 | primaryWave_waveClass s D pref (fun c => (F c).frame) (fun c => (F c).lam) |
| 1687 | (fun c => (F c).u) (fun c => (F c).L) χ T mask hscale hχ hmap hpref |
| 1688 | (fun c => (F c).pulse_jets) (fun c => (F c).lam_pos) (fun c => (F c).u_pos) |
| 1689 | (fun c => (F c).L_pos) hT hmask hb hM ha hdet hentry hζ hlower c |
| 1690 | |
| 1691 | end PhaseConstruction |
| 1692 | |
| 1693 | section LocalProfiles |
| 1694 | |
| 1695 | variable {Q : Type} [NormedAddCommGroup Q] |
| 1696 | |
| 1697 | /-- The local cutoff uses exactly the already constructed primary ODE |
| 1698 | solution, including its Gaussian initial normalization. -/ |
| 1699 | theorem cutoffPulse_eq_ambient_primary |
| 1700 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1701 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1702 | {p : Q} (hp : p ∈ U) {t : ℝ} (ht : t ∈ Icc 0 L) : |
| 1703 | cutoffPulse d lam u L (p, t / L) = GaussianTailFlat.slotCutoff L t • |
| 1704 | d.ambient (p, t) (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t) := by |
| 1705 | have hLt : L * (t / L) = t := by field_simp |
| 1706 | unfold cutoffPulse normalizedPulse |
| 1707 | dsimp only |
| 1708 | rw [hLt, fundamental_eq_primary hL U hA hp ht] |
| 1709 | rfl |
| 1710 | |
| 1711 | noncomputable def localPrimaryProfile (d : PrimaryODE.FrameData Q) (lam u L radius : ℝ) |
| 1712 | (p : Q) (z : TorusInverse.Plane) : Space := |
| 1713 | PartitionedCovariance.cutoff radius z.1 • cutoffPulse d lam u L (p, z.2 / L) |
| 1714 | |
| 1715 | theorem localPrimaryProfile_radial |
| 1716 | (d : PrimaryODE.FrameData Q) (lam u radius : ℝ) {L : ℝ} (hL : 0 < L) |
| 1717 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1718 | {p : Q} (hp : p ∈ U) (P : PartitionedCovariance.Pulse) |
| 1719 | (z : TorusInverse.Plane) (hz : z.2 ∈ Icc 0 L) |
| 1720 | (hψ : P.ψ z.2 = GaussianTailFlat.slotCutoff L z.2) |
| 1721 | (hx : P.x z.2 = (d.ambient (p, z.2) |
| 1722 | (PrimaryODE.primary hL.le d (fun w => referenceP lam u L w.2) p z.2)) 0) : |
| 1723 | P.radialProfile radius z = localPrimaryProfile d lam u L radius p z 0 := by |
| 1724 | rw [localPrimaryProfile, cutoffPulse_eq_ambient_primary d lam u hL U hA hp hz] |
| 1725 | simp only [PartitionedCovariance.Pulse.radialProfile, PiLp.smul_apply, smul_eq_mul, hψ, hx] |
| 1726 | ring |
| 1727 | |
| 1728 | theorem localPrimaryProfile_tangent |
| 1729 | (d : PrimaryODE.FrameData Q) (lam u radius : ℝ) {L : ℝ} (hL : 0 < L) |
| 1730 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1731 | {p : Q} (hp : p ∈ U) (P : PartitionedCovariance.Pulse) |
| 1732 | (z : TorusInverse.Plane) (hz : z.2 ∈ Icc 0 L) (i : Fin 2) |
| 1733 | (hψ : P.ψ z.2 = GaussianTailFlat.slotCutoff L z.2) |
| 1734 | (ht : P.t z.2 i = (d.ambient (p, z.2) |
| 1735 | (PrimaryODE.primary hL.le d (fun w => referenceP lam u L w.2) p z.2)) i.succ) : |
| 1736 | P.tangentProfile radius i z = localPrimaryProfile d lam u L radius p z i.succ := by |
| 1737 | rw [localPrimaryProfile, cutoffPulse_eq_ambient_primary d lam u hL U hA hp hz] |
| 1738 | simp only [PartitionedCovariance.Pulse.tangentProfile, PiLp.smul_apply, smul_eq_mul, hψ, ht] |
| 1739 | ring |
| 1740 | |
| 1741 | end LocalProfiles |
| 1742 | |
| 1743 | section PhaseCurl |
| 1744 | |
| 1745 | open PhaseJetBounds WeightedClasses |
| 1746 | |
| 1747 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1748 | {s : StripData E} {D : Domain ℕ Slow} |
| 1749 | |
| 1750 | noncomputable def PhaseConstruction.chartNormal (p : PhaseConstruction D) |
| 1751 | (χ : ℕ → E → Slow × ℝ) (n : ℕ) (x : E) : Space := |
| 1752 | p.phase.normal n ((χ n x).1, p.L n * (χ n x).2) |
| 1753 | |
| 1754 | /-- The normal appearing in the curl coefficient is the actual phase |
| 1755 | normal. Its jets and lower bound are derived from the same phase inputs. -/ |
| 1756 | theorem PhaseConstruction.chartNormal_bounds (p : PhaseConstruction D) |
| 1757 | (χ : ℕ → E → Slow × ℝ) (hscale : ∀ n, D.scale n = s.slow n) |
| 1758 | (hχ : PolynomialJets (phaseDomain s) χ) |
| 1759 | (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ D.carrier n) |
| 1760 | (hslot : ∀ n x, x ∈ s.domain → p.L n * (χ n x).2 ∈ p.V n) : |
| 1761 | PolynomialJets (phaseDomain s) (p.chartNormal χ) ∧ |
| 1762 | (∀ n x, x ∈ s.domain → p.b ≤ ‖p.chartNormal χ n x‖) ∧ |
| 1763 | (∀ n x, x ∈ s.domain → ‖p.chartNormal χ n x‖ ≤ p.M ^ 2 + 3 * p.M) := by |
| 1764 | have hL : PolynomialJets (phaseDomain s) (fun n _ => p.L n) := by |
| 1765 | apply PolynomialJets.const _ (m := 1) p.one_le_M |
| 1766 | intro n |
| 1767 | have hh := p.slot n (p.L n) (p.interval n ⟨(p.L_pos n).le, le_rfl⟩) |
| 1768 | simpa only [phaseDomain, pow_one, Real.norm_eq_abs, hscale n] using hh |
| 1769 | have hg := (hχ.clm (ContinuousLinearMap.fst ℝ Slow ℝ)).pair |
| 1770 | (hL.mul (hχ.clm (ContinuousLinearMap.snd ℝ Slow ℝ))) |
| 1771 | have hmaps : ∀ n, MapsTo (fun x => ((χ n x).1, p.L n * (χ n x).2)) |
| 1772 | s.domain ((D.slot p.V p.openV).carrier n) := |
| 1773 | fun n x hx => ⟨hmap n x hx, hslot n x hx⟩ |
| 1774 | have hj := (EnvelopeJets.of_polynomial p.normal_jets).comp hg hscale hmaps |
| 1775 | refine ⟨hj.to_polynomial (fun _ _ _ => le_rfl), ?_, ?_⟩ |
| 1776 | · intro n x hx |
| 1777 | exact p.normal_range.1 n _ (hmaps n hx) |
| 1778 | · intro n x hx |
| 1779 | exact p.normal_range.2 n _ (hmaps n hx) |
| 1780 | |
| 1781 | /-- The exact-curl remainder bound specializes to the actual phase normal, |
| 1782 | without an assumed normal-jet or propagator estimate. -/ |
| 1783 | theorem PhaseConstruction.curlRemainder_waveClass (p : PhaseConstruction D) |
| 1784 | (χ : ℕ → E → Slow × ℝ) (hscale : ∀ n, D.scale n = s.slow n) |
| 1785 | (hχ : PolynomialJets (phaseDomain s) χ) |
| 1786 | (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ D.carrier n) |
| 1787 | (hslot : ∀ n x, x ∈ s.domain → p.L n * (χ n x).2 ∈ p.V n) |
| 1788 | {P : ℕ → E → ℝ} {a : ℕ → E → HarmonicCalculus.ComplexVector} |
| 1789 | (ha : WaveClass s P (1 / 2) a) {κ : ℝ} (hκ : 0 ≤ κ) |
| 1790 | {R : E → ℝ} {Vr Vθ Vz : ℕ → E → E} {harmonic : ℕ → ℤ} |
| 1791 | (hr : UnweightedClass s (-κ) Vr) (hθ : UnweightedClass s 0 Vθ) |
| 1792 | (hz : UnweightedClass s 1 Vz) (hR : UnweightedClass s 0 (fun _ x => (R x)⁻¹)) |
| 1793 | (hharmonic : ∀ n, harmonic n ≠ 0) : |
| 1794 | WaveClass s P (1 - κ) |
| 1795 | (primaryCurlRemainder s (p.chartNormal χ) R Vr Vθ Vz harmonic a) := by |
| 1796 | obtain ⟨hn, hlo, hup⟩ := p.chartNormal_bounds χ hscale hχ hmap hslot |
| 1797 | exact primaryCurlRemainder_waveClass hn ha p.b_pos hlo hup hκ hr hθ hz hR hharmonic |
| 1798 | |
| 1799 | end PhaseCurl |
| 1800 | |
| 1801 | section CanonicalPulse |
| 1802 | |
| 1803 | variable {Q : Type} [NormedAddCommGroup Q] |
| 1804 | |
| 1805 | theorem slotCutoff_zero_of_not_mem_Icc {L t : ℝ} (hL : 0 < L) (ht : t ∉ Icc 0 L) : |
| 1806 | GaussianTailFlat.slotCutoff L t = 0 := by |
| 1807 | apply GaussianTailFlat.profile_zero |
| 1808 | have hout : t < 0 ∨ L < t := by simpa only [mem_Icc, not_and_or, not_le] using ht |
| 1809 | rcases hout with ht | ht |
| 1810 | · have hq : t / L < 0 := div_neg_of_neg_of_pos ht hL |
| 1811 | rw [abs_of_nonpos (by linarith : t / L - 1 / 2 ≤ 0)] |
| 1812 | linarith |
| 1813 | · have hq : 1 < t / L := (lt_div_iff₀ hL).mpr (by linarith) |
| 1814 | rw [abs_of_nonneg (by linarith : 0 ≤ t / L - 1 / 2)] |
| 1815 | linarith |
| 1816 | |
| 1817 | theorem slotCutoff_hasCompactSupport {L : ℝ} (hL : 0 < L) : |
| 1818 | HasCompactSupport (GaussianTailFlat.slotCutoff L) := by |
| 1819 | change IsCompact (tsupport (GaussianTailFlat.slotCutoff L)) |
| 1820 | apply (isCompact_Icc : IsCompact (Icc (0 : ℝ) L)).of_isClosed_subset isClosed_closure |
| 1821 | apply closure_minimal _ isClosed_Icc |
| 1822 | intro t ht |
| 1823 | by_contra hn |
| 1824 | exact ht (slotCutoff_zero_of_not_mem_Icc hL hn) |
| 1825 | |
| 1826 | /-- The continuous path is obtained from the actual ambient ODE, including |
| 1827 | both endpoints; no continuity of a clamped derivative is claimed. -/ |
| 1828 | noncomputable def canonicalPrimaryPath |
| 1829 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1830 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1831 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) : C(Icc (0 : ℝ) L, Space) where |
| 1832 | toFun t := d.ambient (p, t) (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t) |
| 1833 | continuous_toFun := by |
| 1834 | have hf : ContinuousOn (d.forcing (fun _ => 0)) (U ×ˢ Icc 0 L) := by |
| 1835 | simpa only [PrimaryODE.FrameData.forcing_zero_function] using |
| 1836 | (continuousOn_const : ContinuousOn (fun _ : Q × ℝ => (0 : State)) (U ×ˢ Icc 0 L)) |
| 1837 | have hc : ContinuousOn (fun t => d.ambient (p, t) |
| 1838 | (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t)) (Icc 0 L) := by |
| 1839 | intro t ht |
| 1840 | exact (PrimaryODE.ambientSolution_hasDerivAt hL.le d 1 |
| 1841 | (PrimaryODE.primarySeed 0 (fun z => referenceP lam u L z.2)) (fun _ => 0) |
| 1842 | hA hf hp hk ht).continuousAt.continuousWithinAt |
| 1843 | exact hc.domRestrict |
| 1844 | |
| 1845 | /-- A literal `PartitionedCovariance.Pulse` made from this same primary |
| 1846 | solution. Only its uncut components are continuously clamped; the cutoff |
| 1847 | has compact support strictly inside the interval. -/ |
| 1848 | noncomputable def canonicalPrimaryPulse |
| 1849 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1850 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1851 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) : PartitionedCovariance.Pulse where |
| 1852 | ψ := GaussianTailFlat.slotCutoff L |
| 1853 | x t := ParametricODE.extend hL.le (canonicalPrimaryPath d lam u hL U hA p hp hk) t 0 |
| 1854 | t t i := ParametricODE.extend hL.le (canonicalPrimaryPath d lam u hL U hA p hp hk) t i.succ |
| 1855 | ψ_continuous := (GaussianTailFlat.slotCutoff_contDiff L).continuous |
| 1856 | x_continuous := (PiLp.proj 2 (fun _ : Fin 3 => ℝ) 0 : Space →L[ℝ] ℝ).continuous.comp |
| 1857 | (ParametricODE.continuous_extend hL.le (canonicalPrimaryPath d lam u hL U hA p hp hk)) |
| 1858 | t_continuous := continuous_pi (fun i : Fin 2 => |
| 1859 | (PiLp.proj 2 (fun _ : Fin 3 => ℝ) i.succ : Space →L[ℝ] ℝ).continuous.comp |
| 1860 | (ParametricODE.continuous_extend hL.le (canonicalPrimaryPath d lam u hL U hA p hp hk))) |
| 1861 | ψ_compact := slotCutoff_hasCompactSupport hL |
| 1862 | |
| 1863 | theorem canonicalPrimaryPulse_x |
| 1864 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1865 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1866 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) {t : ℝ} (ht : t ∈ Icc 0 L) : |
| 1867 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).x t = |
| 1868 | (d.ambient (p, t) (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t)) 0 := |
| 1869 | congrArg (fun v : Space => v 0) (ParametricODE.extend_coe hL.le |
| 1870 | (canonicalPrimaryPath d lam u hL U hA p hp hk) ⟨t, ht⟩) |
| 1871 | |
| 1872 | theorem canonicalPrimaryPulse_t |
| 1873 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1874 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1875 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) {t : ℝ} (ht : t ∈ Icc 0 L) (i : Fin 2) : |
| 1876 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).t t i = |
| 1877 | (d.ambient (p, t) (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t)) i.succ := |
| 1878 | congrArg (fun v : Space => v i.succ) (ParametricODE.extend_coe hL.le |
| 1879 | (canonicalPrimaryPath d lam u hL U hA p hp hk) ⟨t, ht⟩) |
| 1880 | |
| 1881 | /-- Global equality of the literal radial profiles, including off-slot |
| 1882 | points where both sides vanish by the constructed cutoff. -/ |
| 1883 | theorem canonicalPrimaryPulse_radialProfile |
| 1884 | (d : PrimaryODE.FrameData Q) (lam u radius : ℝ) {L : ℝ} (hL : 0 < L) |
| 1885 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1886 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) (z : TorusInverse.Plane) : |
| 1887 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).radialProfile radius z = |
| 1888 | localPrimaryProfile d lam u L radius p z 0 := by |
| 1889 | by_cases hz : z.2 ∈ Icc 0 L |
| 1890 | · exact localPrimaryProfile_radial d lam u radius hL U hA hp _ z hz rfl |
| 1891 | (canonicalPrimaryPulse_x d lam u hL U hA p hp hk hz) |
| 1892 | · have hzero := slotCutoff_zero_of_not_mem_Icc hL hz |
| 1893 | have hpz : GaussianTailFlat.profile (z.2 / L) = 0 := hzero |
| 1894 | simp only [canonicalPrimaryPulse, PartitionedCovariance.Pulse.radialProfile, hzero, |
| 1895 | mul_zero, zero_mul, localPrimaryProfile, cutoffPulse, hpz, zero_smul, smul_zero, PiLp.zero_apply] |
| 1896 | |
| 1897 | theorem canonicalPrimaryPulse_tangentProfile |
| 1898 | (d : PrimaryODE.FrameData Q) (lam u radius : ℝ) {L : ℝ} (hL : 0 < L) |
| 1899 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1900 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) (z : TorusInverse.Plane) (i : Fin 2) : |
| 1901 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).tangentProfile radius i z = |
| 1902 | localPrimaryProfile d lam u L radius p z i.succ := by |
| 1903 | by_cases hz : z.2 ∈ Icc 0 L |
| 1904 | · exact localPrimaryProfile_tangent d lam u radius hL U hA hp _ z hz i rfl |
| 1905 | (canonicalPrimaryPulse_t d lam u hL U hA p hp hk hz i) |
| 1906 | · have hzero := slotCutoff_zero_of_not_mem_Icc hL hz |
| 1907 | have hpz : GaussianTailFlat.profile (z.2 / L) = 0 := hzero |
| 1908 | simp only [canonicalPrimaryPulse, PartitionedCovariance.Pulse.tangentProfile, hzero, |
| 1909 | mul_zero, zero_mul, localPrimaryProfile, cutoffPulse, hpz, zero_smul, smul_zero, PiLp.zero_apply] |
| 1910 | |
| 1911 | theorem canonicalPrimaryPulse_integrand |
| 1912 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1913 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1914 | (p : Q) (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) (i : Fin 2) (t : ℝ) : |
| 1915 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).ψ t ^ 2 * |
| 1916 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).x t * |
| 1917 | (canonicalPrimaryPulse d lam u hL U hA p hp hk).t t i = |
| 1918 | GaussianTailFlat.profile (t / L) ^ 2 * |
| 1919 | (normalizedPulse d lam u L (p, t / L) 0 * normalizedPulse d lam u L (p, t / L) i.succ) := by |
| 1920 | by_cases ht : t ∈ Icc 0 L |
| 1921 | · have hLt : L * (t / L) = t := by field_simp |
| 1922 | have hv : normalizedPulse d lam u L (p, t / L) = |
| 1923 | d.ambient (p, t) (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t) := by |
| 1924 | simp only [normalizedPulse, hLt] |
| 1925 | rw [fundamental_eq_primary hL U hA hp ht] |
| 1926 | rw [canonicalPrimaryPulse_x d lam u hL U hA p hp hk ht, |
| 1927 | canonicalPrimaryPulse_t d lam u hL U hA p hp hk ht i, hv] |
| 1928 | change GaussianTailFlat.profile (t / L) ^ 2 * _ * _ = _ |
| 1929 | ring |
| 1930 | · have hz := slotCutoff_zero_of_not_mem_Icc hL ht |
| 1931 | have hpz : GaussianTailFlat.profile (t / L) = 0 := hz |
| 1932 | simp only [canonicalPrimaryPulse, hz, hpz, zero_pow (by omega : 2 ≠ 0), zero_mul] |
| 1933 | |
| 1934 | theorem primaryCovariance_eq_canonicalPairMatrix |
| 1935 | {ι : Type*} (pref : Fin 2 → ι → ℝ) (d : Fin 2 → ι → PrimaryODE.FrameData Q) |
| 1936 | (lam u L : Fin 2 → ι → ℝ) (n : ι) |
| 1937 | (U : Set Q) (p : Q) (hp : p ∈ U) |
| 1938 | (hL : ∀ c, 0 < L c n) |
| 1939 | (hA : ∀ c, ContinuousOn ((d c n).coefficient 1) (U ×ˢ Icc 0 (L c n))) |
| 1940 | (hk : ∀ c, (d c n).Kinematics p (Icc 0 (L c n))) |
| 1941 | (vr vt : TorusInverse.Plane) (radius : ℝ) (ci : SmoothCovariance.Vec2) |
| 1942 | (hpref : ∀ c, pref c n = PartitionedCovariance.nativePrefactor vr vt radius * ci c * L c n) : |
| 1943 | primaryCovariance pref d lam u L n p = PartitionedCovariance.pairMatrix vr vt radius ci |
| 1944 | (fun c => canonicalPrimaryPulse (d c n) (lam c n) (u c n) (hL c) U (hA c) p hp (hk c)) := by |
| 1945 | apply primaryCovariance_eq_pairMatrix pref d lam u L n p vr vt radius ci _ hL hpref |
| 1946 | intro c i t |
| 1947 | exact canonicalPrimaryPulse_integrand (d c n) (lam c n) (u c n) (hL c) U (hA c) p hp (hk c) i t |
| 1948 | |
| 1949 | end CanonicalPulse |
| 1950 | |
| 1951 | section UncutEquation |
| 1952 | |
| 1953 | variable {Q : Type} [NormedAddCommGroup Q] |
| 1954 | |
| 1955 | /-- The uncut normalized pulse satisfies the actual projected equation. |
| 1956 | This is the unit fundamental used before the separate Gaussian cutoff. -/ |
| 1957 | theorem normalizedPulse_hasDerivAt |
| 1958 | (d : PrimaryODE.FrameData Q) (lam u : ℝ) {L : ℝ} (hL : 0 < L) |
| 1959 | (U : Set Q) (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 L)) |
| 1960 | {p : Q} (hp : p ∈ U) (hk : d.Kinematics p (Icc 0 L)) |
| 1961 | {θ : ℝ} (hθ : θ ∈ Ioo (0 : ℝ) 1) : |
| 1962 | HasDerivAt (fun t => normalizedPulse d lam u L (p, t)) |
| 1963 | (L • TangentProjection.projectedRhs (d.normal (p, L * θ)) (d.normalMotion (p, L * θ)) |
| 1964 | (normalizedPulse d lam u L (p, θ)) |
| 1965 | (MovingFrameODE.baseAction (d.F (p, L * θ)) (d.shear (p, L * θ)) |
| 1966 | (normalizedPulse d lam u L (p, θ))) 0 (d.viscosity (p, L * θ))) θ := by |
| 1967 | let f := fun t => d.ambient (p, t) |
| 1968 | (PrimaryODE.primary hL.le d (fun z => referenceP lam u L z.2) p t) |
| 1969 | have hslot {t : ℝ} (ht : t ∈ Ioo (0 : ℝ) 1) : L * t ∈ Icc 0 L := by |
| 1970 | constructor |
| 1971 | · exact mul_nonneg hL.le ht.1.le |
| 1972 | · nlinarith [ht.2] |
| 1973 | have heq (t : ℝ) (ht : t ∈ Ioo (0 : ℝ) 1) : normalizedPulse d lam u L (p, t) = f (L * t) := by |
| 1974 | unfold normalizedPulse f |
| 1975 | rw [fundamental_eq_primary hL U hA hp (hslot ht)] |
| 1976 | have he : (fun t => normalizedPulse d lam u L (p, t)) =ᶠ[nhds θ] (fun t => f (L * t)) := by |
| 1977 | filter_upwards [isOpen_Ioo.mem_nhds hθ] with t ht |
| 1978 | exact heq t ht |
| 1979 | have hf : ContinuousOn (d.forcing (fun _ => 0)) (U ×ˢ Icc 0 L) := by |
| 1980 | simpa only [PrimaryODE.FrameData.forcing_zero_function] using |
| 1981 | (continuousOn_const : ContinuousOn (fun _ : Q × ℝ => (0 : State)) (U ×ˢ Icc 0 L)) |
| 1982 | have hd := PrimaryODE.ambientSolution_hasDerivAt hL.le d 1 |
| 1983 | (PrimaryODE.primarySeed 0 (fun z => referenceP lam u L z.2)) (fun _ => 0) |
| 1984 | hA hf hp hk (hslot hθ) |
| 1985 | have hc := hd.scomp θ ((hasDerivAt_id θ).const_mul L) |
| 1986 | change HasDerivAt (fun t => f (L * t)) ((L * 1) • _) θ at hc |
| 1987 | rw [mul_one, PrimaryODE.FrameData.damping_one] at hc |
| 1988 | have hout := hc.congr_of_eventuallyEq he |
| 1989 | have hv : PrimaryODE.ambientSolution hL.le d 1 |
| 1990 | (PrimaryODE.primarySeed 0 (fun z => referenceP lam u L z.2)) (fun _ => 0) p (L * θ) = |
| 1991 | normalizedPulse d lam u L (p, θ) := (heq θ hθ).symm |
| 1992 | simpa only [hv] using hout |
| 1993 | |
| 1994 | end UncutEquation |
| 1995 | |
| 1996 | section CutoffFactorization |
| 1997 | |
| 1998 | open WeightedClasses |
| 1999 | |
| 2000 | variable {Q E : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 2001 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 2002 | |
| 2003 | noncomputable def uncutPrimaryWave (s : StripData E) |
| 2004 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 2005 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) |
| 2006 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) (c : Fin 2) : |
| 2007 | ℕ → E → HarmonicCalculus.ComplexVector := |
| 2008 | primaryCoefficient s (chartCovariance pref d lam u L χ) T mask |
| 2009 | (fun n x => normalizedPulse (d c n) (lam c n) (u c n) (L c n) (χ n x)) c |
| 2010 | |
| 2011 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 2012 | /-- The slot cutoff occurs exactly once. This identity matches a linear-wave |
| 2013 | coefficient's external `withCutoff` operation to the physical primary. -/ |
| 2014 | theorem primaryWave_eq_cutoff (s : StripData E) |
| 2015 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 2016 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) |
| 2017 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) (c : Fin 2) (n : ℕ) (x : E) : |
| 2018 | primaryWave s pref d lam u L χ T mask c n x = |
| 2019 | GaussianTailFlat.profile (χ n x).2 • uncutPrimaryWave s pref d lam u L χ T mask c n x := by |
| 2020 | simp only [primaryWave, uncutPrimaryWave, primaryCoefficient, cutoffPulse, map_smul, |
| 2021 | smul_smul, mul_comm] |
| 2022 | |
| 2023 | /-- The same quantitative estimate before applying the external Gaussian |
| 2024 | slot cutoff. This is the class used for the homogeneous principal equation. -/ |
| 2025 | theorem uncutPrimaryWave_waveClass |
| 2026 | (s : StripData E) (D : PhaseJetBounds.Domain ℕ Q) |
| 2027 | (pref : Fin 2 → ℕ → ℝ) (d : Fin 2 → ℕ → PrimaryODE.FrameData Q) |
| 2028 | (lam u L : Fin 2 → ℕ → ℝ) (χ : ℕ → E → Q × ℝ) |
| 2029 | (T : ℕ → E → SmoothCovariance.Vec2) (mask : ℕ → E → ℝ) |
| 2030 | (hscale : ∀ n, D.scale n = s.slow n) |
| 2031 | (hχ : PhaseJetBounds.PolynomialJets (phaseDomain s) χ) |
| 2032 | (hmap : ∀ n x, x ∈ s.domain → (χ n x) ∈ D.carrier n ×ˢ Ioo (0 : ℝ) 1) |
| 2033 | (hpref : ∀ c, PhaseJetBounds.PolynomialJets D (fun n _ => pref c n)) |
| 2034 | (hpulse : ∀ c, EnvelopeJets |
| 2035 | (productDomain D (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo)) |
| 2036 | (fun n z => referenceP (lam c n) (u c n) (L c n) (L c n * z.2)) |
| 2037 | (fun n => normalizedPulse (d c n) (lam c n) (u c n) (L c n))) |
| 2038 | (hlam : ∀ c n, 0 < lam c n) (hu : ∀ c n, 0 < u c n) (hL : ∀ c n, 0 < L c n) |
| 2039 | (hT : ∀ i, MeanClass s 0 (fun n x => T n x i)) |
| 2040 | (hmask : PhaseJetBounds.PolynomialJets (phaseDomain s) mask) |
| 2041 | {b M a : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (ha : 0 < a) |
| 2042 | (hdet : ∀ n x, x ∈ s.domain → |
| 2043 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) (chartCovariance pref d lam u L χ n x)).det|) |
| 2044 | (hentry : ∀ n x, x ∈ s.domain → ∀ i j, |
| 2045 | |Real.sqrt (s.slow n) * chartCovariance pref d lam u L χ n x i j| ≤ M) |
| 2046 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 2047 | (hlower : ∀ n x, x ∈ s.domain → ∀ j, |
| 2048 | a * s.zeta x ≤ SmoothCovariance.weights (chartCovariance pref d lam u L χ n x) (T n x) j) |
| 2049 | (c : Fin 2) : |
| 2050 | WaveClass s (fun n x => referenceP (lam c n) (u c n) (L c n) (L c n * (χ n x).2)) |
| 2051 | (1 / 2) (uncutPrimaryWave s pref d lam u L χ T mask c) := by |
| 2052 | have hH (i j : Fin 2) : PhaseJetBounds.PolynomialJets (phaseDomain s) |
| 2053 | (fun n x => chartCovariance pref d lam u L χ n x i j) := by |
| 2054 | apply ((EnvelopeJets.of_polynomial |
| 2055 | (primaryCovariance_entry_polynomial D pref d lam u L hpref hpulse hlam hu hL i j)).comp |
| 2056 | (hχ.clm (ContinuousLinearMap.fst ℝ Q ℝ)) hscale (fun n x hx => (hmap n x hx).1)).to_polynomial |
| 2057 | intro n x hx |
| 2058 | rfl |
| 2059 | have hp := (hpulse c).comp hχ hscale hmap |
| 2060 | have hv := hp.memClass s (fun _ => rfl) (fun _ => rfl) |
| 2061 | exact primaryCoefficient_waveClass hH hT hmask hv hb hM ha hdet hentry hζ hlower c |
| 2062 | |
| 2063 | end CutoffFactorization |
| 2064 | |
| 2065 | end NavierStokes.PrimaryPulseBounds |