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.ActualSignedExterior |
| 2 | import NavierStokes.ActualSignedOutputBounds |
| 3 | import NavierStokes.ActualSignedUnmaskedBounds |
| 4 | import NavierStokes.InitialPhysicalData |
| 5 | |
| 6 | /-! |
| 7 | # Joint native bounds for the actual signed physical sources |
| 8 | |
| 9 | The sources are the literal masked sources of the canonical dependent |
| 10 | family. Bounds are uniform before selecting an outer label, a harmonic, |
| 11 | a band, or a lattice copy. No physical derivative estimate is assumed. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualSignedNativeBounds |
| 17 | |
| 18 | open Set Function Filter WeightedClasses LabelSumBounds CorrectionState |
| 19 | open CorrectionInitialization CorrectionInitialization.ActualPrimary |
| 20 | open scoped Topology ContDiff BigOperators |
| 21 | |
| 22 | |
| 23 | abbrev Label := ActualSignedPhysicalBinding.Label |
| 24 | abbrev Native := ActualSignedPhysicalData.Native |
| 25 | abbrev Full := ActualSignedStageControls.FullPoint |
| 26 | abbrev Copy := TorusInverse.Frequency |
| 27 | abbrev SourceIndex := Σ (_ : PhysicalWaveSum.BandLabel), ActualSignedPhysicalData.SourceIndex |
| 28 | |
| 29 | variable {B N0 : ℕ} |
| 30 | |
| 31 | section Sources |
| 32 | |
| 33 | variable (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) |
| 34 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 35 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 36 | |
| 37 | noncomputable def family : DependentSignedPhysicalFamily.Family := |
| 38 | ActualSignedExterior.family (fun l : Label B N0 => ActualSignedPhysicalBinding.nativeStateData l P u H hp) |
| 39 | |
| 40 | noncomputable def potentialSource : SourceIndex → ℕ → Native → HarmonicCalculus.ComplexVector := |
| 41 | DependentSignedPhysicalFamily.jointSource |
| 42 | ((family (N0 := N0) P u H hp).potentialSource slots outgoing.data.h_pos.le) |
| 43 | |
| 44 | noncomputable def pressureSource : SourceIndex → ℕ → Native → ℂ := |
| 45 | DependentSignedPhysicalFamily.jointSource |
| 46 | ((family (N0 := N0) P u H hp).pressureSource slots outgoing.data.h_pos.le) |
| 47 | |
| 48 | end Sources |
| 49 | |
| 50 | noncomputable def weight (_ : SourceIndex) (_ : ℕ) (y : Native) : ℝ := |
| 51 | Real.sqrt (ActualPrimaryBounds.strip.zeta y) |
| 52 | |
| 53 | /-! ## The reference pullback is a contraction on the free coordinates -/ |
| 54 | |
| 55 | theorem norm_coverEquiv_symm_le (y : TorusInverse.Plane) : |
| 56 | ‖CommonCoverSolve.coverEquiv.symm y‖ ≤ ‖y‖ := by |
| 57 | let x := CommonCoverSolve.coverEquiv.symm y |
| 58 | have he : CommonCoverSolve.coverEquiv x = y := |
| 59 | CommonCoverSolve.coverEquiv.apply_symm_apply y |
| 60 | rw [CommonCoverSolve.coverEquiv_apply, SlotGeometry.cover_apply] at he |
| 61 | have h1 := congrArg Prod.fst he |
| 62 | have h2 := congrArg Prod.snd he |
| 63 | have hx : x.1 = (5 * y.1 - y.2) / 14 := by dsimp only at h1 h2; linarith |
| 64 | have hy : x.2 = (3 * y.2 - y.1) / 14 := by dsimp only at h1 h2; linarith |
| 65 | have hY1 : |y.1| ≤ ‖y‖ := by simpa only [Real.norm_eq_abs] using norm_fst_le y |
| 66 | have hY2 : |y.2| ≤ ‖y‖ := by simpa only [Real.norm_eq_abs] using norm_snd_le y |
| 67 | have hX : |x.1| ≤ ‖y‖ := by |
| 68 | rw [hx, abs_div, abs_of_pos (by norm_num : (0 : ℝ) < 14)] |
| 69 | apply (div_le_iff₀ (by norm_num : (0 : ℝ) < 14)).mpr |
| 70 | have ha := abs_sub (5 * y.1) y.2 |
| 71 | rw [abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 5)] at ha |
| 72 | nlinarith [norm_nonneg y] |
| 73 | have hY : |x.2| ≤ ‖y‖ := by |
| 74 | rw [hy, abs_div, abs_of_pos (by norm_num : (0 : ℝ) < 14)] |
| 75 | apply (div_le_iff₀ (by norm_num : (0 : ℝ) < 14)).mpr |
| 76 | have ha := abs_sub (3 * y.2) y.1 |
| 77 | rw [abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 3)] at ha |
| 78 | nlinarith [norm_nonneg y] |
| 79 | exact max_le hX hY |
| 80 | |
| 81 | theorem norm_coverPower_symm_le (d : ℕ) (y : TorusInverse.Plane) : |
| 82 | ‖(CommonCoverSolve.coverPower d).symm y‖ ≤ ‖y‖ := by |
| 83 | induction d generalizing y with |
| 84 | | zero => exact le_rfl |
| 85 | | succ d ih => |
| 86 | change ‖(CommonCoverSolve.coverPower d).symm (CommonCoverSolve.coverEquiv.symm y)‖ ≤ ‖y‖ |
| 87 | exact (ih _).trans (norm_coverEquiv_symm_le y) |
| 88 | |
| 89 | noncomputable def nativeToCommon (l : Label B N0) : Native →L[ℝ] Full := |
| 90 | (ActualSignedPhysicalBinding.toCommonCylinder l).toContinuousLinearMap.comp |
| 91 | (PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv.toContinuousLinearMap.comp |
| 92 | (SignedWaveUpdate.zeroSection (D := Native))) |
| 93 | |
| 94 | theorem nativeToCommon_eq (l : Label B N0) (y : Native) : |
| 95 | nativeToCommon l y = ActualSignedPhysicalBinding.toCommonCylinder l |
| 96 | (ActualSignedPhysicalData.nativeCylinder y) := rfl |
| 97 | |
| 98 | theorem nativeToCommon_apply (l : Label B N0) (y : Native) : |
| 99 | nativeToCommon l y = ((y.1, (y.2.1, |
| 100 | (CommonCoverSolve.coverPower |
| 101 | (ChartScales.nativeIndex h (ActualSignedPhysicalBinding.reference l) - |
| 102 | CommonWindow.index h (ActualSignedPhysicalBinding.reference l))).symm y.2.2)), 0) := rfl |
| 103 | |
| 104 | theorem norm_nativeToCommon_le (l : Label B N0) : ‖nativeToCommon l‖ ≤ 1 := by |
| 105 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 106 | intro y |
| 107 | rw [nativeToCommon_apply, one_mul] |
| 108 | apply max_le |
| 109 | · apply max_le (norm_fst_le y) |
| 110 | exact max_le ((norm_fst_le y.2).trans (norm_snd_le y)) |
| 111 | ((norm_coverPower_symm_le _ y.2.2).trans ((norm_snd_le y.2).trans (norm_snd_le y))) |
| 112 | · simpa only [norm_zero] using norm_nonneg y |
| 113 | |
| 114 | theorem nativeToCommon_mem (l : Label B N0) {y : Native} |
| 115 | (hy : y ∈ ActualPrimaryBounds.strip.domain) : |
| 116 | nativeToCommon l y ∈ ActualSignedStageControls.fullStrip.domain := by |
| 117 | rw [nativeToCommon_apply] |
| 118 | exact hy |
| 119 | |
| 120 | theorem nativeToCommon_majorant (l : Label B N0) (α C : ℝ) (p n : ℕ) (y : Native) : |
| 121 | majorant ActualSignedStageControls.fullStrip |
| 122 | (fun _ x => Real.sqrt (ActualSignedStageControls.fullStrip.zeta x)) α C p n (nativeToCommon l y) = |
| 123 | majorant ActualPrimaryBounds.strip |
| 124 | (fun _ x => Real.sqrt (ActualPrimaryBounds.strip.zeta x)) α C p n y := by |
| 125 | rw [nativeToCommon_apply] |
| 126 | rfl |
| 127 | |
| 128 | theorem uniform_nativeToCommon {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 129 | {α : ℝ} {f : (Label B N0 × Copy) → ℕ → Full → E} |
| 130 | (hf : UniformClass ActualSignedStageControls.fullStrip |
| 131 | (fun _ _ x => Real.sqrt (ActualSignedStageControls.fullStrip.zeta x)) α f) : |
| 132 | UniformClass ActualPrimaryBounds.strip (fun _ _ y => Real.sqrt (ActualPrimaryBounds.strip.zeta y)) α |
| 133 | (fun i n y => f i n (nativeToCommon i.1 y)) := by |
| 134 | refine ⟨fun _ _ _ _ => Real.sqrt_nonneg _, ?_, ?_⟩ |
| 135 | · intro i n |
| 136 | exact (hf.smooth i n).comp (nativeToCommon i.1).contDiff.contDiffOn |
| 137 | (fun _ hy => nativeToCommon_mem i.1 hy) |
| 138 | · intro m |
| 139 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 140 | refine ⟨C, hC, p, ?_⟩ |
| 141 | intro i n y hy j hj |
| 142 | have hc := PhaseJetBounds.norm_jet_comp_linear ActualSignedStageControls.fullStrip.isOpen_domain |
| 143 | (hf.smooth i n) (nativeToCommon i.1) (nativeToCommon_mem i.1 hy) j |
| 144 | have hp : ‖nativeToCommon i.1‖ ^ j ≤ 1 := |
| 145 | pow_le_one₀ (norm_nonneg _) (norm_nativeToCommon_le i.1) |
| 146 | exact (hc.trans (mul_le_of_le_one_right (norm_nonneg _) hp)).trans |
| 147 | ((hb i n _ (nativeToCommon_mem i.1 hy) j hj).trans_eq |
| 148 | (nativeToCommon_majorant i.1 α C p n y)) |
| 149 | |
| 150 | /-! ## The masked native coefficients on their complete own-band strip -/ |
| 151 | |
| 152 | noncomputable def ownPotential (request : ℕ → Full → SignedWaveUpdate.Vec2) : |
| 153 | (Label B N0 × Copy) → ℕ → Full → HarmonicCalculus.ComplexVector := |
| 154 | ActualSignedUnmaskedBounds.ownField |
| 155 | (fun l k n => ActualSignedOutputBounds.localPotential request l n k) |
| 156 | |
| 157 | noncomputable def ownPressure (request : ℕ → Full → SignedWaveUpdate.Vec2) : |
| 158 | (Label B N0 × Copy) → ℕ → Full → ℂ := |
| 159 | ActualSignedUnmaskedBounds.ownField |
| 160 | (fun l k n => ((ActualSignedOutputBounds.copies request l).localized k).pressure n) |
| 161 | |
| 162 | theorem localPotential_zero_germ (request : ℕ → Full → SignedWaveUpdate.Vec2) |
| 163 | (l : Label B N0) (n : ℕ) (k : Copy) {x : Full} |
| 164 | (ha : ((ActualSignedOutputBounds.copies request l).localized k).amplitude n =ᶠ[𝓝 x] |
| 165 | fun _ => 0) : |
| 166 | ActualSignedOutputBounds.localPotential request l n k =ᶠ[𝓝 x] fun _ => 0 := by |
| 167 | filter_upwards [ha] with y hy |
| 168 | simp only [ActualSignedOutputBounds.localPotential, hy, CurlClassBounds.normalCoefficient, |
| 169 | CurlClassBounds.normalCross, map_zero, smul_zero] |
| 170 | |
| 171 | theorem own_potential_pressure_uniform {β : ℝ} {request : ℕ → Full → SignedWaveUpdate.Vec2} |
| 172 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets ActualSignedStageControls.fullStrip |
| 173 | (fun _ _ x => ActualSignedStageControls.fullStrip.zeta x) β |
| 174 | (ActualSignedStageControls.phaseCell (B := B) (N0 := N0)) |
| 175 | (fun _ n _ x => request n x q)) : |
| 176 | UniformClass ActualSignedStageControls.fullStrip |
| 177 | (fun _ _ x => Real.sqrt (ActualSignedStageControls.fullStrip.zeta x)) (β + 1) |
| 178 | (ownPotential (B := B) (N0 := N0) request) ∧ |
| 179 | UniformClass ActualSignedStageControls.fullStrip |
| 180 | (fun _ _ x => Real.sqrt (ActualSignedStageControls.fullStrip.zeta x)) (β + 1) |
| 181 | (ownPressure (B := B) (N0 := N0) request) := by |
| 182 | have hw (l : Label B N0) n x (_ : x ∈ ActualSignedStageControls.fullStrip.domain) := |
| 183 | mul_nonneg (Real.sqrt_nonneg (ActualSignedStageControls.fullStrip.zeta x)) |
| 184 | (ActualSignedOutputBounds.envelope_nonneg l n x) |
| 185 | have hp := ActualSignedUnmaskedBounds.ownField_uniform hw |
| 186 | (ActualSignedOutputBounds.localPotential_jets hR) (fun l k x hx => by |
| 187 | rcases ActualSignedOutputBounds.phaseCell_or_localized_zero request l |
| 188 | (ActualSignedUnmaskedBounds.reference l) k hx with hc | hz |
| 189 | · exact Or.inl hc |
| 190 | · exact Or.inr (localPotential_zero_germ request l _ k hz.1)) |
| 191 | have hq := ActualSignedUnmaskedBounds.ownField_uniform hw |
| 192 | (ActualSignedOutputBounds.localized_pressure_jets hR) (fun l k x hx => by |
| 193 | rcases ActualSignedOutputBounds.phaseCell_or_localized_zero request l |
| 194 | (ActualSignedUnmaskedBounds.reference l) k hx with hc | hz |
| 195 | · exact Or.inl hc |
| 196 | · exact Or.inr hz.2) |
| 197 | have hweight (i : Label B N0 × Copy) n x (_ : x ∈ ActualSignedStageControls.fullStrip.domain) : |
| 198 | Real.sqrt (ActualSignedStageControls.fullStrip.zeta x) * ActualSignedStageControls.envelope i.1 n x ≤ |
| 199 | Real.sqrt (ActualSignedStageControls.fullStrip.zeta x) := |
| 200 | mul_le_of_le_one_right (Real.sqrt_nonneg _) |
| 201 | (ActualPrimaryBounds.fullEnvelope_le_one (i.1.2, i.1.1) n x) |
| 202 | exact ⟨hp.mono_weight (fun _ _ _ _ => Real.sqrt_nonneg _) hweight, |
| 203 | hq.mono_weight (fun _ _ _ _ => Real.sqrt_nonneg _) hweight⟩ |
| 204 | |
| 205 | noncomputable def request (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) : |
| 206 | ℕ → Full → SignedWaveUpdate.Vec2 := |
| 207 | LocalSignedRequest.fullRequest ActualPrimaryBounds.strip P (2 * h) (commonContext B) u |
| 208 | |
| 209 | section NativeCoefficients |
| 210 | |
| 211 | variable (l : Label B N0) (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) |
| 212 | |
| 213 | noncomputable def nativePotentialCoefficient (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 214 | HarmonicCalculus.ComplexVector := |
| 215 | ActualSignedPhysicalData.potentialMap |
| 216 | ((ActualSignedPhysicalBinding.primary l).base.frequency (ActualSignedPhysicalBinding.reference l)) |
| 217 | ((ActualSignedPhysicalBinding.primary l).base.normal (ActualSignedPhysicalBinding.primary l).strip |
| 218 | (ActualSignedPhysicalBinding.primary l).directions (ActualSignedPhysicalBinding.reference l) z) |
| 219 | (((ActualSignedPhysicalBinding.nativeCopies l P u).localized k).amplitude |
| 220 | (ActualSignedPhysicalBinding.reference l) z) |
| 221 | |
| 222 | noncomputable def nativePressureCoefficient (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : ℂ := |
| 223 | ((ActualSignedPhysicalBinding.nativeCopies l P u).localized k).pressure |
| 224 | (ActualSignedPhysicalBinding.reference l) z |
| 225 | |
| 226 | theorem native_cutoff (n : ℕ) (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 227 | (ActualSignedPhysicalBinding.nativeCopies l P u).cutoff n k z = |
| 228 | ActualSignedPhysicalData.waveMask slots (ActualSignedPhysicalBinding.spatialLabel l) |
| 229 | ((ActualSignedPhysicalBinding.geometry l).coordinates k z.1.2.2) := by |
| 230 | change PartitionedCovariance.cutoff slots.radius |
| 231 | ((ActualSignedPhysicalBinding.geometry l).coordinates k |
| 232 | ((ActualSignedPhysicalBinding.nativeViews l).map n z).1.2.2).1 * |
| 233 | (ActualSignedPhysicalBinding.layout l).nativeGaussian (ActualSignedPhysicalBinding.reference l) k |
| 234 | ((ActualSignedPhysicalBinding.nativeViews l).map n z).1.2.2 = _ |
| 235 | rw [ActualSignedPhysicalBinding.nativeViews_map] |
| 236 | rfl |
| 237 | |
| 238 | theorem native_raw_amplitude (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 239 | (ActualSignedPhysicalBinding.nativeCopies l P u).amplitude |
| 240 | (ActualSignedPhysicalBinding.reference l) k z = |
| 241 | ActualPeriodizedSignedRealization.referenceScalar (ActualSignedPhysicalBinding.primary l) |
| 242 | (ActualSignedPhysicalBinding.nativeRequest l P u) l.2 (ActualSignedPhysicalBinding.reference l) z • |
| 243 | CurlClassBounds.complexify (ActualPeriodizedSignedRealization.referenceNativeUnit |
| 244 | (ActualSignedPhysicalBinding.primary l) (ActualSignedPhysicalBinding.layout l) l.2 |
| 245 | (ActualSignedPhysicalBinding.reference l) k z) := by |
| 246 | change (ActualSignedPhysicalData.dynamicCoefficients slots outgoing.data.h_pos.le |
| 247 | (ActualSignedPhysicalBinding.spatialLabel l) (ActualSignedPhysicalBinding.label_large l) 0 |
| 248 | (ActualSignedPhysicalBinding.primary l) (ActualSignedPhysicalBinding.nativeViews l) |
| 249 | (ActualSignedPhysicalBinding.nativeRequest l P u) l.2 k).amplitude |
| 250 | (ActualSignedPhysicalBinding.reference l) z = _ |
| 251 | rw [ActualSignedPhysicalBinding.dynamicCoefficients_eq] |
| 252 | rw [ActualSignedPhysicalBinding.nativeCoefficients, |
| 253 | ActualPeriodizedSignedRealization.coefficients_amplitude_at] |
| 254 | simp only [ActualPeriodizedSignedRealization.nativeUnit, |
| 255 | ActualSignedPhysicalBinding.nativeViews_map, ActualPeriodizedSignedRealization.referenceNativeUnit] |
| 256 | rfl |
| 257 | |
| 258 | theorem native_raw_pressure (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 259 | (ActualSignedPhysicalBinding.nativeCopies l P u).pressure |
| 260 | (ActualSignedPhysicalBinding.reference l) k z = |
| 261 | ActualPeriodizedSignedRealization.referenceScalar (ActualSignedPhysicalBinding.primary l) |
| 262 | (ActualSignedPhysicalBinding.nativeRequest l P u) l.2 (ActualSignedPhysicalBinding.reference l) z • |
| 263 | ActualPeriodizedSignedRealization.homogeneousPressure |
| 264 | ((ActualSignedPhysicalBinding.primary l).base.frequency (ActualSignedPhysicalBinding.reference l)) |
| 265 | ((ActualSignedPhysicalBinding.primary l).base.normal (ActualSignedPhysicalBinding.primary l).strip |
| 266 | (ActualSignedPhysicalBinding.primary l).directions (ActualSignedPhysicalBinding.reference l) z) |
| 267 | ((ActualSignedPhysicalBinding.primary l).normalMotion (ActualSignedPhysicalBinding.reference l) z) |
| 268 | ((ActualSignedPhysicalBinding.primary l).action (ActualSignedPhysicalBinding.reference l) z) |
| 269 | (ActualPeriodizedSignedRealization.referenceNativeUnit (ActualSignedPhysicalBinding.primary l) |
| 270 | (ActualSignedPhysicalBinding.layout l) l.2 (ActualSignedPhysicalBinding.reference l) k z) := by |
| 271 | change (ActualSignedPhysicalData.dynamicCoefficients slots outgoing.data.h_pos.le |
| 272 | (ActualSignedPhysicalBinding.spatialLabel l) (ActualSignedPhysicalBinding.label_large l) 0 |
| 273 | (ActualSignedPhysicalBinding.primary l) (ActualSignedPhysicalBinding.nativeViews l) |
| 274 | (ActualSignedPhysicalBinding.nativeRequest l P u) l.2 k).pressure |
| 275 | (ActualSignedPhysicalBinding.reference l) z = _ |
| 276 | rw [ActualSignedPhysicalBinding.dynamicCoefficients_eq] |
| 277 | rw [ActualSignedPhysicalBinding.nativeCoefficients, |
| 278 | ActualPeriodizedSignedRealization.coefficients_pressure_at] |
| 279 | simp only [ActualPeriodizedSignedRealization.nativeUnit, |
| 280 | ActualSignedPhysicalBinding.nativeViews_map, ActualPeriodizedSignedRealization.referenceNativeUnit] |
| 281 | rfl |
| 282 | |
| 283 | variable (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 284 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 285 | |
| 286 | include H hp in |
| 287 | theorem localPotential_reference (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 288 | ActualSignedOutputBounds.localPotential (request (B := B) P u) l (ActualSignedPhysicalBinding.reference l) k |
| 289 | (ActualSignedPhysicalBinding.toCommonCylinder l z) = nativePotentialCoefficient l P u k z := by |
| 290 | exact congrArg₂ |
| 291 | (fun N v => CurlClassBounds.inverseCarrier |
| 292 | ((ActualSignedPhysicalBinding.primary l).base.frequency (ActualSignedPhysicalBinding.reference l)) • |
| 293 | CurlClassBounds.normalCoefficient N v) |
| 294 | (ActualSignedPhysicalBinding.primary_normal_reference l |
| 295 | (ActualSignedPhysicalBinding.reference l) z).symm |
| 296 | (ActualSignedPhysicalBinding.localized_amplitude_reference l P u H hp k z) |
| 297 | |
| 298 | include H hp in |
| 299 | theorem localPressure_reference (k : Copy) (z : ActualSignedPhysicalBinding.Cylinder) : |
| 300 | ((ActualSignedOutputBounds.copies (request (B := B) P u) l).localized k).pressure |
| 301 | (ActualSignedPhysicalBinding.reference l) (ActualSignedPhysicalBinding.toCommonCylinder l z) = |
| 302 | nativePressureCoefficient l P u k z := |
| 303 | ActualSignedPhysicalBinding.localized_pressure_reference l P u H hp k z |
| 304 | |
| 305 | end NativeCoefficients |
| 306 | |
| 307 | section SingletonSources |
| 308 | |
| 309 | variable (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) |
| 310 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 311 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 312 | |
| 313 | theorem singleton_referenceRequest (l : Label B N0) : |
| 314 | (((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)).state |
| 315 | ((family P u H hp).singletonLabel (ActualSignedExterior.nativeLabel l))).referenceRequest = |
| 316 | ActualSignedPhysicalBinding.nativeRequest l P u := by |
| 317 | erw [DependentSignedPhysicalFamily.Family.singleton_referenceRequest] |
| 318 | exact (ActualSignedExterior.family_referenceRequest_nativeLabel |
| 319 | (fun l : Label B N0 => ActualSignedPhysicalBinding.nativeStateData l P u H hp) l).trans |
| 320 | (ActualSignedPhysicalBinding.nativeStateData_request_eq l P u H hp) |
| 321 | |
| 322 | theorem singleton_rawPotential (l : Label B N0) (k : Copy) |
| 323 | (z : ActualSignedPhysicalBinding.Cylinder) : |
| 324 | ActualSignedPhysicalData.rawPotential slots outgoing.data.h_pos.le |
| 325 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)) |
| 326 | ((family P u H hp).singletonLabel (ActualSignedExterior.nativeLabel l)) k z = |
| 327 | ActualSignedPhysicalData.potentialMap |
| 328 | ((ActualSignedPhysicalBinding.primary l).base.frequency (ActualSignedPhysicalBinding.reference l)) |
| 329 | ((ActualSignedPhysicalBinding.primary l).base.normal (ActualSignedPhysicalBinding.primary l).strip |
| 330 | (ActualSignedPhysicalBinding.primary l).directions (ActualSignedPhysicalBinding.reference l) z) |
| 331 | ((ActualSignedPhysicalBinding.nativeCopies l P u).amplitude |
| 332 | (ActualSignedPhysicalBinding.reference l) k z) := by |
| 333 | rw [native_raw_amplitude] |
| 334 | simp only [ActualSignedPhysicalData.rawPotential, ActualSignedPhysicalData.rawSignedAmplitude, singleton_referenceRequest] |
| 335 | dsimp only [DependentSignedPhysicalFamily.Family.singleton] |
| 336 | simp only [family, ActualSignedExterior.family, ActualSignedExterior.actualLabel_nativeLabel] |
| 337 | dsimp only [DependentSignedPhysicalFamily.Family.singletonLabel] |
| 338 | erw [ActualSignedExterior.actualLabel_nativeLabel] |
| 339 | rfl |
| 340 | |
| 341 | theorem singleton_rawPressure (l : Label B N0) (k : Copy) |
| 342 | (z : ActualSignedPhysicalBinding.Cylinder) : |
| 343 | ActualSignedPhysicalData.rawPressure slots outgoing.data.h_pos.le |
| 344 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)) |
| 345 | ((family P u H hp).singletonLabel (ActualSignedExterior.nativeLabel l)) k z = |
| 346 | (ActualSignedPhysicalBinding.nativeCopies l P u).pressure |
| 347 | (ActualSignedPhysicalBinding.reference l) k z := by |
| 348 | rw [native_raw_pressure] |
| 349 | simp only [ActualSignedPhysicalData.rawPressure, singleton_referenceRequest] |
| 350 | dsimp only [DependentSignedPhysicalFamily.Family.singleton] |
| 351 | simp only [family, ActualSignedExterior.family, ActualSignedExterior.actualLabel_nativeLabel] |
| 352 | dsimp only [DependentSignedPhysicalFamily.Family.singletonLabel] |
| 353 | erw [ActualSignedExterior.actualLabel_nativeLabel] |
| 354 | rfl |
| 355 | |
| 356 | theorem nativePotentialCoefficient_eq (l : Label B N0) (k : Copy) |
| 357 | (z : ActualSignedPhysicalBinding.Cylinder) : |
| 358 | nativePotentialCoefficient l P u k z = |
| 359 | ActualSignedPhysicalData.waveMask slots (ActualSignedPhysicalBinding.spatialLabel l) |
| 360 | ((ActualSignedPhysicalBinding.geometry l).coordinates k z.1.2.2) • |
| 361 | ActualSignedPhysicalData.rawPotential slots outgoing.data.h_pos.le |
| 362 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)) |
| 363 | ((family P u H hp).singletonLabel (ActualSignedExterior.nativeLabel l)) k z := by |
| 364 | unfold nativePotentialCoefficient |
| 365 | change ActualSignedPhysicalData.potentialMap _ _ |
| 366 | ((ActualSignedPhysicalBinding.nativeCopies l P u).cutoff (ActualSignedPhysicalBinding.reference l) k z • |
| 367 | (ActualSignedPhysicalBinding.nativeCopies l P u).amplitude |
| 368 | (ActualSignedPhysicalBinding.reference l) k z) = _ |
| 369 | rw [map_smul, native_cutoff, singleton_rawPotential] |
| 370 | |
| 371 | theorem nativePressureCoefficient_eq (l : Label B N0) (k : Copy) |
| 372 | (z : ActualSignedPhysicalBinding.Cylinder) : |
| 373 | nativePressureCoefficient l P u k z = |
| 374 | ActualSignedPhysicalData.waveMask slots (ActualSignedPhysicalBinding.spatialLabel l) |
| 375 | ((ActualSignedPhysicalBinding.geometry l).coordinates k z.1.2.2) • |
| 376 | ActualSignedPhysicalData.rawPressure slots outgoing.data.h_pos.le |
| 377 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)) |
| 378 | ((family P u H hp).singletonLabel (ActualSignedExterior.nativeLabel l)) k z := by |
| 379 | change (ActualSignedPhysicalBinding.nativeCopies l P u).cutoff (ActualSignedPhysicalBinding.reference l) k z • |
| 380 | (ActualSignedPhysicalBinding.nativeCopies l P u).pressure |
| 381 | (ActualSignedPhysicalBinding.reference l) k z = _ |
| 382 | rw [native_cutoff, singleton_rawPressure] |
| 383 | |
| 384 | theorem potentialSource_on_label (l : Label B N0) (j : PhysicalWaveSum.Harmonic 1) |
| 385 | (k : Copy) (n : ℕ) (y : Native) : |
| 386 | potentialSource (N0 := N0) P u H hp |
| 387 | ⟨ActualSignedExterior.bandLabel l, ((ActualSignedExterior.bandLabel l, j), k)⟩ n y = |
| 388 | if j.val = 1 ∧ n = ActualSignedPhysicalBinding.reference l then |
| 389 | nativePotentialCoefficient l P u k (ActualSignedPhysicalData.nativeCylinder y) else 0 := by |
| 390 | classical |
| 391 | change ((family P u H hp).potentialSource slots outgoing.data.h_pos.le |
| 392 | (ActualSignedExterior.nativeLabel l)) ((ActualSignedExterior.bandLabel l, j), k) n y = _ |
| 393 | erw [DependentSignedPhysicalFamily.Family.potentialSource_active] |
| 394 | have hm : ActualSignedExterior.bandLabel l ∈ |
| 395 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)).active := Set.mem_singleton _ |
| 396 | have hband : (ActualSignedExterior.bandLabel l).val.1 = ActualSignedPhysicalBinding.reference l := rfl |
| 397 | erw [ActualSignedPhysicalData.nativePotentialSource, dite_eq_left hm] |
| 398 | simp only [hband] |
| 399 | split_ifs with hj |
| 400 | · exact (nativePotentialCoefficient_eq P u H hp l k (ActualSignedPhysicalData.nativeCylinder y)).symm |
| 401 | · rfl |
| 402 | |
| 403 | theorem pressureSource_on_label (l : Label B N0) (j : PhysicalWaveSum.Harmonic 1) |
| 404 | (k : Copy) (n : ℕ) (y : Native) : |
| 405 | pressureSource (N0 := N0) P u H hp |
| 406 | ⟨ActualSignedExterior.bandLabel l, ((ActualSignedExterior.bandLabel l, j), k)⟩ n y = |
| 407 | if j.val = 1 ∧ n = ActualSignedPhysicalBinding.reference l then |
| 408 | nativePressureCoefficient l P u k (ActualSignedPhysicalData.nativeCylinder y) else 0 := by |
| 409 | classical |
| 410 | change ((family P u H hp).pressureSource slots outgoing.data.h_pos.le |
| 411 | (ActualSignedExterior.nativeLabel l)) ((ActualSignedExterior.bandLabel l, j), k) n y = _ |
| 412 | erw [DependentSignedPhysicalFamily.Family.pressureSource_active] |
| 413 | have hm : ActualSignedExterior.bandLabel l ∈ |
| 414 | ((family P u H hp).singleton (ActualSignedExterior.nativeLabel l)).active := Set.mem_singleton _ |
| 415 | have hband : (ActualSignedExterior.bandLabel l).val.1 = ActualSignedPhysicalBinding.reference l := rfl |
| 416 | erw [ActualSignedPhysicalData.nativePressureSource, dite_eq_left hm] |
| 417 | simp only [hband] |
| 418 | split_ifs with hj |
| 419 | · exact (nativePressureCoefficient_eq P u H hp l k (ActualSignedPhysicalData.nativeCylinder y)).symm |
| 420 | · rfl |
| 421 | |
| 422 | end SingletonSources |
| 423 | |
| 424 | /-! ## Joint selection, with literal zeros at every omitted index -/ |
| 425 | |
| 426 | noncomputable def selection {E : Type*} [Zero E] |
| 427 | (g : (Label B N0 × Copy) → ℕ → Native → E) (I : SourceIndex) (n : ℕ) (y : Native) : E := by |
| 428 | classical |
| 429 | exact if hL : I.1 ∈ ActualSignedExterior.labels B N0 then |
| 430 | if I.2.1.1 = I.1 ∧ I.2.1.2.val = 1 then |
| 431 | g (ActualSignedExterior.actualLabel ⟨I.1.val, I.1.property, hL⟩, I.2.2) n y |
| 432 | else 0 |
| 433 | else 0 |
| 434 | |
| 435 | theorem selection_on_label {E : Type*} [Zero E] |
| 436 | (g : (Label B N0 × Copy) → ℕ → Native → E) (l : Label B N0) |
| 437 | (j : PhysicalWaveSum.Harmonic 1) (k : Copy) (n : ℕ) (y : Native) : |
| 438 | selection g ⟨ActualSignedExterior.bandLabel l, ((ActualSignedExterior.bandLabel l, j), k)⟩ n y = |
| 439 | if j.val = 1 then g (l, k) n y else 0 := by |
| 440 | classical |
| 441 | have hL : ActualSignedExterior.bandLabel l ∈ ActualSignedExterior.labels B N0 := ⟨l, rfl⟩ |
| 442 | simp only [selection, dite_eq_left hL, true_and] |
| 443 | change (if j.val = 1 then g (ActualSignedExterior.actualLabel (ActualSignedExterior.nativeLabel l), k) n y |
| 444 | else 0) = _ |
| 445 | erw [ActualSignedExterior.actualLabel_nativeLabel] |
| 446 | |
| 447 | theorem selection_inactive {E : Type*} [Zero E] |
| 448 | (g : (Label B N0 × Copy) → ℕ → Native → E) (L : PhysicalWaveSum.BandLabel) |
| 449 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) |
| 450 | (hL : L ∉ ActualSignedExterior.labels B N0) : selection g ⟨L, I⟩ n y = 0 := by |
| 451 | classical |
| 452 | simp only [selection, dite_eq_right hL] |
| 453 | |
| 454 | theorem selection_other_label {E : Type*} [Zero E] |
| 455 | (g : (Label B N0 × Copy) → ℕ → Native → E) (L : PhysicalWaveSum.BandLabel) |
| 456 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) (hI : I.1.1 ≠ L) : |
| 457 | selection g ⟨L, I⟩ n y = 0 := by |
| 458 | classical |
| 459 | by_cases hL : L ∈ ActualSignedExterior.labels B N0 <;> simp [selection, hL, hI] |
| 460 | |
| 461 | theorem selection_active_function {E : Type*} [Zero E] |
| 462 | (g : (Label B N0 × Copy) → ℕ → Native → E) (I : SourceIndex) (n : ℕ) |
| 463 | (hL : I.1 ∈ ActualSignedExterior.labels B N0) |
| 464 | (hI : I.2.1.1 = I.1 ∧ I.2.1.2.val = 1) : |
| 465 | selection g I n = g (ActualSignedExterior.actualLabel ⟨I.1.val, I.1.property, hL⟩, I.2.2) n := by |
| 466 | classical |
| 467 | funext y |
| 468 | simp only [selection, dite_eq_left hL, ite_eq_left hI] |
| 469 | |
| 470 | theorem selection_zero_function {E : Type*} [Zero E] |
| 471 | (g : (Label B N0 × Copy) → ℕ → Native → E) (I : SourceIndex) (n : ℕ) |
| 472 | (hz : I.1 ∉ ActualSignedExterior.labels B N0 ∨ ¬(I.2.1.1 = I.1 ∧ I.2.1.2.val = 1)) : |
| 473 | selection g I n = fun _ => 0 := by |
| 474 | classical |
| 475 | funext y |
| 476 | rcases hz with hL | hI |
| 477 | · simp only [selection, dite_eq_right hL] |
| 478 | · by_cases hL : I.1 ∈ ActualSignedExterior.labels B N0 <;> simp [selection, hL, hI] |
| 479 | |
| 480 | theorem selection_uniform {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 481 | {α : ℝ} {g : (Label B N0 × Copy) → ℕ → Native → E} |
| 482 | (hg : UniformClass ActualPrimaryBounds.strip |
| 483 | (fun _ _ y => Real.sqrt (ActualPrimaryBounds.strip.zeta y)) α g) : |
| 484 | UniformClass ActualPrimaryBounds.strip weight α (selection g) := by |
| 485 | classical |
| 486 | refine ⟨fun _ _ _ _ => Real.sqrt_nonneg _, ?_, ?_⟩ |
| 487 | · intro I n |
| 488 | by_cases hL : I.1 ∈ ActualSignedExterior.labels B N0 |
| 489 | · by_cases hI : I.2.1.1 = I.1 ∧ I.2.1.2.val = 1 |
| 490 | · rw [selection_active_function g I n hL hI] |
| 491 | exact hg.smooth _ n |
| 492 | · rw [selection_zero_function g I n (Or.inr hI)] |
| 493 | exact contDiffOn_const |
| 494 | · rw [selection_zero_function g I n (Or.inl hL)] |
| 495 | exact contDiffOn_const |
| 496 | · intro m |
| 497 | obtain ⟨C, hC, p, hb⟩ := hg.bounds m |
| 498 | refine ⟨C, hC, p, ?_⟩ |
| 499 | intro I n y hy j hj |
| 500 | have hz := majorant_nonneg ActualPrimaryBounds.strip (weight I) α hC p n y (Real.sqrt_nonneg _) |
| 501 | by_cases hL : I.1 ∈ ActualSignedExterior.labels B N0 |
| 502 | · by_cases hI : I.2.1.1 = I.1 ∧ I.2.1.2.val = 1 |
| 503 | · rw [selection_active_function g I n hL hI] |
| 504 | exact hb _ n y hy j hj |
| 505 | · rw [selection_zero_function g I n (Or.inr hI)] |
| 506 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using hz |
| 507 | · rw [selection_zero_function g I n (Or.inl hL)] |
| 508 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using hz |
| 509 | |
| 510 | section SourceSelection |
| 511 | |
| 512 | variable (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) |
| 513 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 514 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 515 | |
| 516 | theorem potentialSource_inactive (L : PhysicalWaveSum.BandLabel) |
| 517 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) |
| 518 | (hL : L ∉ ActualSignedExterior.labels B N0) : |
| 519 | potentialSource (N0 := N0) P u H hp ⟨L, I⟩ n y = 0 := by |
| 520 | change ((family (N0 := N0) P u H hp).valueAt |
| 521 | (fun K => ActualSignedPhysicalData.nativePotentialSource slots outgoing.data.h_pos.le |
| 522 | ((family P u H hp).singleton K)) L) I n y = 0 |
| 523 | rw [DependentSignedPhysicalFamily.Family.valueAt_inactive _ _ hL] |
| 524 | rfl |
| 525 | |
| 526 | theorem pressureSource_inactive (L : PhysicalWaveSum.BandLabel) |
| 527 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) |
| 528 | (hL : L ∉ ActualSignedExterior.labels B N0) : |
| 529 | pressureSource (N0 := N0) P u H hp ⟨L, I⟩ n y = 0 := by |
| 530 | change ((family (N0 := N0) P u H hp).valueAt |
| 531 | (fun K => ActualSignedPhysicalData.nativePressureSource slots outgoing.data.h_pos.le |
| 532 | ((family P u H hp).singleton K)) L) I n y = 0 |
| 533 | rw [DependentSignedPhysicalFamily.Family.valueAt_inactive _ _ hL] |
| 534 | rfl |
| 535 | |
| 536 | theorem potentialSource_other_label (L : PhysicalWaveSum.BandLabel) |
| 537 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) (hI : I.1.1 ≠ L) : |
| 538 | potentialSource (N0 := N0) P u H hp ⟨L, I⟩ n y = 0 := by |
| 539 | classical |
| 540 | change ((family (N0 := N0) P u H hp).valueAt |
| 541 | (fun K => ActualSignedPhysicalData.nativePotentialSource slots outgoing.data.h_pos.le |
| 542 | ((family P u H hp).singleton K)) L) I n y = 0 |
| 543 | by_cases hL : L ∈ (family (N0 := N0) P u H hp).active |
| 544 | · simp only [DependentSignedPhysicalFamily.Family.valueAt, dite_eq_left hL] |
| 545 | have hm : I.1.1 ∉ ((family P u H hp).singleton ⟨L.val, L.property, hL⟩).active := by |
| 546 | simpa only [DependentSignedPhysicalFamily.Family.singleton_active, Set.mem_singleton_iff] using hI |
| 547 | erw [ActualSignedPhysicalData.nativePotentialSource, dite_eq_right hm] |
| 548 | · rw [DependentSignedPhysicalFamily.Family.valueAt_inactive _ _ hL] |
| 549 | rfl |
| 550 | |
| 551 | theorem pressureSource_other_label (L : PhysicalWaveSum.BandLabel) |
| 552 | (I : ActualSignedPhysicalData.SourceIndex) (n : ℕ) (y : Native) (hI : I.1.1 ≠ L) : |
| 553 | pressureSource (N0 := N0) P u H hp ⟨L, I⟩ n y = 0 := by |
| 554 | classical |
| 555 | change ((family (N0 := N0) P u H hp).valueAt |
| 556 | (fun K => ActualSignedPhysicalData.nativePressureSource slots outgoing.data.h_pos.le |
| 557 | ((family P u H hp).singleton K)) L) I n y = 0 |
| 558 | by_cases hL : L ∈ (family (N0 := N0) P u H hp).active |
| 559 | · simp only [DependentSignedPhysicalFamily.Family.valueAt, dite_eq_left hL] |
| 560 | have hm : I.1.1 ∉ ((family P u H hp).singleton ⟨L.val, L.property, hL⟩).active := by |
| 561 | simpa only [DependentSignedPhysicalFamily.Family.singleton_active, Set.mem_singleton_iff] using hI |
| 562 | erw [ActualSignedPhysicalData.nativePressureSource, dite_eq_right hm] |
| 563 | · rw [DependentSignedPhysicalFamily.Family.valueAt_inactive _ _ hL] |
| 564 | rfl |
| 565 | |
| 566 | theorem potentialSource_eq_selection : |
| 567 | potentialSource (N0 := N0) P u H hp = selection |
| 568 | (fun (i : Label B N0 × Copy) n y => ownPotential (request (B := B) P u) i n (nativeToCommon i.1 y)) := by |
| 569 | funext I n y |
| 570 | rcases I with ⟨L, ⟨⟨M, j⟩, k⟩⟩ |
| 571 | by_cases hL : L ∈ ActualSignedExterior.labels B N0 |
| 572 | · rcases hL with ⟨l, rfl⟩ |
| 573 | by_cases hM : M = ActualSignedExterior.bandLabel l |
| 574 | · subst M |
| 575 | rw [potentialSource_on_label, selection_on_label] |
| 576 | by_cases hj : j.val = 1 |
| 577 | · simp only [hj, true_and, ite_true] |
| 578 | by_cases hn : n = ActualSignedPhysicalBinding.reference l |
| 579 | · subst n |
| 580 | rw [ite_eq_left rfl] |
| 581 | change _ = ActualSignedUnmaskedBounds.ownField _ (l, k) |
| 582 | (ActualSignedUnmaskedBounds.reference l) (nativeToCommon l y) |
| 583 | rw [ActualSignedUnmaskedBounds.ownField_reference |
| 584 | (fun l k n => ActualSignedOutputBounds.localPotential (request (B := B) P u) l n k) (l, k), |
| 585 | nativeToCommon_eq] |
| 586 | exact (localPotential_reference l P u H hp k (ActualSignedPhysicalData.nativeCylinder y)).symm |
| 587 | · rw [ite_eq_right hn] |
| 588 | change _ = ActualSignedUnmaskedBounds.ownField _ (l, k) n (nativeToCommon l y) |
| 589 | rw [ActualSignedUnmaskedBounds.ownField_other _ _ hn] |
| 590 | · simp only [hj, false_and, ite_false] |
| 591 | · rw [potentialSource_other_label P u H hp _ _ _ _ hM, |
| 592 | selection_other_label _ _ _ _ _ hM] |
| 593 | · rw [potentialSource_inactive P u H hp _ _ _ _ hL, |
| 594 | selection_inactive _ _ _ _ _ hL] |
| 595 | |
| 596 | theorem pressureSource_eq_selection : |
| 597 | pressureSource (N0 := N0) P u H hp = selection |
| 598 | (fun (i : Label B N0 × Copy) n y => ownPressure (request (B := B) P u) i n (nativeToCommon i.1 y)) := by |
| 599 | funext I n y |
| 600 | rcases I with ⟨L, ⟨⟨M, j⟩, k⟩⟩ |
| 601 | by_cases hL : L ∈ ActualSignedExterior.labels B N0 |
| 602 | · rcases hL with ⟨l, rfl⟩ |
| 603 | by_cases hM : M = ActualSignedExterior.bandLabel l |
| 604 | · subst M |
| 605 | rw [pressureSource_on_label, selection_on_label] |
| 606 | by_cases hj : j.val = 1 |
| 607 | · simp only [hj, true_and, ite_true] |
| 608 | by_cases hn : n = ActualSignedPhysicalBinding.reference l |
| 609 | · subst n |
| 610 | rw [ite_eq_left rfl] |
| 611 | change _ = ActualSignedUnmaskedBounds.ownField _ (l, k) |
| 612 | (ActualSignedUnmaskedBounds.reference l) (nativeToCommon l y) |
| 613 | rw [ActualSignedUnmaskedBounds.ownField_reference |
| 614 | (fun l k n => ((ActualSignedOutputBounds.copies (request (B := B) P u) l).localized k).pressure n) (l, k), |
| 615 | nativeToCommon_eq] |
| 616 | exact (localPressure_reference l P u H hp k (ActualSignedPhysicalData.nativeCylinder y)).symm |
| 617 | · rw [ite_eq_right hn] |
| 618 | change _ = ActualSignedUnmaskedBounds.ownField _ (l, k) n (nativeToCommon l y) |
| 619 | rw [ActualSignedUnmaskedBounds.ownField_other _ _ hn] |
| 620 | · simp only [hj, false_and, ite_false] |
| 621 | · rw [pressureSource_other_label P u H hp _ _ _ _ hM, |
| 622 | selection_other_label _ _ _ _ _ hM] |
| 623 | · rw [pressureSource_inactive P u H hp _ _ _ _ hL, |
| 624 | selection_inactive _ _ _ _ _ hL] |
| 625 | |
| 626 | end SourceSelection |
| 627 | |
| 628 | /-! ## Joint bounds for the literal sources -/ |
| 629 | |
| 630 | section Bounds |
| 631 | |
| 632 | variable (P : SignedStressPrimitive.Patch) (u : State LocalSignedRequest.Point) |
| 633 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 634 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 635 | |
| 636 | /-- One set of constants controls every outer label, inner label, harmonic, |
| 637 | reference band and lattice copy of the actual native sources. -/ |
| 638 | theorem source_uniform {β : ℝ} |
| 639 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets ActualSignedStageControls.fullStrip |
| 640 | (fun _ _ x => ActualSignedStageControls.fullStrip.zeta x) β |
| 641 | (ActualSignedStageControls.phaseCell (B := B) (N0 := N0)) |
| 642 | (fun _ n _ x => request (B := B) P u n x q)) : |
| 643 | UniformClass ActualPrimaryBounds.strip weight (β + 1) |
| 644 | (potentialSource (N0 := N0) P u H hp) ∧ |
| 645 | UniformClass ActualPrimaryBounds.strip weight (β + 1) |
| 646 | (pressureSource (N0 := N0) P u H hp) := by |
| 647 | obtain ⟨hA, hpA⟩ := own_potential_pressure_uniform hR |
| 648 | rw [potentialSource_eq_selection, pressureSource_eq_selection] |
| 649 | exact ⟨selection_uniform (uniform_nativeToCommon hA), |
| 650 | selection_uniform (uniform_nativeToCommon hpA)⟩ |
| 651 | |
| 652 | /-- The fixed native strip supplies the geometric components of the physical |
| 653 | source interface at every real exponent. -/ |
| 654 | theorem native_source_bounds {E I : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 655 | {α : ℝ} {f : I → ℕ → Native → E} |
| 656 | (hf : UniformClass ActualPrimaryBounds.strip |
| 657 | (fun _ _ x => Real.sqrt (ActualPrimaryBounds.strip.zeta x)) α f) : |
| 658 | LocalPhysicalCopyBounds.LocalSourceBounds ActualPrimaryBounds.strip h α |
| 659 | (fun _ _ x => Real.sqrt (ActualPrimaryBounds.strip.zeta x)) f := by |
| 660 | refine ⟨hf, InitialPhysicalData.strip_flat_geometry, ⟨1 / 2, by norm_num, ?_⟩, |
| 661 | fun _ => rfl, ⟨1, le_rfl, 1, ?_⟩⟩ |
| 662 | · intro l n x hx |
| 663 | exact (Real.sqrt_eq_rpow _).le |
| 664 | · intro n hn |
| 665 | have hS := PhysicalGraphBounds.S_ge_one (show 1 ≤ n by omega) |
| 666 | change max 1 (ChartScales.S n) ≤ 1 * ChartScales.S n ^ 1 |
| 667 | simp only [max_eq_right hS, pow_one, one_mul, le_refl] |
| 668 | |
| 669 | theorem source_bounds {β : ℝ} |
| 670 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets ActualSignedStageControls.fullStrip |
| 671 | (fun _ _ x => ActualSignedStageControls.fullStrip.zeta x) β |
| 672 | (ActualSignedStageControls.phaseCell (B := B) (N0 := N0)) |
| 673 | (fun _ n _ x => request (B := B) P u n x q)) : |
| 674 | LocalPhysicalCopyBounds.LocalSourceBounds ActualPrimaryBounds.strip h (β + 1) weight |
| 675 | (potentialSource (N0 := N0) P u H hp) ∧ |
| 676 | LocalPhysicalCopyBounds.LocalSourceBounds ActualPrimaryBounds.strip h (β + 1) weight |
| 677 | (pressureSource (N0 := N0) P u H hp) := by |
| 678 | obtain ⟨hA, hpA⟩ := source_uniform P u H hp hR |
| 679 | exact ⟨native_source_bounds hA, native_source_bounds hpA⟩ |
| 680 | |
| 681 | end Bounds |
| 682 | |
| 683 | /-- The request premise can itself be discharged by the measured theta and |
| 684 | axial residual classes of this same reconstructed state. -/ |
| 685 | theorem source_bounds_from_residuals |
| 686 | (u : State LocalSignedRequest.Point) (α : ℝ) |
| 687 | (H : MeanStateRegularity.PrimitiveData standardRegion |
| 688 | ActualInitialization.patch.a ActualInitialization.patch.b (commonContext B) u) |
| 689 | (hp : GaugeMomentBalances.MovingField standardRegion |
| 690 | ActualInitialization.patch.a ActualInitialization.patch.b u.pressure) |
| 691 | (hfixed : VariableGaugeMean.reconstructState ActualInitialization.geometry.gauge |
| 692 | (commonContext B) u = u) |
| 693 | (hθ : MeanClass ActualInitialization.geometry.strip α (u.thetaResidual (commonContext B))) |
| 694 | (hz : MeanClass ActualInitialization.geometry.strip α (u.axialResidual (commonContext B))) : |
| 695 | LocalPhysicalCopyBounds.LocalSourceBounds ActualPrimaryBounds.strip h α weight |
| 696 | (potentialSource (N0 := N0) ActualInitialization.patch u H hp) ∧ |
| 697 | LocalPhysicalCopyBounds.LocalSourceBounds ActualPrimaryBounds.strip h α weight |
| 698 | (pressureSource (N0 := N0) ActualInitialization.patch u H hp) := by |
| 699 | have hR := ActualSignedStageControls.fullRequest_jets_from_residuals |
| 700 | ActualInitialization.geometry (commonContext B) u α H hfixed hθ hz |
| 701 | (ActualSignedStageControls.phaseCell (B := B) (N0 := N0)) |
| 702 | simpa only [sub_add_cancel] using source_bounds ActualInitialization.patch u H hp hR |
| 703 | |
| 704 | end NavierStokes.ActualSignedNativeBounds |