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.LabelSumBounds |
| 2 | import NavierStokes.LinearWaveBounds |
| 3 | import Mathlib.Data.Countable.Defs |
| 4 | |
| 5 | /-! |
| 6 | # Uniform primary weights and curl estimates |
| 7 | |
| 8 | A single enumeration of the joint band/label index transfers the existing |
| 9 | weighted analysis without losing any inverse-edge factors. The reindexed |
| 10 | strip retains the same domain, edge distance, and vanishing weight. Every |
| 11 | constant is chosen before both the original band and the label. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.UniformPrimaryWeights |
| 17 | |
| 18 | open Set Function Filter WeightedClasses LabelSumBounds |
| 19 | open scoped ContDiff Topology BigOperators |
| 20 | |
| 21 | variable {ι E F G : Type*} {D : Type} |
| 22 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 25 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 26 | |
| 27 | /-- Only the discrete scales are reindexed. The spatial edge geometry and |
| 28 | its possibly vanishing weight are exactly the original ones. -/ |
| 29 | noncomputable def reindexedStrip (s : StripData D) (e : ℕ → ℕ × ι) : StripData D where |
| 30 | domain := s.domain |
| 31 | isOpen_domain := s.isOpen_domain |
| 32 | epsilon k := s.epsilon (e k).1 |
| 33 | epsilon_pos k := s.epsilon_pos (e k).1 |
| 34 | epsilon_le_one k := s.epsilon_le_one (e k).1 |
| 35 | slow k := s.slow (e k).1 |
| 36 | one_le_slow k := s.one_le_slow (e k).1 |
| 37 | delta := s.delta |
| 38 | delta_pos := s.delta_pos |
| 39 | zeta := s.zeta |
| 40 | zeta_smooth := s.zeta_smooth |
| 41 | zeta_nonneg := s.zeta_nonneg |
| 42 | |
| 43 | noncomputable def pull (e : ℕ → ℕ × ι) (f : ι → ℕ → D → E) : ℕ → D → E := |
| 44 | fun k => f (e k).2 (e k).1 |
| 45 | |
| 46 | @[simp] theorem reindexed_growth (s : StripData D) (e : ℕ → ℕ × ι) (k : ℕ) (x : D) : |
| 47 | (reindexedStrip s e).growth k x = s.growth (e k).1 x := rfl |
| 48 | |
| 49 | @[simp] theorem reindexed_majorant (s : StripData D) (e : ℕ → ℕ × ι) |
| 50 | (w : ι → ℕ → D → ℝ) (α C : ℝ) (p k : ℕ) (x : D) : |
| 51 | majorant (reindexedStrip s e) (pull e w) α C p k x = |
| 52 | majorant s (w (e k).2) α C p (e k).1 x := rfl |
| 53 | |
| 54 | theorem pull_class {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 55 | {f : ι → ℕ → D → E} (hf : UniformClass s w α f) (e : ℕ → ℕ × ι) : |
| 56 | MemClass (reindexedStrip s e) (pull e w) α (pull e f) := by |
| 57 | refine ⟨fun k => hf.weight_nonneg (e k).2 (e k).1, |
| 58 | fun k => hf.smooth (e k).2 (e k).1, ?_⟩ |
| 59 | intro m |
| 60 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 61 | exact ⟨C, hC, p, fun k => hb (e k).2 (e k).1⟩ |
| 62 | |
| 63 | /-- Surjectivity is the reason the constants also control every original |
| 64 | label. It is never replaced by a separate bound for each label. -/ |
| 65 | theorem uniform_of_pull {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 66 | {f : ι → ℕ → D → E} {e : ℕ → ℕ × ι} (he : Surjective e) |
| 67 | (hf : MemClass (reindexedStrip s e) (pull e w) α (pull e f)) : |
| 68 | UniformClass s w α f := by |
| 69 | refine ⟨?_, ?_, ?_⟩ |
| 70 | · intro l n x hx |
| 71 | obtain ⟨k, hk⟩ := he (n, l) |
| 72 | simpa only [pull, hk] using hf.weight_nonneg k x hx |
| 73 | · intro l n |
| 74 | obtain ⟨k, hk⟩ := he (n, l) |
| 75 | have h := hf.smooth k |
| 76 | simp only [pull, hk] at h |
| 77 | exact h |
| 78 | · intro m |
| 79 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 80 | refine ⟨C, hC, p, fun l n x hx j hj => ?_⟩ |
| 81 | obtain ⟨k, hk⟩ := he (n, l) |
| 82 | simpa only [reindexed_majorant, pull, hk] using hb k x hx j hj |
| 83 | |
| 84 | noncomputable def enumeration (ι : Type*) [Countable ι] [Nonempty ι] : ℕ → ℕ × ι := |
| 85 | Classical.choose (exists_surjective_nat (ℕ × ι)) |
| 86 | |
| 87 | theorem enumeration_surjective (ι : Type*) [Countable ι] [Nonempty ι] : |
| 88 | Surjective (enumeration ι) := Classical.choose_spec (exists_surjective_nat (ℕ × ι)) |
| 89 | |
| 90 | /-- The actual slow scale on the joint index, in the `(band,label)` order |
| 91 | used by the phase and ODE constructions. -/ |
| 92 | noncomputable def jointDomain (s : StripData D) : PhaseJetBounds.Domain (ℕ × ι) D where |
| 93 | scale q := s.slow q.1 |
| 94 | carrier _ := s.domain |
| 95 | isOpen _ := s.isOpen_domain |
| 96 | one_le_scale q := s.one_le_slow q.1 |
| 97 | |
| 98 | theorem pull_polynomial {s : StripData D} {f : ι → ℕ → D → E} |
| 99 | (hf : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q => f q.2 q.1)) |
| 100 | (e : ℕ → ℕ × ι) : |
| 101 | PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain (reindexedStrip s e)) (pull e f) := by |
| 102 | refine ⟨fun k => hf.smooth (e k), ?_⟩ |
| 103 | intro m |
| 104 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 105 | exact ⟨C, hC, p, fun k => hb (e k)⟩ |
| 106 | |
| 107 | /-- Restrict genuine joint phase/ODE jets to the common strip, allowing a |
| 108 | uniform polynomial change of slow scale. -/ |
| 109 | theorem polynomial_on_joint {s : StripData D} |
| 110 | {V : PhaseJetBounds.Domain (ℕ × ι) D} {f : (ℕ × ι) → D → E} |
| 111 | (hf : PhaseJetBounds.PolynomialJets V f) {K : ℝ} {q : ℕ} (hK : 1 ≤ K) |
| 112 | (hscale : ∀ n l, V.scale (n, l) ≤ K * s.slow n ^ q) |
| 113 | (hdom : ∀ n l, s.domain ⊆ V.carrier (n, l)) : |
| 114 | PhaseJetBounds.PolynomialJets (jointDomain s) f := by |
| 115 | refine ⟨fun k => (hf.smooth k).mono (hdom k.1 k.2), ?_⟩ |
| 116 | intro m |
| 117 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 118 | refine ⟨C * K ^ p, one_le_mul_of_one_le_of_one_le hC (one_le_pow₀ hK), q * p, ?_⟩ |
| 119 | intro k j hj x hx |
| 120 | calc |
| 121 | _ ≤ C * V.scale k ^ p := hb k j hj x (hdom k.1 k.2 hx) |
| 122 | _ ≤ C * (K * s.slow k.1 ^ q) ^ p := mul_le_mul_of_nonneg_left |
| 123 | (pow_le_pow_left₀ (zero_le_one.trans (V.one_le_scale k)) (hscale k.1 k.2) p) |
| 124 | (zero_le_one.trans hC) |
| 125 | _ = _ := by simp only [jointDomain, mul_pow, ← pow_mul]; ring |
| 126 | |
| 127 | /-- This version retains the full inverse-edge polynomial in the |
| 128 | majorant; it is not a polynomial-in-S replacement of the weight. -/ |
| 129 | noncomputable def UniformInverseControl (s : StripData D) (w g : ι → ℕ → D → ℝ) : Prop := |
| 130 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ l n x, x ∈ s.domain → |
| 131 | w l n x / g l n x ≤ C * s.growth n x ^ p |
| 132 | |
| 133 | theorem pull_inverseControl {s : StripData D} {w g : ι → ℕ → D → ℝ} |
| 134 | (h : UniformInverseControl s w g) (e : ℕ → ℕ × ι) : |
| 135 | SignedCovariance.InverseControl (reindexedStrip s e) (pull e w) (pull e g) := by |
| 136 | obtain ⟨C, hC, p, hb⟩ := h |
| 137 | exact ⟨C, hC, p, fun k => hb (e k).2 (e k).1⟩ |
| 138 | |
| 139 | theorem inverseControl_of_lower {s : StripData D} {w g : ι → ℕ → D → ℝ} |
| 140 | (hg : ∀ l n x, x ∈ s.domain → 0 < g l n x) {c : ℝ} (hc : 0 < c) (p : ℕ) |
| 141 | (hlower : ∀ l n x, x ∈ s.domain → c * w l n x / s.growth n x ^ p ≤ g l n x) : |
| 142 | UniformInverseControl s w g := by |
| 143 | refine ⟨c⁻¹, (inv_pos.mpr hc).le, p, fun l n x hx => ?_⟩ |
| 144 | have hG : 0 < s.growth n x ^ p := pow_pos (zero_lt_one.trans_le (s.one_le_growth n x)) _ |
| 145 | have hl := (div_le_iff₀ hG).mp (hlower l n x hx) |
| 146 | apply (div_le_iff₀ (hg l n x hx)).mpr |
| 147 | calc |
| 148 | w l n x = c⁻¹ * (c * w l n x) := by rw [← mul_assoc, inv_mul_cancel₀ hc.ne', one_mul] |
| 149 | _ ≤ c⁻¹ * (g l n x * s.growth n x ^ p) := mul_le_mul_of_nonneg_left hl (inv_pos.mpr hc).le |
| 150 | _ = _ := by ring |
| 151 | |
| 152 | section WeightedOperations |
| 153 | |
| 154 | variable [Countable ι] [Nonempty ι] |
| 155 | {s : StripData D} {w g r : ι → ℕ → D → ℝ} {β : ℝ} |
| 156 | |
| 157 | /-- Positivity is pointwise on the open strip. There is no positive |
| 158 | minimum of the weight, even when it vanishes at the boundary. -/ |
| 159 | theorem sqrt_class (hw : ∀ l n x, x ∈ s.domain → 0 < w l n x) |
| 160 | (hp : ∀ l n x, x ∈ s.domain → 0 < g l n x) |
| 161 | (hg : UniformClass s w 0 g) (hlower : UniformInverseControl s w g) : |
| 162 | UniformClass s (fun l n x => Real.sqrt (w l n x)) 0 (fun l n x => Real.sqrt (g l n x)) := by |
| 163 | apply uniform_of_pull (enumeration_surjective ι) |
| 164 | exact SignedCovariance.sqrt_class |
| 165 | (fun k => hw (enumeration ι k).2 (enumeration ι k).1) |
| 166 | (fun k => hp (enumeration ι k).2 (enumeration ι k).1) |
| 167 | (pull_class hg (enumeration ι)) (pull_inverseControl hlower (enumeration ι)) |
| 168 | |
| 169 | theorem signed_quotient_class (hw : ∀ l n x, x ∈ s.domain → 0 < w l n x) |
| 170 | (hp : ∀ l n x, x ∈ s.domain → 0 < g l n x) |
| 171 | (hg : UniformClass s w 0 g) (hr : UniformClass s w β r) |
| 172 | (hlower : UniformInverseControl s w g) : |
| 173 | UniformClass s (fun l n x => Real.sqrt (w l n x)) β |
| 174 | (fun l n x => r l n x / (2 * Real.sqrt (g l n x))) := by |
| 175 | apply uniform_of_pull (enumeration_surjective ι) |
| 176 | exact SignedCovariance.signed_quotient_class |
| 177 | (fun k => hw (enumeration ι k).2 (enumeration ι k).1) |
| 178 | (fun k => hp (enumeration ι k).2 (enumeration ι k).1) |
| 179 | (pull_class hg (enumeration ι)) (pull_class hr (enumeration ι)) |
| 180 | (pull_inverseControl hlower (enumeration ι)) |
| 181 | |
| 182 | end WeightedOperations |
| 183 | |
| 184 | section Calculus |
| 185 | |
| 186 | variable {s : StripData D} {w v : ι → ℕ → D → ℝ} {α β : ℝ} |
| 187 | |
| 188 | theorem fderiv_class {f : ι → ℕ → D → E} (hf : UniformClass s w α f) : |
| 189 | UniformClass s w α (fun l n => fderiv ℝ (f l n)) := by |
| 190 | refine ⟨hf.weight_nonneg, fun l n => |
| 191 | (contDiffOn_infty_iff_fderiv_of_isOpen s.isOpen_domain).mp (hf.smooth l n) |>.2, ?_⟩ |
| 192 | intro m |
| 193 | obtain ⟨C, hC, p, hb⟩ := hf.bounds (m + 1) |
| 194 | refine ⟨C, hC, p, fun l n x hx j hj => ?_⟩ |
| 195 | rw [norm_iteratedFDeriv_fderiv] |
| 196 | exact hb l n x hx (j + 1) (Nat.add_le_add_right hj 1) |
| 197 | |
| 198 | theorem smul_class {a : ι → ℕ → D → ℝ} {f : ι → ℕ → D → E} |
| 199 | (ha : UniformClass s v β a) (hf : UniformClass s w α f) : |
| 200 | UniformClass s (fun l n x => v l n x * w l n x) (β + α) |
| 201 | (fun l n x => a l n x • f l n x) := |
| 202 | ha.bilinear hf (ContinuousLinearMap.lsmul ℝ ℝ) |
| 203 | |
| 204 | theorem mul_class {a b : ι → ℕ → D → ℝ} |
| 205 | (ha : UniformClass s w α a) (hb : UniformClass s v β b) : |
| 206 | UniformClass s (fun l n x => w l n x * v l n x) (α + β) |
| 207 | (fun l n x => a l n x * b l n x) := by |
| 208 | simpa only [smul_eq_mul] using smul_class ha hb |
| 209 | |
| 210 | theorem real_smul_class {a : ι → ℕ → D → ℝ} {f : ι → ℕ → D → E} |
| 211 | (ha : UniformClass s (fun _ _ _ => 1) β a) (hf : UniformClass s w α f) : |
| 212 | UniformClass s w (β + α) (fun l n x => a l n x • f l n x) := by |
| 213 | simpa only [one_mul] using smul_class ha hf |
| 214 | |
| 215 | theorem along_class {V : ι → ℕ → D → D} {f : ι → ℕ → D → E} |
| 216 | (hV : UniformClass s (fun _ _ _ => 1) β V) (hf : UniformClass s w α f) : |
| 217 | UniformClass s w (α + β) (fun l n => HarmonicCalculus.along (V l n) (f l n)) := by |
| 218 | have h := (fderiv_class hf).bilinear hV (ContinuousLinearMap.apply ℝ E).flip |
| 219 | simp only [mul_one] at h ⊢ |
| 220 | exact h |
| 221 | |
| 222 | theorem class_of_single {w : ℕ → D → ℝ} {f : ℕ → D → E} (hf : MemClass s w α f) : |
| 223 | UniformClass s (fun _ : ι => w) α (fun _ : ι => f) := by |
| 224 | refine ⟨fun _ => hf.weight_nonneg, fun _ => hf.smooth, ?_⟩ |
| 225 | intro m |
| 226 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 227 | exact ⟨C, hC, p, fun _ => hb⟩ |
| 228 | |
| 229 | noncomputable def UniformBandBound (s : StripData D) (β : ℝ) (a : ι → ℕ → ℝ) : Prop := |
| 230 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ l n, |
| 231 | ‖a l n‖ ≤ C * s.epsilon n ^ β * s.slow n ^ p |
| 232 | |
| 233 | theorem pull_bandBound {a : ι → ℕ → ℝ} (ha : UniformBandBound s β a) |
| 234 | (e : ℕ → ℕ × ι) : BandBound (reindexedStrip s e) β (fun k => a (e k).2 (e k).1) := by |
| 235 | obtain ⟨C, hC, p, hb⟩ := ha |
| 236 | exact ⟨C, hC, p, fun k => hb (e k).2 (e k).1⟩ |
| 237 | |
| 238 | theorem band_smul_class [Countable ι] [Nonempty ι] |
| 239 | {a : ι → ℕ → ℝ} {f : ι → ℕ → D → E} |
| 240 | (hf : UniformClass s w α f) (ha : UniformBandBound s β a) : |
| 241 | UniformClass s w (α + β) (fun l n x => a l n • f l n x) := by |
| 242 | apply uniform_of_pull (enumeration_surjective ι) |
| 243 | exact (pull_class hf (enumeration ι)).band_smul (pull_bandBound ha (enumeration ι)) |
| 244 | |
| 245 | theorem polynomial_class {f : ι → ℕ → D → E} |
| 246 | (hf : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q => f q.2 q.1)) : |
| 247 | UniformClass s (fun _ _ _ => 1) 0 f := by |
| 248 | exact LabelSumBounds.uniformClass_of_polynomialJets hf (K := 1) (q := 1) le_rfl |
| 249 | (fun n l => by simp [jointDomain]) (fun _ _ => subset_rfl) |
| 250 | |
| 251 | end Calculus |
| 252 | |
| 253 | section Covariance |
| 254 | |
| 255 | variable [Countable ι] [Nonempty ι] |
| 256 | {s : StripData D} {r : ι → ℕ → ℝ} |
| 257 | {H : ι → ℕ → D → SmoothCovariance.Mat2} |
| 258 | {T : ι → ℕ → D → SmoothCovariance.Vec2} {w : ι → ℕ → D → ℝ} |
| 259 | |
| 260 | /-- The inverse matrix is differentiated after reindexing the genuine |
| 261 | integrated entries. The determinant gap and entry bound are common to |
| 262 | all labels; the target retains its full vanishing weight. -/ |
| 263 | theorem covariance_weights_class |
| 264 | (hr : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q _ => r q.2 q.1)) |
| 265 | (hrne : ∀ l n, r l n ≠ 0) |
| 266 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (jointDomain s) (fun q x => H q.2 q.1 x i j)) |
| 267 | (hT : ∀ i, UniformClass s w 0 (fun l n x => T l n x i)) |
| 268 | {b M : ℝ} (hb : 0 < b) (hM : 1 ≤ M) |
| 269 | (hdet : ∀ l n x, x ∈ s.domain → b ≤ |(PrimaryPulseBounds.normalizedMatrix (r l n) (H l n x)).det|) |
| 270 | (hentry : ∀ l n x, x ∈ s.domain → ∀ i j, |r l n * H l n x i j| ≤ M) |
| 271 | (j : Fin 2) : |
| 272 | UniformClass s w 0 (fun l n x => SmoothCovariance.weights (H l n x) (T l n x) j) := by |
| 273 | apply uniform_of_pull (enumeration_surjective ι) |
| 274 | exact PrimaryPulseBounds.covariance_weights_class |
| 275 | (s := reindexedStrip s (enumeration ι)) |
| 276 | (r := fun k => r (enumeration ι k).2 (enumeration ι k).1) |
| 277 | (H := pull (enumeration ι) H) (T := pull (enumeration ι) T) (w := pull (enumeration ι) w) |
| 278 | (pull_polynomial (f := fun l n _ => r l n) hr (enumeration ι)) |
| 279 | (fun k => hrne (enumeration ι k).2 (enumeration ι k).1) |
| 280 | (fun i j => pull_polynomial (f := fun l n x => H l n x i j) (hH i j) (enumeration ι)) |
| 281 | (fun i => pull_class (hT i) (enumeration ι)) hb hM |
| 282 | (fun k => hdet (enumeration ι k).2 (enumeration ι k).1) |
| 283 | (fun k => hentry (enumeration ι k).2 (enumeration ι k).1) j |
| 284 | |
| 285 | theorem covariance_amplitudes_class |
| 286 | (hr : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q _ => r q.2 q.1)) |
| 287 | (hrne : ∀ l n, r l n ≠ 0) |
| 288 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (jointDomain s) (fun q x => H q.2 q.1 x i j)) |
| 289 | (hT : ∀ i, UniformClass s w 0 (fun l n x => T l n x i)) |
| 290 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 291 | (hdet : ∀ l n x, x ∈ s.domain → b ≤ |(PrimaryPulseBounds.normalizedMatrix (r l n) (H l n x)).det|) |
| 292 | (hentry : ∀ l n x, x ∈ s.domain → ∀ i j, |r l n * H l n x i j| ≤ M) |
| 293 | (hw : ∀ l n x, x ∈ s.domain → 0 < w l n x) |
| 294 | (hlower : ∀ l n x, x ∈ s.domain → ∀ j, |
| 295 | c * w l n x ≤ SmoothCovariance.weights (H l n x) (T l n x) j) |
| 296 | (j : Fin 2) : |
| 297 | UniformClass s (fun l n x => Real.sqrt (w l n x)) 0 |
| 298 | (fun l n x => SmoothCovariance.amplitudes (H l n x) (T l n x) j) := by |
| 299 | apply uniform_of_pull (enumeration_surjective ι) |
| 300 | exact PrimaryPulseBounds.covariance_amplitudes_class |
| 301 | (s := reindexedStrip s (enumeration ι)) |
| 302 | (r := fun k => r (enumeration ι k).2 (enumeration ι k).1) |
| 303 | (H := pull (enumeration ι) H) (T := pull (enumeration ι) T) (w := pull (enumeration ι) w) |
| 304 | (pull_polynomial (f := fun l n _ => r l n) hr (enumeration ι)) |
| 305 | (fun k => hrne (enumeration ι k).2 (enumeration ι k).1) |
| 306 | (fun i j => pull_polynomial (f := fun l n x => H l n x i j) (hH i j) (enumeration ι)) |
| 307 | (fun i => pull_class (hT i) (enumeration ι)) hb hM hc |
| 308 | (fun k => hdet (enumeration ι k).2 (enumeration ι k).1) |
| 309 | (fun k => hentry (enumeration ι k).2 (enumeration ι k).1) |
| 310 | (fun k => hw (enumeration ι k).2 (enumeration ι k).1) |
| 311 | (fun k => hlower (enumeration ι k).2 (enumeration ι k).1) j |
| 312 | |
| 313 | end Covariance |
| 314 | |
| 315 | /-- The exact normalization used by the primary covariance. -/ |
| 316 | theorem sqrt_slow_polynomial (s : StripData D) : |
| 317 | PhaseJetBounds.PolynomialJets (jointDomain (ι := ι) s) (fun q _ => Real.sqrt (s.slow q.1)) := by |
| 318 | apply PhaseJetBounds.PolynomialJets.const _ (C := 1) (m := 1) le_rfl |
| 319 | intro q |
| 320 | have hs := s.one_le_slow q.1 |
| 321 | have hsq := Real.sq_sqrt (zero_le_one.trans hs) |
| 322 | simp only [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), one_mul, pow_one, jointDomain] |
| 323 | nlinarith [Real.sqrt_nonneg (s.slow q.1)] |
| 324 | |
| 325 | section Primary |
| 326 | |
| 327 | variable [Countable ι] [Nonempty ι] {s : StripData D} |
| 328 | {P : ι → ℕ → D → ℝ} {H : ι → ℕ → D → SmoothCovariance.Mat2} |
| 329 | {T : ι → ℕ → D → SmoothCovariance.Vec2} |
| 330 | {mask : ι → ℕ → D → ℝ} {v : ι → ℕ → D → ProblemStatement.Space} |
| 331 | |
| 332 | theorem primaryCoefficient_waveClass |
| 333 | (hH : ∀ i j, PhaseJetBounds.PolynomialJets (jointDomain s) (fun q x => H q.2 q.1 x i j)) |
| 334 | (hT : ∀ i, UniformMeanClass s 0 (fun l n x => T l n x i)) |
| 335 | (hmask : UniformClass s (fun _ _ _ => 1) 0 mask) |
| 336 | (hv : UniformClass s P 0 v) |
| 337 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 338 | (hdet : ∀ l n x, x ∈ s.domain → |
| 339 | b ≤ |(PrimaryPulseBounds.normalizedMatrix (Real.sqrt (s.slow n)) (H l n x)).det|) |
| 340 | (hentry : ∀ l n x, x ∈ s.domain → ∀ i j, |Real.sqrt (s.slow n) * H l n x i j| ≤ M) |
| 341 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 342 | (hlower : ∀ l n x, x ∈ s.domain → ∀ j, |
| 343 | c * s.zeta x ≤ SmoothCovariance.weights (H l n x) (T l n x) j) |
| 344 | (j : Fin 2) : |
| 345 | UniformWaveClass s P (1 / 2) |
| 346 | (fun l => PrimaryPulseBounds.primaryCoefficient s (H l) (T l) (mask l) (v l) j) := by |
| 347 | have ha := covariance_amplitudes_class (sqrt_slow_polynomial s) |
| 348 | (fun _ n => (Real.sqrt_pos.mpr (zero_lt_one.trans_le (s.one_le_slow n))).ne') |
| 349 | hH hT hb hM hc hdet hentry (fun _ _ x hx => hζ x hx) hlower j |
| 350 | have ham : UniformWaveClass s P 0 (fun l n x => |
| 351 | SmoothCovariance.amplitudes (H l n x) (T l n x) j • CurlClassBounds.complexify (v l n x)) := by |
| 352 | simpa only [zero_add] using smul_class ha (hv.map CurlClassBounds.complexify) |
| 353 | have hm : UniformWaveClass s P 0 (fun l n x => mask l n x • |
| 354 | (SmoothCovariance.amplitudes (H l n x) (T l n x) j • CurlClassBounds.complexify (v l n x))) := by |
| 355 | simpa only [zero_add] using real_smul_class hmask ham |
| 356 | have he : UniformBandBound (ι := ι) s (1 / 2) (fun _ n => Real.sqrt (s.epsilon n)) := by |
| 357 | refine ⟨1, zero_le_one, 0, fun l n => ?_⟩ |
| 358 | rw [Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg (s.epsilon n)), Real.sqrt_eq_rpow] |
| 359 | simp only [pow_zero, mul_one, one_mul, le_refl] |
| 360 | apply (show UniformWaveClass s P (1 / 2) (fun l n x => Real.sqrt (s.epsilon n) • |
| 361 | (mask l n x • (SmoothCovariance.amplitudes (H l n x) (T l n x) j • |
| 362 | CurlClassBounds.complexify (v l n x)))) from by simpa only [zero_add] using band_smul_class hm he).congr |
| 363 | intro l n x hx |
| 364 | simp only [PrimaryPulseBounds.primaryCoefficient, PartitionedCovariance.amplitude, smul_smul] |
| 365 | congr 1 |
| 366 | ring |
| 367 | |
| 368 | end Primary |
| 369 | |
| 370 | section Curl |
| 371 | |
| 372 | open CurlClassBounds |
| 373 | |
| 374 | variable {s : StripData D} {w : ι → ℕ → D → ℝ} {α κ : ℝ} |
| 375 | |
| 376 | theorem component_class {a : ι → ℕ → D → ComplexVector} |
| 377 | (ha : UniformClass s w α a) (i : Fin 3) : |
| 378 | UniformClass s w α (fun l n x => a l n x i) := ha.map (ContinuousLinearMap.proj i) |
| 379 | |
| 380 | theorem vector_class {a : ι → ℕ → D → ComplexVector} |
| 381 | (ha : ∀ i : Fin 3, UniformClass s w α (fun l n x => a l n x i)) : |
| 382 | UniformClass s w α a := by |
| 383 | have hsum := UniformClass.sum Finset.univ |
| 384 | (fun i l n x => (ContinuousLinearMap.single ℝ (fun _ : Fin 3 => ℂ) i) (a l n x i)) |
| 385 | (ha 0).weight_nonneg (fun i _ => (ha i).map (ContinuousLinearMap.single ℝ (fun _ : Fin 3 => ℂ) i)) |
| 386 | apply hsum.congr |
| 387 | intro l n x hx |
| 388 | ext i |
| 389 | simp |
| 390 | |
| 391 | /-- The normal inverse is computed from the actual jointly bounded normal, |
| 392 | not supplied as a separately bounded potential coefficient. -/ |
| 393 | theorem normalCoefficient_class [Countable ι] [Nonempty ι] |
| 394 | {N : ι → ℕ → D → RealVector} {a : ι → ℕ → D → ComplexVector} |
| 395 | (hN : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q => N q.2 q.1)) |
| 396 | (ha : UniformClass s w α a) {b M : ℝ} (hb : 0 < b) |
| 397 | (hlower : ∀ l n x, x ∈ s.domain → b ≤ ‖N l n x‖) |
| 398 | (hupper : ∀ l n x, x ∈ s.domain → ‖N l n x‖ ≤ M) : |
| 399 | UniformClass s w α (fun l n x => normalCoefficient (N l n x) (a l n x)) := by |
| 400 | apply uniform_of_pull (enumeration_surjective ι) |
| 401 | exact CurlClassBounds.normalCoefficient_class (s := reindexedStrip s (enumeration ι)) |
| 402 | (pull_polynomial hN (enumeration ι)) (pull_class ha (enumeration ι)) hb |
| 403 | (fun k => hlower (enumeration ι k).2 (enumeration ι k).1) |
| 404 | (fun k => hupper (enumeration ι k).2 (enumeration ι k).1) |
| 405 | |
| 406 | /-- This version permits radius and direction fields to vary with both |
| 407 | band and label. All cylindrical connection terms are retained. -/ |
| 408 | theorem cylindricalCurl_class |
| 409 | {R : ι → ℕ → D → ℝ} {Vr Vθ Vz : ι → ℕ → D → D} |
| 410 | {a : ι → ℕ → D → ComplexVector} (ha : UniformClass s w α a) (hκ : 0 ≤ κ) |
| 411 | (hr : UniformClass s (fun _ _ _ => 1) (-κ) Vr) |
| 412 | (hθ : UniformClass s (fun _ _ _ => 1) 0 Vθ) |
| 413 | (hz : UniformClass s (fun _ _ _ => 1) 1 Vz) |
| 414 | (hR : UniformClass s (fun _ _ _ => 1) 0 (fun l n x => (R l n x)⁻¹)) : |
| 415 | UniformClass s w (α - κ) |
| 416 | (fun l n => cylindricalCurl (R l n) (Vr l n) (Vθ l n) (Vz l n) (a l n)) := by |
| 417 | have hDr (i : Fin 3) : UniformClass s w (α - κ) |
| 418 | (fun l n => HarmonicCalculus.along (Vr l n) (fun x => a l n x i)) := by |
| 419 | simpa only [sub_eq_add_neg] using along_class hr (component_class ha i) |
| 420 | have hDz (i : Fin 3) : UniformClass s w (α - κ) |
| 421 | (fun l n => HarmonicCalculus.along (Vz l n) (fun x => a l n x i)) := |
| 422 | (along_class hz (component_class ha i)).mono_exponent (by linarith) |
| 423 | have hDθ (i : Fin 3) : UniformClass s w (α - κ) |
| 424 | (fun l n x => (R l n x)⁻¹ • HarmonicCalculus.along (Vθ l n) (fun y => a l n y i) x) := by |
| 425 | apply (real_smul_class hR (along_class hθ (component_class ha i))).mono_exponent |
| 426 | linarith |
| 427 | have hconn (i : Fin 3) : UniformClass s w (α - κ) (fun l n x => (R l n x)⁻¹ • a l n x i) := |
| 428 | (real_smul_class hR (component_class ha i)).mono_exponent (by linarith) |
| 429 | apply vector_class |
| 430 | intro i |
| 431 | fin_cases i |
| 432 | · exact (hDθ 2).sub (hDz 1) |
| 433 | · exact (hDz 0).sub (hDr 2) |
| 434 | · exact ((hDr 1).add (hconn 1)).sub (hDθ 0) |
| 435 | |
| 436 | theorem curlRemainder_class [Countable ι] [Nonempty ι] |
| 437 | {R : ι → ℕ → D → ℝ} {Vr Vθ Vz : ι → ℕ → D → D} {K : ι → ℕ → ℝ} |
| 438 | {a : ι → ℕ → D → ComplexVector} (ha : UniformClass s w α a) (hκ : 0 ≤ κ) |
| 439 | (hr : UniformClass s (fun _ _ _ => 1) (-κ) Vr) |
| 440 | (hθ : UniformClass s (fun _ _ _ => 1) 0 Vθ) |
| 441 | (hz : UniformClass s (fun _ _ _ => 1) 1 Vz) |
| 442 | (hR : UniformClass s (fun _ _ _ => 1) 0 (fun l n x => (R l n x)⁻¹)) |
| 443 | (hK : UniformBandBound s (1 / 2) (fun l n => 1 / K l n)) : |
| 444 | UniformClass s w (α + 1 / 2 - κ) |
| 445 | (fun l n => curlRemainder (K l n) (R l n) (Vr l n) (Vθ l n) (Vz l n) (a l n)) := by |
| 446 | have hc := (cylindricalCurl_class ha hκ hr hθ hz hR).map |
| 447 | (Complex.I • ContinuousLinearMap.id ℝ ComplexVector) |
| 448 | have hh := band_smul_class hc hK |
| 449 | simp only [ _root_.smul_apply, ContinuousLinearMap.id_apply, |
| 450 | show α - κ + 1 / 2 = α + 1 / 2 - κ by ring] at hh ⊢ |
| 451 | exact hh |
| 452 | |
| 453 | theorem normalCurlRemainder_class [Countable ι] [Nonempty ι] |
| 454 | {R : ι → ℕ → D → ℝ} {Vr Vθ Vz : ι → ℕ → D → D} {K : ι → ℕ → ℝ} |
| 455 | {N : ι → ℕ → D → RealVector} {a : ι → ℕ → D → ComplexVector} |
| 456 | (hN : PhaseJetBounds.PolynomialJets (jointDomain s) (fun q => N q.2 q.1)) |
| 457 | (ha : UniformClass s w α a) {b M : ℝ} (hb : 0 < b) |
| 458 | (hlower : ∀ l n x, x ∈ s.domain → b ≤ ‖N l n x‖) |
| 459 | (hupper : ∀ l n x, x ∈ s.domain → ‖N l n x‖ ≤ M) |
| 460 | (hκ : 0 ≤ κ) |
| 461 | (hr : UniformClass s (fun _ _ _ => 1) (-κ) Vr) |
| 462 | (hθ : UniformClass s (fun _ _ _ => 1) 0 Vθ) |
| 463 | (hz : UniformClass s (fun _ _ _ => 1) 1 Vz) |
| 464 | (hR : UniformClass s (fun _ _ _ => 1) 0 (fun l n x => (R l n x)⁻¹)) |
| 465 | (hK : UniformBandBound s (1 / 2) (fun l n => 1 / K l n)) : |
| 466 | UniformClass s w (α + 1 / 2 - κ) (fun l n => |
| 467 | curlRemainder (K l n) (R l n) (Vr l n) (Vθ l n) (Vz l n) |
| 468 | (fun x => normalCoefficient (N l n x) (a l n x))) := |
| 469 | curlRemainder_class (normalCoefficient_class hN ha hb hlower hupper) hκ hr hθ hz hR hK |
| 470 | |
| 471 | /-- The half-power frequency gain is uniform even when the nonzero |
| 472 | integer harmonic varies with the label. -/ |
| 473 | theorem harmonic_inverse_bandBound (s : StripData D) (j : ι → ℕ → ℤ) |
| 474 | (hj : ∀ l n, j l n ≠ 0) : |
| 475 | UniformBandBound s (1 / 2) (fun l n => 1 / (carrierFrequency s n * (j l n : ℝ))) := by |
| 476 | refine ⟨1, zero_le_one, 0, fun l n => ?_⟩ |
| 477 | have hk := carrierFrequency_pos s n |
| 478 | have hjabs : (1 : ℝ) ≤ |(j l n : ℝ)| := by exact_mod_cast Int.one_le_abs (hj l n) |
| 479 | have hden : carrierFrequency s n ≤ carrierFrequency s n * |(j l n : ℝ)| := |
| 480 | le_mul_of_one_le_right hk.le hjabs |
| 481 | simp only [Real.norm_eq_abs, abs_div, abs_one, abs_mul, abs_of_pos hk, pow_zero, mul_one, one_mul] |
| 482 | calc |
| 483 | 1 / (carrierFrequency s n * |(j l n : ℝ)|) ≤ 1 / carrierFrequency s n := |
| 484 | div_le_div_of_nonneg_left zero_le_one hk hden |
| 485 | _ ≤ Real.sqrt (s.epsilon n) := |
| 486 | (Scaling.reciprocal_frequency_bounds (s.epsilon_pos n) (s.epsilon_le_one n)).2 |
| 487 | _ = _ := Real.sqrt_eq_rpow _ |
| 488 | |
| 489 | end Curl |
| 490 | |
| 491 | section ActualPhase |
| 492 | |
| 493 | open PrimaryPulseBounds PhaseJetBounds |
| 494 | |
| 495 | variable {U : Domain (ℕ × ι) PhaseCalculus.Slow} |
| 496 | |
| 497 | /-- The same actual integrated pulse matrix, now indexed jointly by band |
| 498 | and label. Its entries are not independent input functions. -/ |
| 499 | noncomputable def phaseMatrix (A : Fin 2 → PhaseConstruction U) |
| 500 | (pref : Fin 2 → (ℕ × ι) → ℝ) (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) : |
| 501 | ι → ℕ → D → SmoothCovariance.Mat2 := fun l n x => |
| 502 | primaryCovariance pref (fun j => (A j).frame) (fun j => (A j).lam) |
| 503 | (fun j => (A j).u) (fun j => (A j).L) (n, l) (χ (n, l) x).1 |
| 504 | |
| 505 | noncomputable def phaseFundamental (A : Fin 2 → PhaseConstruction U) |
| 506 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : |
| 507 | ι → ℕ → D → ProblemStatement.Space := fun l n x => |
| 508 | normalizedPulse ((A j).frame (n, l)) ((A j).lam (n, l)) ((A j).u (n, l)) |
| 509 | ((A j).L (n, l)) (χ (n, l) x) |
| 510 | |
| 511 | noncomputable def phaseEnvelope (A : Fin 2 → PhaseConstruction U) |
| 512 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : ι → ℕ → D → ℝ := fun l n x => |
| 513 | referenceP ((A j).lam (n, l)) ((A j).u (n, l)) ((A j).L (n, l)) |
| 514 | ((A j).L (n, l) * (χ (n, l) x).2) |
| 515 | |
| 516 | noncomputable def phaseCutoffFundamental (A : Fin 2 → PhaseConstruction U) |
| 517 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : |
| 518 | ι → ℕ → D → ProblemStatement.Space := fun l n x => |
| 519 | cutoffPulse ((A j).frame (n, l)) ((A j).lam (n, l)) ((A j).u (n, l)) |
| 520 | ((A j).L (n, l)) (χ (n, l) x) |
| 521 | |
| 522 | noncomputable def phaseSlotEnvelope (A : Fin 2 → PhaseConstruction U) |
| 523 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) (j : Fin 2) : ι → ℕ → D → ℝ := fun l n x => |
| 524 | GaussianTailFlat.referenceSlotEnvelope ((A j).lam (n, l)) ((A j).u (n, l)) |
| 525 | ((A j).L (n, l)) (χ (n, l) x).2 |
| 526 | |
| 527 | /-- The matrix jets come from the actual parameter-dependent ODE and |
| 528 | its actual middle-cutoff covariance integral, uniformly in both indices. -/ |
| 529 | theorem phaseMatrix_jets {s : StripData D} (A : Fin 2 → PhaseConstruction U) |
| 530 | (pref : Fin 2 → (ℕ × ι) → ℝ) (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 531 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 532 | (hχ : PolynomialJets (jointDomain s) χ) |
| 533 | (hmap : ∀ q x, x ∈ s.domain → (χ q x).1 ∈ U.carrier q) |
| 534 | (hpref : ∀ j, PolynomialJets U (fun q _ => pref j q)) (i j : Fin 2) : |
| 535 | PolynomialJets (jointDomain s) (fun q x => phaseMatrix A pref χ q.2 q.1 x i j) := by |
| 536 | apply ((EnvelopeJets.of_polynomial |
| 537 | (primaryCovariance_entry_polynomial U pref (fun j => (A j).frame) |
| 538 | (fun j => (A j).lam) (fun j => (A j).u) (fun j => (A j).L) hpref |
| 539 | (fun j => (A j).pulse_jets) (fun j => (A j).lam_pos) (fun j => (A j).u_pos) |
| 540 | (fun j => (A j).L_pos) i j)).comp |
| 541 | (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hscale hmap).to_polynomial |
| 542 | intro q x hx |
| 543 | rfl |
| 544 | |
| 545 | theorem phaseFundamental_class {s : StripData D} (A : Fin 2 → PhaseConstruction U) |
| 546 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 547 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 548 | (hχ : PolynomialJets (jointDomain s) χ) |
| 549 | (hmap : ∀ q x, x ∈ s.domain → χ q x ∈ U.carrier q ×ˢ Ioo (0 : ℝ) 1) |
| 550 | (j : Fin 2) : UniformClass s (phaseEnvelope A χ j) 0 (phaseFundamental A χ j) := by |
| 551 | have hp := (A j).pulse_jets.comp hχ hscale hmap |
| 552 | apply LabelSumBounds.uniformClass_of_envelopeJets hp (K := 1) (q := 1) le_rfl |
| 553 | (fun n l => by simp [jointDomain]) (fun _ _ => subset_rfl) |
| 554 | · intro l n x hx |
| 555 | exact hp.nonneg (n, l) x hx |
| 556 | · intro l n x hx |
| 557 | simp only [Real.rpow_zero, one_mul] |
| 558 | rfl |
| 559 | |
| 560 | /-- The actual smooth cutoff extension is controlled by the original |
| 561 | Gaussian slot envelope, including its zero region. -/ |
| 562 | theorem phaseCutoffFundamental_class {s : StripData D} (A : Fin 2 → PhaseConstruction U) |
| 563 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 564 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 565 | (hχ : PolynomialJets (jointDomain s) χ) |
| 566 | (hmap : ∀ q x, x ∈ s.domain → (χ q x).1 ∈ U.carrier q) |
| 567 | (j : Fin 2) : UniformClass s (phaseSlotEnvelope A χ j) 0 (phaseCutoffFundamental A χ j) := by |
| 568 | have hp := (cutoffPulse_envelope_jets U (A j).frame (A j).lam (A j).u (A j).L (A j).pulse_jets).comp |
| 569 | hχ hscale (fun q x hx => ⟨hmap q x hx, mem_univ _⟩) |
| 570 | apply LabelSumBounds.uniformClass_of_envelopeJets hp (K := 1) (q := 1) le_rfl |
| 571 | (fun n l => by simp [jointDomain]) (fun _ _ => subset_rfl) |
| 572 | · intro l n x hx |
| 573 | exact hp.nonneg (n, l) x hx |
| 574 | · intro l n x hx |
| 575 | simp only [Real.rpow_zero, one_mul] |
| 576 | rfl |
| 577 | |
| 578 | /-- Normal derivatives and the separated range are derived from the same |
| 579 | joint phase data. The phase chart uses its actual unnormalized slot variable. -/ |
| 580 | theorem phaseNormal_jets {s : StripData D} (A : PhaseConstruction U) |
| 581 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 582 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 583 | (hχ : PolynomialJets (jointDomain s) χ) |
| 584 | (hmap : ∀ q x, x ∈ s.domain → χ q x ∈ (U.slot A.V A.openV).carrier q) : |
| 585 | PolynomialJets (jointDomain s) (fun q x => A.phase.normal q (χ q x)) ∧ |
| 586 | (∀ q x, x ∈ s.domain → A.b ≤ ‖A.phase.normal q (χ q x)‖) ∧ |
| 587 | (∀ q x, x ∈ s.domain → ‖A.phase.normal q (χ q x)‖ ≤ A.M ^ 2 + 3 * A.M) := by |
| 588 | refine ⟨?_, fun q x hx => A.normal_range.1 q _ (hmap q x hx), |
| 589 | fun q x hx => A.normal_range.2 q _ (hmap q x hx)⟩ |
| 590 | apply ((EnvelopeJets.of_polynomial A.normal_jets).comp hχ hscale hmap).to_polynomial |
| 591 | intro q x hx |
| 592 | rfl |
| 593 | |
| 594 | /-- Uniform primary class from the actual joint phase/ODE construction. |
| 595 | Only order-zero covariance separation and target data remain explicit. -/ |
| 596 | theorem phase_primary_waveClass [Countable ι] [Nonempty ι] {s : StripData D} |
| 597 | (A : Fin 2 → PhaseConstruction U) (pref : Fin 2 → (ℕ × ι) → ℝ) |
| 598 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 599 | (T : ι → ℕ → D → SmoothCovariance.Vec2) (mask : ι → ℕ → D → ℝ) |
| 600 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 601 | (hχ : PolynomialJets (jointDomain s) χ) |
| 602 | (hmap : ∀ q x, x ∈ s.domain → χ q x ∈ U.carrier q ×ˢ Ioo (0 : ℝ) 1) |
| 603 | (hpref : ∀ j, PolynomialJets U (fun q _ => pref j q)) |
| 604 | (hT : ∀ i, UniformMeanClass s 0 (fun l n x => T l n x i)) |
| 605 | (hmask : UniformClass s (fun _ _ _ => 1) 0 mask) |
| 606 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 607 | (hdet : ∀ l n x, x ∈ s.domain → |
| 608 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) (phaseMatrix A pref χ l n x)).det|) |
| 609 | (hentry : ∀ l n x, x ∈ s.domain → ∀ i j, |
| 610 | |Real.sqrt (s.slow n) * phaseMatrix A pref χ l n x i j| ≤ M) |
| 611 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 612 | (hlower : ∀ l n x, x ∈ s.domain → ∀ j, |
| 613 | c * s.zeta x ≤ SmoothCovariance.weights (phaseMatrix A pref χ l n x) (T l n x) j) |
| 614 | (j : Fin 2) : |
| 615 | UniformWaveClass s (phaseEnvelope A χ j) (1 / 2) |
| 616 | (fun l => primaryCoefficient s (phaseMatrix A pref χ l) (T l) (mask l) (phaseFundamental A χ j l) j) := |
| 617 | primaryCoefficient_waveClass (phaseMatrix_jets A pref χ hscale hχ (fun q x hx => (hmap q x hx).1) hpref) |
| 618 | hT hmask (phaseFundamental_class A χ hscale hχ hmap j) hb hM hc hdet hentry hζ hlower j |
| 619 | |
| 620 | end ActualPhase |
| 621 | |
| 622 | /-- Direct binding to the actual externally-cut `LinearWaveBounds` |
| 623 | coefficient. The cutoff occurs exactly once and every geometric class is |
| 624 | uniform in the label. -/ |
| 625 | theorem cut_curl_class [Countable ι] [Nonempty ι] |
| 626 | {s : StripData D} {P : ι → ℕ → D → ℝ} {α κ : ℝ} |
| 627 | (a : ι → LinearWaveBounds.WaveCoefficients D) |
| 628 | (d : ι → LinearWaveBounds.GraphDirections D) (ψ : ι → ℕ → D → ℝ) |
| 629 | (ha : UniformWaveClass s P α (fun l => (a l).amplitude)) |
| 630 | (hψ : UniformClass s (fun _ _ _ => 1) 0 ψ) |
| 631 | (hN : PhaseJetBounds.PolynomialJets (jointDomain s) |
| 632 | (fun q => (a q.2).normal s (d q.2) q.1)) |
| 633 | {b M : ℝ} (hb : 0 < b) |
| 634 | (hlower : ∀ l n x, x ∈ s.domain → b ≤ ‖(a l).normal s (d l) n x‖) |
| 635 | (hupper : ∀ l n x, x ∈ s.domain → ‖(a l).normal s (d l) n x‖ ≤ M) |
| 636 | (hκ : 0 ≤ κ) |
| 637 | (hr : UniformClass s (fun _ _ _ => 1) (-κ) (fun l => (d l).radialField)) |
| 638 | (hθ : UniformClass s (fun _ _ _ => 1) 0 (fun l _ _ => (d l).angular)) |
| 639 | (hz : UniformClass s (fun _ _ _ => 1) 1 (fun l => (d l).axialField s)) |
| 640 | (hR : UniformClass s (fun _ _ _ => 1) 0 (fun l n x => ((a l).radius n x)⁻¹)) |
| 641 | (hK : UniformBandBound s (1 / 2) (fun l n => 1 / (a l).frequency n)) : |
| 642 | UniformWaveClass s P (α + 1 / 2 - κ) |
| 643 | (fun l => ((a l).withCutoff (ψ l)).curlCorrection s (d l)) := by |
| 644 | have hcut : UniformWaveClass s P α (fun l n x => ψ l n x • (a l).amplitude n x) := by |
| 645 | simpa only [zero_add] using real_smul_class hψ ha |
| 646 | have h := normalCurlRemainder_class hN hcut hb hlower hupper hκ hr hθ hz hR hK |
| 647 | simp only [ |
| 648 | LinearWaveBounds.WaveCoefficients.withCutoff, |
| 649 | LinearWaveBounds.WaveCoefficients.normal] at h ⊢ |
| 650 | exact h |
| 651 | |
| 652 | section ActualCutoff |
| 653 | |
| 654 | open PrimaryPulseBounds PhaseJetBounds |
| 655 | |
| 656 | variable {U : Domain (ℕ × ι) PhaseCalculus.Slow} |
| 657 | |
| 658 | /-- The Gaussian profile appears once in the actual coefficient. -/ |
| 659 | theorem phase_cutoff_coefficient_eq (s : StripData D) |
| 660 | (A : Fin 2 → PhaseConstruction U) (pref : Fin 2 → (ℕ × ι) → ℝ) |
| 661 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 662 | (T : ι → ℕ → D → SmoothCovariance.Vec2) (mask : ι → ℕ → D → ℝ) |
| 663 | (j : Fin 2) (l : ι) (n : ℕ) (x : D) : |
| 664 | primaryCoefficient s (phaseMatrix A pref χ l) (T l) (mask l) |
| 665 | (phaseCutoffFundamental A χ j l) j n x = |
| 666 | GaussianTailFlat.profile (χ (n, l) x).2 • |
| 667 | primaryCoefficient s (phaseMatrix A pref χ l) (T l) (mask l) |
| 668 | (phaseFundamental A χ j l) j n x := by |
| 669 | simp only [primaryCoefficient, phaseCutoffFundamental, phaseFundamental, cutoffPulse, |
| 670 | map_smul, smul_smul, mul_comm] |
| 671 | |
| 672 | /-- Global slot-cutoff primary estimate: the actual cutoff extension and |
| 673 | its Gaussian envelope both vanish outside the slot. The edge weight is |
| 674 | still exactly `sqrt zeta`. -/ |
| 675 | theorem phase_cutoff_primary_waveClass [Countable ι] [Nonempty ι] {s : StripData D} |
| 676 | (A : Fin 2 → PhaseConstruction U) (pref : Fin 2 → (ℕ × ι) → ℝ) |
| 677 | (χ : (ℕ × ι) → D → PhaseCalculus.Slow × ℝ) |
| 678 | (T : ι → ℕ → D → SmoothCovariance.Vec2) (mask : ι → ℕ → D → ℝ) |
| 679 | (hscale : ∀ q, U.scale q = s.slow q.1) |
| 680 | (hχ : PolynomialJets (jointDomain s) χ) |
| 681 | (hmap : ∀ q x, x ∈ s.domain → (χ q x).1 ∈ U.carrier q) |
| 682 | (hpref : ∀ j, PolynomialJets U (fun q _ => pref j q)) |
| 683 | (hT : ∀ i, UniformMeanClass s 0 (fun l n x => T l n x i)) |
| 684 | (hmask : UniformClass s (fun _ _ _ => 1) 0 mask) |
| 685 | {b M c : ℝ} (hb : 0 < b) (hM : 1 ≤ M) (hc : 0 < c) |
| 686 | (hdet : ∀ l n x, x ∈ s.domain → |
| 687 | b ≤ |(normalizedMatrix (Real.sqrt (s.slow n)) (phaseMatrix A pref χ l n x)).det|) |
| 688 | (hentry : ∀ l n x, x ∈ s.domain → ∀ i j, |
| 689 | |Real.sqrt (s.slow n) * phaseMatrix A pref χ l n x i j| ≤ M) |
| 690 | (hζ : ∀ x, x ∈ s.domain → 0 < s.zeta x) |
| 691 | (hlower : ∀ l n x, x ∈ s.domain → ∀ j, |
| 692 | c * s.zeta x ≤ SmoothCovariance.weights (phaseMatrix A pref χ l n x) (T l n x) j) |
| 693 | (j : Fin 2) : |
| 694 | UniformWaveClass s (phaseSlotEnvelope A χ j) (1 / 2) |
| 695 | (fun l => primaryCoefficient s (phaseMatrix A pref χ l) (T l) (mask l) |
| 696 | (phaseCutoffFundamental A χ j l) j) := |
| 697 | primaryCoefficient_waveClass (phaseMatrix_jets A pref χ hscale hχ hmap hpref) |
| 698 | hT hmask (phaseCutoffFundamental_class A χ hscale hχ hmap j) |
| 699 | hb hM hc hdet hentry hζ hlower j |
| 700 | |
| 701 | end ActualCutoff |
| 702 | |
| 703 | /-- Apply this directly to `a.withCutoff` when the stronger Gaussian |
| 704 | slot-envelope bound has already been derived for its actual amplitude. -/ |
| 705 | theorem curlCorrection_class [Countable ι] [Nonempty ι] |
| 706 | {s : StripData D} {P : ι → ℕ → D → ℝ} {α κ : ℝ} |
| 707 | (a : ι → LinearWaveBounds.WaveCoefficients D) |
| 708 | (d : ι → LinearWaveBounds.GraphDirections D) |
| 709 | (ha : UniformWaveClass s P α (fun l => (a l).amplitude)) |
| 710 | (hN : PhaseJetBounds.PolynomialJets (jointDomain s) |
| 711 | (fun q => (a q.2).normal s (d q.2) q.1)) |
| 712 | {b M : ℝ} (hb : 0 < b) |
| 713 | (hlower : ∀ l n x, x ∈ s.domain → b ≤ ‖(a l).normal s (d l) n x‖) |
| 714 | (hupper : ∀ l n x, x ∈ s.domain → ‖(a l).normal s (d l) n x‖ ≤ M) |
| 715 | (hκ : 0 ≤ κ) |
| 716 | (hr : UniformClass s (fun _ _ _ => 1) (-κ) (fun l => (d l).radialField)) |
| 717 | (hθ : UniformClass s (fun _ _ _ => 1) 0 (fun l _ _ => (d l).angular)) |
| 718 | (hz : UniformClass s (fun _ _ _ => 1) 1 (fun l => (d l).axialField s)) |
| 719 | (hR : UniformClass s (fun _ _ _ => 1) 0 (fun l n x => ((a l).radius n x)⁻¹)) |
| 720 | (hK : UniformBandBound s (1 / 2) (fun l n => 1 / (a l).frequency n)) : |
| 721 | UniformWaveClass s P (α + 1 / 2 - κ) (fun l => (a l).curlCorrection s (d l)) := by |
| 722 | have h := normalCurlRemainder_class hN ha hb hlower hupper hκ hr hθ hz hR hK |
| 723 | simp only [ |
| 724 | LinearWaveBounds.WaveCoefficients.normal] at h ⊢ |
| 725 | exact h |
| 726 | |
| 727 | /-- The primary half-power yields the advertised `1-kappa` curl bound. -/ |
| 728 | theorem primary_curl_exponent {s : StripData D} {P : ι → ℕ → D → ℝ} {κ : ℝ} |
| 729 | {f : ι → ℕ → D → E} |
| 730 | (hf : UniformWaveClass s P (1 / 2 + 1 / 2 - κ) f) : |
| 731 | UniformWaveClass s P (1 - κ) f := by |
| 732 | simpa only [show (1 / 2 + 1 / 2 : ℝ) = 1 by norm_num] using hf |
| 733 | |
| 734 | theorem primary_curl_budget {s : StripData D} {P : ι → ℕ → D → ℝ} {κ : ℝ} |
| 735 | {f : ι → ℕ → D → E} (hf : UniformWaveClass s P (1 - κ) f) (hκ : κ ≤ 8 / 25) : |
| 736 | UniformWaveClass s P (17 / 25) f := hf.mono_exponent (by linarith) |
| 737 | |
| 738 | end NavierStokes.UniformPrimaryWeights |