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.PrimaryTargetBounds |
| 2 | import NavierStokes.UniformPrimaryWeights |
| 3 | import NavierStokes.PeriodizedWaveBounds |
| 4 | |
| 5 | /-! |
| 6 | # Weighted native estimates for the constructed primary copies |
| 7 | |
| 8 | The local domains retain the actual label-dependent slow cells. Every |
| 9 | constant is chosen before that label, its band, and the lattice copy. The |
| 10 | square-root estimates retain the vanishing flat weight. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.PrimaryCopyBounds |
| 16 | |
| 17 | open Set Function Filter PhaseJetBounds PrimaryPulseBounds WeightedClasses |
| 18 | open scoped Topology ContDiff BigOperators InnerProductSpace |
| 19 | |
| 20 | private theorem nat_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 21 | ENat.natCast_le_of_coe_top_le_withTop le_rfl m |
| 22 | |
| 23 | variable {ι : Type*} {D : Type} {E F G : Type*} |
| 24 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 25 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 27 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 28 | |
| 29 | /-- A local chart domain with the actual slow/inverse-edge growth. -/ |
| 30 | structure JetDomain (ι D : Type*) [NormedAddCommGroup D] extends Domain ι D where |
| 31 | growth : ι → D → ℝ |
| 32 | scale_le_growth : ∀ i x, x ∈ carrier i → scale i ≤ growth i x |
| 33 | |
| 34 | omit [NormedSpace ℝ D] in |
| 35 | theorem JetDomain.one_le_growth (V : JetDomain ι D) (i : ι) {x : D} |
| 36 | (hx : x ∈ V.carrier i) : 1 ≤ V.growth i x := |
| 37 | (V.one_le_scale i).trans (V.scale_le_growth i x hx) |
| 38 | |
| 39 | /-- Actual full jets on varying native cells, retaining their full weight. -/ |
| 40 | structure NativeJets (V : JetDomain ι D) (w : ι → D → ℝ) (f : ι → D → E) : Prop where |
| 41 | nonneg : ∀ i x, x ∈ V.carrier i → 0 ≤ w i x |
| 42 | smooth : ∀ i, ContDiffOn ℝ ∞ (f i) (V.carrier i) |
| 43 | bound : ∀ m : ℕ, ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ i x, x ∈ V.carrier i → ∀ j ≤ m, |
| 44 | ‖iteratedFDeriv ℝ j (f i) x‖ ≤ C * V.growth i x ^ p * w i x |
| 45 | |
| 46 | namespace NativeJets |
| 47 | |
| 48 | variable {V : JetDomain ι D} {w v : ι → D → ℝ} {f g : ι → D → E} |
| 49 | |
| 50 | theorem of_envelope (hf : EnvelopeJets V.toDomain w f) : NativeJets V w f := by |
| 51 | refine ⟨hf.nonneg, hf.smooth, ?_⟩ |
| 52 | intro m |
| 53 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 54 | refine ⟨C, hC, p, ?_⟩ |
| 55 | intro i x hx j hj |
| 56 | exact (hb i x hx j hj).trans (mul_le_mul_of_nonneg_right |
| 57 | (mul_le_mul_of_nonneg_left |
| 58 | (pow_le_pow_left₀ (zero_le_one.trans (V.one_le_scale i)) (V.scale_le_growth i x hx) p) |
| 59 | (zero_le_one.trans hC)) (hf.nonneg i x hx)) |
| 60 | |
| 61 | theorem of_polynomial (hf : PolynomialJets V.toDomain f) : |
| 62 | NativeJets V (fun _ _ => 1) f := of_envelope (EnvelopeJets.of_polynomial hf) |
| 63 | |
| 64 | theorem congr (hf : NativeJets V w f) (he : ∀ i, EqOn (f i) (g i) (V.carrier i)) : |
| 65 | NativeJets V w g := by |
| 66 | refine ⟨hf.nonneg, fun i => (hf.smooth i).congr (fun _ hx => (he i hx).symm), ?_⟩ |
| 67 | intro m |
| 68 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 69 | refine ⟨C, hC, p, ?_⟩ |
| 70 | intro i x hx j hj |
| 71 | have hjet := iteratedFDerivWithin_congr (𝕜 := ℝ) (he i) hx j |
| 72 | rw [iteratedFDerivWithin_of_isOpen j (V.isOpen i) hx, |
| 73 | iteratedFDerivWithin_of_isOpen j (V.isOpen i) hx] at hjet |
| 74 | rw [← hjet] |
| 75 | exact hb i x hx j hj |
| 76 | |
| 77 | theorem map (hf : NativeJets V w f) (L : E →L[ℝ] F) : |
| 78 | NativeJets V w (fun i x => L (f i x)) := by |
| 79 | refine ⟨hf.nonneg, fun i => L.contDiff.comp_contDiffOn (hf.smooth i), ?_⟩ |
| 80 | intro m |
| 81 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 82 | refine ⟨(‖L‖ + 1) * C, one_le_mul_of_one_le_of_one_le (by linarith [norm_nonneg L]) hC, p, ?_⟩ |
| 83 | intro i x hx j hj |
| 84 | have hc := L.iteratedFDeriv_comp_left |
| 85 | ((hf.smooth i).contDiffAt ((V.isOpen i).mem_nhds hx)) (nat_le_infty j) |
| 86 | change ‖iteratedFDeriv ℝ j (L ∘ f i) x‖ ≤ _ |
| 87 | rw [hc] |
| 88 | calc |
| 89 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ j (f i) x‖ := L.norm_compContinuousMultilinearMap_le _ |
| 90 | _ ≤ (‖L‖ + 1) * (C * V.growth i x ^ p * w i x) := |
| 91 | mul_le_mul (by linarith) (hb i x hx j hj) (norm_nonneg _) |
| 92 | (by linarith [norm_nonneg L]) |
| 93 | _ = _ := by ring |
| 94 | |
| 95 | theorem add (hf : NativeJets V w f) (hg : NativeJets V w g) : |
| 96 | NativeJets V w (fun i x => f i x + g i x) := by |
| 97 | refine ⟨hf.nonneg, fun i => (hf.smooth i).add (hg.smooth i), ?_⟩ |
| 98 | intro m |
| 99 | obtain ⟨A, hA, p, ha⟩ := hf.bound m |
| 100 | obtain ⟨B, hB, q, hb⟩ := hg.bound m |
| 101 | refine ⟨A + B, by linarith, p + q, ?_⟩ |
| 102 | intro i x hx j hj |
| 103 | have hG := V.one_le_growth i hx |
| 104 | have hw := hf.nonneg i x hx |
| 105 | rw [fun_iteratedFDeriv_add_apply |
| 106 | (((hf.smooth i).contDiffAt ((V.isOpen i).mem_nhds hx)).of_le (nat_le_infty j)) |
| 107 | (((hg.smooth i).contDiffAt ((V.isOpen i).mem_nhds hx)).of_le (nat_le_infty j))] |
| 108 | calc |
| 109 | _ ≤ ‖iteratedFDeriv ℝ j (f i) x‖ + ‖iteratedFDeriv ℝ j (g i) x‖ := norm_add_le _ _ |
| 110 | _ ≤ A * V.growth i x ^ p * w i x + B * V.growth i x ^ q * w i x := |
| 111 | add_le_add (ha i x hx j hj) (hb i x hx j hj) |
| 112 | _ ≤ A * V.growth i x ^ (p + q) * w i x + B * V.growth i x ^ (p + q) * w i x := by |
| 113 | exact add_le_add |
| 114 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left |
| 115 | (pow_le_pow_right₀ hG (Nat.le_add_right p q)) (zero_le_one.trans hA)) hw) |
| 116 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left |
| 117 | (pow_le_pow_right₀ hG (Nat.le_add_left q p)) (zero_le_one.trans hB)) hw) |
| 118 | _ = _ := by ring |
| 119 | |
| 120 | theorem neg (hf : NativeJets V w f) : NativeJets V w (fun i x => -f i x) := |
| 121 | hf.map (-ContinuousLinearMap.id ℝ E) |
| 122 | |
| 123 | theorem sub (hf : NativeJets V w f) (hg : NativeJets V w g) : |
| 124 | NativeJets V w (fun i x => f i x - g i x) := by |
| 125 | simpa only [sub_eq_add_neg] using hf.add hg.neg |
| 126 | |
| 127 | theorem bilinear {f : ι → D → E} {g : ι → D → F} |
| 128 | (hf : NativeJets V w f) (hg : NativeJets V v g) (L : E →L[ℝ] F →L[ℝ] G) : |
| 129 | NativeJets V (fun i x => w i x * v i x) (fun i x => L (f i x) (g i x)) := by |
| 130 | refine ⟨fun i x hx => mul_nonneg (hf.nonneg i x hx) (hg.nonneg i x hx), |
| 131 | fun i => (L.contDiff.comp_contDiffOn (hf.smooth i)).clm_apply (hg.smooth i), ?_⟩ |
| 132 | intro m |
| 133 | obtain ⟨A, hA, p, ha⟩ := hf.bound m |
| 134 | obtain ⟨B, hB, q, hb⟩ := hg.bound m |
| 135 | refine ⟨(‖L‖ + 1) * 2 ^ m * A * B, ?_, p + q, ?_⟩ |
| 136 | · exact one_le_mul_of_one_le_of_one_le |
| 137 | (one_le_mul_of_one_le_of_one_le |
| 138 | (one_le_mul_of_one_le_of_one_le (by linarith [norm_nonneg L]) (one_le_pow₀ (by norm_num))) hA) hB |
| 139 | intro i x hx j hj |
| 140 | have hG : 0 ≤ V.growth i x := zero_le_one.trans (V.one_le_growth i hx) |
| 141 | have hw := hf.nonneg i x hx |
| 142 | have hv := hg.nonneg i x hx |
| 143 | have h := LabelSumBounds.bilinear_jet_bound L (V.isOpen i) (hf.smooth i) (hg.smooth i) hx hj |
| 144 | (by positivity : 0 ≤ A * V.growth i x ^ p * w i x) |
| 145 | (by positivity : 0 ≤ B * V.growth i x ^ q * v i x) |
| 146 | (ha i x hx) (hb i x hx) |
| 147 | calc |
| 148 | _ ≤ ‖L‖ * 2 ^ m * (A * V.growth i x ^ p * w i x) * |
| 149 | (B * V.growth i x ^ q * v i x) := h |
| 150 | _ ≤ (‖L‖ + 1) * 2 ^ m * (A * V.growth i x ^ p * w i x) * |
| 151 | (B * V.growth i x ^ q * v i x) := by gcongr; linarith |
| 152 | _ = _ := by rw [pow_add]; ring |
| 153 | |
| 154 | theorem mul {f g : ι → D → ℝ} (hf : NativeJets V w f) (hg : NativeJets V v g) : |
| 155 | NativeJets V (fun i x => w i x * v i x) (fun i x => f i x * g i x) := |
| 156 | hf.bilinear hg (ContinuousLinearMap.mul ℝ ℝ) |
| 157 | |
| 158 | theorem smul {f : ι → D → ℝ} {g : ι → D → E} |
| 159 | (hf : NativeJets V w f) (hg : NativeJets V v g) : |
| 160 | NativeJets V (fun i x => w i x * v i x) (fun i x => f i x • g i x) := |
| 161 | hf.bilinear hg (ContinuousLinearMap.lsmul ℝ ℝ) |
| 162 | |
| 163 | theorem polynomial_smul {a : ι → D → ℝ} (hf : NativeJets V w f) |
| 164 | (ha : PolynomialJets V.toDomain a) : |
| 165 | NativeJets V w (fun i x => a i x • f i x) := by |
| 166 | simpa only [one_mul] using (of_polynomial ha).smul hf |
| 167 | |
| 168 | theorem polynomial_mul {f a : ι → D → ℝ} (hf : NativeJets V w f) |
| 169 | (ha : PolynomialJets V.toDomain a) : |
| 170 | NativeJets V w (fun i x => a i x * f i x) := by |
| 171 | simpa only [smul_eq_mul] using hf.polynomial_smul ha |
| 172 | |
| 173 | theorem band_smul (hf : NativeJets V w f) (a : ι → ℝ) (ha : ∀ i, 0 ≤ a i) : |
| 174 | NativeJets V (fun i x => a i * w i x) (fun i x => a i • f i x) := by |
| 175 | refine ⟨fun i x hx => mul_nonneg (ha i) (hf.nonneg i x hx), |
| 176 | fun i => (hf.smooth i).const_smul _, ?_⟩ |
| 177 | intro m |
| 178 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 179 | refine ⟨C, hC, p, ?_⟩ |
| 180 | intro i x hx j hj |
| 181 | rw [iteratedFDeriv_const_smul_apply' |
| 182 | (((hf.smooth i).contDiffAt ((V.isOpen i).mem_nhds hx)).of_le (nat_le_infty j)), |
| 183 | norm_smul (a i) (iteratedFDeriv ℝ j (f i) x), Real.norm_of_nonneg (ha i)] |
| 184 | exact (mul_le_mul_of_nonneg_left (hb i x hx j hj) (ha i)).trans_eq (by ring) |
| 185 | |
| 186 | /-- The exact square root of a vanishing weight is retained. The lower |
| 187 | bound is proportional to that weight; no positive minimum is introduced. -/ |
| 188 | theorem sqrt {g : ι → D → ℝ} (hg : NativeJets V w g) |
| 189 | (hw : ∀ i x, x ∈ V.carrier i → 0 < w i x) |
| 190 | {c : ℝ} (hc : 0 < c) |
| 191 | (hlower : ∀ i x, x ∈ V.carrier i → c * w i x ≤ g i x) : |
| 192 | NativeJets V (fun i x => Real.sqrt (w i x)) (fun i x => Real.sqrt (g i x)) := by |
| 193 | have hpos : ∀ i x, x ∈ V.carrier i → 0 < g i x := |
| 194 | fun i x hx => (mul_pos hc (hw i x hx)).trans_le (hlower i x hx) |
| 195 | refine ⟨fun _ _ _ => Real.sqrt_nonneg _, |
| 196 | fun i => (hg.smooth i).sqrt (fun x hx => (hpos i x hx).ne'), ?_⟩ |
| 197 | intro m |
| 198 | obtain ⟨C, hC, p, hb⟩ := hg.bound m |
| 199 | let K := C + c⁻¹ + 1 |
| 200 | have hK : 1 ≤ K := by dsimp [K]; have := inv_pos.mpr hc; linarith |
| 201 | have hCK : C ≤ K := by dsimp [K]; have := inv_pos.mpr hc; linarith |
| 202 | have hiK : c⁻¹ ≤ K := by dsimp [K]; linarith |
| 203 | let A := WeightedQuotients.orderBound (1 / 2) m + 1 |
| 204 | have hA : 1 ≤ A := by dsimp [A]; linarith [WeightedQuotients.orderBound_nonneg (1 / 2) m] |
| 205 | refine ⟨A * K ^ (2 * m + 1), one_le_mul_of_one_le_of_one_le hA (one_le_pow₀ hK), |
| 206 | p * (2 * m + 1), ?_⟩ |
| 207 | intro i x hx j hj |
| 208 | have hG := V.one_le_growth i hx |
| 209 | let B := K * V.growth i x ^ p |
| 210 | have hKB : K ≤ B := le_mul_of_one_le_right (zero_le_one.trans hK) (one_le_pow₀ hG) |
| 211 | have hB : 1 ≤ B := hK.trans hKB |
| 212 | have hBpos : 0 < B := zero_lt_one.trans_le hB |
| 213 | have hcb : 1 ≤ c * B := by |
| 214 | have h : 1 / c ≤ B := by simpa only [one_div] using hiK.trans hKB |
| 215 | simpa only [mul_comm] using (div_le_iff₀ hc).mp h |
| 216 | have hlo : w i x / B ≤ g i x := by |
| 217 | apply (div_le_iff₀ hBpos).mpr |
| 218 | calc |
| 219 | w i x = w i x * 1 := (mul_one _).symm |
| 220 | _ ≤ w i x * (c * B) := mul_le_mul_of_nonneg_left hcb (hw i x hx).le |
| 221 | _ = (c * w i x) * B := by ring |
| 222 | _ ≤ g i x * B := mul_le_mul_of_nonneg_right (hlower i x hx) hBpos.le |
| 223 | have hjets : ∀ k ≤ j, ‖iteratedFDeriv ℝ k (g i) x‖ ≤ w i x * B := by |
| 224 | intro k hk |
| 225 | exact (hb i x hx k (hk.trans hj)).trans |
| 226 | ((mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hCK |
| 227 | (pow_nonneg (zero_le_one.trans hG) _)) (hw i x hx).le).trans_eq (by dsimp [B]; ring)) |
| 228 | have h := WeightedQuotients.sqrt_jet_bound (V.isOpen i) (hg.smooth i) |
| 229 | (hpos i) hx (hw i x hx) hB j hlo hjets |
| 230 | have hjA : (j.factorial : ℝ) * WeightedQuotients.coeffBound (1 / 2) j ≤ A := |
| 231 | (WeightedQuotients.orderBound_le (1 / 2) hj).trans (by dsimp [A]; linarith) |
| 232 | calc |
| 233 | _ ≤ Real.sqrt (w i x) * ((j.factorial : ℝ) * WeightedQuotients.coeffBound (1 / 2) j) * B ^ (2 * j + 1) := h |
| 234 | _ ≤ Real.sqrt (w i x) * A * B ^ (2 * m + 1) := by |
| 235 | apply mul_le_mul |
| 236 | · exact mul_le_mul_of_nonneg_left hjA (Real.sqrt_nonneg _) |
| 237 | · exact pow_le_pow_right₀ hB (by omega) |
| 238 | · positivity |
| 239 | · positivity |
| 240 | _ = _ := by dsimp [B]; rw [mul_pow, ← pow_mul]; ring |
| 241 | |
| 242 | end NativeJets |
| 243 | |
| 244 | section Covariance |
| 245 | |
| 246 | variable {V : JetDomain ι D} {w : ι → D → ℝ} |
| 247 | {r : ι → ℝ} {H : ι → D → SmoothCovariance.Mat2} |
| 248 | {T : ι → D → SmoothCovariance.Vec2} |
| 249 | |
| 250 | /-- Cramer's actual formula on the varying native cells. Only the |
| 251 | normalized matrix has a positive lower bound; the target keeps its weight. -/ |
| 252 | theorem covariance_weights_jets |
| 253 | (hr : PolynomialJets V.toDomain (fun i _ => r i)) (hrne : ∀ i, r i ≠ 0) |
| 254 | (hH : ∀ k l, PolynomialJets V.toDomain (fun i x => H i x k l)) |
| 255 | (hT : ∀ k, NativeJets V w (fun i x => T i x k)) |
| 256 | {b M : ℝ} (hb : 0 < b) (hM : 1 ≤ M) |
| 257 | (hdet : ∀ i x, x ∈ V.carrier i → b ≤ |(normalizedMatrix (r i) (H i x)).det|) |
| 258 | (hentry : ∀ i x, x ∈ V.carrier i → ∀ k l, |r i * H i x k l| ≤ M) |
| 259 | (j : Fin 2) : NativeJets V w (fun i x => SmoothCovariance.weights (H i x) (T i x) j) := by |
| 260 | have hN (k l : Fin 2) := hr.mul (hH k l) |
| 261 | have hD : PolynomialJets V.toDomain (fun i x => (normalizedMatrix (r i) (H i x)).det) := by |
| 262 | simpa only [Matrix.det_fin_two, normalizedMatrix] using |
| 263 | ((hN 0 0).mul (hN 1 1)).sub ((hN 0 1).mul (hN 1 0)) |
| 264 | have hDupper : ∀ i x, x ∈ V.carrier i → |(normalizedMatrix (r i) (H i x)).det| ≤ 2 * M ^ 2 := by |
| 265 | intro i x hx |
| 266 | simp only [Matrix.det_fin_two, normalizedMatrix] |
| 267 | apply (abs_sub _ _).trans |
| 268 | have h1 := mul_le_mul (hentry i x hx 0 0) (hentry i x hx 1 1) |
| 269 | (abs_nonneg _) (zero_le_one.trans hM) |
| 270 | have h2 := mul_le_mul (hentry i x hx 0 1) (hentry i x hx 1 0) |
| 271 | (abs_nonneg _) (zero_le_one.trans hM) |
| 272 | simp only [abs_mul] at h1 h2 ⊢ |
| 273 | nlinarith |
| 274 | have hi := hD.inv hb hdet hDupper |
| 275 | have hscale := (hr.pow 2).mul hi |
| 276 | have hP (k l j : Fin 2) : NativeJets V w (fun i x => T i x j * H i x k l) := by |
| 277 | simpa only [mul_comm] using (hT j).polynomial_mul (hH k l) |
| 278 | have hnum : NativeJets V w (fun i x => SmoothCovariance.cramerNumerator (H i x) (T i x) j) := by |
| 279 | fin_cases j |
| 280 | · have he := (hP 1 1 0).sub (hP 0 1 1) |
| 281 | simp only [SmoothCovariance.cramerNumerator, mul_comm] at he ⊢ |
| 282 | exact he |
| 283 | · have he := (hP 0 0 1).sub (hP 1 0 0) |
| 284 | simp only [SmoothCovariance.cramerNumerator, |
| 285 | mul_comm] at he ⊢ |
| 286 | exact he |
| 287 | apply (hnum.polynomial_mul hscale).congr |
| 288 | intro i x hx |
| 289 | apply (weights_eq_normalized (r i) (H i x) (T i x) (hrne i) _ j).symm |
| 290 | intro he |
| 291 | have h := hdet i x hx |
| 292 | rw [normalizedMatrix_det, he, mul_zero, abs_zero] at h |
| 293 | linarith |
| 294 | |
| 295 | theorem covariance_amplitudes_jets |
| 296 | (hr : PolynomialJets V.toDomain (fun i _ => r i)) (hrne : ∀ i, r i ≠ 0) |
| 297 | (hH : ∀ k l, PolynomialJets V.toDomain (fun i x => H i x k l)) |
| 298 | (hT : ∀ k, NativeJets V w (fun i x => T i x k)) |
| 299 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 300 | (hdet : ∀ i x, x ∈ V.carrier i → b ≤ |(normalizedMatrix (r i) (H i x)).det|) |
| 301 | (hentry : ∀ i x, x ∈ V.carrier i → ∀ k l, |r i * H i x k l| ≤ M) |
| 302 | (hw : ∀ i x, x ∈ V.carrier i → 0 < w i x) |
| 303 | (hlower : ∀ i x, x ∈ V.carrier i → ∀ k, c * w i x ≤ SmoothCovariance.weights (H i x) (T i x) k) |
| 304 | (j : Fin 2) : |
| 305 | NativeJets V (fun i x => Real.sqrt (w i x)) (fun i x => SmoothCovariance.amplitudes (H i x) (T i x) j) := |
| 306 | (covariance_weights_jets hr hrne hH hT hb hM hdet hentry j).sqrt hw hc |
| 307 | (fun i x hx => hlower i x hx j) |
| 308 | |
| 309 | end Covariance |
| 310 | |
| 311 | section Pressure |
| 312 | |
| 313 | variable {V : JetDomain ι D} {w : ι → D → ℝ} |
| 314 | |
| 315 | theorem pressureCoefficient_jets |
| 316 | {N Ndot u : ι → D → ProblemStatement.Space} |
| 317 | {A : ι → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space} |
| 318 | (hN : PolynomialJets V.toDomain N) (hNdot : PolynomialJets V.toDomain Ndot) |
| 319 | (hA : PolynomialJets V.toDomain A) (hu : NativeJets V w u) |
| 320 | {b M : ℝ} (hb : 0 < b) |
| 321 | (hlo : ∀ i x, x ∈ V.carrier i → b ≤ ‖N i x‖) |
| 322 | (hhi : ∀ i x, x ∈ V.carrier i → ‖N i x‖ ≤ M) : |
| 323 | NativeJets V w (fun i x => TangentProjection.pressureCoefficient |
| 324 | (N i x) (Ndot i x) (u i x) (A i x (u i x)) 0) := by |
| 325 | have hNsq := hN.inner hN |
| 326 | have hInv := hNsq.inv (b := b ^ 2) (M := M ^ 2) (sq_pos_of_pos hb) |
| 327 | (by |
| 328 | intro i x hx |
| 329 | rw [real_inner_self_eq_norm_sq, abs_of_nonneg (sq_nonneg _)] |
| 330 | exact pow_le_pow_left₀ hb.le (hlo i x hx) 2) |
| 331 | (by |
| 332 | intro i x hx |
| 333 | rw [real_inner_self_eq_norm_sq, abs_of_nonneg (sq_nonneg _)] |
| 334 | exact pow_le_pow_left₀ (norm_nonneg _) (hhi i x hx) 2) |
| 335 | have hAu : NativeJets V w (fun i x => A i x (u i x)) := by |
| 336 | have he := (NativeJets.of_polynomial hA).bilinear hu |
| 337 | (ContinuousLinearMap.apply ℝ ProblemStatement.Space).flip |
| 338 | simp only [one_mul] at he |
| 339 | exact he |
| 340 | have hnum : NativeJets V w (fun i x => ⟪N i x, A i x (u i x)⟫_ℝ - ⟪Ndot i x, u i x⟫_ℝ) := by |
| 341 | have h1 := (NativeJets.of_polynomial hN).bilinear hAu (innerSL ℝ) |
| 342 | have h2 := (NativeJets.of_polynomial hNdot).bilinear hu (innerSL ℝ) |
| 343 | have he := h1.sub h2 |
| 344 | simp only [one_mul] at he |
| 345 | exact he |
| 346 | simpa only [TangentProjection.pressureCoefficient, inner_zero_right, add_zero, |
| 347 | real_inner_self_eq_norm_sq, div_eq_mul_inv, mul_comm] using hnum.polynomial_mul hInv |
| 348 | |
| 349 | end Pressure |
| 350 | |
| 351 | section ConstructedPulse |
| 352 | |
| 353 | variable {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 354 | |
| 355 | noncomputable def pulseMatrix (F : Fin 2 → PhaseConstruction U) |
| 356 | (pref : Fin 2 → ι → ℝ) (χ : ι → D → PhaseCalculus.Slow × ℝ) : |
| 357 | ι → D → SmoothCovariance.Mat2 := fun i x => |
| 358 | primaryCovariance pref (fun j => (F j).frame) (fun j => (F j).lam) |
| 359 | (fun j => (F j).u) (fun j => (F j).L) i (χ i x).1 |
| 360 | |
| 361 | noncomputable def pulseVector (F : Fin 2 → PhaseConstruction U) |
| 362 | (χ : ι → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : ι → D → ProblemStatement.Space := |
| 363 | fun i x => normalizedPulse ((F j).frame i) ((F j).lam i) ((F j).u i) ((F j).L i) (χ i x) |
| 364 | |
| 365 | noncomputable def pulseEnvelope (F : Fin 2 → PhaseConstruction U) |
| 366 | (χ : ι → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : ι → D → ℝ := fun i x => |
| 367 | referenceP ((F j).lam i) ((F j).u i) ((F j).L i) ((F j).L i * (χ i x).2) |
| 368 | |
| 369 | noncomputable def primaryVelocity (F : Fin 2 → PhaseConstruction U) |
| 370 | (pref : Fin 2 → ι → ℝ) (χ : ι → D → PhaseCalculus.Slow × ℝ) (ε : ι → ℝ) |
| 371 | (T : ι → D → SmoothCovariance.Vec2) (mask : ι → D → ℝ) (j : Fin 2) : |
| 372 | ι → D → ProblemStatement.Space := fun i x => |
| 373 | PartitionedCovariance.amplitude (ε i) (mask i x) (pulseMatrix F pref χ i x) (T i x) j • |
| 374 | pulseVector F χ j i x |
| 375 | |
| 376 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 377 | theorem primaryVelocity_mask_mul (F : Fin 2 → PhaseConstruction U) |
| 378 | (pref : Fin 2 → ι → ℝ) (χ : ι → D → PhaseCalculus.Slow × ℝ) (ε : ι → ℝ) |
| 379 | (T : ι → D → SmoothCovariance.Vec2) (mask κ : ι → D → ℝ) (j : Fin 2) (i : ι) (x : D) : |
| 380 | primaryVelocity F pref χ ε T (fun i x => κ i x * mask i x) j i x = |
| 381 | κ i x • primaryVelocity F pref χ ε T mask j i x := by |
| 382 | simp only [primaryVelocity, PartitionedCovariance.amplitude, smul_smul] |
| 383 | congr 1 |
| 384 | ring |
| 385 | |
| 386 | theorem primaryVelocity_complexify {U : Domain ℕ PhaseCalculus.Slow} |
| 387 | (s : StripData D) (F : Fin 2 → PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 388 | (χ : ℕ → D → PhaseCalculus.Slow × ℝ) (T : ℕ → D → SmoothCovariance.Vec2) |
| 389 | (mask : ℕ → D → ℝ) (j : Fin 2) (n : ℕ) (x : D) : |
| 390 | CurlClassBounds.complexify (primaryVelocity F pref χ s.epsilon T mask j n x) = |
| 391 | PrimaryPulseBounds.uncutPrimaryWave s pref (fun j => (F j).frame) |
| 392 | (fun j => (F j).lam) (fun j => (F j).u) (fun j => (F j).L) χ T mask j n x := by |
| 393 | simp only [primaryVelocity, map_smul, PrimaryPulseBounds.uncutPrimaryWave, |
| 394 | primaryCoefficient, chartCovariance, pulseMatrix, pulseVector] |
| 395 | |
| 396 | theorem pulseMatrix_jets (F : Fin 2 → PhaseConstruction U) |
| 397 | (pref : Fin 2 → ι → ℝ) (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 398 | (hscale : ∀ i, U.scale i = V.scale i) |
| 399 | (hχ : PolynomialJets V.toDomain χ) |
| 400 | (hmap : ∀ i x, x ∈ V.carrier i → (χ i x).1 ∈ U.carrier i) |
| 401 | (hpref : ∀ j, PolynomialJets U (fun i _ => pref j i)) (j k : Fin 2) : |
| 402 | PolynomialJets V.toDomain (fun i x => pulseMatrix F pref χ i x j k) := by |
| 403 | exact ((EnvelopeJets.of_polynomial (primaryCovariance_entry_polynomial U pref |
| 404 | (fun j => (F j).frame) (fun j => (F j).lam) (fun j => (F j).u) (fun j => (F j).L) |
| 405 | hpref (fun j => (F j).pulse_jets) (fun j => (F j).lam_pos) |
| 406 | (fun j => (F j).u_pos) (fun j => (F j).L_pos) j k)).comp |
| 407 | (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hscale hmap).to_polynomial |
| 408 | (fun _ _ _ => le_rfl) |
| 409 | |
| 410 | theorem pulseVector_jets (F : Fin 2 → PhaseConstruction U) |
| 411 | (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 412 | (hscale : ∀ i, U.scale i = V.scale i) |
| 413 | (hχ : PolynomialJets V.toDomain χ) |
| 414 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) |
| 415 | (j : Fin 2) : NativeJets V (pulseEnvelope F χ j) (pulseVector F χ j) := |
| 416 | NativeJets.of_envelope ((F j).pulse_jets.comp hχ hscale hmap) |
| 417 | |
| 418 | theorem sqrt_scale_jets (V : JetDomain ι D) : |
| 419 | PolynomialJets V.toDomain (fun i _ => Real.sqrt (V.scale i)) := by |
| 420 | apply PolynomialJets.const (C := 1) (m := 1) _ le_rfl |
| 421 | intro i |
| 422 | rw [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), one_mul, pow_one] |
| 423 | have h := V.one_le_scale i |
| 424 | have hn := Real.sqrt_nonneg (V.scale i) |
| 425 | have hs := Real.sq_sqrt (zero_le_one.trans h) |
| 426 | nlinarith |
| 427 | |
| 428 | /-- The native primary is the actual homogeneous Volterra pulse, scaled |
| 429 | by the actual Cramer square root and physical square-root epsilon factor. -/ |
| 430 | theorem primaryVelocity_jets (F : Fin 2 → PhaseConstruction U) |
| 431 | (pref : Fin 2 → ι → ℝ) (χ : ι → D → PhaseCalculus.Slow × ℝ) (ε : ι → ℝ) |
| 432 | (T : ι → D → SmoothCovariance.Vec2) (mask : ι → D → ℝ) (ζ : ι → D → ℝ) |
| 433 | (hscale : ∀ i, U.scale i = V.scale i) |
| 434 | (hχ : PolynomialJets V.toDomain χ) |
| 435 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) |
| 436 | (hpref : ∀ j, PolynomialJets U (fun i _ => pref j i)) |
| 437 | (hT : ∀ k, NativeJets V ζ (fun i x => T i x k)) |
| 438 | (hm : PolynomialJets V.toDomain mask) |
| 439 | (hζ : ∀ i x, x ∈ V.carrier i → 0 < ζ i x) |
| 440 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 441 | (hzero : ∀ i x, x ∈ V.carrier i → |
| 442 | PrimaryCovarianceBounds.ZeroOrderBounds (Real.sqrt (V.scale i)) b M c (ζ i x) |
| 443 | (pulseMatrix F pref χ i x) (T i x)) (j : Fin 2) : |
| 444 | NativeJets V (fun i x => Real.sqrt (ε i) * (Real.sqrt (ζ i x) * pulseEnvelope F χ j i x)) |
| 445 | (primaryVelocity F pref χ ε T mask j) := by |
| 446 | have hr := sqrt_scale_jets V |
| 447 | have hrne (i : ι) : Real.sqrt (V.scale i) ≠ 0 := |
| 448 | (Real.sqrt_pos.mpr (zero_lt_one.trans_le (V.one_le_scale i))).ne' |
| 449 | have hH := pulseMatrix_jets F pref χ hscale hχ (fun i x hx => (hmap i x hx).1) hpref |
| 450 | have hw := covariance_amplitudes_jets hr hrne hH hT hb hM hc |
| 451 | (fun i x hx => (hzero i x hx).determinant) |
| 452 | (fun i x hx => (hzero i x hx).entries) hζ |
| 453 | (fun i x hx k => (hzero i x hx).weight_lower |
| 454 | (Real.one_le_sqrt.mpr (V.one_le_scale i)) hc.le (hζ i x hx).le k) j |
| 455 | have hu := (hw.smul (pulseVector_jets F χ hscale hχ hmap j)).polynomial_smul hm |
| 456 | apply (hu.band_smul (fun i => Real.sqrt (ε i)) (fun i => Real.sqrt_nonneg _)).congr |
| 457 | intro i x hx |
| 458 | simp only [primaryVelocity, PartitionedCovariance.amplitude, smul_smul] |
| 459 | congr 1 |
| 460 | ring |
| 461 | |
| 462 | end ConstructedPulse |
| 463 | |
| 464 | namespace NativeJets |
| 465 | |
| 466 | variable {V : JetDomain ι D} {w : ι → D → ℝ} {f : ι → D → E} |
| 467 | |
| 468 | theorem constant_weight (a : ι → E) (v : ι → ℝ) (hv : ∀ i, 0 ≤ v i) |
| 469 | {C : ℝ} (hC : 1 ≤ C) (p : ℕ) |
| 470 | (ha : ∀ i, ‖a i‖ ≤ C * V.scale i ^ p * v i) : |
| 471 | NativeJets V (fun i _ => v i) (fun i _ => a i) := by |
| 472 | refine ⟨fun i _ _ => hv i, fun _ => contDiffOn_const, fun _ => ⟨C, hC, p, ?_⟩⟩ |
| 473 | intro i x hx j _ |
| 474 | cases j with |
| 475 | | zero => |
| 476 | rw [norm_iteratedFDeriv_zero] |
| 477 | exact (ha i).trans (mul_le_mul_of_nonneg_right |
| 478 | (mul_le_mul_of_nonneg_left |
| 479 | (pow_le_pow_left₀ (zero_le_one.trans (V.one_le_scale i)) (V.scale_le_growth i x hx) p) |
| 480 | (zero_le_one.trans hC)) (hv i)) |
| 481 | | succ j => |
| 482 | rw [iteratedFDeriv_succ_const] |
| 483 | simp only [Pi.zero_apply, norm_zero] |
| 484 | exact mul_nonneg (mul_nonneg (zero_le_one.trans hC) |
| 485 | (pow_nonneg (zero_le_one.trans (V.one_le_growth i hx)) _)) (hv i) |
| 486 | |
| 487 | /-- A compactly contained outer cutoff extends the true native function. |
| 488 | Every cutoff derivative is included in the product estimate. -/ |
| 489 | theorem localize {V' : JetDomain ι D} {a : ι → D → ℝ} |
| 490 | (hf : NativeJets V w f) (ha : PolynomialJets V'.toDomain a) |
| 491 | (hscale : ∀ i, V'.scale i = V.scale i) |
| 492 | (hsub : ∀ i, V.carrier i ⊆ V'.carrier i) |
| 493 | (hgrowth : ∀ i x, x ∈ V.carrier i → V.growth i x = V'.growth i x) |
| 494 | (hw : ∀ i x, x ∈ V'.carrier i → 0 ≤ w i x) |
| 495 | (hsupport : ∀ i, tsupport (a i) ∩ V'.carrier i ⊆ V.carrier i) : |
| 496 | NativeJets V' w (fun i x => a i x • f i x) := by |
| 497 | have ha' : PolynomialJets V.toDomain a := by |
| 498 | refine ⟨fun i => (ha.smooth i).mono (hsub i), ?_⟩ |
| 499 | intro m |
| 500 | obtain ⟨C, hC, p, hb⟩ := ha.bound m |
| 501 | exact ⟨C, hC, p, fun i j hj x hx => by simpa only [hscale] using hb i j hj x (hsub i hx)⟩ |
| 502 | have hp := hf.polynomial_smul ha' |
| 503 | have hout (i : ι) (x : D) (hx : x ∈ V'.carrier i) (hn : x ∉ V.carrier i) : |
| 504 | (fun y => a i y • f i y) =ᶠ[𝓝 x] fun _ => (0 : E) := by |
| 505 | have ht : x ∉ tsupport (a i) := fun ht => hn (hsupport i ⟨ht, hx⟩) |
| 506 | filter_upwards [notMem_tsupport_iff_eventuallyEq.mp ht] with y hy |
| 507 | simp only [hy, Pi.zero_apply, zero_smul] |
| 508 | refine ⟨hw, ?_, ?_⟩ |
| 509 | · intro i x hx |
| 510 | by_cases hi : x ∈ V.carrier i |
| 511 | · exact ((hp.smooth i).contDiffAt ((V.isOpen i).mem_nhds hi)).contDiffWithinAt |
| 512 | · exact (contDiffAt_const.congr_of_eventuallyEq (hout i x hx hi)).contDiffWithinAt |
| 513 | · intro m |
| 514 | obtain ⟨C, hC, p, hb⟩ := hp.bound m |
| 515 | refine ⟨C, hC, p, ?_⟩ |
| 516 | intro i x hx j hj |
| 517 | by_cases hi : x ∈ V.carrier i |
| 518 | · simpa only [hgrowth i x hi] using hb i x hi j hj |
| 519 | · rw [PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq (hout i x hx hi) j, |
| 520 | iteratedFDeriv_fun_zero] |
| 521 | simp only [Pi.zero_apply, norm_zero] |
| 522 | exact mul_nonneg (mul_nonneg (zero_le_one.trans hC) |
| 523 | (pow_nonneg (zero_le_one.trans (V'.one_le_growth i hx)) _)) (hw i x hx) |
| 524 | |
| 525 | end NativeJets |
| 526 | |
| 527 | section PressureGain |
| 528 | |
| 529 | variable {V : JetDomain ι D} {w : ι → D → ℝ} |
| 530 | |
| 531 | /-- The literal projected pressure gains the inverse-carrier half power. |
| 532 | The source is homogeneous, so its pressure source term is exactly zero. -/ |
| 533 | theorem projectedPressure_jets |
| 534 | {N Ndot u : ι → D → ProblemStatement.Space} |
| 535 | {A : ι → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space} |
| 536 | (hN : PolynomialJets V.toDomain N) (hNdot : PolynomialJets V.toDomain Ndot) |
| 537 | (hA : PolynomialJets V.toDomain A) (hu : NativeJets V w u) |
| 538 | {b M : ℝ} (hb : 0 < b) |
| 539 | (hlo : ∀ i x, x ∈ V.carrier i → b ≤ ‖N i x‖) |
| 540 | (hhi : ∀ i x, x ∈ V.carrier i → ‖N i x‖ ≤ M) |
| 541 | (ε frequency : ι → ℝ) (hε : ∀ i, 0 < ε i) |
| 542 | {C : ℝ} (hC : 1 ≤ C) (p : ℕ) |
| 543 | (hfrequency : ∀ i, |1 / frequency i| ≤ C * V.scale i ^ p * Real.sqrt (ε i)) : |
| 544 | NativeJets V (fun i x => Real.sqrt (ε i) * w i x) |
| 545 | (fun i => ParticularWaveBounds.projectedPressure (frequency i) (N i) (Ndot i) |
| 546 | (u i) (fun x => A i x (u i x)) (fun _ => 0)) := by |
| 547 | have hpc := pressureCoefficient_jets hN hNdot hA hu hb hlo hhi |
| 548 | let L : ℝ →L[ℝ] ℂ := (ContinuousLinearMap.mul ℝ ℂ Complex.I).comp Complex.ofRealCLM |
| 549 | have hcomplex := hpc.map L |
| 550 | have hfreq : NativeJets V (fun i _ => Real.sqrt (ε i)) (fun i _ => 1 / frequency i) := |
| 551 | NativeJets.constant_weight _ _ (fun i => (Real.sqrt_pos.mpr (hε i)).le) hC p |
| 552 | (fun i => by simpa only [Real.norm_eq_abs] using hfrequency i) |
| 553 | apply (hfreq.smul hcomplex).congr |
| 554 | intro i x hx |
| 555 | simp [ParticularWaveBounds.projectedPressure, L, Complex.real_smul, div_eq_mul_inv, mul_comm] |
| 556 | |
| 557 | end PressureGain |
| 558 | |
| 559 | section NativePressure |
| 560 | |
| 561 | variable {V : JetDomain ι D} {U : Domain ι PhaseCalculus.Slow} |
| 562 | |
| 563 | /-- The actual phase is evaluated at the physical native time `L*tau`. -/ |
| 564 | noncomputable def phasePoint (p : PhaseConstruction U) |
| 565 | (χ : ι → D → PhaseCalculus.Slow × ℝ) : ι → D → PhaseCalculus.Slow × ℝ := |
| 566 | fun i x => ((χ i x).1, p.L i * (χ i x).2) |
| 567 | |
| 568 | noncomputable def phasePressure (p : PhaseConstruction U) |
| 569 | (χ : ι → D → PhaseCalculus.Slow × ℝ) (frequency : ι → ℝ) |
| 570 | (u : ι → D → ProblemStatement.Space) : ι → D → ℂ := fun i => |
| 571 | ParticularWaveBounds.projectedPressure (frequency i) |
| 572 | (fun x => p.phase.normal i (phasePoint p χ i x)) |
| 573 | (fun x => p.phase.velocity i (phasePoint p χ i x)) |
| 574 | (u i) |
| 575 | (fun x => PrimaryCopyBridge.baseOperator (p.phase.F i (χ i x).1) |
| 576 | (p.phase.shear i (phasePoint p χ i x)) (u i x)) |
| 577 | (fun _ => 0) |
| 578 | |
| 579 | theorem phasePoint_jets (p : PhaseConstruction U) |
| 580 | (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 581 | (hscale : ∀ i, U.scale i = V.scale i) (hχ : PolynomialJets V.toDomain χ) : |
| 582 | PolynomialJets V.toDomain (phasePoint p χ) := by |
| 583 | have hL : PolynomialJets V.toDomain (fun i _ => p.L i) := by |
| 584 | apply PolynomialJets.const (C := p.M) (m := 1) _ p.one_le_M |
| 585 | intro i |
| 586 | simpa only [Real.norm_eq_abs, pow_one, ← hscale] using |
| 587 | p.slot i (p.L i) (p.interval i ⟨p.L_pos i |>.le, le_rfl⟩) |
| 588 | exact (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)).pair |
| 589 | (hL.mul (hχ.clm (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow ℝ))) |
| 590 | |
| 591 | omit [NormedSpace ℝ D] in |
| 592 | theorem phasePoint_maps (p : PhaseConstruction U) |
| 593 | (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 594 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) : |
| 595 | ∀ i x, x ∈ V.carrier i → phasePoint p χ i x ∈ (U.slot p.V p.openV).carrier i := by |
| 596 | intro i x hx |
| 597 | refine ⟨(hmap i x hx).1, p.interval i ?_⟩ |
| 598 | have ht := (hmap i x hx).2 |
| 599 | exact ⟨mul_nonneg (p.L_pos i).le ht.1.le, |
| 600 | (mul_le_mul_of_nonneg_left ht.2.le (p.L_pos i).le).trans_eq (mul_one _)⟩ |
| 601 | |
| 602 | /-- Phase-normal, normal-motion and shear estimates all come from the |
| 603 | same base and phase construction as the true homogeneous pulse. -/ |
| 604 | theorem phasePressure_jets (p : PhaseConstruction U) |
| 605 | (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 606 | (hscale : ∀ i, U.scale i = V.scale i) (hχ : PolynomialJets V.toDomain χ) |
| 607 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) |
| 608 | {w : ι → D → ℝ} {u : ι → D → ProblemStatement.Space} |
| 609 | (hu : NativeJets V w u) |
| 610 | (ε frequency : ι → ℝ) (hε : ∀ i, 0 < ε i) |
| 611 | {C : ℝ} (hC : 1 ≤ C) (q : ℕ) |
| 612 | (hfrequency : ∀ i, |1 / frequency i| ≤ C * V.scale i ^ q * Real.sqrt (ε i)) : |
| 613 | NativeJets V (fun i x => Real.sqrt (ε i) * w i x) (phasePressure p χ frequency u) := by |
| 614 | have hp := phasePoint_jets p χ hscale hχ |
| 615 | have hm := phasePoint_maps p χ hmap |
| 616 | have hbase := p.phase.polynomial_jets U p.V p.openV p.baseF p.baseG |
| 617 | p.r_pos p.one_le_M p.constants p.epsilon_ne p.radius p.slot |
| 618 | have hN := ((EnvelopeJets.of_polynomial hbase.1).comp hp hscale hm).to_polynomial |
| 619 | (fun _ _ _ => le_rfl) |
| 620 | have hNd := ((EnvelopeJets.of_polynomial hbase.2.1).comp hp hscale hm).to_polynomial |
| 621 | (fun _ _ _ => le_rfl) |
| 622 | have hs := ((EnvelopeJets.of_polynomial hbase.2.2).comp hp hscale hm).to_polynomial |
| 623 | (fun _ _ _ => le_rfl) |
| 624 | have hF := ((EnvelopeJets.of_polynomial p.baseF).comp |
| 625 | (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hscale |
| 626 | (fun i x hx => (hmap i x hx).1)).to_polynomial (fun _ _ _ => le_rfl) |
| 627 | have hA := (hF.pair hs).clm PrimaryCopyBridge.baseOperatorFamily |
| 628 | exact projectedPressure_jets hN hNd hA hu p.b_pos |
| 629 | (fun i x hx => p.normal_range.1 i _ (hm i x hx)) |
| 630 | (fun i x hx => p.normal_range.2 i _ (hm i x hx)) ε frequency hε hC q hfrequency |
| 631 | |
| 632 | /-- The rounded carrier gives the claimed half-power without a frequency |
| 633 | bound supplied by the caller. -/ |
| 634 | theorem phasePressure_carrier_jets (p : PhaseConstruction U) |
| 635 | (χ : ι → D → PhaseCalculus.Slow × ℝ) |
| 636 | (hscale : ∀ i, U.scale i = V.scale i) (hχ : PolynomialJets V.toDomain χ) |
| 637 | (hmap : ∀ i x, x ∈ V.carrier i → χ i x ∈ U.carrier i ×ˢ Ioo (0 : ℝ) 1) |
| 638 | {w : ι → D → ℝ} {u : ι → D → ProblemStatement.Space} |
| 639 | (hu : NativeJets V w u) (h : ℝ) (hh : 0 ≤ h) (band : ι → ℕ) : |
| 640 | NativeJets V (fun i x => Real.sqrt (ChartScales.epsilon h (band i)) * w i x) |
| 641 | (phasePressure p χ (fun i => (ChartScales.carrier h (band i) : ℝ)) u) := by |
| 642 | apply phasePressure_jets p χ hscale hχ hmap hu |
| 643 | (fun i => ChartScales.epsilon h (band i)) _ (fun i => ChartScales.epsilon_pos h (band i)) |
| 644 | (C := 1) le_rfl 0 |
| 645 | intro i |
| 646 | rw [pow_zero, mul_one, one_mul, abs_of_nonneg (by positivity : 0 ≤ 1 / (ChartScales.carrier h (band i) : ℝ))] |
| 647 | exact (ChartScales.carrier_inv_bounds h hh (band i)).2 |
| 648 | |
| 649 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 650 | theorem phasePressure_smul (p : PhaseConstruction U) |
| 651 | (χ : ι → D → PhaseCalculus.Slow × ℝ) (frequency : ι → ℝ) |
| 652 | (a : ι → D → ℝ) (u : ι → D → ProblemStatement.Space) (i : ι) (x : D) : |
| 653 | phasePressure p χ frequency (fun i x => a i x • u i x) i x = |
| 654 | a i x • phasePressure p χ frequency u i x := by |
| 655 | simp only [phasePressure, ParticularWaveBounds.projectedPressure, |
| 656 | TangentProjection.pressureCoefficient, map_smul, real_inner_smul_right, |
| 657 | inner_zero_right, add_zero, Complex.ofReal_div, Complex.ofReal_sub, |
| 658 | Complex.ofReal_mul, Complex.real_smul] |
| 659 | ring |
| 660 | |
| 661 | end NativePressure |
| 662 | |
| 663 | /-! ### The actual outer slot cutoff -/ |
| 664 | |
| 665 | noncomputable def outerBump : ContDiffBump (1 / 2 : ℝ) where |
| 666 | rIn := 3 / 8 |
| 667 | rOut := 5 / 12 |
| 668 | rIn_pos := by norm_num |
| 669 | rIn_lt_rOut := by norm_num |
| 670 | |
| 671 | noncomputable def outerCutoff : ℝ → ℝ := outerBump |
| 672 | |
| 673 | theorem outerCutoff_smooth : ContDiff ℝ ∞ outerCutoff := outerBump.contDiff |
| 674 | |
| 675 | theorem outerCutoff_support : tsupport outerCutoff ⊆ Icc (1 / 12 : ℝ) (11 / 12) := by |
| 676 | rw [show tsupport outerCutoff = Metric.closedBall (1 / 2 : ℝ) (5 / 12) from outerBump.tsupport_eq] |
| 677 | intro t ht |
| 678 | have h : |t - 1 / 2| ≤ 5 / 12 := by simpa only [Metric.mem_closedBall, Real.dist_eq] using ht |
| 679 | rw [abs_le] at h |
| 680 | constructor <;> linarith [h.1, h.2] |
| 681 | |
| 682 | theorem outerCutoff_one {t : ℝ} (ht : |t - 1 / 2| ≤ 1 / 3) : outerCutoff t = 1 := by |
| 683 | apply outerBump.one_of_mem_closedBall |
| 684 | change dist t (1 / 2) ≤ 3 / 8 |
| 685 | rw [Real.dist_eq] |
| 686 | linarith |
| 687 | |
| 688 | theorem profile_mul_outerCutoff (t : ℝ) : |
| 689 | GaussianTailFlat.profile t * outerCutoff t = GaussianTailFlat.profile t := by |
| 690 | by_cases h : |t - 1 / 2| ≤ 1 / 3 |
| 691 | · rw [outerCutoff_one h, mul_one] |
| 692 | · rw [GaussianTailFlat.profile_zero (le_of_not_ge h), zero_mul] |
| 693 | |
| 694 | theorem outerCutoff_jet_bounded (m : ℕ) : |
| 695 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, ‖iteratedFDeriv ℝ m outerCutoff t‖ ≤ C := by |
| 696 | have hs := outerBump.hasCompactSupport.iteratedFDeriv (𝕜 := ℝ) m |
| 697 | obtain ⟨C, hC⟩ := hs.exists_bound_of_continuous |
| 698 | (outerCutoff_smooth.continuous_iteratedFDeriv (nat_le_infty m)) |
| 699 | exact ⟨max C 0, le_max_right _ _, fun t => (hC t).trans (le_max_left _ _)⟩ |
| 700 | |
| 701 | theorem affine_profile_jets (U : Domain ι D) (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) |
| 702 | (hjets : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, ‖iteratedFDeriv ℝ m f t‖ ≤ C) |
| 703 | (L : ι → D →L[ℝ] ℝ) (c : ι → ℝ) {K : ℝ} (hK : 1 ≤ K) (q : ℕ) |
| 704 | (hL : ∀ i, ‖L i‖ ≤ K * U.scale i ^ q) : |
| 705 | PolynomialJets U (fun i x => f (L i x + c i)) := by |
| 706 | refine ⟨fun i => (hf.comp ((L i).contDiff.add contDiff_const)).contDiffOn, ?_⟩ |
| 707 | intro m |
| 708 | obtain ⟨C, hC, hb⟩ := GaussianTailFlat.finite_jet_bounds hjets m |
| 709 | refine ⟨(C + 1) * K ^ m, one_le_mul_of_one_le_of_one_le (by linarith) (one_le_pow₀ hK), q * m, ?_⟩ |
| 710 | intro i j hj x hx |
| 711 | have hSK : 1 ≤ K * U.scale i ^ q := |
| 712 | one_le_mul_of_one_le_of_one_le hK (one_le_pow₀ (U.one_le_scale i)) |
| 713 | calc |
| 714 | _ ≤ ‖iteratedFDeriv ℝ j f (L i x + c i)‖ * ‖L i‖ ^ j := |
| 715 | norm_jet_comp_affine isOpen_univ hf.contDiffOn (L i) (c i) (mem_univ _) j |
| 716 | _ ≤ (C + 1) * (K * U.scale i ^ q) ^ m := |
| 717 | mul_le_mul ((hb j hj _).trans (by linarith)) |
| 718 | ((pow_le_pow_left₀ (norm_nonneg _) (hL i) j).trans (pow_le_pow_right₀ hSK hj)) |
| 719 | (by positivity) (by linarith) |
| 720 | _ = _ := by rw [mul_pow, ← pow_mul]; ring |
| 721 | |
| 722 | theorem outerCutoff_affine_jets (U : Domain ι D) (L : ι → D →L[ℝ] ℝ) |
| 723 | (c : ι → ℝ) {K : ℝ} (hK : 1 ≤ K) (q : ℕ) |
| 724 | (hL : ∀ i, ‖L i‖ ≤ K * U.scale i ^ q) : |
| 725 | PolynomialJets U (fun i x => outerCutoff (L i x + c i)) := |
| 726 | affine_profile_jets U outerCutoff outerCutoff_smooth outerCutoff_jet_bounded L c hK q hL |
| 727 | |
| 728 | theorem gaussianCutoff_affine_jets (U : Domain ι D) (L : ι → D →L[ℝ] ℝ) |
| 729 | (c : ι → ℝ) {K : ℝ} (hK : 1 ≤ K) (q : ℕ) |
| 730 | (hL : ∀ i, ‖L i‖ ≤ K * U.scale i ^ q) : |
| 731 | PolynomialJets U (fun i x => GaussianTailFlat.profile (L i x + c i)) := |
| 732 | affine_profile_jets U GaussianTailFlat.profile GaussianTailFlat.profile_contDiff |
| 733 | GaussianTailFlat.profile_jet_bounded L c hK q hL |
| 734 | |
| 735 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 736 | /-- The outer extension never inserts a second Gaussian cutoff. -/ |
| 737 | theorem gaussian_outer_primary (u : D → E) (τ : D → ℝ) : |
| 738 | (fun x => GaussianTailFlat.profile (τ x) • (outerCutoff (τ x) • u x)) = |
| 739 | (fun x => GaussianTailFlat.profile (τ x) • u x) := by |
| 740 | funext x |
| 741 | rw [smul_smul, profile_mul_outerCutoff] |
| 742 | |
| 743 | theorem outerCutoff_affine_support (L : D →L[ℝ] ℝ) (c : ℝ) : |
| 744 | tsupport (fun x => outerCutoff (L x + c)) ⊆ {x | L x + c ∈ Ioo (0 : ℝ) 1} := by |
| 745 | have hs : tsupport (fun x => outerCutoff (L x + c)) ⊆ |
| 746 | {x | L x + c ∈ Icc (1 / 12 : ℝ) (11 / 12)} := by |
| 747 | apply closure_minimal _ (isClosed_Icc.preimage (L.continuous.add continuous_const)) |
| 748 | intro x hx |
| 749 | exact outerCutoff_support (subset_tsupport outerCutoff hx) |
| 750 | intro x hx |
| 751 | have h := hs hx |
| 752 | constructor <;> linarith [h.1, h.2] |
| 753 | |
| 754 | /-- The actual outer cutoff permits a larger native domain while retaining |
| 755 | the uncut fundamental's Gaussian envelope and flat weight. -/ |
| 756 | theorem outer_localized_jets {V V' : JetDomain ι D} {w : ι → D → ℝ} {f : ι → D → E} |
| 757 | (hf : NativeJets V w f) (L : ι → D →L[ℝ] ℝ) (c : ι → ℝ) |
| 758 | {K : ℝ} (hK : 1 ≤ K) (q : ℕ) (hL : ∀ i, ‖L i‖ ≤ K * V'.scale i ^ q) |
| 759 | (hscale : ∀ i, V'.scale i = V.scale i) |
| 760 | (hsub : ∀ i, V.carrier i ⊆ V'.carrier i) |
| 761 | (hgrowth : ∀ i x, x ∈ V.carrier i → V.growth i x = V'.growth i x) |
| 762 | (hinside : ∀ i x, x ∈ V'.carrier i → L i x + c i ∈ Ioo (0 : ℝ) 1 → x ∈ V.carrier i) |
| 763 | (hw : ∀ i x, x ∈ V'.carrier i → 0 ≤ w i x) : |
| 764 | NativeJets V' w (fun i x => outerCutoff (L i x + c i) • f i x) := by |
| 765 | apply hf.localize (outerCutoff_affine_jets V'.toDomain L c hK q hL) hscale hsub hgrowth hw |
| 766 | intro i x hx |
| 767 | exact hinside i x hx.2 (outerCutoff_affine_support (L i) (c i) hx.1) |
| 768 | |
| 769 | /-! ### Transfer to the actual copy coordinates -/ |
| 770 | |
| 771 | section Copies |
| 772 | |
| 773 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 774 | {Λ I : Type*} {V : JetDomain ι D} {w : ι → D → ℝ} {f : ι → D → E} |
| 775 | |
| 776 | noncomputable def affineCopy (f : ι → D → E) (index : Λ → ℕ → ι) |
| 777 | (L : Λ → ℕ → I → X →L[ℝ] D) (c : Λ → ℕ → I → D) : Λ → ℕ → I → X → E := |
| 778 | fun l n i x => f (index l n) (L l n i x + c l n i) |
| 779 | |
| 780 | /-- The copy translation is arbitrary. Only the linear part's uniform |
| 781 | polynomial size matters, so the constants precede the lattice index. -/ |
| 782 | theorem NativeJets.copy_localJets (hf : NativeJets V w f) |
| 783 | (s : StripData X) (W : Λ → ℕ → X → ℝ) (α : ℝ) |
| 784 | (index : Λ → ℕ → ι) (L : Λ → ℕ → I → X →L[ℝ] D) (c : Λ → ℕ → I → D) |
| 785 | (K : Λ → ℕ → I → Set X) |
| 786 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 787 | (hmap : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 788 | L l n i x + c l n i ∈ V.carrier (index l n)) |
| 789 | {A B : ℝ} (hA : 1 ≤ A) (hB : 1 ≤ B) (a b : ℕ) |
| 790 | (hgrowth : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 791 | V.growth (index l n) (L l n i x + c l n i) ≤ A * s.growth n x ^ a) |
| 792 | (hlinear : ∀ l n i, ‖L l n i‖ ≤ B * s.slow n ^ b) |
| 793 | (hweight : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → |
| 794 | w (index l n) (L l n i x + c l n i) ≤ s.epsilon n ^ α * W l n x) : |
| 795 | PeriodizedWaveBounds.UniformLocalJets s W α K (affineCopy f index L c) := by |
| 796 | refine ⟨?_, ?_⟩ |
| 797 | · intro l n i x hx hk |
| 798 | exact ((hf.smooth (index l n)).contDiffAt |
| 799 | ((V.isOpen (index l n)).mem_nhds (hmap l n i x hx hk))).comp x |
| 800 | (((L l n i).contDiff.add contDiff_const).contDiffAt) |
| 801 | · intro m |
| 802 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 803 | refine ⟨C * A ^ p * B ^ m, by positivity, a * p + b * m, ?_⟩ |
| 804 | intro l n i x hx hk j hj |
| 805 | have hG := s.one_le_growth n x |
| 806 | have hW0 := hW l n x hx |
| 807 | have heps := (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le |
| 808 | have ht := hmap l n i x hx hk |
| 809 | have hGN := V.one_le_growth (index l n) ht |
| 810 | have hBs : 1 ≤ B * s.slow n ^ b := |
| 811 | one_le_mul_of_one_le_of_one_le hB (one_le_pow₀ (s.one_le_slow n)) |
| 812 | have hL : ‖L l n i‖ ^ j ≤ B ^ m * s.growth n x ^ (b * m) := by |
| 813 | calc |
| 814 | _ ≤ (B * s.slow n ^ b) ^ m := |
| 815 | (pow_le_pow_left₀ (norm_nonneg _) (hlinear l n i) j).trans (pow_le_pow_right₀ hBs hj) |
| 816 | _ ≤ (B * s.growth n x ^ b) ^ m := by |
| 817 | apply pow_le_pow_left₀ (zero_le_one.trans hBs) |
| 818 | exact mul_le_mul_of_nonneg_left |
| 819 | (pow_le_pow_left₀ (zero_le_one.trans (s.one_le_slow n)) (s.slow_le_growth n x) b) |
| 820 | (zero_le_one.trans hB) |
| 821 | _ = _ := by rw [mul_pow, ← pow_mul] |
| 822 | have hu := norm_jet_comp_affine (V.isOpen (index l n)) (hf.smooth (index l n)) |
| 823 | (L l n i) (c l n i) ht j |
| 824 | change ‖iteratedFDeriv ℝ j (fun x => f (index l n) (L l n i x + c l n i)) x‖ ≤ _ |
| 825 | calc |
| 826 | _ ≤ ‖iteratedFDeriv ℝ j (f (index l n)) (L l n i x + c l n i)‖ * ‖L l n i‖ ^ j := hu |
| 827 | _ ≤ (C * V.growth (index l n) (L l n i x + c l n i) ^ p * |
| 828 | w (index l n) (L l n i x + c l n i)) * (B ^ m * s.growth n x ^ (b * m)) := |
| 829 | mul_le_mul (hb _ _ ht j hj) hL (by positivity) |
| 830 | (mul_nonneg (mul_nonneg (zero_le_one.trans hC) (pow_nonneg (zero_le_one.trans hGN) _)) |
| 831 | (hf.nonneg _ _ ht)) |
| 832 | _ ≤ (C * (A * s.growth n x ^ a) ^ p * (s.epsilon n ^ α * W l n x)) * |
| 833 | (B ^ m * s.growth n x ^ (b * m)) := by |
| 834 | gcongr |
| 835 | · exact hf.nonneg _ _ ht |
| 836 | · exact hgrowth l n i x hx hk |
| 837 | · exact hweight l n i x hx hk |
| 838 | _ = majorant s (W l) α (C * A ^ p * B ^ m) (a * p + b * m) n x := by |
| 839 | rw [majorant, mul_pow, ← pow_mul, pow_add] |
| 840 | ring |
| 841 | |
| 842 | /-- A literal cutoff times the native function gives its own support |
| 843 | proof. Local finiteness and uniqueness then retain the very same uniform |
| 844 | constants in the actual infinite copy sum. -/ |
| 845 | theorem NativeJets.localized_copy_sum_uniformClass (hf : NativeJets V w f) |
| 846 | (s : StripData X) (W : Λ → ℕ → X → ℝ) (α : ℝ) |
| 847 | (κ : ι → D → ℝ) (hκ : PolynomialJets V.toDomain κ) |
| 848 | (index : Λ → ℕ → ι) (L : Λ → ℕ → I → X →L[ℝ] D) (c : Λ → ℕ → I → D) |
| 849 | (K : Λ → PeriodizedWaveBounds.Cells X I) |
| 850 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 851 | (hcut : ∀ l n i x, κ (index l n) (L l n i x + c l n i) ≠ 0 → x ∈ (K l).carrier n i) |
| 852 | (hmap : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 853 | L l n i x + c l n i ∈ V.carrier (index l n)) |
| 854 | {A B : ℝ} (hA : 1 ≤ A) (hB : 1 ≤ B) (a b : ℕ) |
| 855 | (hgrowth : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 856 | V.growth (index l n) (L l n i x + c l n i) ≤ A * s.growth n x ^ a) |
| 857 | (hlinear : ∀ l n i, ‖L l n i‖ ≤ B * s.slow n ^ b) |
| 858 | (hweight : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 859 | w (index l n) (L l n i x + c l n i) ≤ s.epsilon n ^ α * W l n x) : |
| 860 | LabelSumBounds.UniformClass s W α |
| 861 | (fun l n => PeriodizedWaveBounds.copySum |
| 862 | (affineCopy (fun i x => κ i x • f i x) index L c l n)) := by |
| 863 | apply PeriodizedWaveBounds.copySum_uniformClass K hW |
| 864 | · intro l n i x hx |
| 865 | apply hcut l n i x |
| 866 | intro he |
| 867 | exact hx (by simp only [affineCopy, he, zero_smul]) |
| 868 | · exact (hf.polynomial_smul hκ).copy_localJets s W α index L c |
| 869 | (fun l => (K l).carrier) hW hmap hA hB a b hgrowth hlinear hweight |
| 870 | |
| 871 | /-- The explicit outer slot bump is included in the differentiated |
| 872 | cutoff. This endpoint assumes support only of the scalar cutoffs. -/ |
| 873 | theorem NativeJets.outer_copy_sum_uniformClass (hf : NativeJets V w f) |
| 874 | (s : StripData X) (W : Λ → ℕ → X → ℝ) (α : ℝ) |
| 875 | (κ : ι → D → ℝ) (hκ : PolynomialJets V.toDomain κ) |
| 876 | (τ : ι → D →L[ℝ] ℝ) (t0 : ι → ℝ) {H : ℝ} (hH : 1 ≤ H) (q : ℕ) |
| 877 | (hτ : ∀ i, ‖τ i‖ ≤ H * V.scale i ^ q) |
| 878 | (index : Λ → ℕ → ι) (L : Λ → ℕ → I → X →L[ℝ] D) (c : Λ → ℕ → I → D) |
| 879 | (K : Λ → PeriodizedWaveBounds.Cells X I) |
| 880 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 881 | (hcut : ∀ l n i x, κ (index l n) (L l n i x + c l n i) ≠ 0 → |
| 882 | outerCutoff (τ (index l n) (L l n i x + c l n i) + t0 (index l n)) ≠ 0 → |
| 883 | x ∈ (K l).carrier n i) |
| 884 | (hmap : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 885 | L l n i x + c l n i ∈ V.carrier (index l n)) |
| 886 | {A B : ℝ} (hA : 1 ≤ A) (hB : 1 ≤ B) (a b : ℕ) |
| 887 | (hgrowth : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 888 | V.growth (index l n) (L l n i x + c l n i) ≤ A * s.growth n x ^ a) |
| 889 | (hlinear : ∀ l n i, ‖L l n i‖ ≤ B * s.slow n ^ b) |
| 890 | (hweight : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → |
| 891 | w (index l n) (L l n i x + c l n i) ≤ s.epsilon n ^ α * W l n x) : |
| 892 | LabelSumBounds.UniformClass s W α |
| 893 | (fun l n => PeriodizedWaveBounds.copySum |
| 894 | (affineCopy (fun i x => (κ i x * outerCutoff (τ i x + t0 i)) • f i x) index L c l n)) := by |
| 895 | apply hf.localized_copy_sum_uniformClass s W α |
| 896 | (fun i x => κ i x * outerCutoff (τ i x + t0 i)) |
| 897 | (hκ.mul (outerCutoff_affine_jets V.toDomain τ t0 hH q hτ)) index L c K hW |
| 898 | _ hmap hA hB a b hgrowth hlinear hweight |
| 899 | intro l n i x hx |
| 900 | exact hcut l n i x (mul_ne_zero_iff.mp hx).1 (mul_ne_zero_iff.mp hx).2 |
| 901 | |
| 902 | end Copies |
| 903 | |
| 904 | namespace NativeJets |
| 905 | |
| 906 | variable {V : JetDomain ι D} {w : ι → D → ℝ} {f : ι → D → E} |
| 907 | |
| 908 | /-- Order-by-order bounds give one bound for each finite jet, with the |
| 909 | constant still preceding the native label. -/ |
| 910 | theorem of_order (hw : ∀ i x, x ∈ V.carrier i → 0 ≤ w i x) |
| 911 | (hs : ∀ i, ContDiffOn ℝ ∞ (f i) (V.carrier i)) |
| 912 | (hb : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ i x, x ∈ V.carrier i → |
| 913 | ‖iteratedFDeriv ℝ m (f i) x‖ ≤ C * V.growth i x ^ p * w i x) : |
| 914 | NativeJets V w f := by |
| 915 | refine ⟨hw, hs, ?_⟩ |
| 916 | intro m |
| 917 | induction m with |
| 918 | | zero => |
| 919 | obtain ⟨C, hC, p, hp⟩ := hb 0 |
| 920 | refine ⟨C + 1, by linarith, p, ?_⟩ |
| 921 | intro i x hx j hj |
| 922 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 923 | subst j |
| 924 | exact (hp i x hx).trans (by |
| 925 | apply mul_le_mul_of_nonneg_right _ (hw i x hx) |
| 926 | exact mul_le_mul_of_nonneg_right (by linarith) |
| 927 | (pow_nonneg (zero_le_one.trans (V.one_le_growth i hx)) p)) |
| 928 | | succ m ih => |
| 929 | obtain ⟨A, hA, p, ha⟩ := ih |
| 930 | obtain ⟨B, hB, q, hq⟩ := hb (m + 1) |
| 931 | refine ⟨A + B, by linarith, p + q, ?_⟩ |
| 932 | intro i x hx j hj |
| 933 | have hG := V.one_le_growth i hx |
| 934 | rcases Nat.lt_or_eq_of_le hj with hj | rfl |
| 935 | · exact (ha i x hx j (Nat.le_of_lt_succ hj)).trans (by |
| 936 | apply mul_le_mul_of_nonneg_right _ (hw i x hx) |
| 937 | exact mul_le_mul (by linarith) (pow_le_pow_right₀ hG (Nat.le_add_right p q)) |
| 938 | (pow_nonneg (zero_le_one.trans hG) p) (by linarith)) |
| 939 | · exact (hq i x hx).trans (by |
| 940 | apply mul_le_mul_of_nonneg_right _ (hw i x hx) |
| 941 | exact mul_le_mul (by linarith) (pow_le_pow_right₀ hG (Nat.le_add_left q p)) |
| 942 | (pow_nonneg (zero_le_one.trans hG) q) (by linarith)) |
| 943 | |
| 944 | /-- Genuine chain-rule estimates with point-dependent edge growth. -/ |
| 945 | theorem comp {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 946 | {U : JetDomain ι X} {v : ι → X → ℝ} {g : ι → X → E} |
| 947 | (hg : NativeJets U v g) {χ : ι → D → X} |
| 948 | (hχ : PolynomialJets V.toDomain χ) |
| 949 | (hmap : ∀ i, MapsTo (χ i) (V.carrier i) (U.carrier i)) |
| 950 | (hG : ∀ i x, x ∈ V.carrier i → U.growth i (χ i x) ≤ V.growth i x) : |
| 951 | NativeJets V (fun i x => v i (χ i x)) (fun i x => g i (χ i x)) := by |
| 952 | refine ⟨fun i x hx => hg.nonneg i _ (hmap i hx), |
| 953 | fun i => (hg.smooth i).comp (hχ.smooth i) (hmap i), ?_⟩ |
| 954 | intro m |
| 955 | obtain ⟨A, hA, p, ha⟩ := hg.bound m |
| 956 | obtain ⟨B, hB, q, hb⟩ := hχ.bound m |
| 957 | refine ⟨(m.factorial : ℝ) * A * B ^ m, ?_, p + q * m, ?_⟩ |
| 958 | · have hfac : (1 : ℝ) ≤ m.factorial := by exact_mod_cast Nat.factorial_pos m |
| 959 | exact one_le_mul_of_one_le_of_one_le (one_le_mul_of_one_le_of_one_le hfac hA) |
| 960 | (one_le_pow₀ hB) |
| 961 | intro i x hx j hj |
| 962 | have hgrowth := V.one_le_growth i hx |
| 963 | have hCG : 1 ≤ B * V.growth i x ^ q := |
| 964 | one_le_mul_of_one_le_of_one_le hB (one_le_pow₀ hgrowth) |
| 965 | have hw := hg.nonneg i (χ i x) (hmap i hx) |
| 966 | have h := norm_iteratedFDerivWithin_comp_le (hg.smooth i) (hχ.smooth i) |
| 967 | (nat_le_infty j) (U.isOpen i).uniqueDiffOn (V.isOpen i).uniqueDiffOn (hmap i) hx |
| 968 | (C := A * V.growth i x ^ p * v i (χ i x)) (D := B * V.growth i x ^ q) |
| 969 | (fun a haj => ?_) (fun a ha1 haj => ?_) |
| 970 | · rw [iteratedFDerivWithin_of_isOpen j (V.isOpen i) hx] at h |
| 971 | change ‖iteratedFDeriv ℝ j (g i ∘ χ i) x‖ ≤ _ |
| 972 | have hA0 : 0 ≤ A * V.growth i x ^ p * v i (χ i x) := by positivity |
| 973 | calc |
| 974 | _ ≤ (j.factorial : ℝ) * (A * V.growth i x ^ p * v i (χ i x)) * |
| 975 | (B * V.growth i x ^ q) ^ j := h |
| 976 | _ ≤ (m.factorial : ℝ) * (A * V.growth i x ^ p * v i (χ i x)) * |
| 977 | (B * V.growth i x ^ q) ^ m := by |
| 978 | apply mul_le_mul |
| 979 | · exact mul_le_mul_of_nonneg_right (by exact_mod_cast Nat.factorial_le hj) hA0 |
| 980 | · exact pow_le_pow_right₀ hCG hj |
| 981 | · positivity |
| 982 | · positivity |
| 983 | _ = _ := by rw [mul_pow, pow_add, pow_mul]; ring |
| 984 | · rw [iteratedFDerivWithin_of_isOpen a (U.isOpen i) (hmap i hx)] |
| 985 | exact (ha i _ (hmap i hx) a (haj.trans hj)).trans (by |
| 986 | apply mul_le_mul_of_nonneg_right _ hw |
| 987 | apply mul_le_mul_of_nonneg_left _ (zero_le_one.trans hA) |
| 988 | exact pow_le_pow_left₀ (zero_le_one.trans (U.one_le_growth i (hmap i hx))) (hG i x hx) p) |
| 989 | · rw [iteratedFDerivWithin_of_isOpen a (V.isOpen i) hx] |
| 990 | exact (hb i a (haj.trans hj) x hx).trans ((by |
| 991 | apply mul_le_mul_of_nonneg_left _ (zero_le_one.trans hB) |
| 992 | exact pow_le_pow_left₀ (zero_le_one.trans (V.one_le_scale i)) |
| 993 | (V.scale_le_growth i x hx) q : B * V.scale i ^ q ≤ B * V.growth i x ^ q).trans |
| 994 | (by simpa using pow_le_pow_right₀ hCG ha1)) |
| 995 | |
| 996 | end NativeJets |
| 997 | |
| 998 | /-! ### The same-profile prepared construction -/ |
| 999 | |
| 1000 | section Prepared |
| 1001 | |
| 1002 | variable {F₀ : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F₀} |
| 1003 | (H₀ : NominalConeAssembly.Certificate W₀) {ld : ModulatedProfileAssembly.LoopData W₀} |
| 1004 | (v₀ : ModulatedProfileAssembly.Witness ld) |
| 1005 | |
| 1006 | /-- The full open active annulus, retaining the inverse edge distance. -/ |
| 1007 | noncomputable def leadingDomain (W : NominalProfile.Witness F₀) (ι : Type*) : |
| 1008 | JetDomain ι SlowBorelBase.Inner where |
| 1009 | carrier := fun _ => Ioo (NominalConeAssembly.activeLeft W) |
| 1010 | (NominalConeAssembly.activeRight W) ×ˢ Ioo (-1 : ℝ) 1 |
| 1011 | isOpen := fun _ => isOpen_Ioo.prod isOpen_Ioo |
| 1012 | scale := fun _ => 1 |
| 1013 | one_le_scale := fun _ => le_rfl |
| 1014 | growth := fun _ x => max 1 (FinalSlowBase.edgeDistance W x)⁻¹ |
| 1015 | scale_le_growth := fun _ _ _ => le_max_left _ _ |
| 1016 | |
| 1017 | theorem leadingDomain_mem_annulus (i : ι) {x : SlowBorelBase.Inner} |
| 1018 | (hx : x ∈ (leadingDomain W₀ ι).carrier i) : x ∈ FinalSlowBase.annulus W₀ := |
| 1019 | ⟨hx.1, hx.2.1.le, hx.2.2.le⟩ |
| 1020 | |
| 1021 | /-- The native target estimate is derived from the actual constructed |
| 1022 | profile. The flat weight can approach zero at either edge. -/ |
| 1023 | theorem leadingStress_nativeJets (hcone : LeadingStressWeights.FullTrueCone v₀) : |
| 1024 | NativeJets (leadingDomain W₀ ι) (fun _ => FinalSlowBase.weight W₀) |
| 1025 | (fun _ => FinalSlowBase.leadingStress v₀) := by |
| 1026 | have hweight (i : ι) (x : SlowBorelBase.Inner) |
| 1027 | (hx : x ∈ (leadingDomain W₀ ι).carrier i) : 0 ≤ FinalSlowBase.weight W₀ x := by |
| 1028 | apply (ActiveAnnulusWeight.radialWeight_pos ?_).le |
| 1029 | have hm := leadingDomain_mem_annulus i hx |
| 1030 | rw [FinalSlowBase.annulus_eq] at hm |
| 1031 | exact hm.1 |
| 1032 | apply NativeJets.of_order hweight |
| 1033 | · intro i x hx |
| 1034 | exact (FinalSlowBase.leadingStress_smoothAt v₀ |
| 1035 | ((NominalConeAssembly.activeLeft_pos W₀).trans hx.1.1) |
| 1036 | ⟨hx.2.1.le, hx.2.2.le⟩).contDiffWithinAt |
| 1037 | · intro m |
| 1038 | obtain ⟨C, hC, p, hb⟩ := FinalSlowBase.leading_radial_jets v₀ hcone m |
| 1039 | refine ⟨C, hC.le, p, ?_⟩ |
| 1040 | intro i x hx |
| 1041 | have he := BaseResidual.activeDelta_bounds |
| 1042 | (show x ∈ BaseResidual.activeWindow (FinalSlowBase.logLeft W₀) |
| 1043 | (FinalSlowBase.logRight W₀) from by |
| 1044 | rw [← FinalSlowBase.annulus_eq] |
| 1045 | exact leadingDomain_mem_annulus i hx) |
| 1046 | calc |
| 1047 | _ ≤ C * FinalSlowBase.weight W₀ x * (FinalSlowBase.edgeDistance W₀ x)⁻¹ ^ p := |
| 1048 | hb x (leadingDomain_mem_annulus i hx) |
| 1049 | _ = C * (FinalSlowBase.edgeDistance W₀ x)⁻¹ ^ p * FinalSlowBase.weight W₀ x := by ring |
| 1050 | _ ≤ C * (leadingDomain W₀ ι).growth i x ^ p * FinalSlowBase.weight W₀ x := by |
| 1051 | apply mul_le_mul_of_nonneg_right _ (hweight i x hx) |
| 1052 | apply mul_le_mul_of_nonneg_left _ hC.le |
| 1053 | exact pow_le_pow_left₀ (inv_nonneg.mpr he.1.le) (le_max_right _ _) p |
| 1054 | |
| 1055 | /-- Actual normalized leading stress on a native slow domain, from only |
| 1056 | pointwise chart geometry and the inverse-edge growth comparison. -/ |
| 1057 | theorem actualTarget_jets (hcone : LeadingStressWeights.FullTrueCone v₀) |
| 1058 | (V : JetDomain ι PhaseCalculus.Slow) {r M qlo qhi : ℝ} |
| 1059 | (hr : 0 < r) (hqlo : 0 < qlo) |
| 1060 | (hgeom : BaseChartJets.GeometryBounds V.toDomain F₀.data.h r M qlo qhi |
| 1061 | (NominalConeAssembly.activeLeft W₀) (NominalConeAssembly.activeRight W₀)) |
| 1062 | (hedge : ∀ i p, p ∈ V.carrier i → |
| 1063 | (FinalSlowBase.edgeDistance W₀ (BaseChartJets.normalizedCoordinates F₀.data.h p).2)⁻¹ ≤ |
| 1064 | V.growth i p) : |
| 1065 | NativeJets V (fun _ => PrimaryTargetBounds.movingWeight W₀) |
| 1066 | (fun _ => PrimaryTargetBounds.actualTarget v₀) := by |
| 1067 | have hcoord := BaseChartJets.polynomial_of_unit |
| 1068 | (BaseChartJets.normalizedCoordinates_polynomial F₀.data.h_pos F₀.data.h_lt_half hqlo hgeom) |
| 1069 | have hinner := hcoord.clm (ContinuousLinearMap.snd ℝ ℝ SlowBorelBase.Inner) |
| 1070 | have hmap (i : ι) : MapsTo (fun p => (BaseChartJets.normalizedCoordinates F₀.data.h p).2) |
| 1071 | (V.carrier i) ((leadingDomain W₀ ι).carrier i) := by |
| 1072 | intro p hp |
| 1073 | exact ⟨hgeom.x_range i p hp, abs_lt.mp (BaseChartJets.normalizedCoordinates_eta |
| 1074 | F₀.data.h_pos F₀.data.h_lt_half (hgeom.time i p hp))⟩ |
| 1075 | have hlead := (leadingStress_nativeJets (ι := ι) v₀ hcone).comp hinner hmap |
| 1076 | (fun i p hp => max_le (V.one_le_growth i hp) (hedge i p hp)) |
| 1077 | have hplane := hlead.map MovingFrameODE.pairCLM |
| 1078 | have hq := hcoord.clm (ContinuousLinearMap.fst ℝ ℝ SlowBorelBase.Inner) |
| 1079 | have hpower : PolynomialJets V.toDomain (fun _ p => |
| 1080 | (BaseChartJets.normalizedCoordinates F₀.data.h p).1 ^ (-CoordinateAlgebra.A F₀.data.h - 1/2)) := by |
| 1081 | apply hq.compact_comp isOpen_Ioi |
| 1082 | (show ContDiffOn ℝ ∞ (fun x : ℝ => x ^ (-CoordinateAlgebra.A F₀.data.h - 1/2)) |
| 1083 | (Ioi 0) from fun x hx => (contDiffAt_id.rpow_const_of_ne hx.ne').contDiffWithinAt) |
| 1084 | isCompact_Icc (fun x hx => hqlo.trans_le hx.1) |
| 1085 | intro i p hp |
| 1086 | exact ⟨(hgeom.q_range i p hp).1.le, (hgeom.q_range i p hp).2.le⟩ |
| 1087 | have hactual : NativeJets V |
| 1088 | (fun _ p => FinalSlowBase.weight W₀ (BaseChartJets.normalizedCoordinates F₀.data.h p).2) |
| 1089 | (fun _ => PrimaryTargetBounds.actualTarget v₀) := by |
| 1090 | apply (hplane.polynomial_smul hpower).congr |
| 1091 | intro i p hp |
| 1092 | rfl |
| 1093 | refine ⟨fun i p hp => PrimaryTargetBounds.movingWeight_nonneg W₀ p, hactual.smooth, ?_⟩ |
| 1094 | intro m |
| 1095 | obtain ⟨C, hC, q, hb⟩ := hactual.bound m |
| 1096 | refine ⟨C, hC, q, ?_⟩ |
| 1097 | intro i p hp j hj |
| 1098 | rw [PrimaryTargetBounds.movingWeight_eq W₀ (hgeom.time i p hp) (hr.trans_le (hgeom.radius i p hp))] |
| 1099 | exact hb i p hp j hj |
| 1100 | |
| 1101 | noncomputable def preparedPrefactor (r0 : ℝ) (vr vt : TorusInverse.Plane) {N : ℕ} |
| 1102 | (_j : Fin 2) (L : PrimaryGeometryAssembly.Index W₀ N) : ℝ := |
| 1103 | PartitionedCovariance.nativePrefactor vr vt r0 * |
| 1104 | ChartScales.timeCoefficient F₀.data.h (BaseChartJets.cellBand L) * |
| 1105 | ChartScales.slotLength r0 F₀.data.h (BaseChartJets.cellBand L) |
| 1106 | |
| 1107 | theorem preparedPrefactor_eq (r0 : ℝ) (vr vt : TorusInverse.Plane) {N : ℕ} |
| 1108 | (j : Fin 2) (L : PrimaryGeometryAssembly.Index W₀ N) : |
| 1109 | preparedPrefactor r0 vr vt j L = PartitionedCovariance.nativePrefactor vr vt r0 * (2 * r0) := by |
| 1110 | unfold preparedPrefactor ChartScales.slotLength |
| 1111 | field_simp [(ChartScales.timeCoefficient_pos F₀.data.h (BaseChartJets.cellBand L)).ne'] |
| 1112 | |
| 1113 | theorem preparedPrefactor_jets (r0 : ℝ) (vr vt : TorusInverse.Plane) (N : ℕ) (j : Fin 2) : |
| 1114 | PolynomialJets (PrimaryGeometryAssembly.domain W₀ N) |
| 1115 | (fun L _ => preparedPrefactor r0 vr vt j L) := by |
| 1116 | simpa only [preparedPrefactor_eq] using |
| 1117 | (PolynomialJets.const_fixed (D := PrimaryGeometryAssembly.domain W₀ N) |
| 1118 | (PartitionedCovariance.nativePrefactor vr vt r0 * (2 * r0))) |
| 1119 | |
| 1120 | /-- The determinant, entry and inverse-weight constants are produced by |
| 1121 | the actual same-profile construction before the label and copy chart are |
| 1122 | chosen. The target is the literal leading stress of that same profile. -/ |
| 1123 | theorem exists_prepared_primary_jets |
| 1124 | (hcone : LeadingStressWeights.FullTrueCone v₀) (upper : ℝ) (B : ℕ) |
| 1125 | (r0 : ℝ) (hr0 : 0 < r0) |
| 1126 | (hbox : 2 * NominalConeAssembly.activeRight W₀ ≤ FinalSlowBase.boxRadius W₀ upper) |
| 1127 | (N0 : ℕ) (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : |
| 1128 | ∃ a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0, |
| 1129 | ∀ (V : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) D) |
| 1130 | (χ : PrimaryGeometryAssembly.Index W₀ a.N → D → PhaseCalculus.Slow × ℝ) |
| 1131 | (mask : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ), |
| 1132 | (∀ L, (PrimaryGeometryAssembly.domain W₀ a.N).scale L = V.scale L) → |
| 1133 | PolynomialJets V.toDomain χ → |
| 1134 | (∀ L x, x ∈ V.carrier L → |
| 1135 | χ L x ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L ×ˢ Ioo (0 : ℝ) 1) → |
| 1136 | (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ |
| 1137 | PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀)) → |
| 1138 | (∀ k, NativeJets V (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) |
| 1139 | (fun L x => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k)) → |
| 1140 | PolynomialJets V.toDomain mask → |
| 1141 | (∀ L x, x ∈ V.carrier L → 0 < PrimaryTargetBounds.movingWeight W₀ (χ L x).1) → |
| 1142 | ∀ j : Fin 2, |
| 1143 | NativeJets V |
| 1144 | (fun L x => Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * |
| 1145 | (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * |
| 1146 | pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x)) |
| 1147 | (primaryVelocity (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) |
| 1148 | (preparedPrefactor r0 vr vt) χ |
| 1149 | (fun L => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) |
| 1150 | (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask j) := by |
| 1151 | obtain ⟨a, dg, eb, il, hdg, heb, hil, hz⟩ := PrimaryTargetBounds.exists_constructed_bounds |
| 1152 | H₀ v₀ hcone upper B r0 hr0 hbox N0 vr vt hdet |
| 1153 | refine ⟨a, ?_⟩ |
| 1154 | intro V χ mask hscale hχ hmap hpositive hT hm hw j |
| 1155 | apply primaryVelocity_jets (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) |
| 1156 | (preparedPrefactor r0 vr vt) χ |
| 1157 | (fun L => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) |
| 1158 | (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask |
| 1159 | (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) |
| 1160 | hscale hχ hmap (fun j => preparedPrefactor_jets r0 vr vt a.N j) |
| 1161 | hT hm hw hdg heb hil _ j |
| 1162 | intro L x hx |
| 1163 | have h := hz L (χ L x).1 (hpositive L x hx) (hmap L x hx).1 |
| 1164 | have hsc : V.scale L = ChartScales.S (BaseChartJets.cellBand L) := (hscale L).symm |
| 1165 | simp only [hsc, pulseMatrix] at h ⊢ |
| 1166 | exact h |
| 1167 | |
| 1168 | /-- The final native primary estimate has no target-jet premise: the |
| 1169 | actual leading target is pulled back from its proved profile estimates. |
| 1170 | The remaining chart hypotheses are pointwise geometry and polynomial |
| 1171 | jets of the primitive coordinate map and scalar mask. -/ |
| 1172 | theorem exists_prepared_pair_jets |
| 1173 | (hcone : LeadingStressWeights.FullTrueCone v₀) (upper : ℝ) (B : ℕ) |
| 1174 | (r0 : ℝ) (hr0 : 0 < r0) |
| 1175 | (hbox : 2 * NominalConeAssembly.activeRight W₀ ≤ FinalSlowBase.boxRadius W₀ upper) |
| 1176 | (N0 : ℕ) (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : |
| 1177 | ∃ a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0, |
| 1178 | ∀ (V : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) D) |
| 1179 | (S : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) PhaseCalculus.Slow) |
| 1180 | (χ : PrimaryGeometryAssembly.Index W₀ a.N → D → PhaseCalculus.Slow × ℝ) |
| 1181 | (mask : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ) |
| 1182 | (r M qlo qhi : ℝ), |
| 1183 | (∀ L, (PrimaryGeometryAssembly.domain W₀ a.N).scale L = V.scale L) → |
| 1184 | PolynomialJets V.toDomain χ → |
| 1185 | (∀ L x, x ∈ V.carrier L → |
| 1186 | χ L x ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L ×ˢ Ioo (0 : ℝ) 1) → |
| 1187 | (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ |
| 1188 | PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀)) → |
| 1189 | (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ S.carrier L) → |
| 1190 | (∀ L x, x ∈ V.carrier L → S.growth L (χ L x).1 ≤ V.growth L x) → |
| 1191 | 0 < r → 0 < qlo → |
| 1192 | BaseChartJets.GeometryBounds S.toDomain F₀.data.h r M qlo qhi |
| 1193 | (NominalConeAssembly.activeLeft W₀) (NominalConeAssembly.activeRight W₀) → |
| 1194 | (∀ L p, p ∈ S.carrier L → |
| 1195 | (FinalSlowBase.edgeDistance W₀ (BaseChartJets.normalizedCoordinates F₀.data.h p).2)⁻¹ ≤ |
| 1196 | S.growth L p) → |
| 1197 | PolynomialJets V.toDomain mask → |
| 1198 | ∀ j : Fin 2, |
| 1199 | let ε := fun L : PrimaryGeometryAssembly.Index W₀ a.N => |
| 1200 | ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L) |
| 1201 | let F := PrimaryGeometryAssembly.construction H₀ v₀ a hr0 |
| 1202 | let u := primaryVelocity F (preparedPrefactor r0 vr vt) χ ε |
| 1203 | (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask j |
| 1204 | let w := fun L x => Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * |
| 1205 | pulseEnvelope F χ j L x |
| 1206 | NativeJets V (fun L x => Real.sqrt (ε L) * w L x) u ∧ |
| 1207 | NativeJets V (fun L x => ε L * w L x) |
| 1208 | (phasePressure (F j) χ |
| 1209 | (fun L => (ChartScales.carrier F₀.data.h (BaseChartJets.cellBand L) : ℝ)) u) := by |
| 1210 | obtain ⟨a, ha⟩ := exists_prepared_primary_jets (D := D) H₀ v₀ hcone upper B r0 hr0 hbox N0 vr vt hdet |
| 1211 | refine ⟨a, ?_⟩ |
| 1212 | intro V S χ mask r M qlo qhi hscale hχ hmap hpositive hS hgrowth hr hqlo hgeom hedge hmask j |
| 1213 | dsimp only |
| 1214 | have ht := (actualTarget_jets v₀ hcone S hr hqlo hgeom hedge).comp |
| 1215 | (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hS hgrowth |
| 1216 | have htarget (k : Fin 2) : |
| 1217 | NativeJets V (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) |
| 1218 | (fun L x => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) := |
| 1219 | ht.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) k) |
| 1220 | have hw (L : PrimaryGeometryAssembly.Index W₀ a.N) (x : D) (hx : x ∈ V.carrier L) : |
| 1221 | 0 < PrimaryTargetBounds.movingWeight W₀ (χ L x).1 := by |
| 1222 | have hs := hS L x hx |
| 1223 | rw [PrimaryTargetBounds.movingWeight_eq W₀ (hgeom.time L _ hs) |
| 1224 | (hr.trans_le (hgeom.radius L _ hs))] |
| 1225 | apply ActiveAnnulusWeight.radialWeight_pos |
| 1226 | simp only [FinalSlowBase.logLeft, FinalSlowBase.logRight, |
| 1227 | Real.exp_log (NominalConeAssembly.activeLeft_pos W₀), |
| 1228 | Real.exp_log (FinalSlowBase.terminal_pos W₀)] |
| 1229 | exact hgeom.x_range L _ hs |
| 1230 | have hu := ha V χ mask hscale hχ hmap hpositive htarget hmask hw j |
| 1231 | refine ⟨hu, ?_⟩ |
| 1232 | have hp := phasePressure_carrier_jets (PrimaryGeometryAssembly.construction H₀ v₀ a hr0 j) |
| 1233 | χ hscale hχ hmap hu F₀.data.h F₀.data.h_pos.le BaseChartJets.cellBand |
| 1234 | have he : (fun L x => Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * |
| 1235 | (Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * |
| 1236 | (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * |
| 1237 | pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x))) = |
| 1238 | (fun L x => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L) * |
| 1239 | (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * |
| 1240 | pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x)) := by |
| 1241 | funext L x |
| 1242 | rw [← mul_assoc, Real.mul_self_sqrt (ChartScales.epsilon_pos F₀.data.h _).le] |
| 1243 | rw [he] at hp |
| 1244 | exact hp |
| 1245 | |
| 1246 | end Prepared |
| 1247 | |
| 1248 | /-! ### Actual slow-mask jets and zero germs -/ |
| 1249 | |
| 1250 | noncomputable def positionCLM : PhaseCalculus.Slow →L[ℝ] SlotColoring.Position := |
| 1251 | LinearMap.toContinuousLinearMap { |
| 1252 | toFun := PrimaryRepresentatives.position |
| 1253 | map_add' := by intro x y; ext j; fin_cases j <;> rfl |
| 1254 | map_smul' := by intro c x; ext j; fin_cases j <;> rfl } |
| 1255 | |
| 1256 | theorem norm_positionCLM_le : ‖positionCLM‖ ≤ 1 := by |
| 1257 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 1258 | intro x |
| 1259 | rw [one_mul] |
| 1260 | apply (pi_norm_le_iff_of_nonneg (norm_nonneg x)).mpr |
| 1261 | intro j |
| 1262 | fin_cases j |
| 1263 | · exact norm_fst_le x |
| 1264 | · exact (norm_fst_le x.2).trans (norm_snd_le x) |
| 1265 | · exact (norm_snd_le x.2).trans (norm_snd_le x) |
| 1266 | |
| 1267 | /-- All derivatives of the actual squared-partition mask have uniform |
| 1268 | polynomial bounds, including every grid node. -/ |
| 1269 | theorem nativeMask_jets (U : Domain ι PhaseCalculus.Slow) |
| 1270 | (band : ι → ℕ) (grid : ι → SlotColoring.Grid) |
| 1271 | (hband : ∀ i, 1 ≤ band i) (hscale : ∀ i, U.scale i = ChartScales.S (band i)) : |
| 1272 | PolynomialJets U (fun i => PrimaryRepresentatives.nativeMask (band i) (grid i)) := by |
| 1273 | let V : JetDomain ι PhaseCalculus.Slow := { |
| 1274 | toDomain := U |
| 1275 | growth := fun i _ => U.scale i |
| 1276 | scale_le_growth := fun _ _ _ => le_rfl } |
| 1277 | have hb : NativeJets V (fun _ _ => 1) |
| 1278 | (fun i => PrimaryRepresentatives.nativeMask (band i) (grid i)) := by |
| 1279 | apply NativeJets.of_order (fun _ _ _ => zero_le_one) |
| 1280 | (fun i => (PrimaryRepresentatives.nativeMask_smooth (band i) (grid i)).contDiffOn) |
| 1281 | intro m |
| 1282 | obtain ⟨C, hC, hjet⟩ := SquaredPartition.slowMask_all_jet_bounds m |
| 1283 | refine ⟨C, hC.le, 3 * m, ?_⟩ |
| 1284 | intro i x hx |
| 1285 | calc |
| 1286 | _ ≤ ‖iteratedFDeriv ℝ m (SquaredPartition.slowMask (band i) (grid i)) |
| 1287 | (positionCLM x)‖ * ‖positionCLM‖ ^ m := |
| 1288 | norm_jet_comp_linear isOpen_univ (SquaredPartition.slowMask_smooth _ _).contDiffOn |
| 1289 | positionCLM (mem_univ _) m |
| 1290 | _ ≤ (C * ChartScales.S (band i) ^ (3 * m)) * 1 := |
| 1291 | mul_le_mul (hjet (band i) (hband i) (grid i) (positionCLM x)) |
| 1292 | (pow_le_one₀ (norm_nonneg _) norm_positionCLM_le) (by positivity) |
| 1293 | (mul_nonneg hC.le (pow_nonneg (ChartScales.S_pos (hband i)).le _)) |
| 1294 | _ = C * V.growth i x ^ (3 * m) * 1 := by simp only [V, hscale] |
| 1295 | refine ⟨hb.smooth, ?_⟩ |
| 1296 | intro m |
| 1297 | obtain ⟨C, hC, p, hp⟩ := hb.bound m |
| 1298 | exact ⟨C, hC, p, fun i j hj x hx => by simpa only [V, mul_one] using hp i x hx j hj⟩ |
| 1299 | |
| 1300 | theorem nativeMask_comp_jets (U : Domain ι D) |
| 1301 | (χ : ι → D → PhaseCalculus.Slow) (hχ : PolynomialJets U χ) |
| 1302 | (band : ι → ℕ) (grid : ι → SlotColoring.Grid) |
| 1303 | (hband : ∀ i, 1 ≤ band i) (hscale : ∀ i, U.scale i = ChartScales.S (band i)) : |
| 1304 | PolynomialJets U (fun i x => PrimaryRepresentatives.nativeMask (band i) (grid i) (χ i x)) := by |
| 1305 | let S : Domain ι PhaseCalculus.Slow := { |
| 1306 | carrier := fun _ => univ |
| 1307 | isOpen := fun _ => isOpen_univ |
| 1308 | scale := U.scale |
| 1309 | one_le_scale := U.one_le_scale } |
| 1310 | exact ((EnvelopeJets.of_polynomial (nativeMask_jets S band grid hband hscale)).comp |
| 1311 | hχ (fun _ => rfl) (fun _ _ _ => mem_univ _)).to_polynomial (fun _ _ _ => le_rfl) |
| 1312 | |
| 1313 | /-- Off the actual label's enlarged slow cell, its mask has a zero germ. |
| 1314 | This is the extension fact needed before applying whole-torus copy bounds. -/ |
| 1315 | theorem preparedMask_zero_germ {F₀ : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F₀} |
| 1316 | {N : ℕ} (L : PrimaryGeometryAssembly.Index W₀ N) {p : PhaseCalculus.Slow} |
| 1317 | (hT : 0 < p.2.2) (hout : p ∉ (PrimaryGeometryAssembly.domain W₀ N).carrier L) : |
| 1318 | PrimaryRepresentatives.nativeMask (PrimaryGeometryAssembly.label W₀ L).1 |
| 1319 | (PrimaryGeometryAssembly.label W₀ L).2 =ᶠ[𝓝 p] fun _ => 0 := by |
| 1320 | apply notMem_tsupport_iff_eventuallyEq.mp |
| 1321 | intro hs |
| 1322 | apply hout |
| 1323 | exact PrimaryGeometryAssembly.cellDomain_support L ⟨hs, hT⟩ |
| 1324 | |
| 1325 | /-- The actual slow mask and actual outer bump extend a native field to |
| 1326 | the whole larger chart. Off its own cell it is locally zero, including |
| 1327 | all slow-mask and slot-cutoff derivatives. -/ |
| 1328 | theorem NativeJets.prepared_mask_outer_localize |
| 1329 | {F₀ : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F₀} {N : ℕ} |
| 1330 | {V V' : JetDomain (PrimaryGeometryAssembly.Index W₀ N) D} |
| 1331 | {w : PrimaryGeometryAssembly.Index W₀ N → D → ℝ} |
| 1332 | {f : PrimaryGeometryAssembly.Index W₀ N → D → E} (hf : NativeJets V w f) |
| 1333 | (χ : PrimaryGeometryAssembly.Index W₀ N → D → PhaseCalculus.Slow) |
| 1334 | (hχ : PolynomialJets V'.toDomain χ) |
| 1335 | (hscaleBand : ∀ L, V'.scale L = ChartScales.S (PrimaryGeometryAssembly.label W₀ L).1) |
| 1336 | (hT : ∀ L x, x ∈ V'.carrier L → 0 < (χ L x).2.2) |
| 1337 | (τ : PrimaryGeometryAssembly.Index W₀ N → D →L[ℝ] ℝ) |
| 1338 | (t0 : PrimaryGeometryAssembly.Index W₀ N → ℝ) |
| 1339 | {K : ℝ} (hK : 1 ≤ K) (q : ℕ) (hτ : ∀ L, ‖τ L‖ ≤ K * V'.scale L ^ q) |
| 1340 | (hscale : ∀ L, V'.scale L = V.scale L) |
| 1341 | (hsub : ∀ L, V.carrier L ⊆ V'.carrier L) |
| 1342 | (hgrowth : ∀ L x, x ∈ V.carrier L → V.growth L x = V'.growth L x) |
| 1343 | (hinside : ∀ L x, x ∈ V'.carrier L → |
| 1344 | χ L x ∈ (PrimaryGeometryAssembly.domain W₀ N).carrier L → |
| 1345 | τ L x + t0 L ∈ Ioo (0 : ℝ) 1 → x ∈ V.carrier L) |
| 1346 | (hw : ∀ L x, x ∈ V'.carrier L → 0 ≤ w L x) : |
| 1347 | NativeJets V' w (fun L x => |
| 1348 | (PrimaryRepresentatives.nativeMask (PrimaryGeometryAssembly.label W₀ L).1 |
| 1349 | (PrimaryGeometryAssembly.label W₀ L).2 (χ L x) * outerCutoff (τ L x + t0 L)) • f L x) := by |
| 1350 | have hm := nativeMask_comp_jets V'.toDomain χ hχ |
| 1351 | (fun L => (PrimaryGeometryAssembly.label W₀ L).1) |
| 1352 | (fun L => (PrimaryGeometryAssembly.label W₀ L).2) |
| 1353 | (fun L => L.val.property.1) hscaleBand |
| 1354 | apply hf.localize (hm.mul (outerCutoff_affine_jets V'.toDomain τ t0 hK q hτ)) |
| 1355 | hscale hsub hgrowth hw |
| 1356 | intro L x hx |
| 1357 | apply hinside L x hx.2 |
| 1358 | · have hs := tsupport_mul_subset_left hx.1 |
| 1359 | by_contra hout |
| 1360 | have hz := preparedMask_zero_germ L (hT L x hx.2) hout |
| 1361 | have hz' := hz.comp_tendsto |
| 1362 | (((hχ.smooth L).contDiffAt ((V'.isOpen L).mem_nhds hx.2)).continuousAt) |
| 1363 | exact (notMem_tsupport_iff_eventuallyEq.mpr hz') hs |
| 1364 | · exact outerCutoff_affine_support (τ L) (t0 L) (tsupport_mul_subset_right hx.1) |
| 1365 | |
| 1366 | /-! ### The two orientations share one family of constants -/ |
| 1367 | |
| 1368 | noncomputable def signDomain (V : JetDomain ι D) : JetDomain (Fin 2 × ι) D where |
| 1369 | carrier i := V.carrier i.2 |
| 1370 | isOpen i := V.isOpen i.2 |
| 1371 | scale i := V.scale i.2 |
| 1372 | one_le_scale i := V.one_le_scale i.2 |
| 1373 | growth i := V.growth i.2 |
| 1374 | scale_le_growth i := V.scale_le_growth i.2 |
| 1375 | |
| 1376 | theorem NativeJets.both_signs {V : JetDomain ι D} |
| 1377 | {w : Fin 2 → ι → D → ℝ} {f : Fin 2 → ι → D → E} |
| 1378 | (hf : ∀ j, NativeJets V (w j) (f j)) : |
| 1379 | NativeJets (signDomain V) (fun i => w i.1 i.2) (fun i => f i.1 i.2) := by |
| 1380 | refine ⟨fun i => (hf i.1).nonneg i.2, fun i => (hf i.1).smooth i.2, ?_⟩ |
| 1381 | intro m |
| 1382 | obtain ⟨A, hA, p, ha⟩ := (hf 0).bound m |
| 1383 | obtain ⟨B, hB, q, hb⟩ := (hf 1).bound m |
| 1384 | refine ⟨A + B, by linarith, p + q, ?_⟩ |
| 1385 | intro i x hx k hk |
| 1386 | have hG := V.one_le_growth i.2 hx |
| 1387 | rcases i with ⟨j, i⟩ |
| 1388 | fin_cases j |
| 1389 | · exact (ha i x hx k hk).trans (mul_le_mul_of_nonneg_right |
| 1390 | (mul_le_mul (by linarith) (pow_le_pow_right₀ hG (Nat.le_add_right p q)) |
| 1391 | (pow_nonneg (zero_le_one.trans hG) p) (by linarith)) ((hf 0).nonneg i x hx)) |
| 1392 | · exact (hb i x hx k hk).trans (mul_le_mul_of_nonneg_right |
| 1393 | (mul_le_mul (by linarith) (pow_le_pow_right₀ hG (Nat.le_add_left q p)) |
| 1394 | (pow_nonneg (zero_le_one.trans hG) q) (by linarith)) ((hf 1).nonneg i x hx)) |
| 1395 | |
| 1396 | /-! ### The actual common-cover copy map -/ |
| 1397 | |
| 1398 | section NativeCopies |
| 1399 | |
| 1400 | open CommonCoverSolve TorusInverse |
| 1401 | |
| 1402 | variable {P H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1403 | [NormedAddCommGroup H] [NormedSpace ℝ H] {Λ : Type*} |
| 1404 | |
| 1405 | noncomputable def nativePointLinear (g : Geometry) : (P × TorusInverse.Plane) →L[ℝ] (P × TorusInverse.Plane) := |
| 1406 | (ContinuousLinearMap.fst ℝ P TorusInverse.Plane).prod |
| 1407 | (g.coordinateLinear.comp (ContinuousLinearMap.snd ℝ P TorusInverse.Plane)) |
| 1408 | |
| 1409 | theorem nativePoint_affine (g : Geometry) (k : Frequency) (x : P × TorusInverse.Plane) : |
| 1410 | ParticularWaveBounds.nativePoint g k x = |
| 1411 | nativePointLinear g x + ParticularWaveBounds.nativePoint g k 0 := by |
| 1412 | apply Prod.ext |
| 1413 | · simp [ParticularWaveBounds.nativePoint, nativePointLinear] |
| 1414 | · change g.coordinates k x.2 = g.coordinateLinear x.2 + g.coordinates k 0 |
| 1415 | rw [g.coordinates_eq_affine k x.2, add_comm] |
| 1416 | |
| 1417 | theorem norm_nativePointLinear_le (g : Geometry) : |
| 1418 | ‖nativePointLinear (P := P) g‖ ≤ CommonCoverClass.argumentCost g := by |
| 1419 | have hcost := CommonCoverClass.one_le_argumentCost g |
| 1420 | have hc : ‖g.coordinateLinear‖ ≤ CommonCoverClass.argumentCost g := by |
| 1421 | unfold CommonCoverClass.argumentCost |
| 1422 | have h : 0 ≤ ‖g.pointLinear‖ * (1 + ‖g.coordinateLinear‖) := by positivity |
| 1423 | linarith |
| 1424 | apply ContinuousLinearMap.opNorm_le_bound _ (zero_le_one.trans hcost) |
| 1425 | intro x |
| 1426 | change ‖(x.1, g.coordinateLinear x.2)‖ ≤ _ |
| 1427 | rw [Prod.norm_def] |
| 1428 | apply max_le |
| 1429 | · exact (norm_fst_le x).trans (le_mul_of_one_le_left (norm_nonneg x) hcost) |
| 1430 | · exact (g.coordinateLinear.le_opNorm x.2).trans |
| 1431 | (mul_le_mul hc (norm_snd_le x) (norm_nonneg _) (zero_le_one.trans hcost)) |
| 1432 | |
| 1433 | /-- For the actual band basis, the affine derivative cost is uniform in |
| 1434 | the center and lattice translation. -/ |
| 1435 | theorem nativePointLinear_band_bound (B : TorusInverse.Plane ≃L[ℝ] TorusInverse.Plane) {h : ℝ} (hh : 0 ≤ h) |
| 1436 | {n gap Δ : ℕ} (hn : 4 ≤ n) (hgap : gap ≤ Δ) (center : TorusInverse.Plane) : |
| 1437 | ‖nativePointLinear (P := P) (CommonCoverClass.bandGeometry B h n gap center)‖ ≤ |
| 1438 | CommonCoverClass.bandArgumentCost B Δ * ChartScales.S n := |
| 1439 | (norm_nativePointLinear_le _).trans |
| 1440 | (CommonCoverClass.bandGeometry_argumentCost_le B hh hn hgap center) |
| 1441 | |
| 1442 | theorem NativeJets.native_copy_localJets |
| 1443 | {V : JetDomain ι (P × TorusInverse.Plane)} {w : ι → P × TorusInverse.Plane → ℝ} {f : ι → P × TorusInverse.Plane → H} |
| 1444 | (hf : NativeJets V w f) (s : StripData (P × TorusInverse.Plane)) |
| 1445 | (W : Λ → ℕ → P × TorusInverse.Plane → ℝ) (α : ℝ) |
| 1446 | (index : Λ → ℕ → ι) (g : Λ → ℕ → Geometry) (Ω : Λ → ℕ → Set TorusInverse.Plane) |
| 1447 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 1448 | (hmap : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1449 | ParticularWaveBounds.nativePoint (g l n) k x ∈ V.carrier (index l n)) |
| 1450 | {A B : ℝ} (hA : 1 ≤ A) (hB : 1 ≤ B) (a b : ℕ) |
| 1451 | (hgrowth : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1452 | V.growth (index l n) (ParticularWaveBounds.nativePoint (g l n) k x) ≤ A * s.growth n x ^ a) |
| 1453 | (hgeometry : ∀ l n, CommonCoverClass.argumentCost (g l n) ≤ B * s.slow n ^ b) |
| 1454 | (hweight : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1455 | w (index l n) (ParticularWaveBounds.nativePoint (g l n) k x) ≤ s.epsilon n ^ α * W l n x) : |
| 1456 | PeriodizedWaveBounds.UniformLocalJets s W α |
| 1457 | (fun l n => PeriodizedWaveBounds.nativeCell (g l n) (Ω l n)) |
| 1458 | (fun l n k x => f (index l n) (ParticularWaveBounds.nativePoint (g l n) k x)) := by |
| 1459 | have h := hf.copy_localJets s W α index |
| 1460 | (fun l n _ => nativePointLinear (g l n)) |
| 1461 | (fun l n k => ParticularWaveBounds.nativePoint (g l n) k 0) |
| 1462 | (fun l n => PeriodizedWaveBounds.nativeCell (g l n) (Ω l n)) hW |
| 1463 | (by simp only [← nativePoint_affine]; exact hmap) hA hB a b |
| 1464 | (by simp only [← nativePoint_affine]; exact hgrowth) |
| 1465 | (fun l n _ => (norm_nativePointLinear_le (g l n)).trans (hgeometry l n)) |
| 1466 | (by simp only [← nativePoint_affine]; exact hweight) |
| 1467 | have he : affineCopy f index (fun l n _ => nativePointLinear (g l n)) |
| 1468 | (fun l n k => ParticularWaveBounds.nativePoint (g l n) k 0) = |
| 1469 | (fun l n k x => f (index l n) (ParticularWaveBounds.nativePoint (g l n) k x)) := by |
| 1470 | funext l n k x |
| 1471 | dsimp only [affineCopy] |
| 1472 | rw [← nativePoint_affine] |
| 1473 | rw [he] at h |
| 1474 | exact h |
| 1475 | |
| 1476 | /-- The constructed native field is periodized over the genuine covering |
| 1477 | lattice. Support is proved from the scalar cutoff, and the native cells |
| 1478 | are constructed from compactness and injectivity of that patch. -/ |
| 1479 | theorem NativeJets.native_copy_sum_uniformClass |
| 1480 | {V : JetDomain ι (P × TorusInverse.Plane)} {w : ι → P × TorusInverse.Plane → ℝ} {f : ι → P × TorusInverse.Plane → H} |
| 1481 | (hf : NativeJets V w f) (s : StripData (P × TorusInverse.Plane)) |
| 1482 | (W : Λ → ℕ → P × TorusInverse.Plane → ℝ) (α : ℝ) |
| 1483 | (index : Λ → ℕ → ι) (g : Λ → ℕ → Geometry) (Ω : Λ → ℕ → Set TorusInverse.Plane) |
| 1484 | (hcompact : ∀ l n, IsCompact (Ω l n)) |
| 1485 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 1486 | ((fun z => (g l n).center + (g l n).basis z) '' Ω l n)) |
| 1487 | (κ : ι → TorusInverse.Plane → ℝ) (hκ : PolynomialJets V.toDomain (fun i x => κ i x.2)) |
| 1488 | (hcut : ∀ l n, support (κ (index l n)) ⊆ Ω l n) |
| 1489 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 1490 | (hmap : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1491 | ParticularWaveBounds.nativePoint (g l n) k x ∈ V.carrier (index l n)) |
| 1492 | {A B : ℝ} (hA : 1 ≤ A) (hB : 1 ≤ B) (a b : ℕ) |
| 1493 | (hgrowth : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1494 | V.growth (index l n) (ParticularWaveBounds.nativePoint (g l n) k x) ≤ A * s.growth n x ^ a) |
| 1495 | (hgeometry : ∀ l n, CommonCoverClass.argumentCost (g l n) ≤ B * s.slow n ^ b) |
| 1496 | (hweight : ∀ l n k x, x ∈ s.domain → (g l n).coordinates k x.2 ∈ Ω l n → |
| 1497 | w (index l n) (ParticularWaveBounds.nativePoint (g l n) k x) ≤ s.epsilon n ^ α * W l n x) : |
| 1498 | LabelSumBounds.UniformClass s W α |
| 1499 | (fun l n => ParticularWaveBounds.periodizedCopies (g l n) (κ (index l n)) |
| 1500 | (fun k x => f (index l n) (ParticularWaveBounds.nativePoint (g l n) k x))) := by |
| 1501 | apply PeriodizedWaveBounds.copySum_uniformClass |
| 1502 | (fun l => PeriodizedWaveBounds.nativeCells (g l) (Ω l) (hcompact l) (hinj l)) hW |
| 1503 | · intro l n |
| 1504 | exact PeriodizedWaveBounds.native_localized_support (g l n) (hcut l n) |
| 1505 | (fun k x => f (index l n) (ParticularWaveBounds.nativePoint (g l n) k x)) |
| 1506 | · exact (hf.polynomial_smul hκ).native_copy_localJets s W α index g Ω hW |
| 1507 | hmap hA hB a b hgrowth hgeometry hweight |
| 1508 | |
| 1509 | end NativeCopies |
| 1510 | |
| 1511 | end NavierStokes.PrimaryCopyBounds |