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.WaveEdgeExtension |
| 2 | import NavierStokes.ActualSignedGeometry |
| 3 | |
| 4 | /-! |
| 5 | # Smooth attachment at the native dyadic band boundaries |
| 6 | |
| 7 | The dyadic profile is flat at its support endpoints, although it does not |
| 8 | have a zero germ there. Local smoothness of the actual raw primary is |
| 9 | proved from the fixed prepared family before using that flatness. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.NativeBandExtension |
| 15 | |
| 16 | open Set Filter Function PrimaryCopyBounds PhaseJetBounds PrimaryPulseBounds |
| 17 | open scoped Topology ContDiff BigOperators InnerProductSpace |
| 18 | |
| 19 | abbrev Native := WaveEdgeExtension.NativePoint |
| 20 | abbrev Slow := PhaseCalculus.Slow |
| 21 | |
| 22 | noncomputable local instance : NormedAddCommGroup SmoothCovariance.Mat2 := |
| 23 | inferInstanceAs (NormedAddCommGroup (Fin 2 → Fin 2 → ℝ)) |
| 24 | |
| 25 | noncomputable local instance : NormedSpace ℝ SmoothCovariance.Mat2 := |
| 26 | inferInstanceAs (NormedSpace ℝ (Fin 2 → Fin 2 → ℝ)) |
| 27 | |
| 28 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 29 | ENat.natCast_le_of_coe_top_le_withTop le_rfl n |
| 30 | |
| 31 | section FlatJets |
| 32 | |
| 33 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 34 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 35 | |
| 36 | private theorem finite_smooth_neighborhood {f : D → E} {x : D} |
| 37 | (hf : ContDiffAt ℝ ∞ f x) (n : ℕ) : |
| 38 | ∃ s : Set D, IsOpen s ∧ x ∈ s ∧ ContDiffOn ℝ n f s := by |
| 39 | obtain ⟨s, hs, hfs⟩ := hf.contDiffOn (nat_le_infty n) (by simp) |
| 40 | obtain ⟨u, hus, hu, hxu⟩ := mem_nhds_iff.mp hs |
| 41 | exact ⟨u, hu, hxu, hfs.mono hus⟩ |
| 42 | |
| 43 | /-- All actual tensors vanish at a closure point of an open zero region, |
| 44 | provided the function is locally smooth at that point. -/ |
| 45 | theorem jets_zero_at_closure {f : D → E} {s : Set D} {x : D} |
| 46 | (hs : IsOpen s) (hf : ContDiffAt ℝ ∞ f x) (hx : x ∈ closure s) |
| 47 | (hz : ∀ y ∈ s, f y = 0) (n : ℕ) : iteratedFDeriv ℝ n f x = 0 := by |
| 48 | have hc : ContinuousAt (iteratedFDeriv ℝ n f) x := |
| 49 | (hf.iteratedFDeriv_right (m := 0) (by simp)).continuousAt |
| 50 | have : NeBot (𝓝[s] x) := mem_closure_iff_nhdsWithin_neBot.mp hx |
| 51 | have hlim : Tendsto (fun y => ‖iteratedFDeriv ℝ n f y‖) (𝓝[s] x) |
| 52 | (𝓝 ‖iteratedFDeriv ℝ n f x‖) := hc.norm.mono_left inf_le_left |
| 53 | apply norm_eq_zero.mp |
| 54 | apply le_antisymm _ (norm_nonneg _) |
| 55 | apply le_of_tendsto hlim |
| 56 | filter_upwards [self_mem_nhdsWithin] with y hy |
| 57 | have hg : f =ᶠ[𝓝 y] fun _ => 0 := by |
| 58 | filter_upwards [hs.mem_nhds hy] with z hz' |
| 59 | exact hz z hz' |
| 60 | rw [PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq hg n, iteratedFDeriv_fun_zero] |
| 61 | simp |
| 62 | |
| 63 | theorem scalar_support_endpoint_jets {f : ℝ → E} {a b : ℝ} |
| 64 | (hf : ContDiff ℝ ∞ f) (hs : support f ⊆ Ioo a b) (n : ℕ) : |
| 65 | iteratedFDeriv ℝ n f a = 0 ∧ iteratedFDeriv ℝ n f b = 0 := by |
| 66 | constructor |
| 67 | · refine jets_zero_at_closure (x := a) (s := Iio a) isOpen_Iio hf.contDiffAt |
| 68 | (by simp only [closure_Iio, mem_Iic, le_refl]) ?_ n |
| 69 | intro y hy |
| 70 | by_contra hn |
| 71 | exact (not_lt_of_ge hy.le) (hs hn).1 |
| 72 | · refine jets_zero_at_closure (x := b) (s := Ioi b) isOpen_Ioi hf.contDiffAt |
| 73 | (by simp only [closure_Ioi, mem_Ici, le_refl]) ?_ n |
| 74 | intro y hy |
| 75 | by_contra hn |
| 76 | exact (not_lt_of_ge hy.le) (hs hn).2 |
| 77 | |
| 78 | theorem dyadicProfile_endpoint_jets (n : ℕ) : |
| 79 | iteratedFDeriv ℝ n SquaredPartition.dyadicProfile (1 / 2) = 0 ∧ |
| 80 | iteratedFDeriv ℝ n SquaredPartition.dyadicProfile 2 = 0 := |
| 81 | scalar_support_endpoint_jets SquaredPartition.dyadicProfile_smooth |
| 82 | (by rw [SquaredPartition.dyadicProfile_support]) n |
| 83 | |
| 84 | theorem transverse_endpoint_jets {r : ℝ} (hr : 0 < r) (n : ℕ) : |
| 85 | iteratedFDeriv ℝ n (PartitionedCovariance.cutoff r) (-r) = 0 ∧ |
| 86 | iteratedFDeriv ℝ n (PartitionedCovariance.cutoff r) r = 0 := |
| 87 | scalar_support_endpoint_jets (f := PartitionedCovariance.cutoff r) (SquaredPartition.gridMask_smooth r 0) |
| 88 | (by rw [PartitionedCovariance.cutoff_support hr]) n |
| 89 | |
| 90 | /-- Flatness of a scalar function survives an actual smooth pullback. -/ |
| 91 | theorem flat_comp_jets {g : ℝ → ℝ} {q : D → ℝ} {x : D} |
| 92 | (hg : ContDiff ℝ ∞ g) (hq : ContDiffAt ℝ ∞ q x) |
| 93 | (hz : ∀ j, iteratedFDeriv ℝ j g (q x) = 0) (n : ℕ) : |
| 94 | iteratedFDeriv ℝ n (fun y => g (q y)) x = 0 := by |
| 95 | obtain ⟨s, hs, hxs, hqs⟩ := finite_smooth_neighborhood hq n |
| 96 | let K : ℝ := 1 + ∑ j ∈ Finset.range (n + 1), ‖iteratedFDeriv ℝ j q x‖ |
| 97 | have hK : 1 ≤ K := by |
| 98 | dsimp only [K] |
| 99 | exact le_add_of_nonneg_right (Finset.sum_nonneg (fun _ _ => norm_nonneg _)) |
| 100 | have hbound (j : ℕ) (hj : j ≤ n) : ‖iteratedFDeriv ℝ j q x‖ ≤ K := by |
| 101 | have hb := Finset.single_le_sum (f := fun j => ‖iteratedFDeriv ℝ j q x‖) |
| 102 | (fun _ _ => norm_nonneg _) (Finset.mem_range.mpr (Nat.lt_succ_of_le hj)) |
| 103 | exact hb.trans (le_add_of_nonneg_left (by norm_num)) |
| 104 | have hb := norm_iteratedFDerivWithin_comp_le (hg.of_le (nat_le_infty n)).contDiffOn hqs |
| 105 | (n := n) (by rfl) uniqueDiffOn_univ hs.uniqueDiffOn (mapsTo_univ q s) hxs |
| 106 | (C := 0) (D := K) |
| 107 | (by intro j hj; simp only [iteratedFDerivWithin_univ, hz, norm_zero, le_refl]) |
| 108 | (by |
| 109 | intro j hj hjn |
| 110 | rw [iteratedFDerivWithin_of_isOpen j hs hxs] |
| 111 | exact (hbound j hjn).trans (by simpa only [pow_one] using pow_le_pow_right₀ hK hj)) |
| 112 | rw [iteratedFDerivWithin_of_isOpen n hs hxs] at hb |
| 113 | apply norm_eq_zero.mp |
| 114 | simp only [mul_zero, zero_mul] at hb |
| 115 | exact le_antisymm hb (norm_nonneg _) |
| 116 | |
| 117 | /-- A flat scalar factor kills every tensor of the actual smooth product. -/ |
| 118 | theorem flat_smul_jets {g : D → ℝ} {f : D → E} {x : D} |
| 119 | (hg : ContDiffAt ℝ ∞ g x) (hf : ContDiffAt ℝ ∞ f x) |
| 120 | (hz : ∀ j, iteratedFDeriv ℝ j g x = 0) (n : ℕ) : |
| 121 | iteratedFDeriv ℝ n (fun y => g y • f y) x = 0 := by |
| 122 | obtain ⟨s, hs, hxs, hgs⟩ := finite_smooth_neighborhood hg n |
| 123 | obtain ⟨t, ht, hxt, hft⟩ := finite_smooth_neighborhood hf n |
| 124 | have hb := norm_iteratedFDerivWithin_smul_le |
| 125 | (hgs.mono (inter_subset_left (t := t))) (hft.mono (inter_subset_right (s := s))) |
| 126 | (hs.inter ht).uniqueDiffOn (show x ∈ s ∩ t from ⟨hxs, hxt⟩) (n := n) (by rfl) |
| 127 | simp only [iteratedFDerivWithin_of_isOpen _ (hs.inter ht) ⟨hxs, hxt⟩, |
| 128 | hz, norm_zero, mul_zero, zero_mul, Finset.sum_const_zero] at hb |
| 129 | exact norm_eq_zero.mp (le_antisymm hb (norm_nonneg _)) |
| 130 | |
| 131 | theorem dyadic_product_endpoint {q : D → ℝ} {f : D → E} {x : D} |
| 132 | (hq : ContDiffAt ℝ ∞ q x) (hf : ContDiffAt ℝ ∞ f x) |
| 133 | (he : q x = 1 / 2 ∨ q x = 2) : |
| 134 | ContDiffAt ℝ ∞ (fun y => SquaredPartition.dyadicProfile (q y) • f y) x ∧ |
| 135 | ∀ n, iteratedFDeriv ℝ n (fun y => SquaredPartition.dyadicProfile (q y) • f y) x = 0 := by |
| 136 | have hc := SquaredPartition.dyadicProfile_smooth.contDiffAt.comp x hq |
| 137 | refine ⟨hc.smul hf, flat_smul_jets hc hf ?_⟩ |
| 138 | intro j |
| 139 | apply flat_comp_jets SquaredPartition.dyadicProfile_smooth hq |
| 140 | intro k |
| 141 | rcases he with h | h |
| 142 | · rw [h]; exact (dyadicProfile_endpoint_jets k).1 |
| 143 | · rw [h]; exact (dyadicProfile_endpoint_jets k).2 |
| 144 | |
| 145 | end FlatJets |
| 146 | |
| 147 | /-! ## Local smoothness from the actual matrix and phase construction -/ |
| 148 | |
| 149 | section LocalAlgebra |
| 150 | |
| 151 | variable {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 152 | |
| 153 | omit [NormedSpace ℝ D] in |
| 154 | theorem strictCone_eventually {H : D → SmoothCovariance.Mat2} |
| 155 | {T : D → SmoothCovariance.Vec2} {x : D} |
| 156 | (hH : ∀ i j, ContinuousAt (fun y => H y i j) x) |
| 157 | (hT : ∀ i, ContinuousAt (fun y => T y i) x) |
| 158 | (hx : SmoothCovariance.StrictCone (H x) (T x)) : |
| 159 | ∀ᶠ y in 𝓝 x, SmoothCovariance.StrictCone (H y) (T y) := by |
| 160 | have hH' : ContinuousAt H x := continuousAt_pi.mpr (fun i => continuousAt_pi.mpr (hH i)) |
| 161 | have hT' : ContinuousAt T x := continuousAt_pi.mpr hT |
| 162 | exact (hH'.prodMk hT') (SmoothCovariance.isOpen_strictConeRegion.mem_nhds hx) |
| 163 | |
| 164 | theorem cramer_amplitude_contDiffAt {H : D → SmoothCovariance.Mat2} |
| 165 | {T : D → SmoothCovariance.Vec2} {x : D} |
| 166 | (hH : ∀ i j, ContDiffAt ℝ ∞ (fun y => H y i j) x) |
| 167 | (hT : ∀ i, ContDiffAt ℝ ∞ (fun y => T y i) x) |
| 168 | (hx : SmoothCovariance.StrictCone (H x) (T x)) (j : Fin 2) : |
| 169 | ContDiffAt ℝ ∞ (fun y => Real.sqrt (SmoothCovariance.weights (H y) (T y) j)) x := by |
| 170 | have hd : ContDiffAt ℝ ∞ (fun y => (H y).det) x := by |
| 171 | simp only [Matrix.det_fin_two] |
| 172 | exact ((hH 0 0).mul (hH 1 1)).sub ((hH 0 1).mul (hH 1 0)) |
| 173 | have hn : ContDiffAt ℝ ∞ (fun y => SmoothCovariance.cramerNumerator (H y) (T y) j) x := by |
| 174 | fin_cases j |
| 175 | · exact ((hT 0).mul (hH 1 1)).sub ((hH 0 1).mul (hT 1)) |
| 176 | · exact ((hH 0 0).mul (hT 1)).sub ((hT 0).mul (hH 1 0)) |
| 177 | exact (hn.div hd hx.det_ne_zero).sqrt (hx.weights_pos j).ne' |
| 178 | |
| 179 | theorem projectedPressure_contDiffAt (frequency : ℝ) |
| 180 | {N Ndot u action source : D → ProblemStatement.Space} {x : D} |
| 181 | (hN : ContDiffAt ℝ ∞ N x) (hNd : ContDiffAt ℝ ∞ Ndot x) |
| 182 | (hu : ContDiffAt ℝ ∞ u x) (ha : ContDiffAt ℝ ∞ action x) |
| 183 | (hf : ContDiffAt ℝ ∞ source x) (hn : N x ≠ 0) : |
| 184 | ContDiffAt ℝ ∞ (ParticularWaveBounds.projectedPressure frequency N Ndot u action source) x := by |
| 185 | have hp : ContDiffAt ℝ ∞ (fun y => TangentProjection.pressureCoefficient |
| 186 | (N y) (Ndot y) (u y) (action y) (source y)) x := |
| 187 | (((hN.inner ℝ ha).sub (hNd.inner ℝ hu)).add (hN.inner ℝ hf)).div |
| 188 | (hN.inner ℝ hN) (inner_self_ne_zero.mpr hn) |
| 189 | exact (contDiffAt_const.mul (Complex.ofRealCLM.contDiff.contDiffAt.comp x hp)).div_const (frequency : ℂ) |
| 190 | |
| 191 | end LocalAlgebra |
| 192 | |
| 193 | noncomputable def nativeQ (h : ℝ) (x : Native) : ℝ := |
| 194 | SimilarityCoordinates.coordinateQ (2 * h) (x.1.2.2, x.1.2.1) |
| 195 | |
| 196 | theorem nativeQ_contDiffAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 197 | {x : Native} (hT : 0 < x.1.2.2) : ContDiffAt ℝ ∞ (nativeQ h) x := |
| 198 | (SimilarityCoordinates.coordinateQ_smooth (by linarith) (by linarith) hT).comp x |
| 199 | (contDiffAt_fst.snd.snd.prodMk contDiffAt_fst.snd.fst) |
| 200 | |
| 201 | section ActualTarget |
| 202 | |
| 203 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 204 | {ld : ModulatedProfileAssembly.LoopData W} (v : ModulatedProfileAssembly.Witness ld) |
| 205 | |
| 206 | theorem actualTarget_contDiffAt {p : Slow} (hT : 0 < p.2.2) |
| 207 | (hX : 0 < (BaseChartJets.normalizedCoordinates F.data.h p).2.1) : |
| 208 | ContDiffAt ℝ ∞ (PrimaryTargetBounds.actualTarget v) p := by |
| 209 | have hc := BaseChartJets.normalizedCoordinates_smoothAt F.data.h_pos F.data.h_lt_half hT |
| 210 | have hq := BaseChartJets.normalizedCoordinates_q_pos F.data.h_pos F.data.h_lt_half hT |
| 211 | have he := BaseChartJets.normalizedCoordinates_eta F.data.h_pos F.data.h_lt_half hT |
| 212 | have hs := (FinalSlowBase.leadingStress_smoothAt v hX (abs_le.mp he.le)).comp p hc.snd |
| 213 | have hv := MovingFrameODE.pairCLM.contDiff.contDiffAt.comp p hs |
| 214 | exact (hc.fst.rpow_const_of_ne hq.ne').smul hv |
| 215 | |
| 216 | end ActualTarget |
| 217 | |
| 218 | section PhaseLocal |
| 219 | |
| 220 | variable {ι : Type*} {U : Domain ι Slow} |
| 221 | |
| 222 | theorem phaseCovariance_contDiffAt (F : Fin 2 → PhaseConstruction U) |
| 223 | (pref : Fin 2 → ι → ℝ) (hpref : ∀ j, PolynomialJets U (fun i _ => pref j i)) |
| 224 | (i : ι) {p : Slow} (hp : p ∈ U.carrier i) (r c : Fin 2) : |
| 225 | ContDiffAt ℝ ∞ (fun q => primaryCovariance pref (fun j => (F j).frame) |
| 226 | (fun j => (F j).lam) (fun j => (F j).u) (fun j => (F j).L) i q r c) p := |
| 227 | ((primaryCovariance_entry_polynomial U pref (fun j => (F j).frame) |
| 228 | (fun j => (F j).lam) (fun j => (F j).u) (fun j => (F j).L) |
| 229 | hpref (fun j => (F j).pulse_jets) (fun j => (F j).lam_pos) |
| 230 | (fun j => (F j).u_pos) (fun j => (F j).L_pos) r c).smooth i).contDiffAt ((U.isOpen i).mem_nhds hp) |
| 231 | |
| 232 | theorem normalizedPulse_contDiffAt (F : PhaseConstruction U) (i : ι) {z : Slow × ℝ} |
| 233 | (hp : z.1 ∈ U.carrier i) (ht : z.2 ∈ Ioo (0 : ℝ) 1) : |
| 234 | ContDiffAt ℝ ∞ (normalizedPulse (F.frame i) (F.lam i) (F.u i) (F.L i)) z := |
| 235 | (F.pulse_jets.smooth i).contDiffAt (((U.isOpen i).prod isOpen_Ioo).mem_nhds ⟨hp, ht⟩) |
| 236 | |
| 237 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 238 | |
| 239 | /-- The actual Cramer square root and actual homogeneous ODE pulse are |
| 240 | smooth at a strict-cone point, regardless of which side of a band boundary |
| 241 | the neighboring points occupy. -/ |
| 242 | theorem primaryVelocity_contDiffAt (F : Fin 2 → PhaseConstruction U) |
| 243 | (pref : Fin 2 → ι → ℝ) (hpref : ∀ j, PolynomialJets U (fun i _ => pref j i)) |
| 244 | (χ : ι → D → Slow × ℝ) (ε : ι → ℝ) |
| 245 | (T : ι → D → SmoothCovariance.Vec2) (mask : ι → D → ℝ) |
| 246 | (j : Fin 2) (i : ι) {x : D} |
| 247 | (hχ : ContDiffAt ℝ ∞ (χ i) x) |
| 248 | (hT : ∀ k, ContDiffAt ℝ ∞ (fun y => T i y k) x) |
| 249 | (hm : ContDiffAt ℝ ∞ (mask i) x) |
| 250 | (hp : (χ i x).1 ∈ U.carrier i) (ht : (χ i x).2 ∈ Ioo (0 : ℝ) 1) |
| 251 | (hc : SmoothCovariance.StrictCone (pulseMatrix F pref χ i x) (T i x)) : |
| 252 | ContDiffAt ℝ ∞ (primaryVelocity F pref χ ε T mask j i) x := by |
| 253 | have hH (r c : Fin 2) : ContDiffAt ℝ ∞ (fun y => pulseMatrix F pref χ i y r c) x := by |
| 254 | have hcomp := (phaseCovariance_contDiffAt F pref hpref i hp r c).comp x hχ.fst |
| 255 | exact hcomp |
| 256 | have ha := cramer_amplitude_contDiffAt hH hT hc j |
| 257 | have hu := (normalizedPulse_contDiffAt (F j) i hp ht).comp x hχ |
| 258 | exact ((contDiffAt_const.mul ha).mul hm).smul hu |
| 259 | |
| 260 | theorem phasePressure_contDiffAt (F : PhaseConstruction U) |
| 261 | (χ : ι → D → Slow × ℝ) (frequency : ι → ℝ) (u : ι → D → ProblemStatement.Space) |
| 262 | (i : ι) {x : D} (hχ : ContDiffAt ℝ ∞ (χ i) x) |
| 263 | (hp : (χ i x).1 ∈ U.carrier i) (ht : (χ i x).2 ∈ Ioo (0 : ℝ) 1) |
| 264 | (hu : ContDiffAt ℝ ∞ (u i) x) : |
| 265 | ContDiffAt ℝ ∞ (phasePressure F χ frequency u i) x := by |
| 266 | have hz : ContDiffAt ℝ ∞ (phasePoint F χ i) x := |
| 267 | hχ.fst.prodMk (contDiffAt_const.mul hχ.snd) |
| 268 | have hm : phasePoint F χ i x ∈ (U.slot F.V F.openV).carrier i := by |
| 269 | refine ⟨hp, F.interval i ⟨mul_nonneg (F.L_pos i).le ht.1.le, ?_⟩⟩ |
| 270 | have hb := mul_le_mul_of_nonneg_left ht.2.le (F.L_pos i).le |
| 271 | simp only [mul_one] at hb |
| 272 | exact hb |
| 273 | have hbase := F.phase.polynomial_jets U F.V F.openV F.baseF F.baseG |
| 274 | F.r_pos F.one_le_M F.constants F.epsilon_ne F.radius F.slot |
| 275 | have hn := ((hbase.1.smooth i).contDiffAt (((U.slot F.V F.openV).isOpen i).mem_nhds hm)).comp x hz |
| 276 | have hnd := ((hbase.2.1.smooth i).contDiffAt (((U.slot F.V F.openV).isOpen i).mem_nhds hm)).comp x hz |
| 277 | have hs := ((hbase.2.2.smooth i).contDiffAt (((U.slot F.V F.openV).isOpen i).mem_nhds hm)).comp x hz |
| 278 | have hF := ((F.baseF.smooth i).contDiffAt ((U.isOpen i).mem_nhds hp)).comp x hχ.fst |
| 279 | have hA := PrimaryCopyBridge.baseOperatorFamily.contDiff.contDiffAt.comp x (hF.prodMk hs) |
| 280 | apply projectedPressure_contDiffAt (frequency i) hn hnd hu (hA.clm_apply hu) contDiffAt_const |
| 281 | exact norm_pos_iff.mp (F.b_pos.trans_le (F.normal_range.1 i _ hm)) |
| 282 | |
| 283 | end PhaseLocal |
| 284 | |
| 285 | /-! ## The same fixed prepared family at the closed band endpoints -/ |
| 286 | |
| 287 | section Prepared |
| 288 | |
| 289 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 290 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 291 | (v : ModulatedProfileAssembly.Witness ld) |
| 292 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 293 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 294 | |
| 295 | /-- These are precisely the closed-reference zeroth-order bounds of the |
| 296 | already selected family. No new family or frequency threshold is selected. -/ |
| 297 | structure ClosedMargins (vr vt : TorusInverse.Plane) where |
| 298 | gap : ℝ |
| 299 | entry : ℝ |
| 300 | lower : ℝ |
| 301 | gap_pos : 0 < gap |
| 302 | entry_one : 1 ≤ entry |
| 303 | lower_pos : 0 < lower |
| 304 | covariance : ∀ (L : PrimaryGeometryAssembly.Index W a.N) (p : Slow), |
| 305 | p ∈ PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W) → |
| 306 | p ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L → |
| 307 | PrimaryCovarianceBounds.ZeroOrderBounds (Real.sqrt (ChartScales.S (BaseChartJets.cellBand L))) |
| 308 | gap entry lower (PrimaryTargetBounds.movingWeight W p) |
| 309 | (PrimaryTargetBounds.preparedCovariance H v a vr vt L p) |
| 310 | (fun k => PrimaryTargetBounds.actualTarget v p k) |
| 311 | |
| 312 | noncomputable def baseVelocity (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) (j : Fin 2) : |
| 313 | PrimaryGeometryAssembly.Index W a.N → Native → ProblemStatement.Space := |
| 314 | primaryVelocity (PrimaryGeometryAssembly.construction H v a hr0) |
| 315 | (preparedPrefactor r0 vr vt) (ActualSignedGeometry.pulseCoordinates H v a) |
| 316 | (fun L => ChartScales.epsilon F.data.h (BaseChartJets.cellBand L)) |
| 317 | (fun _ x k => PrimaryTargetBounds.actualTarget v x.1 k) |
| 318 | (fun L x => PrimaryRepresentatives.nativeMask (PrimaryGeometryAssembly.label W L).1 |
| 319 | (PrimaryGeometryAssembly.label W L).2 x.1) j |
| 320 | |
| 321 | noncomputable def basePressure (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) (j : Fin 2) : |
| 322 | PrimaryGeometryAssembly.Index W a.N → Native → ℂ := |
| 323 | phasePressure (PrimaryGeometryAssembly.construction H v a hr0 j) |
| 324 | (ActualSignedGeometry.pulseCoordinates H v a) |
| 325 | (fun L => (ChartScales.carrier F.data.h (BaseChartJets.cellBand L) : ℝ)) |
| 326 | (baseVelocity H v a hr0 vr vt j) |
| 327 | |
| 328 | noncomputable def outerFactor (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : ℝ := |
| 329 | outerCutoff (ActualSignedGeometry.pulseCoordinates H v a L x).2 * |
| 330 | (SquaredPartition.dyadicProfile (nativeQ F.data.h x) * PartitionedCovariance.cutoff r0 x.2.1) |
| 331 | |
| 332 | noncomputable def bandVelocity (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) (j : Fin 2) |
| 333 | (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : ProblemStatement.Space := |
| 334 | outerFactor H v a L x • baseVelocity H v a hr0 vr vt j L x |
| 335 | |
| 336 | noncomputable def bandPressure (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) (j : Fin 2) |
| 337 | (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : ℂ := |
| 338 | outerFactor H v a L x • basePressure H v a hr0 vr vt j L x |
| 339 | |
| 340 | theorem coordinates_smooth (L : PrimaryGeometryAssembly.Index W a.N) : |
| 341 | ContDiff ℝ ∞ (ActualSignedGeometry.pulseCoordinates H v a L) := |
| 342 | contDiff_fst.prodMk (contDiff_snd.snd.div_const _) |
| 343 | |
| 344 | theorem outerFactor_contDiffAt (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 345 | (hT : 0 < x.1.2.2) : ContDiffAt ℝ ∞ (outerFactor H v a L) x := by |
| 346 | have ho := outerCutoff_smooth.contDiffAt.comp x (coordinates_smooth H v a L).contDiffAt.snd |
| 347 | have hq := SquaredPartition.dyadicProfile_smooth.contDiffAt.comp x |
| 348 | (nativeQ_contDiffAt F.data.h_pos F.data.h_lt_half hT) |
| 349 | have ht := (SquaredPartition.gridMask_smooth r0 0).contDiffAt.comp x contDiffAt_snd.fst |
| 350 | exact ho.mul (hq.mul ht) |
| 351 | |
| 352 | theorem bandPressure_eq_phasePressure (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) (j : Fin 2) |
| 353 | (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 354 | bandPressure H v a hr0 vr vt j L x = |
| 355 | phasePressure (PrimaryGeometryAssembly.construction H v a hr0 j) |
| 356 | (ActualSignedGeometry.pulseCoordinates H v a) |
| 357 | (fun L => (ChartScales.carrier F.data.h (BaseChartJets.cellBand L) : ℝ)) |
| 358 | (bandVelocity H v a hr0 vr vt j) L x := |
| 359 | (phasePressure_smul _ _ _ (outerFactor H v a) (baseVelocity H v a hr0 vr vt j) L x).symm |
| 360 | |
| 361 | end Prepared |
| 362 | |
| 363 | noncomputable def radialInterior {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : Set Native := |
| 364 | WaveEdgeExtension.windowDomain WaveEdgeExtension.nativeSlowDomain (WaveEdgeExtension.nativeRadius F.data.h) |
| 365 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) |
| 366 | |
| 367 | theorem radialInterior_open {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) : |
| 368 | IsOpen (radialInterior W) := |
| 369 | WaveEdgeExtension.windowDomain_open WaveEdgeExtension.nativeSlowDomain_open |
| 370 | (WaveEdgeExtension.nativeRadius_smooth F.data.h_pos F.data.h_lt_half).continuousOn _ _ |
| 371 | |
| 372 | theorem radialInterior_spec {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 373 | {x : Native} (hx : x ∈ radialInterior W) : |
| 374 | 0 < x.1.2.2 ∧ 0 < x.1.1 ∧ |
| 375 | (BaseChartJets.normalizedCoordinates F.data.h x.1).2.1 ∈ |
| 376 | Ioo (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W) ∧ |
| 377 | 0 < PrimaryTargetBounds.movingWeight W x.1 := by |
| 378 | have ht : 0 < x.1.2.2 := hx.1 |
| 379 | have ha := PrimaryTargetBounds.leftRadius_pos W |
| 380 | have hr := ha.trans hx.2.1 |
| 381 | have hq := BaseChartJets.normalizedCoordinates_q_pos F.data.h_pos F.data.h_lt_half ht |
| 382 | have hroot := Real.sqrt_pos.mpr hq |
| 383 | have hR : 0 < x.1.1 := by |
| 384 | have hm := mul_pos hr hroot |
| 385 | simpa only [WaveEdgeExtension.nativeRadius, PrimaryTargetBounds.profileRadius, |
| 386 | div_mul_cancel₀ _ hroot.ne'] using hm |
| 387 | have hasq : (PrimaryTargetBounds.leftRadius W) ^ 2 / 2 = NominalConeAssembly.activeLeft W := by |
| 388 | rw [PrimaryTargetBounds.leftRadius, |
| 389 | Real.sq_sqrt (mul_nonneg (by norm_num) (NominalConeAssembly.activeLeft_pos W).le)] |
| 390 | ring |
| 391 | have hbsq : (PrimaryTargetBounds.rightRadius W) ^ 2 / 2 = NominalConeAssembly.activeRight W := by |
| 392 | rw [PrimaryTargetBounds.rightRadius, |
| 393 | Real.sq_sqrt (mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos W).le)] |
| 394 | ring |
| 395 | have hsq := PrimaryTargetBounds.profileRadius_sq (F := F) ht |
| 396 | have hX : (BaseChartJets.normalizedCoordinates F.data.h x.1).2.1 ∈ |
| 397 | Ioo (NominalConeAssembly.activeLeft W) (NominalConeAssembly.activeRight W) := by |
| 398 | rw [← hsq, ← hasq, ← hbsq] |
| 399 | change (PrimaryTargetBounds.leftRadius W) ^ 2 / 2 < |
| 400 | (WaveEdgeExtension.nativeRadius F.data.h x) ^ 2 / 2 ∧ |
| 401 | (WaveEdgeExtension.nativeRadius F.data.h x) ^ 2 / 2 < |
| 402 | (PrimaryTargetBounds.rightRadius W) ^ 2 / 2 |
| 403 | constructor |
| 404 | · nlinarith [mul_pos (sub_pos.mpr hx.2.1) (add_pos hr ha)] |
| 405 | · nlinarith [mul_pos (sub_pos.mpr hx.2.2) (add_pos (hr.trans hx.2.2) hr)] |
| 406 | refine ⟨ht, hR, hX, ?_⟩ |
| 407 | exact WeightedRadialPrimitive.zeta_pos _ _ (WeightedRadialPrimitive.logPosition_mem ha hx.2) |
| 408 | |
| 409 | theorem reference_of_closed_band {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 410 | {x : Native} (hx : x ∈ radialInterior W) (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) : |
| 411 | x.1 ∈ PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W) := by |
| 412 | obtain ⟨ht, hR, hX, _⟩ := radialInterior_spec W hx |
| 413 | have hs := SimilarityCoordinates.coordinateQ_spec |
| 414 | (show 0 < 2 * F.data.h by linarith [F.data.h_pos]) |
| 415 | (show 2 * F.data.h < 1 by linarith [F.data.h_lt_half]) (p := (x.1.2.2, x.1.2.1)) ht |
| 416 | refine ⟨subset_closure ?_, ht⟩ |
| 417 | refine ⟨hR.le, ht.le, nativeQ F.data.h x, hq, hs.2, ?_⟩ |
| 418 | have he := And.intro hX.1.le hX.2.le |
| 419 | simp only [BaseChartJets.normalizedCoordinates_eq, SimilarityHomogeneity.chartX, |
| 420 | SimilarityCoordinates.coordinateX, SimilarityHomogeneity.chartQ, div_div] at he |
| 421 | exact he |
| 422 | |
| 423 | section PreparedRegularity |
| 424 | |
| 425 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 426 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 427 | (v : ModulatedProfileAssembly.Witness ld) |
| 428 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 429 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 430 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 431 | (M : ClosedMargins H v a vr vt) |
| 432 | |
| 433 | include M |
| 434 | |
| 435 | theorem prepared_strictCone (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 436 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 437 | (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) : |
| 438 | SmoothCovariance.StrictCone |
| 439 | (pulseMatrix (PrimaryGeometryAssembly.construction H v a hr0) |
| 440 | (preparedPrefactor r0 vr vt) (ActualSignedGeometry.pulseCoordinates H v a) L x) |
| 441 | (fun k => PrimaryTargetBounds.actualTarget v x.1 k) := by |
| 442 | have hm := M.covariance L x.1 (reference_of_closed_band W hx hq) hp |
| 443 | have hc := hm.strictCone |
| 444 | (Real.sqrt_pos.mpr (zero_lt_one.trans_le ((PrimaryGeometryAssembly.domain W a.N).one_le_scale L))) |
| 445 | M.lower_pos (radialInterior_spec W hx).2.2.2 |
| 446 | simp only [PrimaryTargetBounds.preparedCovariance_eq_construction H v a vr vt hr0, |
| 447 | pulseMatrix, ActualSignedGeometry.pulseCoordinates] at hc ⊢ |
| 448 | exact hc |
| 449 | |
| 450 | theorem baseVelocity_contDiffAt_closed (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 451 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 452 | (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) |
| 453 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1) : |
| 454 | ContDiffAt ℝ ∞ (baseVelocity H v a hr0 vr vt j L) x := by |
| 455 | have hd := radialInterior_spec W hx |
| 456 | have ht := (actualTarget_contDiffAt v hd.1 |
| 457 | ((NominalConeAssembly.activeLeft_pos W).trans hd.2.2.1.1)).comp x contDiffAt_fst |
| 458 | have htk (k : Fin 2) : ContDiffAt ℝ ∞ (fun y : Native => PrimaryTargetBounds.actualTarget v y.1 k) x := by |
| 459 | let Lk : MovingFrameODE.Plane →L[ℝ] ℝ := PiLp.proj 2 (fun _ : Fin 2 => ℝ) k |
| 460 | have hc := Lk.contDiff.contDiffAt.comp x ht |
| 461 | exact hc |
| 462 | have hmask := (PrimaryRepresentatives.nativeMask_smooth (PrimaryGeometryAssembly.label W L).1 |
| 463 | (PrimaryGeometryAssembly.label W L).2).contDiffAt.comp x contDiffAt_fst |
| 464 | exact primaryVelocity_contDiffAt (PrimaryGeometryAssembly.construction H v a hr0) |
| 465 | (preparedPrefactor r0 vr vt) (fun j => preparedPrefactor_jets r0 vr vt a.N j) |
| 466 | (ActualSignedGeometry.pulseCoordinates H v a) |
| 467 | (fun L => ChartScales.epsilon F.data.h (BaseChartJets.cellBand L)) |
| 468 | (fun _ x k => PrimaryTargetBounds.actualTarget v x.1 k) |
| 469 | (fun L x => PrimaryRepresentatives.nativeMask (PrimaryGeometryAssembly.label W L).1 |
| 470 | (PrimaryGeometryAssembly.label W L).2 x.1) j L |
| 471 | (coordinates_smooth H v a L).contDiffAt htk hmask hp hslot |
| 472 | (prepared_strictCone H v a hr0 vr vt M L hx hp hq) |
| 473 | |
| 474 | theorem basePressure_contDiffAt_closed (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 475 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 476 | (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) |
| 477 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1) : |
| 478 | ContDiffAt ℝ ∞ (basePressure H v a hr0 vr vt j L) x := |
| 479 | phasePressure_contDiffAt (PrimaryGeometryAssembly.construction H v a hr0 j) |
| 480 | (ActualSignedGeometry.pulseCoordinates H v a) _ (baseVelocity H v a hr0 vr vt j) L |
| 481 | (coordinates_smooth H v a L).contDiffAt hp hslot |
| 482 | (baseVelocity_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq hslot) |
| 483 | |
| 484 | theorem band_pair_contDiffAt_closed (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 485 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 486 | (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) |
| 487 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1) : |
| 488 | ContDiffAt ℝ ∞ (bandVelocity H v a hr0 vr vt j L) x ∧ |
| 489 | ContDiffAt ℝ ∞ (bandPressure H v a hr0 vr vt j L) x := by |
| 490 | have hf := outerFactor_contDiffAt H v a L (radialInterior_spec W hx).1 |
| 491 | exact ⟨hf.smul (baseVelocity_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq hslot), |
| 492 | hf.smul (basePressure_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq hslot)⟩ |
| 493 | |
| 494 | end PreparedRegularity |
| 495 | |
| 496 | section ZeroGerms |
| 497 | |
| 498 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 499 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 500 | |
| 501 | theorem zero_germ_jets {f : D → E} {x : D} (h : f =ᶠ[𝓝 x] fun _ => 0) : |
| 502 | ContDiffAt ℝ ∞ f x ∧ ∀ n, iteratedFDeriv ℝ n f x = 0 := by |
| 503 | refine ⟨contDiffAt_const.congr_of_eventuallyEq h, ?_⟩ |
| 504 | intro n |
| 505 | rw [PhysicalWaveSum.iteratedFDeriv_eq_of_eventuallyEq h n, iteratedFDeriv_fun_zero] |
| 506 | rfl |
| 507 | |
| 508 | omit [NormedSpace ℝ D] in |
| 509 | theorem scalar_zero_germ {g : D → ℝ} (f : D → E) {x : D} |
| 510 | (h : g =ᶠ[𝓝 x] fun _ => 0) : (fun y => g y • f y) =ᶠ[𝓝 x] fun _ => 0 := by |
| 511 | filter_upwards [h] with y hy |
| 512 | simp only [hy, zero_smul] |
| 513 | |
| 514 | omit [NormedSpace ℝ D] in |
| 515 | theorem vector_zero_germ (g : D → ℝ) {f : D → E} {x : D} |
| 516 | (h : f =ᶠ[𝓝 x] fun _ => 0) : (fun y => g y • f y) =ᶠ[𝓝 x] fun _ => 0 := by |
| 517 | filter_upwards [h] with y hy |
| 518 | simp only [hy, smul_zero] |
| 519 | |
| 520 | end ZeroGerms |
| 521 | |
| 522 | section PreparedGerms |
| 523 | |
| 524 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 525 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 526 | (v : ModulatedProfileAssembly.Witness ld) |
| 527 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 528 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 529 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 530 | |
| 531 | theorem baseVelocity_zero_germ (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 532 | (hT : 0 < x.1.2.2) (hp : x.1 ∉ (PrimaryGeometryAssembly.domain W a.N).carrier L) : |
| 533 | baseVelocity H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 534 | have hz := (preparedMask_zero_germ L hT hp).comp_tendsto |
| 535 | (show ContinuousAt (fun y : Native => y.1) x from continuousAt_fst) |
| 536 | filter_upwards [hz] with y hy |
| 537 | simp only [Function.comp_apply] at hy |
| 538 | simp only [baseVelocity, primaryVelocity, PartitionedCovariance.amplitude, |
| 539 | hy, mul_zero, zero_smul] |
| 540 | |
| 541 | theorem basePressure_zero_germ (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 542 | (hT : 0 < x.1.2.2) (hp : x.1 ∉ (PrimaryGeometryAssembly.domain W a.N).carrier L) : |
| 543 | basePressure H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 544 | filter_upwards [baseVelocity_zero_germ H v a hr0 vr vt j L hT hp] with y hy |
| 545 | simp only [basePressure, phasePressure, ParticularWaveBounds.projectedPressure, |
| 546 | TangentProjection.pressureCoefficient, hy, map_zero, inner_zero_right, |
| 547 | sub_self, add_zero, zero_div, Complex.ofReal_zero, mul_zero] |
| 548 | |
| 549 | theorem band_pair_zero_germ_cell (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 550 | (hT : 0 < x.1.2.2) (hp : x.1 ∉ (PrimaryGeometryAssembly.domain W a.N).carrier L) : |
| 551 | (bandVelocity H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 552 | (bandPressure H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0) := |
| 553 | ⟨vector_zero_germ _ (baseVelocity_zero_germ H v a hr0 vr vt j L hT hp), |
| 554 | vector_zero_germ _ (basePressure_zero_germ H v a hr0 vr vt j L hT hp)⟩ |
| 555 | |
| 556 | theorem factor_zero_germ_slot (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 557 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∉ Ioo (0 : ℝ) 1) : |
| 558 | outerFactor H v a L =ᶠ[𝓝 x] fun _ => 0 := by |
| 559 | have hn : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∉ tsupport outerCutoff := by |
| 560 | intro hs |
| 561 | have hb := outerCutoff_support hs |
| 562 | apply hslot |
| 563 | constructor <;> linarith [hb.1, hb.2] |
| 564 | have hz := (notMem_tsupport_iff_eventuallyEq.mp hn).comp_tendsto |
| 565 | (coordinates_smooth H v a L).continuous.continuousAt.snd |
| 566 | filter_upwards [hz] with y hy |
| 567 | simp only [Function.comp_apply, Pi.zero_apply] at hy |
| 568 | simp only [outerFactor, hy, zero_mul] |
| 569 | |
| 570 | theorem factor_zero_germ_band (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 571 | (hT : 0 < x.1.2.2) (hq : nativeQ F.data.h x ∉ Icc (1 / 2 : ℝ) 2) : |
| 572 | outerFactor H v a L =ᶠ[𝓝 x] fun _ => 0 := by |
| 573 | have hn : nativeQ F.data.h x ∉ tsupport SquaredPartition.dyadicProfile := by |
| 574 | rwa [SquaredPartition.dyadicProfile_tsupport] |
| 575 | have hz := (notMem_tsupport_iff_eventuallyEq.mp hn).comp_tendsto |
| 576 | (nativeQ_contDiffAt F.data.h_pos F.data.h_lt_half hT).continuousAt |
| 577 | filter_upwards [hz] with y hy |
| 578 | simp only [Function.comp_apply, Pi.zero_apply] at hy |
| 579 | simp only [outerFactor, hy, zero_mul, mul_zero] |
| 580 | |
| 581 | include hr0 in |
| 582 | theorem factor_zero_germ_transverse (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 583 | (hu : x.2.1 ∉ Icc (-r0) r0) : outerFactor H v a L =ᶠ[𝓝 x] fun _ => 0 := by |
| 584 | have hn : x.2.1 ∉ tsupport (PartitionedCovariance.cutoff r0) := by |
| 585 | simpa only [PartitionedCovariance.cutoff, SquaredPartition.gridMask_tsupport r0 hr0, |
| 586 | Int.cast_zero, mul_zero, zero_sub, zero_add] using hu |
| 587 | have hz := (notMem_tsupport_iff_eventuallyEq.mp hn).comp_tendsto |
| 588 | (show ContinuousAt (fun y : Native => y.2.1) x from continuousAt_snd.fst) |
| 589 | filter_upwards [hz] with y hy |
| 590 | simp only [Function.comp_apply, Pi.zero_apply] at hy |
| 591 | simp only [outerFactor, hy, mul_zero] |
| 592 | |
| 593 | theorem band_pair_zero_germ_factor (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 594 | (hz : outerFactor H v a L =ᶠ[𝓝 x] fun _ => 0) : |
| 595 | (bandVelocity H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 596 | (bandPressure H v a hr0 vr vt j L =ᶠ[𝓝 x] fun _ => 0) := |
| 597 | ⟨scalar_zero_germ _ hz, scalar_zero_germ _ hz⟩ |
| 598 | |
| 599 | theorem outerFactor_band_jets (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 600 | (hT : 0 < x.1.2.2) (he : nativeQ F.data.h x = 1 / 2 ∨ nativeQ F.data.h x = 2) |
| 601 | (n : ℕ) : iteratedFDeriv ℝ n (outerFactor H v a L) x = 0 := by |
| 602 | have hq := nativeQ_contDiffAt F.data.h_pos F.data.h_lt_half hT |
| 603 | have ho := outerCutoff_smooth.contDiffAt.comp x (coordinates_smooth H v a L).contDiffAt.snd |
| 604 | have hu := (SquaredPartition.gridMask_smooth r0 0).contDiffAt.comp x contDiffAt_snd.fst |
| 605 | have hz := (dyadic_product_endpoint hq (ho.mul hu) he).2 n |
| 606 | convert! hz using 1 |
| 607 | congr 1 |
| 608 | funext y |
| 609 | change _ = _ * (_ * _) |
| 610 | dsimp only [outerFactor, Function.comp_apply, PartitionedCovariance.cutoff] |
| 611 | ring |
| 612 | |
| 613 | include hr0 in |
| 614 | theorem outerFactor_transverse_jets (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 615 | (hT : 0 < x.1.2.2) (he : x.2.1 = -r0 ∨ x.2.1 = r0) |
| 616 | (n : ℕ) : iteratedFDeriv ℝ n (outerFactor H v a L) x = 0 := by |
| 617 | have ho := outerCutoff_smooth.contDiffAt.comp x (coordinates_smooth H v a L).contDiffAt.snd |
| 618 | have hq := SquaredPartition.dyadicProfile_smooth.contDiffAt.comp x |
| 619 | (nativeQ_contDiffAt F.data.h_pos F.data.h_lt_half hT) |
| 620 | have hu := (SquaredPartition.gridMask_smooth r0 0).contDiffAt.comp x contDiffAt_snd.fst |
| 621 | have hflat : ∀ k, iteratedFDeriv ℝ k (fun y : Native => PartitionedCovariance.cutoff r0 y.2.1) x = 0 := by |
| 622 | intro k |
| 623 | apply flat_comp_jets (SquaredPartition.gridMask_smooth r0 0) contDiffAt_snd.fst |
| 624 | intro m |
| 625 | rcases he with he | he |
| 626 | · rw [he]; exact (transverse_endpoint_jets hr0 m).1 |
| 627 | · rw [he]; exact (transverse_endpoint_jets hr0 m).2 |
| 628 | have hz := flat_smul_jets hu (ho.mul hq) hflat n |
| 629 | convert! hz using 1 |
| 630 | congr 1 |
| 631 | funext y |
| 632 | change _ = _ * (_ * _) |
| 633 | dsimp only [outerFactor, Function.comp_apply, PartitionedCovariance.cutoff] |
| 634 | ring |
| 635 | |
| 636 | end PreparedGerms |
| 637 | |
| 638 | section FullBandRegularity |
| 639 | |
| 640 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 641 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 642 | (v : ModulatedProfileAssembly.Witness ld) |
| 643 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 644 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 645 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 646 | (M : ClosedMargins H v a vr vt) |
| 647 | |
| 648 | include M |
| 649 | |
| 650 | theorem band_pair_contDiffAt (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 651 | (hx : x ∈ radialInterior W) : |
| 652 | ContDiffAt ℝ ∞ (bandVelocity H v a hr0 vr vt j L) x ∧ |
| 653 | ContDiffAt ℝ ∞ (bandPressure H v a hr0 vr vt j L) x := by |
| 654 | by_cases hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L |
| 655 | · by_cases ht : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1 |
| 656 | · by_cases hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2 |
| 657 | · exact band_pair_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq ht |
| 658 | · have hz := band_pair_zero_germ_factor H v a hr0 vr vt j L |
| 659 | (factor_zero_germ_band H v a L hx.1 hq) |
| 660 | exact ⟨(zero_germ_jets hz.1).1, (zero_germ_jets hz.2).1⟩ |
| 661 | · have hz := band_pair_zero_germ_factor H v a hr0 vr vt j L (factor_zero_germ_slot H v a L ht) |
| 662 | exact ⟨(zero_germ_jets hz.1).1, (zero_germ_jets hz.2).1⟩ |
| 663 | · have hz := band_pair_zero_germ_cell H v a hr0 vr vt j L hx.1 hp |
| 664 | exact ⟨(zero_germ_jets hz.1).1, (zero_germ_jets hz.2).1⟩ |
| 665 | |
| 666 | theorem band_pair_contDiffOn (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) : |
| 667 | ContDiffOn ℝ ∞ (bandVelocity H v a hr0 vr vt j L) (radialInterior W) ∧ |
| 668 | ContDiffOn ℝ ∞ (bandPressure H v a hr0 vr vt j L) (radialInterior W) := |
| 669 | ⟨fun _ hx => (band_pair_contDiffAt H v a hr0 vr vt M j L hx).1.contDiffWithinAt, |
| 670 | fun _ hx => (band_pair_contDiffAt H v a hr0 vr vt M j L hx).2.contDiffWithinAt⟩ |
| 671 | |
| 672 | theorem band_pair_edge_jets_closed (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 673 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 674 | (hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2) |
| 675 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1) |
| 676 | (he : (nativeQ F.data.h x = 1 / 2 ∨ nativeQ F.data.h x = 2) ∨ (x.2.1 = -r0 ∨ x.2.1 = r0)) |
| 677 | (n : ℕ) : iteratedFDeriv ℝ n (bandVelocity H v a hr0 vr vt j L) x = 0 ∧ |
| 678 | iteratedFDeriv ℝ n (bandPressure H v a hr0 vr vt j L) x = 0 := by |
| 679 | have hflat : ∀ m, iteratedFDeriv ℝ m (outerFactor H v a L) x = 0 := by |
| 680 | rcases he with hq | hu |
| 681 | · exact outerFactor_band_jets H v a L hx.1 hq |
| 682 | · exact outerFactor_transverse_jets H v a hr0 L hx.1 hu |
| 683 | have hf := outerFactor_contDiffAt H v a L hx.1 |
| 684 | exact ⟨flat_smul_jets hf (baseVelocity_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq hslot) hflat n, |
| 685 | flat_smul_jets hf (basePressure_contDiffAt_closed H v a hr0 vr vt M j L hx hp hq hslot) hflat n⟩ |
| 686 | |
| 687 | end FullBandRegularity |
| 688 | |
| 689 | section NativeCoverage |
| 690 | |
| 691 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 692 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 693 | (v : ModulatedProfileAssembly.Witness ld) |
| 694 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 695 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 696 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 697 | |
| 698 | include hr0 in |
| 699 | theorem native_mem_of_data (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 700 | (hx : x ∈ radialInterior W) (hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L) |
| 701 | (hq : nativeQ F.data.h x ∈ Ioo (1 / 2 : ℝ) 2) (hu : x.2.1 ∈ Ioo (-r0) r0) |
| 702 | (hslot : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1) : |
| 703 | x ∈ (ActualSignedGeometry.nativeDomain H v a).carrier L := by |
| 704 | have hL : 0 < ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L) := |
| 705 | div_pos (mul_pos (by norm_num) hr0) (ChartScales.timeCoefficient_pos _ _) |
| 706 | have hv : x.2.2 ∈ Ioo 0 (ChartScales.slotLength r0 F.data.h (BaseChartJets.cellBand L)) := by |
| 707 | exact ⟨by simpa only [zero_mul] using (lt_div_iff₀ hL).mp hslot.1, |
| 708 | (div_lt_one hL).mp hslot.2⟩ |
| 709 | refine ⟨⟨hp, ?_⟩, hu, hv⟩ |
| 710 | apply (BaseContextAssembly.nativeStrip_mem W _ _).mpr |
| 711 | exact ⟨⟨hx.1, hq⟩, hx.2⟩ |
| 712 | |
| 713 | theorem native_mem_band (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 714 | (hx : x ∈ (ActualSignedGeometry.nativeDomain H v a).carrier L) : |
| 715 | nativeQ F.data.h x ∈ Ioo (1 / 2 : ℝ) 2 := |
| 716 | ((BaseContextAssembly.nativeStrip_mem W _ _).mp hx.1.2).1.2 |
| 717 | |
| 718 | theorem band_pair_zero_jets_off_native (M : ClosedMargins H v a vr vt) |
| 719 | (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 720 | (hx : x ∈ radialInterior W) |
| 721 | (hn : x ∉ (ActualSignedGeometry.nativeDomain H v a).carrier L) (n : ℕ) : |
| 722 | iteratedFDeriv ℝ n (bandVelocity H v a hr0 vr vt j L) x = 0 ∧ |
| 723 | iteratedFDeriv ℝ n (bandPressure H v a hr0 vr vt j L) x = 0 := by |
| 724 | by_cases hp : x.1 ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L |
| 725 | · by_cases ht : (ActualSignedGeometry.pulseCoordinates H v a L x).2 ∈ Ioo (0 : ℝ) 1 |
| 726 | · by_cases hq : nativeQ F.data.h x ∈ Icc (1 / 2 : ℝ) 2 |
| 727 | · by_cases hu : x.2.1 ∈ Icc (-r0) r0 |
| 728 | · have he : (nativeQ F.data.h x = 1 / 2 ∨ nativeQ F.data.h x = 2) ∨ |
| 729 | (x.2.1 = -r0 ∨ x.2.1 = r0) := by |
| 730 | by_cases hqi : nativeQ F.data.h x ∈ Ioo (1 / 2 : ℝ) 2 |
| 731 | · right |
| 732 | have hui : x.2.1 ∉ Ioo (-r0) r0 := |
| 733 | fun hui => hn (native_mem_of_data H v a hr0 L hx hp hqi hui ht) |
| 734 | rcases eq_or_lt_of_le hu.1 with he | hlt |
| 735 | · exact Or.inl he.symm |
| 736 | · exact Or.inr (le_antisymm hu.2 (not_lt.mp (fun hr => hui ⟨hlt, hr⟩))) |
| 737 | · left |
| 738 | rcases eq_or_lt_of_le hq.1 with he | hlt |
| 739 | · exact Or.inl he.symm |
| 740 | · exact Or.inr (le_antisymm hq.2 (not_lt.mp (fun hr => hqi ⟨hlt, hr⟩))) |
| 741 | exact band_pair_edge_jets_closed H v a hr0 vr vt M j L hx hp hq ht he n |
| 742 | · have hz := band_pair_zero_germ_factor H v a hr0 vr vt j L |
| 743 | (factor_zero_germ_transverse H v a hr0 L hu) |
| 744 | exact ⟨(zero_germ_jets hz.1).2 n, (zero_germ_jets hz.2).2 n⟩ |
| 745 | · have hz := band_pair_zero_germ_factor H v a hr0 vr vt j L |
| 746 | (factor_zero_germ_band H v a L hx.1 hq) |
| 747 | exact ⟨(zero_germ_jets hz.1).2 n, (zero_germ_jets hz.2).2 n⟩ |
| 748 | · have hz := band_pair_zero_germ_factor H v a hr0 vr vt j L (factor_zero_germ_slot H v a L ht) |
| 749 | exact ⟨(zero_germ_jets hz.1).2 n, (zero_germ_jets hz.2).2 n⟩ |
| 750 | · have hz := band_pair_zero_germ_cell H v a hr0 vr vt j L hx.1 hp |
| 751 | exact ⟨(zero_germ_jets hz.1).2 n, (zero_germ_jets hz.2).2 n⟩ |
| 752 | |
| 753 | theorem band_pair_band_edge_jets (M : ClosedMargins H v a vr vt) |
| 754 | (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 755 | (hx : x ∈ radialInterior W) (he : nativeQ F.data.h x = 1 / 2 ∨ nativeQ F.data.h x = 2) (n : ℕ) : |
| 756 | iteratedFDeriv ℝ n (bandVelocity H v a hr0 vr vt j L) x = 0 ∧ |
| 757 | iteratedFDeriv ℝ n (bandPressure H v a hr0 vr vt j L) x = 0 := by |
| 758 | apply band_pair_zero_jets_off_native H v a hr0 vr vt M j L hx _ n |
| 759 | intro hi |
| 760 | have hq := native_mem_band H v a L hi |
| 761 | rcases he with he | he |
| 762 | · rw [he] at hq |
| 763 | exact (lt_irrefl _ hq.1) |
| 764 | · rw [he] at hq |
| 765 | exact (lt_irrefl _ hq.2) |
| 766 | |
| 767 | /-- The full open radial domain, preserving the original native growth |
| 768 | function exactly and adding the flat band/transverse boundary points. -/ |
| 769 | noncomputable def radialDomain : JetDomain (PrimaryGeometryAssembly.Index W a.N) Native where |
| 770 | scale := (ActualSignedGeometry.nativeDomain H v a).scale |
| 771 | carrier := fun _ => radialInterior W |
| 772 | isOpen := fun _ => radialInterior_open W |
| 773 | one_le_scale := (ActualSignedGeometry.nativeDomain H v a).one_le_scale |
| 774 | growth := (ActualSignedGeometry.nativeDomain H v a).growth |
| 775 | scale_le_growth L x _ := by |
| 776 | exact (le_max_right 1 (ChartScales.S (BaseChartJets.cellBand L))).trans |
| 777 | ((BaseContextAssembly.nativeStrip W |
| 778 | (ActualSignedGeometry.standardSlowRegion F.data.h_pos F.data.h_lt_half)).slow_le_growth _ _) |
| 779 | |
| 780 | theorem radialDomain_growth (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 781 | (radialDomain H v a).growth L x = BaseContextAssembly.slowScale (BaseChartJets.cellBand L) * |
| 782 | WaveEdgeExtension.edgeGrowth (WaveEdgeExtension.nativeRadius F.data.h) |
| 783 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) x := by |
| 784 | change BaseContextAssembly.slowScale (BaseChartJets.cellBand L) * |
| 785 | max 1 ((BaseContextAssembly.nativeStrip W |
| 786 | (ActualSignedGeometry.standardSlowRegion F.data.h_pos F.data.h_lt_half)).delta |
| 787 | (BaseContextAssembly.insertSlow x.1))⁻¹ = _ |
| 788 | unfold WaveEdgeExtension.edgeGrowth WaveEdgeExtension.logCoordinate WaveEdgeExtension.nativeRadius |
| 789 | PrimaryTargetBounds.profileRadius |
| 790 | rw [BaseChartJets.normalizedCoordinates_eq] |
| 791 | rfl |
| 792 | |
| 793 | end NativeCoverage |
| 794 | |
| 795 | section UniformExtension |
| 796 | |
| 797 | variable {ι : Type*} {D : Type} {E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 798 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 799 | |
| 800 | /-- Flat boundary points, unlike zero germs, can be covered by their |
| 801 | proved local smoothness and exact zero tensors. Uniform constants are unchanged. -/ |
| 802 | theorem NativeJets.on_flat_cover {V V' : JetDomain ι D} {w : ι → D → ℝ} {f : ι → D → E} |
| 803 | (hf : NativeJets V w f) |
| 804 | (hcover : ∀ i x, x ∈ V'.carrier i → x ∈ V.carrier i ∨ |
| 805 | (ContDiffAt ℝ ∞ (f i) x ∧ ∀ n, iteratedFDeriv ℝ n (f i) x = 0)) |
| 806 | (hw : ∀ i x, x ∈ V'.carrier i → 0 ≤ w i x) |
| 807 | (hG : ∀ i x, x ∈ V'.carrier i → x ∈ V.carrier i → V.growth i x ≤ V'.growth i x) : |
| 808 | NativeJets V' w f := by |
| 809 | refine ⟨hw, ?_, ?_⟩ |
| 810 | · intro i x hx |
| 811 | rcases hcover i x hx with hi | hz |
| 812 | · exact ((hf.smooth i).contDiffAt ((V.isOpen i).mem_nhds hi)).contDiffWithinAt |
| 813 | · exact hz.1.contDiffWithinAt |
| 814 | · intro m |
| 815 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 816 | refine ⟨C, hC, p, ?_⟩ |
| 817 | intro i x hx j hj |
| 818 | rcases hcover i x hx with hi | hz |
| 819 | · exact (hb i x hi j hj).trans (mul_le_mul_of_nonneg_right |
| 820 | (mul_le_mul_of_nonneg_left |
| 821 | (pow_le_pow_left₀ (zero_le_one.trans (V.one_le_growth i hi)) (hG i x hx hi) p) |
| 822 | (zero_le_one.trans hC)) (hw i x hx)) |
| 823 | · rw [hz.2 j, norm_zero] |
| 824 | exact mul_nonneg (mul_nonneg (zero_le_one.trans hC) |
| 825 | (pow_nonneg (zero_le_one.trans (V'.one_le_growth i hx)) _)) (hw i x hx) |
| 826 | |
| 827 | end UniformExtension |
| 828 | |
| 829 | /-! ## Uniform bounds and the final radial attachment -/ |
| 830 | |
| 831 | section Attachment |
| 832 | |
| 833 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 834 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 835 | (v : ModulatedProfileAssembly.Witness ld) |
| 836 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 837 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) |
| 838 | (hr0 : 0 < r0) (vr vt : TorusInverse.Plane) |
| 839 | |
| 840 | noncomputable def envelope (j : Fin 2) : PrimaryGeometryAssembly.Index W a.N → Native → ℝ := |
| 841 | pulseEnvelope (PrimaryGeometryAssembly.construction H v a hr0) |
| 842 | (ActualSignedGeometry.pulseCoordinates H v a) j |
| 843 | |
| 844 | noncomputable def velocityWeight (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : ℝ := |
| 845 | Real.sqrt (ChartScales.epsilon F.data.h (BaseChartJets.cellBand L)) * |
| 846 | Real.sqrt (PrimaryTargetBounds.movingWeight W x.1) * envelope H v a hr0 j L x |
| 847 | |
| 848 | noncomputable def pressureWeight (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : ℝ := |
| 849 | ChartScales.epsilon F.data.h (BaseChartJets.cellBand L) * |
| 850 | Real.sqrt (PrimaryTargetBounds.movingWeight W x.1) * envelope H v a hr0 j L x |
| 851 | |
| 852 | theorem velocityWeight_nonneg (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 853 | 0 ≤ velocityWeight H v a hr0 j L x := by |
| 854 | exact mul_nonneg (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _)) |
| 855 | (referenceP_pos _ _ _ _).le |
| 856 | |
| 857 | theorem pressureWeight_nonneg (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 858 | 0 ≤ pressureWeight H v a hr0 j L x := by |
| 859 | exact mul_nonneg (mul_nonneg (ChartScales.epsilon_pos _ _).le (Real.sqrt_nonneg _)) |
| 860 | (referenceP_pos _ _ _ _).le |
| 861 | |
| 862 | theorem bandVelocity_radial_jets (M : ClosedMargins H v a vr vt) (j : Fin 2) |
| 863 | (hu : NativeJets (ActualSignedGeometry.nativeDomain H v a) (velocityWeight H v a hr0 j) |
| 864 | (bandVelocity H v a hr0 vr vt j)) : |
| 865 | NativeJets (radialDomain H v a) (velocityWeight H v a hr0 j) (bandVelocity H v a hr0 vr vt j) := by |
| 866 | apply NativeJets.on_flat_cover (V' := radialDomain H v a) hu _ (fun L x _ => velocityWeight_nonneg H v a hr0 j L x) |
| 867 | (fun _ _ _ _ => le_rfl) |
| 868 | intro L x hx |
| 869 | by_cases hi : x ∈ (ActualSignedGeometry.nativeDomain H v a).carrier L |
| 870 | · exact Or.inl hi |
| 871 | · exact Or.inr ⟨(band_pair_contDiffAt H v a hr0 vr vt M j L hx).1, |
| 872 | fun n => (band_pair_zero_jets_off_native H v a hr0 vr vt M j L hx hi n).1⟩ |
| 873 | |
| 874 | theorem bandPressure_radial_jets (M : ClosedMargins H v a vr vt) (j : Fin 2) |
| 875 | (hp : NativeJets (ActualSignedGeometry.nativeDomain H v a) (pressureWeight H v a hr0 j) |
| 876 | (bandPressure H v a hr0 vr vt j)) : |
| 877 | NativeJets (radialDomain H v a) (pressureWeight H v a hr0 j) (bandPressure H v a hr0 vr vt j) := by |
| 878 | apply NativeJets.on_flat_cover (V' := radialDomain H v a) hp _ (fun L x _ => pressureWeight_nonneg H v a hr0 j L x) |
| 879 | (fun _ _ _ _ => le_rfl) |
| 880 | intro L x hx |
| 881 | by_cases hi : x ∈ (ActualSignedGeometry.nativeDomain H v a).carrier L |
| 882 | · exact Or.inl hi |
| 883 | · exact Or.inr ⟨(band_pair_contDiffAt H v a hr0 vr vt M j L hx).2, |
| 884 | fun n => (band_pair_zero_jets_off_native H v a hr0 vr vt M j L hx hi n).2⟩ |
| 885 | |
| 886 | /-- After filling the flat band boundary, the radial attachment theorem |
| 887 | applies at both radial edges, including their intersections with band edges. -/ |
| 888 | theorem band_pair_native_regular (M : ClosedMargins H v a vr vt) (j : Fin 2) |
| 889 | (hu : NativeJets (ActualSignedGeometry.nativeDomain H v a) (velocityWeight H v a hr0 j) |
| 890 | (bandVelocity H v a hr0 vr vt j)) |
| 891 | (hp : NativeJets (ActualSignedGeometry.nativeDomain H v a) (pressureWeight H v a hr0 j) |
| 892 | (bandPressure H v a hr0 vr vt j)) : |
| 893 | ∀ L, WaveEdgeExtension.NativeRegularity W (bandVelocity H v a hr0 vr vt j L) ∧ |
| 894 | WaveEdgeExtension.NativeRegularity W (bandPressure H v a hr0 vr vt j L) := by |
| 895 | have henv := WaveEdgeExtension.pulseEnvelope_continuousOn |
| 896 | (PrimaryGeometryAssembly.construction H v a hr0) (ActualSignedGeometry.pulseCoordinates H v a) |
| 897 | (fun L => (coordinates_smooth H v a L).continuous.continuousOn.snd) j |
| 898 | have henv0 : ∀ L x, x ∈ WaveEdgeExtension.nativeSlowDomain → 0 ≤ envelope H v a hr0 j L x := |
| 899 | fun _ _ _ => (referenceP_pos _ _ _ _).le |
| 900 | have hG : ∀ L x, x ∈ radialInterior W → (radialDomain H v a).growth L x ≤ |
| 901 | BaseContextAssembly.slowScale (BaseChartJets.cellBand L) * |
| 902 | WaveEdgeExtension.edgeGrowth (WaveEdgeExtension.nativeRadius F.data.h) |
| 903 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) x ^ 1 := by |
| 904 | intro L x _ |
| 905 | rw [pow_one, radialDomain_growth] |
| 906 | have hu' := WaveEdgeExtension.NativeJets.native_zero_extension W |
| 907 | (bandVelocity_radial_jets H v a hr0 vr vt M j hu) |
| 908 | (fun L => Real.sqrt_nonneg (ChartScales.epsilon F.data.h (BaseChartJets.cellBand L))) |
| 909 | (fun L => BaseContextAssembly.one_le_slowScale (BaseChartJets.cellBand L)) henv henv0 |
| 910 | (fun _ => Subset.rfl) 1 hG |
| 911 | have hp' := WaveEdgeExtension.NativeJets.native_zero_extension W |
| 912 | (bandPressure_radial_jets H v a hr0 vr vt M j hp) |
| 913 | (fun L => (ChartScales.epsilon_pos F.data.h (BaseChartJets.cellBand L)).le) |
| 914 | (fun L => BaseContextAssembly.one_le_slowScale (BaseChartJets.cellBand L)) henv henv0 |
| 915 | (fun _ => Subset.rfl) 1 hG |
| 916 | intro L |
| 917 | exact ⟨⟨(hu' L).1, (hu' L).2.1, (hu' L).2.2⟩, ⟨(hp' L).1, (hp' L).2.1, (hp' L).2.2⟩⟩ |
| 918 | |
| 919 | noncomputable def preOuterVelocity (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) |
| 920 | (x : Native) : ProblemStatement.Space := |
| 921 | (SquaredPartition.dyadicProfile (nativeQ F.data.h x) * PartitionedCovariance.cutoff r0 x.2.1) • |
| 922 | baseVelocity H v a hr0 vr vt j L x |
| 923 | |
| 924 | noncomputable def preOuterPressure (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) |
| 925 | (x : Native) : ℂ := |
| 926 | (SquaredPartition.dyadicProfile (nativeQ F.data.h x) * PartitionedCovariance.cutoff r0 x.2.1) • |
| 927 | basePressure H v a hr0 vr vt j L x |
| 928 | |
| 929 | theorem preOuterPressure_eq_phasePressure (j : Fin 2) |
| 930 | (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 931 | preOuterPressure H v a hr0 vr vt j L x = |
| 932 | phasePressure (PrimaryGeometryAssembly.construction H v a hr0 j) |
| 933 | (ActualSignedGeometry.pulseCoordinates H v a) |
| 934 | (fun L => (ChartScales.carrier F.data.h (BaseChartJets.cellBand L) : ℝ)) |
| 935 | (preOuterVelocity H v a hr0 vr vt j) L x := |
| 936 | (phasePressure_smul _ _ _ |
| 937 | (fun _ y => SquaredPartition.dyadicProfile (nativeQ F.data.h y) * PartitionedCovariance.cutoff r0 y.2.1) |
| 938 | (baseVelocity H v a hr0 vr vt j) L x).symm |
| 939 | |
| 940 | theorem bandVelocity_eq_outer (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 941 | bandVelocity H v a hr0 vr vt j L x = |
| 942 | outerCutoff (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 943 | preOuterVelocity H v a hr0 vr vt j L x := by |
| 944 | simp only [bandVelocity, outerFactor, preOuterVelocity, smul_smul] |
| 945 | |
| 946 | theorem bandPressure_eq_outer (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 947 | bandPressure H v a hr0 vr vt j L x = |
| 948 | outerCutoff (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 949 | preOuterPressure H v a hr0 vr vt j L x := by |
| 950 | simp only [bandPressure, outerFactor, preOuterPressure, smul_smul] |
| 951 | |
| 952 | /-- Applying the intended Gaussian after attachment still applies that |
| 953 | Gaussian exactly once: the outer slot cutoff is one on its support. -/ |
| 954 | theorem gaussian_bandVelocity (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 955 | GaussianTailFlat.profile (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 956 | bandVelocity H v a hr0 vr vt j L x = |
| 957 | GaussianTailFlat.profile (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 958 | preOuterVelocity H v a hr0 vr vt j L x := by |
| 959 | rw [bandVelocity_eq_outer, smul_smul, profile_mul_outerCutoff] |
| 960 | |
| 961 | theorem gaussian_bandPressure (j : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) (x : Native) : |
| 962 | GaussianTailFlat.profile (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 963 | bandPressure H v a hr0 vr vt j L x = |
| 964 | GaussianTailFlat.profile (ActualSignedGeometry.pulseCoordinates H v a L x).2 • |
| 965 | preOuterPressure H v a hr0 vr vt j L x := by |
| 966 | rw [bandPressure_eq_outer, smul_smul, profile_mul_outerCutoff] |
| 967 | |
| 968 | include hr0 in |
| 969 | theorem outerCutoff_native_polynomial : |
| 970 | PolynomialJets (ActualSignedGeometry.nativeDomain H v a).toDomain |
| 971 | (fun L x => outerCutoff (ActualSignedGeometry.pulseCoordinates H v a L x).2) := by |
| 972 | let c := ActualSignedGeometry.preparedChart H v a hr0 |
| 973 | have hτ := c.coordinate_jets.clm (ContinuousLinearMap.snd ℝ Slow ℝ) |
| 974 | apply hτ.compact_comp isOpen_univ outerCutoff_smooth.contDiffOn |
| 975 | (isCompact_Icc : IsCompact (Icc (0 : ℝ) 1)) (subset_univ _) |
| 976 | intro L x hx |
| 977 | exact ⟨(c.maps L x hx).2.1.le, (c.maps L x hx).2.2.le⟩ |
| 978 | |
| 979 | /-- The endpoint consumed by the actual initialization: only the already |
| 980 | proved raw interior jet estimates and the fixed family's closed margins enter. |
| 981 | The outer time cutoff and all boundary regularity are derived here. -/ |
| 982 | theorem band_pair_native_regular_of_raw_jets (M : ClosedMargins H v a vr vt) (j : Fin 2) |
| 983 | (hu : NativeJets (ActualSignedGeometry.nativeDomain H v a) (velocityWeight H v a hr0 j) |
| 984 | (preOuterVelocity H v a hr0 vr vt j)) |
| 985 | (hp : NativeJets (ActualSignedGeometry.nativeDomain H v a) (pressureWeight H v a hr0 j) |
| 986 | (preOuterPressure H v a hr0 vr vt j)) : |
| 987 | ∀ L, WaveEdgeExtension.NativeRegularity W (bandVelocity H v a hr0 vr vt j L) ∧ |
| 988 | WaveEdgeExtension.NativeRegularity W (bandPressure H v a hr0 vr vt j L) := by |
| 989 | apply band_pair_native_regular H v a hr0 vr vt M j |
| 990 | · exact (hu.polynomial_smul (outerCutoff_native_polynomial H v a hr0)).congr |
| 991 | (fun L x _ => (bandVelocity_eq_outer H v a hr0 vr vt j L x).symm) |
| 992 | · exact (hp.polynomial_smul (outerCutoff_native_polynomial H v a hr0)).congr |
| 993 | (fun L x _ => (bandPressure_eq_outer H v a hr0 vr vt j L x).symm) |
| 994 | |
| 995 | /-- The band boundary tensors remain zero after the radial attachment, |
| 996 | including the intersections of the band and radial boundaries. -/ |
| 997 | theorem attached_pair_band_edge_jets (M : ClosedMargins H v a vr vt) (j : Fin 2) |
| 998 | (hu : NativeJets (ActualSignedGeometry.nativeDomain H v a) (velocityWeight H v a hr0 j) |
| 999 | (preOuterVelocity H v a hr0 vr vt j)) |
| 1000 | (hp : NativeJets (ActualSignedGeometry.nativeDomain H v a) (pressureWeight H v a hr0 j) |
| 1001 | (preOuterPressure H v a hr0 vr vt j)) |
| 1002 | (L : PrimaryGeometryAssembly.Index W a.N) {x : Native} |
| 1003 | (hT : 0 < x.1.2.2) (he : nativeQ F.data.h x = 1 / 2 ∨ nativeQ F.data.h x = 2) (n : ℕ) : |
| 1004 | iteratedFDeriv ℝ n (WaveEdgeExtension.nativeExtension W (bandVelocity H v a hr0 vr vt j L)) x = 0 ∧ |
| 1005 | iteratedFDeriv ℝ n (WaveEdgeExtension.nativeExtension W (bandPressure H v a hr0 vr vt j L)) x = 0 := by |
| 1006 | obtain ⟨hv, hp'⟩ := band_pair_native_regular_of_raw_jets H v a hr0 vr vt M j hu hp L |
| 1007 | by_cases hi : WaveEdgeExtension.nativeRadius F.data.h x ∈ |
| 1008 | Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) |
| 1009 | · rw [hv.jet_inside n hT hi, hp'.jet_inside n hT hi] |
| 1010 | exact band_pair_band_edge_jets H v a hr0 vr vt M j L ⟨hT, hi⟩ he n |
| 1011 | · exact ⟨hv.jet_outside n hT hi, hp'.jet_outside n hT hi⟩ |
| 1012 | |
| 1013 | end Attachment |
| 1014 | |
| 1015 | end NavierStokes.NativeBandExtension |