| @@ -75,148 +75,6 @@ noncomputable def meanBar (f : ScalarField (PressureStream.Lift S)) : |
| 75 | 75 | ScalarField (PressureStream.Lift S) := |
| 76 | 76 | fun n x => PressureStream.torusAverage (f n) (x.1, x.2.1) |
| 77 | 77 | |
| 78 | | -noncomputable def temporalPressureChange (r : ReconstructionData) (h : ℝ) |
| 79 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 80 | | - (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := |
| 81 | | - (temporalStage r h axial c u).pressure - u.pressure |
| 82 | | - |
| 83 | | -theorem temporalIncrement_smooth (r : ReconstructionData) (h : ℝ) |
| 84 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 85 | | - (u : State (PressureStream.Lift S)) (U : Set (PressureStream.Lift S)) |
| 86 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) |
| 87 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 88 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 89 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 90 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 91 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) : |
| 92 | | - SmoothTriple U (temporalIncrement r h axial c u) := by |
| 93 | | - refine ⟨fun n => ?_, fun n => ?_, fun n => ?_⟩ |
| 94 | | - · exact (TemporalMeanUpdate.radialUpdate_smooth ha r.inner_lt_outer hd r.radialDirection |
| 95 | | - (c.operators.epsilon n • axial) h n (hz n) (hpz n) (hsz n)).contDiffOn |
| 96 | | - · exact (TemporalMeanUpdate.desiredIncrement_smooth h n (hθ n) (hpθ n)).contDiffOn |
| 97 | | - · exact (TemporalMeanUpdate.axialUpdate_smooth ha r.inner_lt_outer hd r.radialDirection |
| 98 | | - h n (hz n) (hpz n) (hsz n)).contDiffOn |
| 99 | | - |
| 100 | | -theorem temporalStage_theta_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 101 | | - (r : ReconstructionData) (h : ℝ) (axial slow : S × PressureStream.Plane) |
| 102 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 103 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) |
| 104 | | - (hcompat : c.operators = graphOperators r c.operators.epsilon |
| 105 | | - (ChartScales.timeCoefficient h) axial slow (TorusInverse.vector .temporal)) |
| 106 | | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) |
| 107 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 108 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 109 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 110 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 111 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 112 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 113 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) : |
| 114 | | - Agree U ((temporalStage r h axial c u).thetaResidual c) |
| 115 | | - (meanBar (u.thetaResidual c) + thetaRemainder c.operators c.base u.mean |
| 116 | | - (temporalIncrement r h axial c u)) := by |
| 117 | | - have hi := temporalIncrement_smooth r h axial c u U ha hd hθ hz hpθ hpz hsz |
| 118 | | - have he := thetaResidual_change hU c.operators hprofile hb hm hi u.covariance hW c.virtualTheta |
| 119 | | - have hnew : (temporalStage r h axial c u).thetaResidual c = |
| 120 | | - MeanIncrementBounds.thetaResidual c.operators c.base |
| 121 | | - (updated u.mean (temporalIncrement r h axial c u)) u.covariance c.virtualTheta := by |
| 122 | | - simp [temporalStage, reconstructPressure, State.thetaResidual, State.addIncrement] |
| 123 | | - rfl |
| 124 | | - intro n x hx |
| 125 | | - have he' := he n hx |
| 126 | | - have hf := (temporal_fast_cancellation r h axial c u ha hd hθ hz hpθ hpz hsz n x).1 |
| 127 | | - have hfast : c.operators.fastTime (temporalIncrement r h axial c u).angular n x = |
| 128 | | - TemporalMeanUpdate.fastDerivative h n ((temporalIncrement r h axial c u).angular n) x := by |
| 129 | | - conv_lhs => rw [hcompat] |
| 130 | | - rfl |
| 131 | | - rw [hnew] |
| 132 | | - simp only [Pi.add_apply, Pi.sub_apply, hfast] at he' |
| 133 | | - simp only [TemporalMeanUpdate.centered] at hf |
| 134 | | - change _ = PressureStream.torusAverage (u.thetaResidual c n) (x.1, x.2.1) + _ |
| 135 | | - change _ + (u.thetaResidual c n x - _) = 0 at hf |
| 136 | | - change _ - u.thetaResidual c n x = _ at he' |
| 137 | | - linarith |
| 138 | | - |
| 139 | | -theorem temporalStage_axial_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 140 | | - (r : ReconstructionData) (h : ℝ) (axial slow : S × PressureStream.Plane) |
| 141 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 142 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) |
| 143 | | - (hcompat : c.operators = graphOperators r c.operators.epsilon |
| 144 | | - (ChartScales.timeCoefficient h) axial slow (TorusInverse.vector .temporal)) |
| 145 | | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) |
| 146 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 147 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 148 | | - (hp : SmoothOn U u.pressure) (hnp : SmoothOn U (temporalStage r h axial c u).pressure) |
| 149 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 150 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 151 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 152 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 153 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) : |
| 154 | | - Agree U (fun n x => (temporalStage r h axial c u).axialResidual c n x - |
| 155 | | - temporalAlias r h c u n (x, 0) 2) |
| 156 | | - (meanBar (u.axialResidual c) + axialRemainder c.operators c.base u.mean |
| 157 | | - (temporalIncrement r h axial c u) (temporalPressureChange r h axial c u)) := by |
| 158 | | - have hi := temporalIncrement_smooth r h axial c u U ha hd hθ hz hpθ hpz hsz |
| 159 | | - have he := axialResidual_change hU c.operators hprofile hb hm hi u.covariance hW |
| 160 | | - u.pressure (temporalPressureChange r h axial c u) c.virtualAxial hp (hnp.sub hp) |
| 161 | | - have hpressure : u.pressure + temporalPressureChange r h axial c u = |
| 162 | | - (temporalStage r h axial c u).pressure := by |
| 163 | | - unfold temporalPressureChange |
| 164 | | - abel |
| 165 | | - have hnew : (temporalStage r h axial c u).axialResidual c = |
| 166 | | - MeanIncrementBounds.axialResidual c.operators c.base |
| 167 | | - (updated u.mean (temporalIncrement r h axial c u)) u.covariance |
| 168 | | - (u.pressure + temporalPressureChange r h axial c u) c.virtualAxial := by |
| 169 | | - rw [hpressure] |
| 170 | | - simp [temporalStage, reconstructPressure, State.axialResidual, State.addIncrement] |
| 171 | | - rfl |
| 172 | | - intro n x hx |
| 173 | | - have he' := he n hx |
| 174 | | - have hf := (temporal_fast_cancellation r h axial c u ha hd hθ hz hpθ hpz hsz n x).2 |
| 175 | | - have hfast : c.operators.fastTime (temporalIncrement r h axial c u).axial n x = |
| 176 | | - TemporalMeanUpdate.fastDerivative h n ((temporalIncrement r h axial c u).axial n) x := by |
| 177 | | - conv_lhs => rw [hcompat] |
| 178 | | - rfl |
| 179 | | - rw [hnew] |
| 180 | | - simp only [Pi.add_apply, Pi.sub_apply, hfast] at he' |
| 181 | | - simp only [TemporalMeanUpdate.centered] at hf |
| 182 | | - change _ = PressureStream.torusAverage (u.axialResidual c n) (x.1, x.2.1) + _ |
| 183 | | - change _ + (u.axialResidual c n x - _) = _ at hf |
| 184 | | - change _ - u.axialResidual c n x = _ at he' |
| 185 | | - dsimp only |
| 186 | | - linarith |
| 187 | | - |
| 188 | | -/-- The increment bound is proved for the actual inverse and stream, from |
| 189 | | -the current residual classes. No increment or updated-residual class is |
| 190 | | -assumed. The inverse-direction hypothesis is the concrete graph direction. -/ |
| 191 | | -theorem temporalIncrement_mem (r : ReconstructionData) (h : ℝ) |
| 192 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 193 | | - (u : State (PressureStream.Lift S)) {cL cR H : ℝ} |
| 194 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 195 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 196 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 197 | | - (hscale : ∀ n, ChartScales.S n ≤ L n) (hM : ∀ n, r.frequency n ≠ 0) |
| 198 | | - (hvr : r.radialDirection = TorusInverse.vector .radial) |
| 199 | | - (hθclass : MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 200 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (u.thetaResidual c)) |
| 201 | | - (hzclass : MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 202 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (u.axialResidual c)) |
| 203 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 204 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 205 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 206 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 207 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) : |
| 208 | | - IncrementBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 209 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (temporalIncrement r h axial c u) := by |
| 210 | | - refine ⟨?_, ?_, ?_⟩ |
| 211 | | - · exact TemporalMeanUpdate.meanClass_scaledRadialUpdate ha r.inner_lt_outer hd hcL hcR hh |
| 212 | | - c.operators.epsilon L hε hεone hL hscale r.frequency (fun _ => r.radialDirection) axial |
| 213 | | - hzclass hz hpz hsz |
| 214 | | - · exact TemporalMeanUpdate.meanClass_desiredIncrement ha hcL hcR hh |
| 215 | | - c.operators.epsilon L hε hεone hL hscale hθclass hθ hpθ |
| 216 | | - · simpa only [temporalIncrement, hvr] using |
| 217 | | - (TemporalMeanUpdate.meanClass_axialUpdate ha r.inner_lt_outer hd hcL hcR hh |
| 218 | | - c.operators.epsilon L hε hεone hL hscale r.frequency hM hzclass hz hpz hsz) |
| 219 | | - |
| 220 | 78 | end TemporalComposition |
| 221 | 79 | |
| 222 | 80 | section TemporalAngularGain |
| @@ -225,51 +83,6 @@ open CorrectionState |
| 225 | 83 | |
| 226 | 84 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 227 | 85 | |
| 228 | | -/-- An actual temporal stage preserves the improved bar exponent whenever |
| 229 | | -that exponent is below its proved differentiated remainder exponent. -/ |
| 230 | | -theorem temporalStage_theta_mem (r : ReconstructionData) (h : ℝ) |
| 231 | | - (axial slow : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 232 | | - (u : State (PressureStream.Lift S)) {cL cR H κ β : ℝ} |
| 233 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 234 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 235 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 236 | | - (hscale : ∀ n, ChartScales.S n ≤ L n) (hM : ∀ n, r.frequency n ≠ 0) |
| 237 | | - (hvr : r.radialDirection = TorusInverse.vector .radial) |
| 238 | | - (hcompat : c.operators = graphOperators r c.operators.epsilon |
| 239 | | - (ChartScales.timeCoefficient h) axial slow (TorusInverse.vector .temporal)) |
| 240 | | - (ho : OperatorBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 241 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.operators κ) |
| 242 | | - (hb : BaseBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 243 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.base) |
| 244 | | - (hm : MeanIncrementBounds.CumulativeBounds |
| 245 | | - (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 246 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) u.mean) |
| 247 | | - (hW : ∀ i j, SmoothOn (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 248 | | - ha hcL hcR c.operators.epsilon L hε hεone hL).domain (u.covariance i j)) |
| 249 | | - (hθclass : MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 250 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (u.thetaResidual c)) |
| 251 | | - (hzclass : MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 252 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (u.axialResidual c)) |
| 253 | | - (hbar : MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 254 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) β (meanBar (u.thetaResidual c))) |
| 255 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 256 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 257 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 258 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 259 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) |
| 260 | | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : |
| 261 | | - MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 262 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) β |
| 263 | | - ((temporalStage r h axial c u).thetaResidual c) := by |
| 264 | | - have hi := temporalIncrement_mem r h axial c u ha hd hcL hcR hh L hε hεone hL |
| 265 | | - hscale hM hvr hθclass hzclass hθ hz hpθ hpz hsz |
| 266 | | - have herr := (thetaRemainder_mem ho hb hm hi hH).mono_exponent hβ |
| 267 | | - apply class_congr (hbar.add herr) |
| 268 | | - intro n x hx |
| 269 | | - exact temporalStage_theta_exact (S := S) (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 270 | | - ha hcL hcR c.operators.epsilon L hε hεone hL).isOpen_domain r h axial slow c u ha hd |
| 271 | | - hcompat (ho.radialProfile.smooth 0) hb.smooth hm.smooth hW hθ hz hpθ hpz hsz n hx |
| 272 | | - |
| 273 | 86 | end TemporalAngularGain |
| 274 | 87 | |
| 275 | 88 | section TemporalPressureAndAxial |
| @@ -278,110 +91,6 @@ open CorrectionState |
| 278 | 91 | |
| 279 | 92 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 280 | 93 | |
| 281 | | -omit [FiniteDimensional ℝ S] in |
| 282 | | -theorem temporalStage_pressure_formula (r : ReconstructionData) (h : ℝ) |
| 283 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 284 | | - (u : State (PressureStream.Lift S)) : |
| 285 | | - (temporalStage r h axial c u).pressure = |
| 286 | | - reconstructedPressure r.exponent r.inner r.outer r.inner_lt_outer r.frequency |
| 287 | | - (fun _ => r.radialDirection) c.operators c.base |
| 288 | | - (updated u.mean (temporalIncrement r h axial c u)) u.covariance := by |
| 289 | | - simp [temporalStage, reconstructPressure, State.addIncrement, |
| 290 | | - State.gr] |
| 291 | | - rfl |
| 292 | | - |
| 293 | | -omit [FiniteDimensional ℝ S] in |
| 294 | | -/-- The pressure change is bounded by applying the actual compact inverse |
| 295 | | -to the actual change of `gr`, whose centrifugal term is retained. -/ |
| 296 | | -theorem temporalPressureChange_mem (r : ReconstructionData) (h : ℝ) |
| 297 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 298 | | - (u : State (PressureStream.Lift S)) {cL cR H κ : ℝ} |
| 299 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) (hcL : 0 < cL) (hcR : 0 < cR) |
| 300 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 301 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 302 | | - (ho : OperatorBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 303 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.operators κ) |
| 304 | | - (hb : BaseBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 305 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.base) |
| 306 | | - (hm : MeanIncrementBounds.CumulativeBounds (WeightedRadialPrimitive.logStripData |
| 307 | | - r.inner r.outer cL cR ha hcL hcR c.operators.epsilon L hε hεone hL) u.mean) |
| 308 | | - (hi : IncrementBounds (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 309 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (temporalIncrement r h axial c u)) |
| 310 | | - (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) |
| 311 | | - (hW : ∀ i j, SmoothOn (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 312 | | - ha hcL hcR c.operators.epsilon L hε hεone hL).domain (u.covariance i j)) |
| 313 | | - (hf : ∀ n, ContDiff ℝ ∞ (MeanIncrementBounds.gr c.operators c.base |
| 314 | | - (updated u.mean (temporalIncrement r h axial c u)) u.covariance n)) |
| 315 | | - (hg : ∀ n, ContDiff ℝ ∞ (u.gr c n)) |
| 316 | | - (hsf : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (MeanIncrementBounds.gr |
| 317 | | - c.operators c.base (updated u.mean (temporalIncrement r h axial c u)) u.covariance n)) |
| 318 | | - (hsg : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.gr c n)) |
| 319 | | - (hpressure : u.pressure = (reconstructPressure r c u).pressure) : |
| 320 | | - MeanClass (WeightedRadialPrimitive.logStripData r.inner r.outer cL cR |
| 321 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H |
| 322 | | - (temporalPressureChange r h axial c u) := by |
| 323 | | - have hp := reconstructedPressure_change_mem ha r.inner_lt_outer hd hcL hcR |
| 324 | | - c.operators.epsilon L hε hεone hL ho hb hm hi hH hκ u.covariance hW hf hg hsf hsg |
| 325 | | - r.frequency (fun _ => r.radialDirection) |
| 326 | | - have hpressure' : u.pressure = reconstructedPressure r.exponent r.inner r.outer |
| 327 | | - r.inner_lt_outer r.frequency (fun _ => r.radialDirection) c.operators c.base |
| 328 | | - u.mean u.covariance := hpressure |
| 329 | | - unfold temporalPressureChange |
| 330 | | - rw [temporalStage_pressure_formula, hpressure'] |
| 331 | | - exact hp |
| 332 | | - |
| 333 | | -/-- The axial alias remains explicit in the conclusion. Its superflatness |
| 334 | | -is handled separately; it is not erased from the constructed velocity. -/ |
| 335 | | -theorem temporalStage_axial_mem {s : StripData (PressureStream.Lift S)} |
| 336 | | - (r : ReconstructionData) (h : ℝ) (axial slow : S × PressureStream.Plane) |
| 337 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 338 | | - {H κ β : ℝ} (ha : 0 < r.inner) (hd : 0 < r.exponent) |
| 339 | | - (hcompat : c.operators = graphOperators r c.operators.epsilon |
| 340 | | - (ChartScales.timeCoefficient h) axial slow (TorusInverse.vector .temporal)) |
| 341 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 342 | | - (hm : MeanIncrementBounds.CumulativeBounds s u.mean) |
| 343 | | - (hi : IncrementBounds s H (temporalIncrement r h axial c u)) |
| 344 | | - (hp : SmoothOn s.domain u.pressure) |
| 345 | | - (hdp : MeanClass s H (temporalPressureChange r h axial c u)) |
| 346 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 347 | | - (hbar : MeanClass s β (meanBar (u.axialResidual c))) |
| 348 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 349 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 350 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 351 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 352 | | - (hsz : ∀ n, RadialAlias.RadiallySupported r.inner r.outer (u.axialResidual c n)) |
| 353 | | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : |
| 354 | | - MeanClass s β (fun n x => (temporalStage r h axial c u).axialResidual c n x - |
| 355 | | - temporalAlias r h c u n (x, 0) 2) := by |
| 356 | | - have hnp : SmoothOn s.domain (temporalStage r h axial c u).pressure := by |
| 357 | | - have he : (temporalStage r h axial c u).pressure = |
| 358 | | - u.pressure + temporalPressureChange r h axial c u := by |
| 359 | | - unfold temporalPressureChange |
| 360 | | - abel |
| 361 | | - rw [he] |
| 362 | | - exact hp.add hdp.smooth |
| 363 | | - have herr := (axialRemainder_mem ho hb hm hi hH hdp).mono_exponent hβ |
| 364 | | - apply class_congr (hbar.add herr) |
| 365 | | - intro n x hx |
| 366 | | - exact temporalStage_axial_exact (S := S) s.isOpen_domain r h axial slow c u ha hd hcompat |
| 367 | | - (ho.radialProfile.smooth 0) hb.smooth hm.smooth hW hp hnp hθ hz hpθ hpz hsz n hx |
| 368 | | - |
| 369 | | -omit [FiniteDimensional ℝ S] in |
| 370 | | -theorem temporalStage_cumulative {s : StripData (PressureStream.Lift S)} |
| 371 | | - (r : ReconstructionData) (h : ℝ) (axial : S × PressureStream.Plane) |
| 372 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} |
| 373 | | - (hu : CorrectionState.CumulativeBounds s u) |
| 374 | | - (hi : IncrementBounds s H (temporalIncrement r h axial c u)) |
| 375 | | - (hp : MeanClass s H (temporalPressureChange r h axial c u)) (hH : 9 / 10 ≤ H) : |
| 376 | | - CorrectionState.CumulativeBounds s (temporalStage r h axial c u) := by |
| 377 | | - refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ |
| 378 | | - have he : (temporalStage r h axial c u).pressure = |
| 379 | | - u.pressure + temporalPressureChange r h axial c u := by |
| 380 | | - unfold temporalPressureChange |
| 381 | | - abel |
| 382 | | - rw [he] |
| 383 | | - exact hu.pressure.add (hp.mono_exponent hH) |
| 384 | | - |
| 385 | 94 | end TemporalPressureAndAxial |
| 386 | 95 | |
| 387 | 96 | /-! ## One physical field behind the chart family |
| @@ -419,11 +128,6 @@ noncomputable def PhysicalFields.add (u v : PhysicalFields P) : PhysicalFields P |
| 419 | 128 | noncomputable def meanComponents (m : Triple D) (n : ℕ) (x : D) : Fin 3 → ℝ := |
| 420 | 129 | ![m.radial n x, m.angular n x, m.axial n x] |
| 421 | 130 | |
| 422 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 423 | | -theorem meanComponents_updated (m h : Triple D) (n : ℕ) (x : D) (i : Fin 3) : |
| 424 | | - meanComponents (updated m h) n x i = meanComponents m n x i + meanComponents h n x i := by |
| 425 | | - fin_cases i <;> rfl |
| 426 | | - |
| 427 | 131 | /-- `chart` includes the actual torus covering as well as spatial/time |
| 428 | 132 | rescaling. `domain n` specifies where that band is active. -/ |
| 429 | 133 | structure RepresentsPhysical (chart : ℕ → P → D) (domain : ℕ → Set P) |
| @@ -442,62 +146,6 @@ structure RepresentsPhysical (chart : ℕ → P → D) (domain : ℕ → Set P) |
| 442 | 146 | aliasError : ∀ n x, x ∈ domain n → ∀ θ i, |
| 443 | 147 | u.errors.aliasError n (chart n x, θ) i = Q n ^ (2 * A + 1 / 2) * v.aliasError (x, θ) i |
| 444 | 148 | |
| 445 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 446 | | -/-- Actual addition preserves the specified common physical realization. |
| 447 | | -This does not manufacture a realization for a separately solved chart. -/ |
| 448 | | -theorem RepresentsPhysical.addIncrement {chart : ℕ → P → D} {domain : ℕ → Set P} |
| 449 | | - {Q : ℕ → ℝ} {A : ℝ} {u : State D} {v w : PhysicalFields P} |
| 450 | | - (hu : RepresentsPhysical chart domain Q A u v) |
| 451 | | - (m : Triple D) (p : ScalarField D) (osc : Oscillation D) (pr : OscillatoryScalar D) |
| 452 | | - (e : ExcludedErrors D) |
| 453 | | - (hw : RepresentsPhysical chart domain Q A (⟨m, p, osc, pr, e⟩ : State D) w) : |
| 454 | | - RepresentsPhysical chart domain Q A (u.addIncrement m p osc pr e) (v.add w) := by |
| 455 | | - constructor |
| 456 | | - · intro n x hx i |
| 457 | | - simp only [State.addIncrement, meanComponents_updated, PhysicalFields.add, Pi.add_apply] |
| 458 | | - rw [hu.mean n x hx i, hw.mean n x hx i] |
| 459 | | - ring |
| 460 | | - · intro n x hx |
| 461 | | - have hi : p n (chart n x) = Q n ^ (2 * A) * w.pressure x := hw.pressure n x hx |
| 462 | | - simp only [State.addIncrement, PhysicalFields.add, Pi.add_apply] |
| 463 | | - rw [hu.pressure n x hx, hi] |
| 464 | | - ring |
| 465 | | - · intro n x hx θ i |
| 466 | | - have hi : osc n (chart n x, θ) i = Q n ^ A * w.oscillation (x, θ) i := |
| 467 | | - hw.oscillation n x hx θ i |
| 468 | | - simp only [State.addIncrement, PhysicalFields.add, Pi.add_apply] |
| 469 | | - rw [hu.oscillation n x hx θ i, hi] |
| 470 | | - ring |
| 471 | | - · intro n x hx θ |
| 472 | | - have hi : pr n (chart n x, θ) = Q n ^ (2 * A) * w.oscillatoryPressure (x, θ) := |
| 473 | | - hw.oscillatoryPressure n x hx θ |
| 474 | | - simp only [State.addIncrement, PhysicalFields.add, Pi.add_apply] |
| 475 | | - rw [hu.oscillatoryPressure n x hx θ, hi] |
| 476 | | - ring |
| 477 | | - · intro n x hx θ i |
| 478 | | - simp only [State.addIncrement, ExcludedErrors.add, PhysicalFields.add, Pi.add_apply] |
| 479 | | - rw [hu.baseError n x hx θ i, hw.baseError n x hx θ i] |
| 480 | | - ring |
| 481 | | - · intro n x hx θ i |
| 482 | | - simp only [State.addIncrement, ExcludedErrors.add, PhysicalFields.add, Pi.add_apply] |
| 483 | | - rw [hu.gaussianError n x hx θ i, hw.gaussianError n x hx θ i] |
| 484 | | - ring |
| 485 | | - · intro n x hx θ i |
| 486 | | - simp only [State.addIncrement, ExcludedErrors.add, PhysicalFields.add, Pi.add_apply] |
| 487 | | - rw [hu.aliasError n x hx θ i, hw.aliasError n x hx θ i] |
| 488 | | - ring |
| 489 | | - |
| 490 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 491 | | -theorem RepresentsPhysical.mean_overlap {chart : ℕ → P → D} {domain : ℕ → Set P} |
| 492 | | - {Q : ℕ → ℝ} {A : ℝ} {u : State D} {v : PhysicalFields P} |
| 493 | | - (hu : RepresentsPhysical chart domain Q A u v) (hQ : ∀ n, 0 < Q n) |
| 494 | | - (n m : ℕ) (x : P) (hn : x ∈ domain n) (hm : x ∈ domain m) (i : Fin 3) : |
| 495 | | - meanComponents u.mean n (chart n x) i / Q n ^ A = |
| 496 | | - meanComponents u.mean m (chart m x) i / Q m ^ A := by |
| 497 | | - rw [hu.mean n x hn i, hu.mean m x hm i] |
| 498 | | - rw [mul_div_cancel_left₀ _ (Real.rpow_pos_of_pos (hQ n) A).ne', |
| 499 | | - mul_div_cancel_left₀ _ (Real.rpow_pos_of_pos (hQ m) A).ne'] |
| 500 | | - |
| 501 | 149 | end PhysicalRepresentation |
| 502 | 150 | |
| 503 | 151 | section RankMeanComposition |
| @@ -506,103 +154,6 @@ open CorrectionState |
| 506 | 154 | |
| 507 | 155 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 508 | 156 | |
| 509 | | -noncomputable def rankPressureChange (p : ReconstructionData) (r : RankData S) |
| 510 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 511 | | - (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := |
| 512 | | - (rankStage p r axial c u).pressure - u.pressure |
| 513 | | - |
| 514 | | -theorem slow_directional_zero {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 515 | | - {f : ScalarField (PressureStream.Lift S)} (hf : SmoothOn U f) |
| 516 | | - (hslow : DefectIncrementBounds.IsSlow f) (v : PressureStream.Plane) |
| 517 | | - (n : ℕ) {x : PressureStream.Lift S} (hx : x ∈ U) : |
| 518 | | - fderiv ℝ (f n) x (0, (0, v)) = 0 := by |
| 519 | | - apply directional_zero_of_line_const ((hf.at_point hU n hx).differentiableAt (by simp)) |
| 520 | | - intro t |
| 521 | | - rcases x with ⟨R, s, Y⟩ |
| 522 | | - simp only [Prod.smul_mk, smul_zero, Prod.mk_add_mk, add_zero] |
| 523 | | - rw [hslow, hslow] |
| 524 | | - |
| 525 | | -theorem rankStage_theta_mem {s : StripData (PressureStream.Lift S)} |
| 526 | | - (p : ReconstructionData) (r : RankData S) (axial : S × PressureStream.Plane) |
| 527 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 528 | | - {H κ β : ℝ} (v : PressureStream.Plane) (hfast : c.operators.vT = (0, (0, v))) |
| 529 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 530 | | - (hm : MeanIncrementBounds.CumulativeBounds s u.mean) |
| 531 | | - (hi : IncrementBounds s H (rankIncrement p r axial c u)) |
| 532 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 533 | | - (hcurrent : MeanClass s β (u.thetaResidual c)) |
| 534 | | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : |
| 535 | | - MeanClass s β ((rankStage p r axial c u).thetaResidual c) := by |
| 536 | | - have hz : ∀ n x, x ∈ s.domain → |
| 537 | | - fderiv ℝ ((rankIncrement p r axial c u).angular n) x c.operators.vT = 0 := by |
| 538 | | - intro n x hx |
| 539 | | - rw [hfast] |
| 540 | | - exact slow_directional_zero s.isOpen_domain hi.angular.smooth |
| 541 | | - (DefectIncrementBounds.rankIncrement_angular_slow p r axial c u) v n hx |
| 542 | | - have hdelta := thetaResidual_change_slow_mem ho hb hm hi hH u.covariance hW c.virtualTheta hz |
| 543 | | - have hnew : (rankStage p r axial c u).thetaResidual c = |
| 544 | | - MeanIncrementBounds.thetaResidual c.operators c.base |
| 545 | | - (updated u.mean (rankIncrement p r axial c u)) u.covariance c.virtualTheta := by |
| 546 | | - simp [rankStage, reconstructPressure, State.thetaResidual, State.addIncrement] |
| 547 | | - rfl |
| 548 | | - apply class_congr (hcurrent.add (hdelta.mono_exponent hβ)) |
| 549 | | - intro n x hx |
| 550 | | - rw [hnew] |
| 551 | | - change _ = u.thetaResidual c n x + (_ - u.thetaResidual c n x) |
| 552 | | - ring |
| 553 | | - |
| 554 | | -theorem rankStage_axial_mem {s : StripData (PressureStream.Lift S)} |
| 555 | | - (p : ReconstructionData) (r : RankData S) (axial : S × PressureStream.Plane) |
| 556 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 557 | | - (hg : DefectIncrementBounds.RankGeometry p r c u) |
| 558 | | - {H κ β : ℝ} (v : PressureStream.Plane) (hfast : c.operators.vT = (0, (0, v))) |
| 559 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 560 | | - (hm : MeanIncrementBounds.CumulativeBounds s u.mean) |
| 561 | | - (hi : IncrementBounds s H (rankIncrement p r axial c u)) |
| 562 | | - (hp : SmoothOn s.domain u.pressure) |
| 563 | | - (hdp : MeanClass s H (rankPressureChange p r axial c u)) |
| 564 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 565 | | - (hcurrent : MeanClass s β (u.axialResidual c)) |
| 566 | | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : |
| 567 | | - MeanClass s β ((rankStage p r axial c u).axialResidual c) := by |
| 568 | | - have hz : ∀ n x, x ∈ s.domain → |
| 569 | | - fderiv ℝ ((rankIncrement p r axial c u).axial n) x c.operators.vT = 0 := by |
| 570 | | - intro n x hx |
| 571 | | - rw [hfast] |
| 572 | | - exact slow_directional_zero s.isOpen_domain hi.axial.smooth (hg.axial_slow axial) v n hx |
| 573 | | - have hdelta := axialResidual_change_slow_mem ho hb hm hi hH u.covariance hW |
| 574 | | - u.pressure (rankPressureChange p r axial c u) c.virtualAxial hp hdp hz |
| 575 | | - have hpressure : u.pressure + rankPressureChange p r axial c u = |
| 576 | | - (rankStage p r axial c u).pressure := by |
| 577 | | - unfold rankPressureChange |
| 578 | | - abel |
| 579 | | - have hnew : (rankStage p r axial c u).axialResidual c = |
| 580 | | - MeanIncrementBounds.axialResidual c.operators c.base |
| 581 | | - (updated u.mean (rankIncrement p r axial c u)) u.covariance |
| 582 | | - (u.pressure + rankPressureChange p r axial c u) c.virtualAxial := by |
| 583 | | - rw [hpressure] |
| 584 | | - simp [rankStage, reconstructPressure, State.axialResidual, State.addIncrement] |
| 585 | | - rfl |
| 586 | | - apply class_congr (hcurrent.add (hdelta.mono_exponent hβ)) |
| 587 | | - intro n x hx |
| 588 | | - rw [hnew] |
| 589 | | - change _ = u.axialResidual c n x + (_ - u.axialResidual c n x) |
| 590 | | - ring |
| 591 | | - |
| 592 | | -theorem rankStage_cumulative {s : StripData (PressureStream.Lift S)} |
| 593 | | - (p : ReconstructionData) (r : RankData S) (axial : S × PressureStream.Plane) |
| 594 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} |
| 595 | | - (hu : CorrectionState.CumulativeBounds s u) |
| 596 | | - (hi : IncrementBounds s H (rankIncrement p r axial c u)) |
| 597 | | - (hp : MeanClass s H (rankPressureChange p r axial c u)) (hH : 9 / 10 ≤ H) : |
| 598 | | - CorrectionState.CumulativeBounds s (rankStage p r axial c u) := by |
| 599 | | - refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ |
| 600 | | - have he : (rankStage p r axial c u).pressure = u.pressure + rankPressureChange p r axial c u := by |
| 601 | | - unfold rankPressureChange |
| 602 | | - abel |
| 603 | | - rw [he] |
| 604 | | - exact hu.pressure.add (hp.mono_exponent hH) |
| 605 | | - |
| 606 | 157 | end RankMeanComposition |
| 607 | 158 | |
| 608 | 159 | section ExcludedMeanErrors |
| @@ -627,18 +178,6 @@ theorem angularMeanVector_add {f g : Oscillation D} |
| 627 | 178 | funext n x i |
| 628 | 179 | exact congrFun (congrFun (angularAverage_add (fun n x => hf n x i) (fun n x => hg n x i)) n) x |
| 629 | 180 | |
| 630 | | -/-- The base error is restored and subtracted exactly once. Gaussian and |
| 631 | | -alias errors remain actual subtracted means, with no zero/flat substitution. -/ |
| 632 | | -theorem meanGoodResidual_exact_errors (c : Context D) (u : State D) |
| 633 | | - (hb : AngularContinuous u.errors.base) (hg : AngularContinuous u.errors.gaussian) |
| 634 | | - (ha : AngularContinuous u.errors.aliasError) : |
| 635 | | - u.meanGoodResidual c = u.reducedMeanResidual c - angularMeanVector u.errors.gaussian - |
| 636 | | - angularMeanVector u.errors.aliasError := by |
| 637 | | - change u.reducedMeanResidual c + angularMeanVector u.errors.base - |
| 638 | | - angularMeanVector (u.errors.base + u.errors.gaussian + u.errors.aliasError) = _ |
| 639 | | - rw [angularMeanVector_add (hb.add hg) ha, angularMeanVector_add hb hg] |
| 640 | | - abel |
| 641 | | - |
| 642 | 181 | /-- The same cancellation only uses angular continuity on the selected |
| 643 | 182 | fiber. No regularity outside the current physical domain is needed. -/ |
| 644 | 183 | theorem meanGoodResidual_at (c : Context D) (u : State D) (n : ℕ) (x : D) (i : Fin 3) |
| @@ -658,108 +197,12 @@ theorem meanGoodResidual_at (c : Context D) (u : State D) (n : ℕ) (x : D) (i : |
| 658 | 197 | HarmonicFields.period] |
| 659 | 198 | ring |
| 660 | 199 | |
| 661 | | -theorem meanResidualBounds_of_explicit_errors {s : StripData D} {σ : ℝ} |
| 662 | | - (c : Context D) (u : State D) |
| 663 | | - (hb : AngularContinuous u.errors.base) (hg : AngularContinuous u.errors.gaussian) |
| 664 | | - (ha : AngularContinuous u.errors.aliasError) |
| 665 | | - (hθ : MeanClass s (1 + σ) (u.thetaResidual c)) |
| 666 | | - (hz : MeanClass s (1 + σ) (u.axialResidual c)) |
| 667 | | - (hgθ : MeanClass s (1 + σ) (fun n x => angularMeanVector u.errors.gaussian n x 1)) |
| 668 | | - (hgz : MeanClass s (1 + σ) (fun n x => angularMeanVector u.errors.gaussian n x 2)) |
| 669 | | - (haθ : MeanClass s (1 + σ) (fun n x => angularMeanVector u.errors.aliasError n x 1)) |
| 670 | | - (haz : MeanClass s (1 + σ) (fun n x => angularMeanVector u.errors.aliasError n x 2)) : |
| 671 | | - CorrectionState.MeanResidualBounds s σ c u := by |
| 672 | | - have he := meanGoodResidual_exact_errors c u hb hg ha |
| 673 | | - constructor |
| 674 | | - · apply class_congr (Class.sub (Class.sub hθ hgθ) haθ) |
| 675 | | - intro n x hx |
| 676 | | - rw [he] |
| 677 | | - rfl |
| 678 | | - · apply class_congr (Class.sub (Class.sub hz hgz) haz) |
| 679 | | - intro n x hx |
| 680 | | - rw [he] |
| 681 | | - rfl |
| 682 | | - |
| 683 | 200 | end ExcludedMeanErrors |
| 684 | 201 | |
| 685 | 202 | section ConcreteRankConstruction |
| 686 | 203 | |
| 687 | 204 | open CorrectionState |
| 688 | 205 | |
| 689 | | -/-- The concrete normalized five-row inverse uses the physical coordinate |
| 690 | | -functions of the current slow point, with no dependence on the torus slot. -/ |
| 691 | | -noncomputable def normalizedRankData (coord A B lam a b : ℝ) : |
| 692 | | - RankData PressureStream.Plane where |
| 693 | | - lambda := lam |
| 694 | | - inner := a |
| 695 | | - outer := b |
| 696 | | - length := fun _ z => Real.sqrt (MeanRankUpdate.chartQ coord (0, z, 0)) |
| 697 | | - velocity := fun _ z => MeanRankUpdate.chartQ coord (0, z, 0) ^ (-A) |
| 698 | | - coefficient := fun _ z => MeanRankUpdate.shapedAmplitude B |
| 699 | | - (MeanRankUpdate.chartEta coord (0, z, 0)) |
| 700 | | - |
| 701 | | -theorem normalizedRank_angular (coord A B lam a b : ℝ) |
| 702 | | - (c : Context MeanRankUpdate.ChartPoint) (u : State MeanRankUpdate.ChartPoint) (n : ℕ) : |
| 703 | | - MeanRankUpdate.slowLift (rankAngular (normalizedRankData coord A B lam a b) c u n) = |
| 704 | | - MeanRankUpdate.chartAngular coord A B lam a b (fun z => debt c u n z.2.1) := by |
| 705 | | - rfl |
| 706 | | - |
| 707 | | -theorem normalizedRank_desired (coord A B lam a b : ℝ) |
| 708 | | - (c : Context MeanRankUpdate.ChartPoint) (u : State MeanRankUpdate.ChartPoint) (n : ℕ) : |
| 709 | | - rankDesiredAxial (normalizedRankData coord A B lam a b) c u n = |
| 710 | | - MeanRankUpdate.slowChartDesired coord A B lam a b (debt c u n) := by |
| 711 | | - rfl |
| 712 | | - |
| 713 | | -theorem normalizedRank_potential (p : ReconstructionData) (coord A B lam a b : ℝ) |
| 714 | | - (c : Context MeanRankUpdate.ChartPoint) (u : State MeanRankUpdate.ChartPoint) (n : ℕ) : |
| 715 | | - rankPotential p (normalizedRankData coord A B lam a b) c u n = |
| 716 | | - MeanRankUpdate.actualChartPotential coord A B lam a b p.exponent p.inner p.outer |
| 717 | | - (p.frequency n) p.radialDirection (debt c u n) := by |
| 718 | | - rfl |
| 719 | | - |
| 720 | | -theorem normalizedRank_radial (p : ReconstructionData) (coord A B lam a b : ℝ) |
| 721 | | - (axial : PressureStream.Plane × PressureStream.Plane) |
| 722 | | - (c : Context MeanRankUpdate.ChartPoint) (u : State MeanRankUpdate.ChartPoint) : |
| 723 | | - (rankIncrement p (normalizedRankData coord A B lam a b) axial c u).radial = |
| 724 | | - fun n x => c.operators.epsilon n * MeanRankUpdate.actualChartRadial coord A B lam a b |
| 725 | | - p.exponent p.inner p.outer (p.frequency n) p.radialDirection axial (debt c u n) x := by |
| 726 | | - funext n x |
| 727 | | - change -(fderiv ℝ (rankPotential p (normalizedRankData coord A B lam a b) c u n) x |
| 728 | | - (0, c.operators.epsilon n • axial)) = _ |
| 729 | | - have hv : ((0 : ℝ), c.operators.epsilon n • axial) = |
| 730 | | - c.operators.epsilon n • ((0 : ℝ), axial) := by simp |
| 731 | | - rw [hv, map_smul] |
| 732 | | - simp only [smul_eq_mul, normalizedRank_potential, |
| 733 | | - MeanRankUpdate.actualChartRadial, PressureStream.streamBeta, PressureStream.graphDz, |
| 734 | | - mul_neg] |
| 735 | | - |
| 736 | | -/-- All three classes of the actual rank increment follow from the measured |
| 737 | | -debt. The radial factor is the literal epsilon in `rankIncrement`. -/ |
| 738 | | -theorem normalizedRankIncrement_mem (s : StripData MeanRankUpdate.ChartPoint) |
| 739 | | - (p : ReconstructionData) (c : Context MeanRankUpdate.ChartPoint) |
| 740 | | - (u : State MeanRankUpdate.ChartPoint) |
| 741 | | - {coord A B lam a b qlo qhi H : ℝ} |
| 742 | | - (hc : 0 < coord) (hc1 : coord < 1) (hlam : 0 < lam) |
| 743 | | - (ha : 0 < a) (hab : a < b) (hB : B ≠ 0) |
| 744 | | - (hp : 0 < p.exponent) (hlo : 0 < p.inner) (hqlo : 0 < qlo) |
| 745 | | - (hleft : p.inner ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ p.outer) |
| 746 | | - (hT : ∀ x ∈ s.domain, MeanRankUpdate.chartInput x ∈ PhysicalCoordinateBounds.positiveTime) |
| 747 | | - (hq : ∀ x ∈ s.domain, MeanRankUpdate.chartQ coord x ∈ Icc qlo qhi) |
| 748 | | - (hR : ∀ x ∈ s.domain, x.1 ∈ Icc p.inner p.outer) |
| 749 | | - (hz : ∃ δ : ℝ, 0 < δ ∧ ∀ x ∈ s.domain, |
| 750 | | - x ∈ MeanRankUpdate.supportBand a b qlo qhi → δ ≤ s.zeta x) |
| 751 | | - (axial : PressureStream.Plane × PressureStream.Plane) |
| 752 | | - (hε : c.operators.epsilon = s.epsilon) |
| 753 | | - (hd : UnweightedClass s H (fun n x => debt c u n x.2.1)) : |
| 754 | | - IncrementBounds s H (rankIncrement p (normalizedRankData coord A B lam a b) axial c u) := by |
| 755 | | - have hv := MeanRankUpdate.actual_rank_velocity_meanClass (A := A) s hc hc1 hlam ha hab hB hp hlo |
| 756 | | - p.inner_lt_outer hqlo hleft hright hT hq hR hz p.frequency (fun _ => p.radialDirection) axial hd |
| 757 | | - refine ⟨?_, ?_, ?_⟩ |
| 758 | | - · rw [normalizedRank_radial, hε] |
| 759 | | - exact MeanRankUpdate.radial_physical_scale_gain s hv.2.2 |
| 760 | | - · exact hv.1 |
| 761 | | - · exact hv.2.1 |
| 762 | | - |
| 763 | 206 | end ConcreteRankConstruction |
| 764 | 207 | |
| 765 | 208 | section RankPressureConstruction |
| @@ -768,57 +211,6 @@ open CorrectionState |
| 768 | 211 | |
| 769 | 212 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 770 | 213 | |
| 771 | | -theorem rankStage_pressure_formula (p : ReconstructionData) (r : RankData S) |
| 772 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 773 | | - (u : State (PressureStream.Lift S)) : |
| 774 | | - (rankStage p r axial c u).pressure = |
| 775 | | - reconstructedPressure p.exponent p.inner p.outer p.inner_lt_outer p.frequency |
| 776 | | - (fun _ => p.radialDirection) c.operators c.base |
| 777 | | - (updated u.mean (rankIncrement p r axial c u)) u.covariance := by |
| 778 | | - simp [rankStage, reconstructPressure, State.addIncrement, |
| 779 | | - State.gr] |
| 780 | | - rfl |
| 781 | | - |
| 782 | | -/-- The pressure estimate is for the pressure actually recomputed after |
| 783 | | -the rank correction. The input is the current radial source, not an assumed |
| 784 | | -bound on the new pressure. -/ |
| 785 | | -theorem rankPressureChange_mem (p : ReconstructionData) (r : RankData S) |
| 786 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 787 | | - (u : State (PressureStream.Lift S)) {cL cR H κ : ℝ} |
| 788 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) (hcL : 0 < cL) (hcR : 0 < cR) |
| 789 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 790 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 791 | | - (ho : OperatorBounds (WeightedRadialPrimitive.logStripData p.inner p.outer cL cR |
| 792 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.operators κ) |
| 793 | | - (hb : BaseBounds (WeightedRadialPrimitive.logStripData p.inner p.outer cL cR |
| 794 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) c.base) |
| 795 | | - (hm : MeanIncrementBounds.CumulativeBounds (WeightedRadialPrimitive.logStripData |
| 796 | | - p.inner p.outer cL cR ha hcL hcR c.operators.epsilon L hε hεone hL) u.mean) |
| 797 | | - (hi : IncrementBounds (WeightedRadialPrimitive.logStripData p.inner p.outer cL cR |
| 798 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H (rankIncrement p r axial c u)) |
| 799 | | - (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) |
| 800 | | - (hW : ∀ i j, SmoothOn (WeightedRadialPrimitive.logStripData p.inner p.outer cL cR |
| 801 | | - ha hcL hcR c.operators.epsilon L hε hεone hL).domain (u.covariance i j)) |
| 802 | | - (hf : ∀ n, ContDiff ℝ ∞ (MeanIncrementBounds.gr c.operators c.base |
| 803 | | - (updated u.mean (rankIncrement p r axial c u)) u.covariance n)) |
| 804 | | - (hg : ∀ n, ContDiff ℝ ∞ (u.gr c n)) |
| 805 | | - (hsf : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (MeanIncrementBounds.gr |
| 806 | | - c.operators c.base (updated u.mean (rankIncrement p r axial c u)) u.covariance n)) |
| 807 | | - (hsg : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.gr c n)) |
| 808 | | - (hpressure : u.pressure = (reconstructPressure p c u).pressure) : |
| 809 | | - MeanClass (WeightedRadialPrimitive.logStripData p.inner p.outer cL cR |
| 810 | | - ha hcL hcR c.operators.epsilon L hε hεone hL) H |
| 811 | | - (rankPressureChange p r axial c u) := by |
| 812 | | - have hp := reconstructedPressure_change_mem ha p.inner_lt_outer hd hcL hcR |
| 813 | | - c.operators.epsilon L hε hεone hL ho hb hm hi hH hκ u.covariance hW hf hg hsf hsg |
| 814 | | - p.frequency (fun _ => p.radialDirection) |
| 815 | | - have hpressure' : u.pressure = reconstructedPressure p.exponent p.inner p.outer |
| 816 | | - p.inner_lt_outer p.frequency (fun _ => p.radialDirection) c.operators c.base |
| 817 | | - u.mean u.covariance := hpressure |
| 818 | | - unfold rankPressureChange |
| 819 | | - rw [rankStage_pressure_formula, hpressure'] |
| 820 | | - exact hp |
| 821 | | - |
| 822 | 214 | end RankPressureConstruction |
| 823 | 215 | |
| 824 | 216 | section PressureAliasBookkeeping |
| @@ -827,98 +219,12 @@ open CorrectionState |
| 827 | 219 | |
| 828 | 220 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 829 | 221 | |
| 830 | | -/-- Replace precisely the obsolete radial alias when the pressure has been |
| 831 | | -recomputed. All other accumulated aliases remain in the error field. -/ |
| 832 | | -noncomputable def refreshPressureAlias (p : ReconstructionData) |
| 833 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : |
| 834 | | - State (PressureStream.Lift S) := |
| 835 | | - { current with errors := { current.errors with aliasError := |
| 836 | | - current.errors.aliasError + (pressureAlias p c current - pressureAlias p c old) } } |
| 837 | | - |
| 838 | | -theorem refreshPressureAlias_separated (p : ReconstructionData) |
| 839 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) |
| 840 | | - (other : Oscillation (PressureStream.Lift S)) |
| 841 | | - (he : current.errors.aliasError = other + pressureAlias p c old) : |
| 842 | | - (refreshPressureAlias p c old current).errors.aliasError = |
| 843 | | - other + pressureAlias p c current := by |
| 844 | | - simp only [refreshPressureAlias, he] |
| 845 | | - abel |
| 846 | | - |
| 847 | | -theorem refreshPressureAlias_fullResidual (p : ReconstructionData) |
| 848 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : |
| 849 | | - fullResidual c (refreshPressureAlias p c old current) = fullResidual c current := rfl |
| 850 | | - |
| 851 | | -theorem refreshPressureAlias_fullGoodResidual (p : ReconstructionData) |
| 852 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : |
| 853 | | - fullGoodResidual c (refreshPressureAlias p c old current) = fullGoodResidual c current - |
| 854 | | - (pressureAlias p c current - pressureAlias p c old) := by |
| 855 | | - unfold fullGoodResidual |
| 856 | | - rw [refreshPressureAlias_fullResidual] |
| 857 | | - simp only [refreshPressureAlias, ExcludedErrors.total] |
| 858 | | - abel |
| 859 | | - |
| 860 | | -/-- The exact current radial alias cancels only the alias part of the |
| 861 | | -reconstructed radial equation; the repaired pressure defect remains. -/ |
| 862 | | -theorem reconstructed_radial_minus_alias (p : ReconstructionData) |
| 863 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) (c : Context (PressureStream.Lift S)) |
| 864 | | - (u : State (PressureStream.Lift S)) |
| 865 | | - (hoperator : ∀ f : ScalarField (PressureStream.Lift S), ∀ n x, c.operators.dr f n x = |
| 866 | | - PressureStream.graphDr (PressureStream.physicalSpeed p.exponent (p.frequency n)) |
| 867 | | - (0, p.radialDirection) (f n) x) |
| 868 | | - (hsmooth : ∀ n, ContDiff ℝ ∞ (u.gr c n)) |
| 869 | | - (hsupport : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.gr c n)) |
| 870 | | - (n : ℕ) (x : PressureStream.Lift S) : |
| 871 | | - (reconstructPressure p c u).radialResidual c n x - pressureAlias p c u n (x, 0) 0 = |
| 872 | | - -PressureStream.rho p.inner p.outer p.inner_lt_outer x.1 * pressureDefect c u n x.2.1 := by |
| 873 | | - rw [CorrectionState.reconstructed_radial_residual p ha hd c u hoperator hsmooth hsupport] |
| 874 | | - ring |
| 875 | | - |
| 876 | 222 | end PressureAliasBookkeeping |
| 877 | 223 | |
| 878 | 224 | section ActualHarmonicForcing |
| 879 | 225 | |
| 880 | 226 | open CorrectionState |
| 881 | 227 | |
| 882 | | -theorem fullResidual_eq_harmonicResidual (c : Context D) (u : State D) : |
| 883 | | - fullResidual c u = HarmonicResidual.stateFullResidual c u := rfl |
| 884 | | - |
| 885 | | -theorem fullGoodResidual_eq_harmonicResidual (c : Context D) (u : State D) : |
| 886 | | - fullGoodResidual c u = HarmonicResidual.stateGoodResidual c u := rfl |
| 887 | | - |
| 888 | | -theorem fullGoodWaveResidual_eq_harmonicResidual (c : Context D) (u : State D) : |
| 889 | | - fullGoodWaveResidual c u = HarmonicResidual.stateGoodWaveResidual c u := rfl |
| 890 | | - |
| 891 | | -/-- The right-hand sides for the particular solves are obtained from the |
| 892 | | -literal current nonlinear PDE residual, by differentiating and convolving |
| 893 | | -its stored finite harmonics and then removing the zero harmonic. -/ |
| 894 | | -theorem fullGoodWaveResidual_grouped {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 895 | | - {c : Context D} {u : State D} {labels : ℕ → Finset ι} |
| 896 | | - {blocks : ι → HarmonicBlock D} |
| 897 | | - {gaussian aliasError : ι → HarmonicResidual.BlockCoefficients D} |
| 898 | | - (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasError u) {n : ℕ} |
| 899 | | - (h : HarmonicResidual.ExtractionRegular U c u labels blocks gaussian aliasError n) |
| 900 | | - {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 901 | | - fullGoodWaveResidual c u n x i = |
| 902 | | - ∑ l ∈ labels n, |
| 903 | | - (HarmonicResidual.residualBlock c u (blocks l) (gaussian l) (aliasError l)).oscillation n x i := |
| 904 | | - HarmonicResidual.stateGoodWaveResidual_grouped hU hrep h hx i |
| 905 | | - |
| 906 | | -/-- Reconstruction retains the actual zero mode and every stored error. |
| 907 | | -No mean equation or error-flatness assertion is hidden in this identity. -/ |
| 908 | | -theorem fullResidual_harmonic_decomposition {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 909 | | - {c : Context D} {u : State D} {labels : ℕ → Finset ι} |
| 910 | | - {blocks : ι → HarmonicBlock D} |
| 911 | | - {gaussian aliasError : ι → HarmonicResidual.BlockCoefficients D} |
| 912 | | - (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasError u) {n : ℕ} |
| 913 | | - (h : HarmonicResidual.ExtractionRegular U c u labels blocks gaussian aliasError n) |
| 914 | | - {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 915 | | - fullResidual c u n x i = |
| 916 | | - (∑ l ∈ labels n, |
| 917 | | - (HarmonicResidual.residualBlock c u (blocks l) (gaussian l) (aliasError l)).oscillation n x i) + |
| 918 | | - HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasError c u n x.1 i + |
| 919 | | - u.errors.total n x i := |
| 920 | | - HarmonicResidual.stateFullResidual_reconstructed hU hrep h hx i |
| 921 | | - |
| 922 | 228 | end ActualHarmonicForcing |
| 923 | 229 | |
| 924 | 230 | section TemporalMasses |
| @@ -927,65 +233,6 @@ open CorrectionState MeasureTheory |
| 927 | 233 | |
| 928 | 234 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 929 | 235 | |
| 930 | | -/-- The actual angular and reconstructed axial temporal increments have |
| 931 | | -zero torus mean before taking either radial moment. -/ |
| 932 | | -theorem temporalIncrement_torusMean (p : ReconstructionData) (h : ℝ) |
| 933 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 934 | | - (u : State (PressureStream.Lift S)) |
| 935 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 936 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 937 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 938 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 939 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 940 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) |
| 941 | | - (n : ℕ) (x : ℝ × S) : |
| 942 | | - PressureStream.torusAverage ((temporalIncrement p h axial c u).angular n) x = 0 ∧ |
| 943 | | - PressureStream.torusAverage ((temporalIncrement p h axial c u).axial n) x = 0 := by |
| 944 | | - exact ⟨TemporalMeanUpdate.desiredIncrement_zeroMean h n (hθ n) (hpθ n) x, |
| 945 | | - TemporalMeanUpdate.axialUpdate_zeroMean ha p.inner_lt_outer hd p.radialDirection h n |
| 946 | | - (hz n) (hpz n) (hsz n) x⟩ |
| 947 | | - |
| 948 | | -theorem temporalStage_preserve_masses (p : ReconstructionData) (h : ℝ) |
| 949 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 950 | | - (u : State (PressureStream.Lift S)) |
| 951 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 952 | | - (hmθ : ∀ n, Continuous (u.mean.angular n)) (hmz : ∀ n, Continuous (u.mean.axial n)) |
| 953 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 954 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 955 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 956 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 957 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) : |
| 958 | | - radialMoment 2 (temporalStage p h axial c u).mean.angular = radialMoment 2 u.mean.angular ∧ |
| 959 | | - radialMoment 1 (temporalStage p h axial c u).mean.axial = radialMoment 1 u.mean.axial := by |
| 960 | | - have hi := temporalIncrement_smooth p h axial c u Set.univ ha hd hθ hz hpθ hpz hsz |
| 961 | | - have hiθ n : Continuous ((temporalIncrement p h axial c u).angular n) := |
| 962 | | - (contDiffOn_univ.mp (hi.angular n)).continuous |
| 963 | | - have hiz n : Continuous ((temporalIncrement p h axial c u).axial n) := |
| 964 | | - (contDiffOn_univ.mp (hi.axial n)).continuous |
| 965 | | - constructor |
| 966 | | - · funext n z |
| 967 | | - change DefectIncrementBounds.barMoment 2 |
| 968 | | - (u.mean.angular + (temporalIncrement p h axial c u).angular) n z = |
| 969 | | - DefectIncrementBounds.barMoment 2 u.mean.angular n z |
| 970 | | - simp only [DefectIncrementBounds.barMoment_apply] |
| 971 | | - apply integral_congr_ae |
| 972 | | - exact Filter.Eventually.of_forall fun r => by |
| 973 | | - change r ^ 2 * PressureStream.torusAverage |
| 974 | | - (fun x => u.mean.angular n x + (temporalIncrement p h axial c u).angular n x) (r, z) = _ |
| 975 | | - rw [DefectIncrementBounds.torusAverage_add (hmθ n) (hiθ n), |
| 976 | | - (temporalIncrement_torusMean p h axial c u ha hd hθ hz hpθ hpz hsz n (r, z)).1, add_zero] |
| 977 | | - · funext n z |
| 978 | | - change DefectIncrementBounds.barMoment 1 |
| 979 | | - (u.mean.axial + (temporalIncrement p h axial c u).axial) n z = |
| 980 | | - DefectIncrementBounds.barMoment 1 u.mean.axial n z |
| 981 | | - simp only [DefectIncrementBounds.barMoment_apply] |
| 982 | | - apply integral_congr_ae |
| 983 | | - exact Filter.Eventually.of_forall fun r => by |
| 984 | | - change r ^ 1 * PressureStream.torusAverage |
| 985 | | - (fun x => u.mean.axial n x + (temporalIncrement p h axial c u).axial n x) (r, z) = _ |
| 986 | | - rw [DefectIncrementBounds.torusAverage_add (hmz n) (hiz n), |
| 987 | | - (temporalIncrement_torusMean p h axial c u ha hd hθ hz hpθ hpz hsz n (r, z)).2, add_zero] |
| 988 | | - |
| 989 | 236 | end TemporalMasses |
| 990 | 237 | |
| 991 | 238 | section ActualMeanAndDivergence |
| @@ -998,36 +245,6 @@ theorem angularMean_fullGoodResidual {U : Set D} {c : Context D} {u : State D} |
| 998 | 245 | angularMeanVector (fullGoodResidual c u) n x i = u.meanGoodResidual c n x i := |
| 999 | 246 | LiftedMeanResidual.angularMean_fullGoodResidual H n hx i |
| 1000 | 247 | |
| 1001 | | -/-- The zero harmonic of the differentiated coefficient reconstruction is |
| 1002 | | -the actual mean equation, with its exact excluded-error subtraction. -/ |
| 1003 | | -theorem meanCoefficientValue_eq_meanResidual {ι : Type*} {U : Set D} |
| 1004 | | - {c : Context D} {u : State D} {labels : ℕ → Finset ι} |
| 1005 | | - {blocks : ι → HarmonicBlock D} |
| 1006 | | - {gaussian aliasError : ι → HarmonicResidual.BlockCoefficients D} |
| 1007 | | - (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasError u) |
| 1008 | | - (H : LiftedMeanResidual.MeanHypotheses U c u) {n : ℕ} |
| 1009 | | - (h : HarmonicResidual.ExtractionRegular U c u labels blocks gaussian aliasError n) |
| 1010 | | - {x : D} (hx : x ∈ U) (i : Fin 3) : |
| 1011 | | - HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasError c u n x i = |
| 1012 | | - u.meanGoodResidual c n x i := by |
| 1013 | | - rw [HarmonicResidual.stateMeanCoefficientValue_eq_average H.isOpen hrep h hx i] |
| 1014 | | - exact angularMean_fullGoodResidual H n hx i |
| 1015 | | - |
| 1016 | | -theorem fullResidual_reconstructed_with_mean {ι : Type*} {U : Set D} |
| 1017 | | - {c : Context D} {u : State D} {labels : ℕ → Finset ι} |
| 1018 | | - {blocks : ι → HarmonicBlock D} |
| 1019 | | - {gaussian aliasError : ι → HarmonicResidual.BlockCoefficients D} |
| 1020 | | - (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasError u) |
| 1021 | | - (H : LiftedMeanResidual.MeanHypotheses U c u) {n : ℕ} |
| 1022 | | - (h : HarmonicResidual.ExtractionRegular U c u labels blocks gaussian aliasError n) |
| 1023 | | - {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 1024 | | - fullResidual c u n x i = |
| 1025 | | - (∑ l ∈ labels n, |
| 1026 | | - (HarmonicResidual.residualBlock c u (blocks l) (gaussian l) (aliasError l)).oscillation n x i) + |
| 1027 | | - u.meanGoodResidual c n x.1 i + u.errors.total n x i := by |
| 1028 | | - rw [fullResidual_harmonic_decomposition H.isOpen hrep h hx i, |
| 1029 | | - meanCoefficientValue_eq_meanResidual hrep H h hx.1 i] |
| 1030 | | - |
| 1031 | 248 | noncomputable def meanLift (m : Triple D) : Oscillation D := |
| 1032 | 249 | fun n x => meanComponents m n x.1 |
| 1033 | 250 | |
| @@ -1110,10 +327,6 @@ theorem meanAddition_fullDivergence {U : Set D} (hU : IsOpen U) |
| 1110 | 327 | |
| 1111 | 328 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1112 | 329 | |
| 1113 | | -theorem fullDivergence_reconstructPressure (p : ReconstructionData) |
| 1114 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 1115 | | - fullDivergence c (reconstructPressure p c u) = fullDivergence c u := rfl |
| 1116 | | - |
| 1117 | 330 | theorem meanDivergence_eq_graph (p : ReconstructionData) |
| 1118 | 331 | (epsilon fast : ℕ → ℝ) (axial slowTime : S × PressureStream.Plane) |
| 1119 | 332 | (temporal : PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| @@ -1128,90 +341,6 @@ theorem meanDivergence_eq_graph (p : ReconstructionData) |
| 1128 | 341 | |
| 1129 | 342 | variable [FiniteDimensional ℝ S] |
| 1130 | 343 | |
| 1131 | | -theorem temporalIncrement_meanDivergence_zero (p : ReconstructionData) (h : ℝ) |
| 1132 | | - (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 1133 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1134 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1135 | | - (hcompat : c.operators = graphOperators p c.operators.epsilon c.operators.fastCoefficient |
| 1136 | | - axial slowTime temporal) |
| 1137 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1138 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1139 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) |
| 1140 | | - (n : ℕ) (x : PressureStream.Lift S) : |
| 1141 | | - meanDivergence c (temporalIncrement p h axial c u) n x = 0 := by |
| 1142 | | - rw [meanDivergence_eq_graph p c.operators.epsilon c.operators.fastCoefficient |
| 1143 | | - axial slowTime temporal c hcompat] |
| 1144 | | - exact TemporalMeanUpdate.update_divergence_zero ha p.inner_lt_outer hd p.radialDirection |
| 1145 | | - (c.operators.epsilon n • axial) h n (hz n) (hpz n) (hsz n) x |
| 1146 | | - |
| 1147 | | -theorem temporalStage_fullDivergence (p : ReconstructionData) (h : ℝ) |
| 1148 | | - (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 1149 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1150 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1151 | | - (hcompat : c.operators = graphOperators p c.operators.epsilon c.operators.fastCoefficient |
| 1152 | | - axial slowTime temporal) |
| 1153 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 1154 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1155 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 1156 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1157 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) |
| 1158 | | - (n : ℕ) (x : PressureStream.Lift S × ℝ) |
| 1159 | | - (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) x) : |
| 1160 | | - fullDivergence c (temporalStage p h axial c u) n x = fullDivergence c u n x := by |
| 1161 | | - rw [temporalStage, fullDivergence_reconstructPressure] |
| 1162 | | - have hi := temporalIncrement_smooth p h axial c u Set.univ ha hd hθ hz hpθ hpz hsz |
| 1163 | | - rw [meanAddition_fullDivergence isOpen_univ c u _ _ _ _ hi n (mem_univ x.1) x.2 hu, |
| 1164 | | - temporalIncrement_meanDivergence_zero p h axial slowTime temporal c u ha hd hcompat hz hpz hsz, |
| 1165 | | - add_zero] |
| 1166 | | - |
| 1167 | | -theorem temporalStage_zeroMasses (p : ReconstructionData) (h : ℝ) |
| 1168 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1169 | | - (u : State (PressureStream.Lift S)) |
| 1170 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1171 | | - (hmθ : ∀ n, Continuous (u.mean.angular n)) (hmz : ∀ n, Continuous (u.mean.axial n)) |
| 1172 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 1173 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1174 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 1175 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1176 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) |
| 1177 | | - (hzero : ZeroMasses u) : ZeroMasses (temporalStage p h axial c u) := by |
| 1178 | | - obtain ⟨ht, hz⟩ := temporalStage_preserve_masses p h axial c u ha hd hmθ hmz hθ hz hpθ hpz hsz |
| 1179 | | - exact ⟨ht.trans hzero.1, hz.trans hzero.2⟩ |
| 1180 | | - |
| 1181 | | -omit [FiniteDimensional ℝ S] in |
| 1182 | | -theorem rankIncrement_meanDivergence_zero (p : ReconstructionData) (r : RankData S) |
| 1183 | | - (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 1184 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1185 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1186 | | - (hcompat : c.operators = graphOperators p c.operators.epsilon c.operators.fastCoefficient |
| 1187 | | - axial slowTime temporal) |
| 1188 | | - (hf : ∀ n, ContDiff ℝ ∞ (rankDesiredAxial r c u n)) |
| 1189 | | - (hs : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (rankDesiredAxial r c u n)) |
| 1190 | | - (n : ℕ) (x : PressureStream.Lift S) : |
| 1191 | | - meanDivergence c (rankIncrement p r axial c u) n x = 0 := by |
| 1192 | | - rw [meanDivergence_eq_graph p c.operators.epsilon c.operators.fastCoefficient |
| 1193 | | - axial slowTime temporal c hcompat] |
| 1194 | | - exact rank_divergence_zero p r axial c u ha hd n (hf n) (hs n) x |
| 1195 | | - |
| 1196 | | -omit [FiniteDimensional ℝ S] in |
| 1197 | | -theorem rankStage_fullDivergence {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 1198 | | - (p : ReconstructionData) (r : RankData S) |
| 1199 | | - (axial slowTime : S × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 1200 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1201 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1202 | | - (hcompat : c.operators = graphOperators p c.operators.epsilon c.operators.fastCoefficient |
| 1203 | | - axial slowTime temporal) |
| 1204 | | - (hm : SmoothTriple U (rankIncrement p r axial c u)) |
| 1205 | | - (hf : ∀ n, ContDiff ℝ ∞ (rankDesiredAxial r c u n)) |
| 1206 | | - (hs : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (rankDesiredAxial r c u n)) |
| 1207 | | - (n : ℕ) {x : PressureStream.Lift S × ℝ} (hx : x.1 ∈ U) |
| 1208 | | - (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) x) : |
| 1209 | | - fullDivergence c (rankStage p r axial c u) n x = fullDivergence c u n x := by |
| 1210 | | - rw [rankStage, fullDivergence_reconstructPressure] |
| 1211 | | - rw [meanAddition_fullDivergence hU c u _ _ _ _ hm n hx x.2 hu, |
| 1212 | | - rankIncrement_meanDivergence_zero p r axial slowTime temporal c u ha hd hcompat hf hs, |
| 1213 | | - add_zero] |
| 1214 | | - |
| 1215 | 344 | end MeanDivergencePreservation |
| 1216 | 345 | |
| 1217 | 346 | section CommonTemporalConstruction |
| @@ -1220,33 +349,6 @@ open CorrectionState |
| 1220 | 349 | |
| 1221 | 350 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1222 | 351 | |
| 1223 | | -/-- Pressure reconstruction with the prescribed transported radial data |
| 1224 | | -for each band. This is an actual field constructor. -/ |
| 1225 | | -noncomputable def reconstructPressureFamily (r : ℕ → ReconstructionData) |
| 1226 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 1227 | | - State (PressureStream.Lift S) := |
| 1228 | | - { u with pressure := fun n => (reconstructPressure (r n) c u).pressure n } |
| 1229 | | - |
| 1230 | | -noncomputable def commonTemporalError (r : ℕ → ReconstructionData) (h : ℝ) |
| 1231 | | - (index : ℕ → ℕ) (c : Context (PressureStream.Lift S)) |
| 1232 | | - (u : State (PressureStream.Lift S)) : Oscillation (PressureStream.Lift S) := |
| 1233 | | - fun n x => ![0, 0, -MeanChartCompatibility.fastAtIndex h n (index n) |
| 1234 | | - (MeanChartCompatibility.commonTemporalAlias r h index (u.axialResidual c) n) x.1] |
| 1235 | | - |
| 1236 | | -noncomputable def commonTemporalStage (r : ℕ → ReconstructionData) (h : ℝ) |
| 1237 | | - (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 1238 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 1239 | | - State (PressureStream.Lift S) := |
| 1240 | | - reconstructPressureFamily r c (u.addIncrement |
| 1241 | | - (MeanChartCompatibility.commonTemporalIncrement r h index axial c u) 0 0 0 |
| 1242 | | - ⟨0, 0, commonTemporalError r h index c u⟩) |
| 1243 | | - |
| 1244 | | -noncomputable def commonTemporalPressureChange (r : ℕ → ReconstructionData) (h : ℝ) |
| 1245 | | - (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 1246 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 1247 | | - ScalarField (PressureStream.Lift S) := |
| 1248 | | - (commonTemporalStage r h index axial c u).pressure - u.pressure |
| 1249 | | - |
| 1250 | 352 | theorem common_fastTime (h : ℝ) (index : ℕ → ℕ) (c : Context (PressureStream.Lift S)) |
| 1251 | 353 | (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) |
| 1252 | 354 | (hf : ∀ n, c.operators.fastCoefficient n = |
| @@ -1257,140 +359,6 @@ theorem common_fastTime (h : ℝ) (index : ℕ → ℕ) (c : Context (PressureSt |
| 1257 | 359 | |
| 1258 | 360 | variable [FiniteDimensional ℝ S] |
| 1259 | 361 | |
| 1260 | | -omit [FiniteDimensional ℝ S] in |
| 1261 | | -theorem commonTemporalStage_native (r : ReconstructionData) (h : ℝ) |
| 1262 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1263 | | - (u : State (PressureStream.Lift S)) : |
| 1264 | | - commonTemporalStage (fun _ => r) h (ChartScales.nativeIndex h) axial c u = |
| 1265 | | - temporalStage r h axial c u := by |
| 1266 | | - rfl |
| 1267 | | - |
| 1268 | | -theorem commonTemporalIncrement_smooth (r : ℕ → ReconstructionData) (h : ℝ) |
| 1269 | | - (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 1270 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1271 | | - (U : Set (PressureStream.Lift S)) |
| 1272 | | - (ha : ∀ n, 0 < (r n).inner) (hd : ∀ n, 0 < (r n).exponent) |
| 1273 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 1274 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1275 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 1276 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1277 | | - (hsz : ∀ n, RadialAlias.RadiallySupported (r n).inner (r n).outer (u.axialResidual c n)) : |
| 1278 | | - SmoothTriple U (MeanChartCompatibility.commonTemporalIncrement r h index axial c u) := by |
| 1279 | | - refine ⟨fun n => ?_, fun n => ?_, fun n => ?_⟩ |
| 1280 | | - · exact (PressureStream.streamBeta_contDiff (ha n) (r n).inner_lt_outer (hd n) |
| 1281 | | - (0, (r n).radialDirection) (c.operators.epsilon n • axial) |
| 1282 | | - (MeanChartCompatibility.temporalAtIndex_smooth h n (index n) (hz n) (hpz n)) |
| 1283 | | - (MeanChartCompatibility.temporalAtIndex_supported h n (index n) (hsz n))).contDiffOn |
| 1284 | | - · exact (MeanChartCompatibility.temporalAtIndex_smooth h n (index n) (hθ n) (hpθ n)).contDiffOn |
| 1285 | | - · exact (PressureStream.streamGamma_contDiff (ha n) (r n).inner_lt_outer (hd n) |
| 1286 | | - (0, (r n).radialDirection) |
| 1287 | | - (MeanChartCompatibility.temporalAtIndex_smooth h n (index n) (hz n) (hpz n)) |
| 1288 | | - (MeanChartCompatibility.temporalAtIndex_supported h n (index n) (hsz n))).contDiffOn |
| 1289 | | - |
| 1290 | | -/-- Fast cancellation is now performed at the chosen common index; the |
| 1291 | | -remaining angular mean is the original torus bar plus the exact remainder. -/ |
| 1292 | | -theorem commonTemporalStage_theta_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 1293 | | - (r : ℕ → ReconstructionData) (h : ℝ) (index : ℕ → ℕ) |
| 1294 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1295 | | - (u : State (PressureStream.Lift S)) |
| 1296 | | - (ha : ∀ n, 0 < (r n).inner) (hd : ∀ n, 0 < (r n).exponent) |
| 1297 | | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) |
| 1298 | | - (hfast : ∀ n, c.operators.fastCoefficient n = |
| 1299 | | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) |
| 1300 | | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) |
| 1301 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 1302 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 1303 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 1304 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1305 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 1306 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1307 | | - (hsz : ∀ n, RadialAlias.RadiallySupported (r n).inner (r n).outer (u.axialResidual c n)) : |
| 1308 | | - Agree U ((commonTemporalStage r h index axial c u).thetaResidual c) |
| 1309 | | - (meanBar (u.thetaResidual c) + thetaRemainder c.operators c.base u.mean |
| 1310 | | - (MeanChartCompatibility.commonTemporalIncrement r h index axial c u)) := by |
| 1311 | | - have hi := commonTemporalIncrement_smooth r h index axial c u U ha hd hθ hz hpθ hpz hsz |
| 1312 | | - have he := thetaResidual_change hU c.operators hprofile hb hm hi u.covariance hW c.virtualTheta |
| 1313 | | - have hnew : (commonTemporalStage r h index axial c u).thetaResidual c = |
| 1314 | | - MeanIncrementBounds.thetaResidual c.operators c.base |
| 1315 | | - (updated u.mean (MeanChartCompatibility.commonTemporalIncrement r h index axial c u)) |
| 1316 | | - u.covariance c.virtualTheta := by |
| 1317 | | - simp [commonTemporalStage, reconstructPressureFamily, State.thetaResidual, State.addIncrement] |
| 1318 | | - rfl |
| 1319 | | - intro n x hx |
| 1320 | | - have he' := he n hx |
| 1321 | | - have hf := (MeanChartCompatibility.commonTemporalFields_fast_cancellation r h index |
| 1322 | | - c.operators.epsilon axial (u.thetaResidual c) (u.axialResidual c) n (ha n) (hd n) |
| 1323 | | - (hθ n) (hz n) (hpθ n) (hpz n) (hsz n) x).1 |
| 1324 | | - have ht := common_fastTime h index c hv hfast |
| 1325 | | - (MeanChartCompatibility.commonTemporalIncrement r h index axial c u).angular n x |
| 1326 | | - rw [hnew] |
| 1327 | | - simp only [Pi.add_apply, Pi.sub_apply, ht] at he' |
| 1328 | | - simp only [TemporalMeanUpdate.centered] at hf |
| 1329 | | - change _ = PressureStream.torusAverage (u.thetaResidual c n) (x.1, x.2.1) + _ |
| 1330 | | - change MeanChartCompatibility.fastAtIndex h n (index n) |
| 1331 | | - ((MeanChartCompatibility.commonTemporalIncrement r h index axial c u).angular n) x + |
| 1332 | | - (u.thetaResidual c n x - PressureStream.torusAverage (u.thetaResidual c n) (x.1, x.2.1)) = 0 at hf |
| 1333 | | - change _ - u.thetaResidual c n x = _ at he' |
| 1334 | | - linarith |
| 1335 | | - |
| 1336 | | -theorem commonTemporalStage_axial_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 1337 | | - (r : ℕ → ReconstructionData) (h : ℝ) (index : ℕ → ℕ) |
| 1338 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1339 | | - (u : State (PressureStream.Lift S)) |
| 1340 | | - (ha : ∀ n, 0 < (r n).inner) (hd : ∀ n, 0 < (r n).exponent) |
| 1341 | | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) |
| 1342 | | - (hfast : ∀ n, c.operators.fastCoefficient n = |
| 1343 | | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) |
| 1344 | | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) |
| 1345 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 1346 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 1347 | | - (hp : SmoothOn U u.pressure) |
| 1348 | | - (hnp : SmoothOn U (commonTemporalStage r h index axial c u).pressure) |
| 1349 | | - (hθ : ∀ n, ContDiff ℝ ∞ (u.thetaResidual c n)) |
| 1350 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1351 | | - (hpθ : ∀ n, PressureStream.TorusPeriodicLift (u.thetaResidual c n)) |
| 1352 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1353 | | - (hsz : ∀ n, RadialAlias.RadiallySupported (r n).inner (r n).outer (u.axialResidual c n)) : |
| 1354 | | - Agree U (fun n x => (commonTemporalStage r h index axial c u).axialResidual c n x - |
| 1355 | | - commonTemporalError r h index c u n (x, 0) 2) |
| 1356 | | - (meanBar (u.axialResidual c) + axialRemainder c.operators c.base u.mean |
| 1357 | | - (MeanChartCompatibility.commonTemporalIncrement r h index axial c u) |
| 1358 | | - (commonTemporalPressureChange r h index axial c u)) := by |
| 1359 | | - have hi := commonTemporalIncrement_smooth r h index axial c u U ha hd hθ hz hpθ hpz hsz |
| 1360 | | - have he := axialResidual_change hU c.operators hprofile hb hm hi u.covariance hW |
| 1361 | | - u.pressure (commonTemporalPressureChange r h index axial c u) c.virtualAxial hp (hnp.sub hp) |
| 1362 | | - have hpressure : u.pressure + commonTemporalPressureChange r h index axial c u = |
| 1363 | | - (commonTemporalStage r h index axial c u).pressure := by |
| 1364 | | - unfold commonTemporalPressureChange |
| 1365 | | - abel |
| 1366 | | - have hnew : (commonTemporalStage r h index axial c u).axialResidual c = |
| 1367 | | - MeanIncrementBounds.axialResidual c.operators c.base |
| 1368 | | - (updated u.mean (MeanChartCompatibility.commonTemporalIncrement r h index axial c u)) |
| 1369 | | - u.covariance (u.pressure + commonTemporalPressureChange r h index axial c u) c.virtualAxial := by |
| 1370 | | - rw [hpressure] |
| 1371 | | - simp [commonTemporalStage, reconstructPressureFamily, State.axialResidual, State.addIncrement] |
| 1372 | | - rfl |
| 1373 | | - intro n x hx |
| 1374 | | - have he' := he n hx |
| 1375 | | - have hf := (MeanChartCompatibility.commonTemporalFields_fast_cancellation r h index |
| 1376 | | - c.operators.epsilon axial (u.thetaResidual c) (u.axialResidual c) n (ha n) (hd n) |
| 1377 | | - (hθ n) (hz n) (hpθ n) (hpz n) (hsz n) x).2 |
| 1378 | | - have ht := common_fastTime h index c hv hfast |
| 1379 | | - (MeanChartCompatibility.commonTemporalIncrement r h index axial c u).axial n x |
| 1380 | | - rw [hnew] |
| 1381 | | - simp only [Pi.add_apply, Pi.sub_apply, ht] at he' |
| 1382 | | - simp only [TemporalMeanUpdate.centered] at hf |
| 1383 | | - change _ = PressureStream.torusAverage (u.axialResidual c n) (x.1, x.2.1) + _ |
| 1384 | | - change MeanChartCompatibility.fastAtIndex h n (index n) |
| 1385 | | - ((MeanChartCompatibility.commonTemporalIncrement r h index axial c u).axial n) x + |
| 1386 | | - (u.axialResidual c n x - PressureStream.torusAverage (u.axialResidual c n) (x.1, x.2.1)) = |
| 1387 | | - -MeanChartCompatibility.fastAtIndex h n (index n) |
| 1388 | | - (MeanChartCompatibility.commonTemporalAlias r h index (u.axialResidual c) n) x at hf |
| 1389 | | - change _ - u.axialResidual c n x = _ at he' |
| 1390 | | - change _ - -MeanChartCompatibility.fastAtIndex h n (index n) |
| 1391 | | - (MeanChartCompatibility.commonTemporalAlias r h index (u.axialResidual c) n) x = _ |
| 1392 | | - linarith |
| 1393 | | - |
| 1394 | 362 | end CommonTemporalConstruction |
| 1395 | 363 | |
| 1396 | 364 | section CommonTemporalScale |
| @@ -1399,26 +367,6 @@ open CorrectionState |
| 1399 | 367 | |
| 1400 | 368 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1401 | 369 | |
| 1402 | | -theorem streamPotential_const_mul (d a b M c : ℝ) (v : S) (f : ℝ × S → ℝ) : |
| 1403 | | - PressureStream.streamPotential d a b M v (fun x => c * f x) = |
| 1404 | | - fun x => c * PressureStream.streamPotential d a b M v f x := by |
| 1405 | | - have he : RadialPullback.normalizeSource d a (PressureStream.weightedSource (fun x => c * f x)) = |
| 1406 | | - fun x => c • RadialPullback.normalizeSource d a (PressureStream.weightedSource f) x := by |
| 1407 | | - funext x |
| 1408 | | - simp only [RadialPullback.normalizeSource, PressureStream.weightedSource, smul_eq_mul] |
| 1409 | | - ring |
| 1410 | | - funext x |
| 1411 | | - simp only [PressureStream.streamPotential, PressureStream.divideRadius, |
| 1412 | | - RadialPullback.physicalCompact, RadialPullback.pullback, Function.comp_apply, he] |
| 1413 | | - rw [TransportPrimitive.compactIntegral_smul] |
| 1414 | | - simp only [smul_eq_mul] |
| 1415 | | - ring |
| 1416 | | - |
| 1417 | | -noncomputable def scaleTriple (a : ℕ → ℝ) (m : Triple D) : Triple D where |
| 1418 | | - radial := fun n x => a n * m.radial n x |
| 1419 | | - angular := fun n x => a n * m.angular n x |
| 1420 | | - axial := fun n x => a n * m.axial n x |
| 1421 | | - |
| 1422 | 370 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1423 | 371 | theorem triple_ext {a b : Triple D} (hr : a.radial = b.radial) |
| 1424 | 372 | (ht : a.angular = b.angular) (hz : a.axial = b.axial) : a = b := by |
| @@ -1427,81 +375,8 @@ theorem triple_ext {a b : Triple D} (hr : a.radial = b.radial) |
| 1427 | 375 | simp only [Triple.mk.injEq] at * |
| 1428 | 376 | exact ⟨hr, ht, hz⟩ |
| 1429 | 377 | |
| 1430 | | -theorem scaleTriple_mem {s : StripData D} {H : ℝ} {a : ℕ → ℝ} {m : Triple D} |
| 1431 | | - (ha : BandBound s 0 a) (hm : IncrementBounds s H m) : |
| 1432 | | - IncrementBounds s H (scaleTriple a m) := by |
| 1433 | | - constructor |
| 1434 | | - · simpa only [scaleTriple, smul_eq_mul, add_zero] using hm.radial.band_smul ha |
| 1435 | | - · simpa only [scaleTriple, smul_eq_mul, add_zero] using hm.angular.band_smul ha |
| 1436 | | - · simpa only [scaleTriple, smul_eq_mul, add_zero] using hm.axial.band_smul ha |
| 1437 | | - |
| 1438 | 378 | variable [FiniteDimensional ℝ S] |
| 1439 | 379 | |
| 1440 | | -/-- Changing the common clock multiplies the actual inverse and its |
| 1441 | | -actual stream realization by the same band scalar. -/ |
| 1442 | | -theorem commonTemporalIncrement_eq_scale (p : ReconstructionData) (h : ℝ) |
| 1443 | | - (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 1444 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1445 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) |
| 1446 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1447 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1448 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) : |
| 1449 | | - MeanChartCompatibility.commonTemporalIncrement (fun _ => p) h index axial c u = |
| 1450 | | - scaleTriple (fun n => MeanChartCompatibility.commonRatio h n (index n)) |
| 1451 | | - (temporalIncrement p h axial c u) := by |
| 1452 | | - have hpot n : MeanChartCompatibility.commonTemporalPotential (fun _ => p) h index |
| 1453 | | - (u.axialResidual c) n = fun x => MeanChartCompatibility.commonRatio h n (index n) * |
| 1454 | | - TemporalMeanUpdate.axialPotential p.exponent p.inner p.outer (p.frequency n) |
| 1455 | | - p.radialDirection h n (u.axialResidual c n) x := by |
| 1456 | | - unfold MeanChartCompatibility.commonTemporalPotential |
| 1457 | | - rw [MeanChartCompatibility.temporalAtIndex_eq_native, streamPotential_const_mul] |
| 1458 | | - rfl |
| 1459 | | - have hdpot n x := ((TemporalMeanUpdate.axialPotential_smooth (M := p.frequency n) ha p.inner_lt_outer hd |
| 1460 | | - p.radialDirection h n (hz n) (hpz n) (hsz n)).differentiable (by simp) x).hasFDerivAt.fun_const_smul |
| 1461 | | - (MeanChartCompatibility.commonRatio h n (index n)) |
| 1462 | | - simp only [smul_eq_mul] at hdpot |
| 1463 | | - apply triple_ext |
| 1464 | | - · funext n x |
| 1465 | | - change PressureStream.streamBeta (c.operators.epsilon n • axial) |
| 1466 | | - (MeanChartCompatibility.commonTemporalPotential (fun _ => p) h index (u.axialResidual c) n) x = _ |
| 1467 | | - rw [hpot] |
| 1468 | | - simp only [PressureStream.streamBeta, PressureStream.graphDz, (hdpot n x).fderiv, |
| 1469 | | - _root_.smul_apply, smul_eq_mul, scaleTriple, temporalIncrement, |
| 1470 | | - TemporalMeanUpdate.radialUpdate] |
| 1471 | | - ring |
| 1472 | | - · funext n x |
| 1473 | | - exact congrFun (MeanChartCompatibility.temporalAtIndex_eq_native h n (index n) |
| 1474 | | - (u.thetaResidual c n)) x |
| 1475 | | - · funext n x |
| 1476 | | - change PressureStream.streamGamma (PressureStream.physicalSpeed p.exponent (p.frequency n)) |
| 1477 | | - (0, p.radialDirection) |
| 1478 | | - (MeanChartCompatibility.commonTemporalPotential (fun _ => p) h index (u.axialResidual c) n) x = _ |
| 1479 | | - rw [hpot] |
| 1480 | | - simp only [PressureStream.streamGamma, PressureStream.graphDr, PressureStream.divideRadius, |
| 1481 | | - (hdpot n x).fderiv, _root_.smul_apply, smul_eq_mul, scaleTriple, |
| 1482 | | - temporalIncrement, TemporalMeanUpdate.axialUpdate] |
| 1483 | | - ring |
| 1484 | | - |
| 1485 | | -/-- The common/native gap has no cost in the residual exponent. This |
| 1486 | | -statement works on any strip on which the native construction was proved. -/ |
| 1487 | | -theorem commonTemporalIncrement_mem_of_native {s : StripData (PressureStream.Lift S)} |
| 1488 | | - (p : ReconstructionData) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 1489 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} |
| 1490 | | - (ha : 0 < p.inner) (hd : 0 < p.exponent) (gap : ℕ) |
| 1491 | | - (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + gap) |
| 1492 | | - (hz : ∀ n, ContDiff ℝ ∞ (u.axialResidual c n)) |
| 1493 | | - (hpz : ∀ n, PressureStream.TorusPeriodicLift (u.axialResidual c n)) |
| 1494 | | - (hsz : ∀ n, RadialAlias.RadiallySupported p.inner p.outer (u.axialResidual c n)) |
| 1495 | | - (hi : IncrementBounds s H (temporalIncrement p h axial c u)) : |
| 1496 | | - IncrementBounds s H (MeanChartCompatibility.commonTemporalIncrement (fun _ => p) h index axial c u) := by |
| 1497 | | - rw [commonTemporalIncrement_eq_scale p h index axial c u ha hd hz hpz hsz] |
| 1498 | | - apply scaleTriple_mem (hm := hi) |
| 1499 | | - refine ⟨ChartScales.Tg ^ gap, (pow_pos ChartScales.Tg_pos gap).le, 0, ?_⟩ |
| 1500 | | - intro n |
| 1501 | | - simp only [Real.norm_eq_abs, abs_of_pos (MeanChartCompatibility.commonRatio_pos h n (index n)), |
| 1502 | | - Real.rpow_zero, pow_zero, mul_one] |
| 1503 | | - exact MeanChartCompatibility.commonRatio_le (hgap n) |
| 1504 | | - |
| 1505 | 380 | end CommonTemporalScale |
| 1506 | 381 | |
| 1507 | 382 | section HarmonicStateUpdates |
| @@ -1539,32 +414,6 @@ theorem addBlock_band {a b : HarmonicBlock D} {N M : ℕ} |
| 1539 | 414 | ⟨fun n i => (ha.1 n i |>.mono (le_max_left _ _)).add (hb.1 n i |>.mono (le_max_right _ _)), |
| 1540 | 415 | fun n => (ha.2 n |>.mono (le_max_left _ _)).add (hb.2 n |>.mono (le_max_right _ _))⟩ |
| 1541 | 416 | |
| 1542 | | -theorem addBlock_waveBounds {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1543 | | - {a b : HarmonicBlock D} (ha : a.WaveBounds s P α) (hb : b.WaveBounds s P β) |
| 1544 | | - (hαβ : α ≤ β) : (addBlock a b).WaveBounds s P α := |
| 1545 | | - fun i j hj => (ha i j hj).add ((hb i j hj).mono_exponent hαβ) |
| 1546 | | - |
| 1547 | | -theorem addBlock_pressureBounds {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1548 | | - {a b : HarmonicBlock D} (ha : a.PressureBounds s P α) (hb : b.PressureBounds s P β) |
| 1549 | | - (hαβ : α ≤ β) : (addBlock a b).PressureBounds s P α := |
| 1550 | | - fun j hj => (ha j hj).add ((hb j hj).mono_exponent hαβ) |
| 1551 | | - |
| 1552 | | -/-- The cumulative difference is the literal coefficient difference from |
| 1553 | | -the same primary field, including all previous corrections. -/ |
| 1554 | | -theorem addBlock_differenceBounds {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1555 | | - (primary old increment : HarmonicBlock D) |
| 1556 | | - (hold : ∀ i j, j ≠ 0 → WaveClass s P α |
| 1557 | | - (fun n x => old.velocity n i j x - primary.velocity n i j x)) |
| 1558 | | - (hi : increment.WaveBounds s P β) (hαβ : α ≤ β) : |
| 1559 | | - ∀ i j, j ≠ 0 → WaveClass s P α |
| 1560 | | - (fun n x => (addBlock old increment).velocity n i j x - primary.velocity n i j x) := by |
| 1561 | | - intro i j hj |
| 1562 | | - apply WaveInteractionBounds.class_congr ((hold i j hj).add ((hi i j hj).mono_exponent hαβ)) |
| 1563 | | - intro n x hx |
| 1564 | | - change old.velocity n i j x - primary.velocity n i j x + increment.velocity n i j x = |
| 1565 | | - old.velocity n i j x + increment.velocity n i j x - primary.velocity n i j x |
| 1566 | | - ring |
| 1567 | | - |
| 1568 | 417 | theorem block_waveBounds_all {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} |
| 1569 | 418 | (b : HarmonicBlock D) (hb : b.WaveBounds s P α) |
| 1570 | 419 | (hzero : ∀ n i, b.velocity n i 0 = 0) |
| @@ -1586,113 +435,12 @@ theorem block_angularContinuous (b : HarmonicBlock D) : AngularContinuous b.osci |
| 1586 | 435 | (HarmonicFields.field_angular_continuous (b.velocity n i) (b.frequency n) |
| 1587 | 436 | (b.phase n) (b.angularFrequency n) x) |
| 1588 | 437 | |
| 1589 | | -/-- Both old/new cross covariances and the entire new-wave square are |
| 1590 | | -estimated as actual angular integrals. There is no tensor-update premise. -/ |
| 1591 | | -theorem sameCarrier_covarianceIncrement_mem {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1592 | | - (a b : HarmonicBlock D) (hcarrier : SameCarrier a b) (N M : ℕ) |
| 1593 | | - (hNa : a.BandLimited N) (hMb : b.BandLimited M) |
| 1594 | | - (ha : a.WaveBounds s P α) (hb : b.WaveBounds s P β) |
| 1595 | | - (ha0 : ∀ n i, a.velocity n i 0 = 0) (hb0 : ∀ n i, b.velocity n i 0 = 0) |
| 1596 | | - (hαβ : α ≤ β) (hkp : ∀ n, a.angularFrequency n ≠ 0) |
| 1597 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1598 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : |
| 1599 | | - TensorClass s (α + β) (covarianceIncrement a.oscillation b.oscillation) := by |
| 1600 | | - have hca := block_waveBounds_all a ha ha0 hP0 |
| 1601 | | - have hcb := block_waveBounds_all b hb hb0 hP0 |
| 1602 | | - intro i j |
| 1603 | | - have hcross := HarmonicCovariance.mixedBlockCovariance_mem a b N hNa |
| 1604 | | - hcarrier.frequency hcarrier.phase hcarrier.angular hca hcb hP0 hP1 hkp i j |
| 1605 | | - have hreverse : MeanClass s (α + β) (bilinearCovariance b.oscillation a.oscillation i j) := by |
| 1606 | | - rw [bilinearCovariance_comm] |
| 1607 | | - exact HarmonicCovariance.mixedBlockCovariance_mem a b N hNa |
| 1608 | | - hcarrier.frequency hcarrier.phase hcarrier.angular hca hcb hP0 hP1 hkp j i |
| 1609 | | - have hsquare : MeanClass s (α + β) (bilinearCovariance b.oscillation b.oscillation i j) := |
| 1610 | | - (HarmonicCovariance.blockCovariance_mem b M hMb hcb hP0 hP1 |
| 1611 | | - (fun n => by simpa only [hcarrier.angular] using hkp n) i j).mono_exponent (by linarith) |
| 1612 | | - exact (hcross.add hreverse).add hsquare |
| 1613 | | - |
| 1614 | | -/-- Substitution of the constructed field into the state's covariance is |
| 1615 | | -now paired with the tensor class of its exact change. -/ |
| 1616 | | -theorem oneLabel_stateCovariance_change {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1617 | | - (u : State D) (a b : HarmonicBlock D) (hu : u.oscillation = a.oscillation) |
| 1618 | | - (hcarrier : SameCarrier a b) (N M : ℕ) |
| 1619 | | - (hNa : a.BandLimited N) (hMb : b.BandLimited M) |
| 1620 | | - (ha : a.WaveBounds s P α) (hb : b.WaveBounds s P β) |
| 1621 | | - (ha0 : ∀ n i, a.velocity n i 0 = 0) (hb0 : ∀ n i, b.velocity n i 0 = 0) |
| 1622 | | - (hαβ : α ≤ β) (hkp : ∀ n, a.angularFrequency n ≠ 0) |
| 1623 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1624 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) |
| 1625 | | - (m : Triple D) (p : ScalarField D) (e : ExcludedErrors D) : |
| 1626 | | - TensorClass s (α + β) |
| 1627 | | - ((u.addIncrement m p b.oscillation b.oscillatoryPressure e).covariance - u.covariance) := by |
| 1628 | | - have hv : AngularContinuous u.oscillation := by rw [hu]; exact block_angularContinuous a |
| 1629 | | - rw [covariance_actual_update u m p b.oscillation b.oscillatoryPressure e hv |
| 1630 | | - (block_angularContinuous b)] |
| 1631 | | - have he : u.covariance + covarianceIncrement u.oscillation b.oscillation - u.covariance = |
| 1632 | | - covarianceIncrement a.oscillation b.oscillation := by rw [hu]; abel |
| 1633 | | - rw [he] |
| 1634 | | - exact sameCarrier_covarianceIncrement_mem a b hcarrier N M hNa hMb ha hb ha0 hb0 hαβ hkp hP0 hP1 |
| 1635 | | - |
| 1636 | 438 | end HarmonicStateUpdates |
| 1637 | 439 | |
| 1638 | 440 | section MeanWaveComposition |
| 1639 | 441 | |
| 1640 | 442 | open CorrectionState |
| 1641 | 443 | |
| 1642 | | -/-- The actual residual block retains a target exponent through a mean |
| 1643 | | -update. Its change is estimated by the two differentiated cross-advections. -/ |
| 1644 | | -theorem meanUpdate_residualBlock_mem {s : StripData D} {κ α H β : ℝ} {P : ℕ → D → ℝ} |
| 1645 | | - (c : Context D) (ho : OperatorBounds s c.operators κ) |
| 1646 | | - (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 1647 | | - (u v : State D) (m : Triple D) (he : v.mean = updated u.mean m) |
| 1648 | | - (hbase : SmoothTriple s.domain c.base) (hmean : SmoothTriple s.domain u.mean) |
| 1649 | | - (hm : IncrementBounds s H m) (b : HarmonicBlock D) (hb : b.WaveBounds s P α) |
| 1650 | | - (hN : ∀ i, UnweightedClass s 0 |
| 1651 | | - (fun n x => HarmonicMeanInteraction.slowNormal c ho hR b.phase n x i)) |
| 1652 | | - (hk : BandBound s (-(1 / 2)) b.frequency) |
| 1653 | | - (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 1654 | | - (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1655 | | - (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 1656 | | - (hA : ∀ n i, HarmonicFields.BandLimited (A₁ n i - A₀ n i) 0) |
| 1657 | | - (hold : (HarmonicResidual.residualBlock c u b G A₀).WaveBounds s P β) |
| 1658 | | - (hβ : β ≤ α + H - 1 / 2) : |
| 1659 | | - (HarmonicResidual.residualBlock c v b G A₁).WaveBounds s P β := by |
| 1660 | | - have hchange := HarmonicMeanInteraction.residualDifferenceBlock_class c ho hκ hR |
| 1661 | | - u v m he hbase hmean hm b hb hN hk hkp hP G A₀ A₁ hA |
| 1662 | | - intro i j hj |
| 1663 | | - apply WaveInteractionBounds.class_congr ((hold i j hj).add ((hchange i j hj).mono_exponent hβ)) |
| 1664 | | - intro n x hx |
| 1665 | | - change (HarmonicResidual.residualBlock c u b G A₀).velocity n i j x + |
| 1666 | | - ((HarmonicResidual.residualBlock c v b G A₁).velocity n i j x - |
| 1667 | | - (HarmonicResidual.residualBlock c u b G A₀).velocity n i j x) = |
| 1668 | | - (HarmonicResidual.residualBlock c v b G A₁).velocity n i j x |
| 1669 | | - ring |
| 1670 | | - |
| 1671 | | -/-- With the cumulative wave exponent `1/2`, each actual temporal or rank |
| 1672 | | -mean increment has wave effect of exponent `H`. -/ |
| 1673 | | -theorem meanUpdate_residualBlock_next {s : StripData D} {κ σ : ℝ} {P : ℕ → D → ℝ} |
| 1674 | | - (c : Context D) (ho : OperatorBounds s c.operators κ) |
| 1675 | | - (hκ : κ ≤ 1 / 100000) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 1676 | | - (u v : State D) (m : Triple D) (he : v.mean = updated u.mean m) |
| 1677 | | - (hbase : SmoothTriple s.domain c.base) (hmean : SmoothTriple s.domain u.mean) |
| 1678 | | - (hm : IncrementBounds s (ExponentLedger.meanUpdateExponent σ κ) m) |
| 1679 | | - (b : HarmonicBlock D) (hb : b.WaveBounds s P (1 / 2)) |
| 1680 | | - (hN : ∀ i, UnweightedClass s 0 |
| 1681 | | - (fun n x => HarmonicMeanInteraction.slowNormal c ho hR b.phase n x i)) |
| 1682 | | - (hk : BandBound s (-(1 / 2)) b.frequency) |
| 1683 | | - (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 1684 | | - (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1685 | | - (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 1686 | | - (hA : ∀ n i, HarmonicFields.BandLimited (A₁ n i - A₀ n i) 0) |
| 1687 | | - (hold : (HarmonicResidual.residualBlock c u b G A₀).WaveBounds s P |
| 1688 | | - (ExponentLedger.waveExponent (σ + 1 / 10))) : |
| 1689 | | - (HarmonicResidual.residualBlock c v b G A₁).WaveBounds s P |
| 1690 | | - (ExponentLedger.waveExponent (σ + 1 / 10)) := by |
| 1691 | | - apply meanUpdate_residualBlock_mem c ho (by linarith) hR u v m he hbase hmean hm b hb |
| 1692 | | - hN hk hkp hP G A₀ A₁ hA hold |
| 1693 | | - have hg := ExponentLedger.mean_update_wave_margin (σ := σ) hκ |
| 1694 | | - linarith |
| 1695 | | - |
| 1696 | 444 | end MeanWaveComposition |
| 1697 | 445 | |
| 1698 | 446 | section RankRetainedAlias |
| @@ -1701,115 +449,17 @@ open CorrectionState |
| 1701 | 449 | |
| 1702 | 450 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 1703 | 451 | |
| 1704 | | -/-- A previously accumulated temporal alias remains subtracted through the |
| 1705 | | -rank stage. No size assumption on that unchanged alias is needed here. -/ |
| 1706 | | -theorem rankStage_axial_sub_mem {s : StripData (PressureStream.Lift S)} |
| 1707 | | - (p : ReconstructionData) (r : RankData S) (axial : S × PressureStream.Plane) |
| 1708 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 1709 | | - (hg : DefectIncrementBounds.RankGeometry p r c u) |
| 1710 | | - {H κ β : ℝ} (v : PressureStream.Plane) (hfast : c.operators.vT = (0, (0, v))) |
| 1711 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 1712 | | - (hm : MeanIncrementBounds.CumulativeBounds s u.mean) |
| 1713 | | - (hi : IncrementBounds s H (rankIncrement p r axial c u)) |
| 1714 | | - (hp : SmoothOn s.domain u.pressure) |
| 1715 | | - (hdp : MeanClass s H (rankPressureChange p r axial c u)) |
| 1716 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 1717 | | - (A : ScalarField (PressureStream.Lift S)) |
| 1718 | | - (hcurrent : MeanClass s β (u.axialResidual c - A)) |
| 1719 | | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : |
| 1720 | | - MeanClass s β ((rankStage p r axial c u).axialResidual c - A) := by |
| 1721 | | - have hz : ∀ n x, x ∈ s.domain → |
| 1722 | | - fderiv ℝ ((rankIncrement p r axial c u).axial n) x c.operators.vT = 0 := by |
| 1723 | | - intro n x hx |
| 1724 | | - rw [hfast] |
| 1725 | | - exact slow_directional_zero s.isOpen_domain hi.axial.smooth (hg.axial_slow axial) v n hx |
| 1726 | | - have hdelta := axialResidual_change_slow_mem ho hb hm hi hH u.covariance hW |
| 1727 | | - u.pressure (rankPressureChange p r axial c u) c.virtualAxial hp hdp hz |
| 1728 | | - have hpressure : u.pressure + rankPressureChange p r axial c u = |
| 1729 | | - (rankStage p r axial c u).pressure := by |
| 1730 | | - unfold rankPressureChange |
| 1731 | | - abel |
| 1732 | | - have hnew : (rankStage p r axial c u).axialResidual c = |
| 1733 | | - MeanIncrementBounds.axialResidual c.operators c.base |
| 1734 | | - (updated u.mean (rankIncrement p r axial c u)) u.covariance |
| 1735 | | - (u.pressure + rankPressureChange p r axial c u) c.virtualAxial := by |
| 1736 | | - rw [hpressure] |
| 1737 | | - simp [rankStage, reconstructPressure, State.axialResidual, State.addIncrement] |
| 1738 | | - rfl |
| 1739 | | - apply class_congr (hcurrent.add (hdelta.mono_exponent hβ)) |
| 1740 | | - intro n x hx |
| 1741 | | - rw [hnew] |
| 1742 | | - change _ - _ = (_ - A n x) + (_ - _) |
| 1743 | | - simp only [State.axialResidual] |
| 1744 | | - ring |
| 1745 | | - |
| 1746 | 452 | end RankRetainedAlias |
| 1747 | 453 | |
| 1748 | 454 | section SignedTensorRemainder |
| 1749 | 455 | |
| 1750 | 456 | open CorrectionState MeasureTheory |
| 1751 | 457 | |
| 1752 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1753 | | -theorem AngularContinuous.neg {u : Oscillation D} (hu : AngularContinuous u) : |
| 1754 | | - AngularContinuous (-u) := fun n x i => (hu n x i).neg |
| 1755 | | - |
| 1756 | 458 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1757 | 459 | theorem AngularContinuous.sub {u v : Oscillation D} |
| 1758 | 460 | (hu : AngularContinuous u) (hv : AngularContinuous v) : AngularContinuous (u - v) := |
| 1759 | 461 | fun n x i => (hu n x i).sub (hv n x i) |
| 1760 | 462 | |
| 1761 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1762 | | -theorem bilinearCovariance_neg_left (u v : Oscillation D) : |
| 1763 | | - bilinearCovariance (-u) v = -bilinearCovariance u v := by |
| 1764 | | - funext i j n x |
| 1765 | | - change (∫ θ in (0 : ℝ)..2 * Real.pi, -u n (x, θ) i * v n (x, θ) j) / |
| 1766 | | - (2 * Real.pi) = -((∫ θ in (0 : ℝ)..2 * Real.pi, u n (x, θ) i * v n (x, θ) j) / |
| 1767 | | - (2 * Real.pi)) |
| 1768 | | - simp only [neg_mul, intervalIntegral.integral_neg, neg_div] |
| 1769 | | - |
| 1770 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1771 | | -theorem bilinearCovariance_neg_right (u v : Oscillation D) : |
| 1772 | | - bilinearCovariance u (-v) = -bilinearCovariance u v := by |
| 1773 | | - funext i j |
| 1774 | | - rw [bilinearCovariance_comm u (-v) i j, |
| 1775 | | - congrFun (congrFun (bilinearCovariance_neg_left v u) j) i] |
| 1776 | | - change -bilinearCovariance v u j i = -bilinearCovariance u v i j |
| 1777 | | - rw [bilinearCovariance_comm v u j i] |
| 1778 | | - |
| 1779 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1780 | | -theorem bilinearCovariance_sub_left {u v w : Oscillation D} |
| 1781 | | - (hu : AngularContinuous u) (hv : AngularContinuous v) (hw : AngularContinuous w) : |
| 1782 | | - bilinearCovariance (u - v) w = bilinearCovariance u w - bilinearCovariance v w := by |
| 1783 | | - rw [sub_eq_add_neg, bilinearCovariance_add_left hu hv.neg hw, |
| 1784 | | - bilinearCovariance_neg_left, sub_eq_add_neg] |
| 1785 | | - |
| 1786 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1787 | | -theorem bilinearCovariance_sub_right {u v w : Oscillation D} |
| 1788 | | - (hu : AngularContinuous u) (hv : AngularContinuous v) (hw : AngularContinuous w) : |
| 1789 | | - bilinearCovariance u (v - w) = bilinearCovariance u v - bilinearCovariance u w := by |
| 1790 | | - rw [sub_eq_add_neg, bilinearCovariance_add_right hu hv hw.neg, |
| 1791 | | - bilinearCovariance_neg_right, sub_eq_add_neg] |
| 1792 | | - |
| 1793 | | -noncomputable def symmetricCovariance (u v : Oscillation D) : Tensor D := |
| 1794 | | - bilinearCovariance u v + bilinearCovariance v u |
| 1795 | | - |
| 1796 | | -/-- The signed update is separated at the level of actual angular |
| 1797 | | -integrals. The square contains the entire tangent plus curl increment. -/ |
| 1798 | | -noncomputable def signedTensorRemainder (primary old tangent curl : Oscillation D) : Tensor D := |
| 1799 | | - covarianceIncrement old (tangent + curl) - symmetricCovariance primary tangent |
| 1800 | | - |
| 1801 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 1802 | | -theorem signedTensorRemainder_exact (primary old tangent curl : Oscillation D) |
| 1803 | | - (hp : AngularContinuous primary) (ho : AngularContinuous old) |
| 1804 | | - (ht : AngularContinuous tangent) (hc : AngularContinuous curl) : |
| 1805 | | - signedTensorRemainder primary old tangent curl = |
| 1806 | | - symmetricCovariance (old - primary) tangent + symmetricCovariance old curl + |
| 1807 | | - bilinearCovariance (tangent + curl) (tangent + curl) := by |
| 1808 | | - unfold signedTensorRemainder covarianceIncrement symmetricCovariance |
| 1809 | | - rw [bilinearCovariance_add_right ho ht hc, bilinearCovariance_add_left ht hc ho, |
| 1810 | | - bilinearCovariance_sub_left ho hp ht, bilinearCovariance_sub_right ht ho hp] |
| 1811 | | - abel |
| 1812 | | - |
| 1813 | 463 | noncomputable def subBlock (a b : HarmonicBlock D) : HarmonicBlock D := |
| 1814 | 464 | { a with velocity := fun n i => a.velocity n i - b.velocity n i |
| 1815 | 465 | pressure := fun n => a.pressure n - b.pressure n } |
| @@ -1830,107 +480,6 @@ theorem subBlock_band {a b : HarmonicBlock D} {N M : ℕ} |
| 1830 | 480 | fun n => HarmonicResidual.band_sub (ha.2 n |>.mono (le_max_left _ _)) |
| 1831 | 481 | (hb.2 n |>.mono (le_max_right _ _))⟩ |
| 1832 | 482 | |
| 1833 | | -theorem symmetricCovariance_mem {s : StripData D} {P : ℕ → D → ℝ} {α β : ℝ} |
| 1834 | | - (a b : HarmonicBlock D) (hcarrier : SameCarrier a b) (N : ℕ) |
| 1835 | | - (hNa : a.BandLimited N) (ha : a.WaveBounds s P α) (hb : b.WaveBounds s P β) |
| 1836 | | - (ha0 : ∀ n i, a.velocity n i 0 = 0) (hb0 : ∀ n i, b.velocity n i 0 = 0) |
| 1837 | | - (hkp : ∀ n, a.angularFrequency n ≠ 0) |
| 1838 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1839 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : |
| 1840 | | - TensorClass s (α + β) (symmetricCovariance a.oscillation b.oscillation) := by |
| 1841 | | - have hca := block_waveBounds_all a ha ha0 hP0 |
| 1842 | | - have hcb := block_waveBounds_all b hb hb0 hP0 |
| 1843 | | - intro i j |
| 1844 | | - have hcross := HarmonicCovariance.mixedBlockCovariance_mem a b N hNa |
| 1845 | | - hcarrier.frequency hcarrier.phase hcarrier.angular hca hcb hP0 hP1 hkp i j |
| 1846 | | - have hreverse : MeanClass s (α + β) (bilinearCovariance b.oscillation a.oscillation i j) := by |
| 1847 | | - rw [bilinearCovariance_comm] |
| 1848 | | - exact HarmonicCovariance.mixedBlockCovariance_mem a b N hNa |
| 1849 | | - hcarrier.frequency hcarrier.phase hcarrier.angular hca hcb hP0 hP1 hkp j i |
| 1850 | | - exact hcross.add hreverse |
| 1851 | | - |
| 1852 | | -/-- The three signed errors have exponents `δ+β`, `α+η`, and `2β`. |
| 1853 | | -The stronger bound on the old-minus-primary field is used only for the |
| 1854 | | -first term. No class of a resulting covariance is assumed. -/ |
| 1855 | | -theorem signedTensorRemainder_mem {s : StripData D} {P : ℕ → D → ℝ} |
| 1856 | | - {α δ β η γ : ℝ} (primary old tangent curl : HarmonicBlock D) (N : ℕ) |
| 1857 | | - (hop : SameCarrier old primary) (hot : SameCarrier old tangent) |
| 1858 | | - (hoc : SameCarrier old curl) |
| 1859 | | - (hpN : primary.BandLimited N) (hoN : old.BandLimited N) |
| 1860 | | - (htN : tangent.BandLimited N) (hcN : curl.BandLimited N) |
| 1861 | | - (ho : old.WaveBounds s P α) |
| 1862 | | - (hd : (subBlock old primary).WaveBounds s P δ) |
| 1863 | | - (ht : tangent.WaveBounds s P β) (hc : curl.WaveBounds s P η) |
| 1864 | | - (hp0 : ∀ n i, primary.velocity n i 0 = 0) (ho0 : ∀ n i, old.velocity n i 0 = 0) |
| 1865 | | - (ht0 : ∀ n i, tangent.velocity n i 0 = 0) (hc0 : ∀ n i, curl.velocity n i 0 = 0) |
| 1866 | | - (hβη : β ≤ η) (hγd : γ ≤ δ + β) (hγc : γ ≤ α + η) (hγs : γ ≤ 2 * β) |
| 1867 | | - (hkp : ∀ n, old.angularFrequency n ≠ 0) |
| 1868 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1869 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : |
| 1870 | | - TensorClass s γ (signedTensorRemainder primary.oscillation old.oscillation |
| 1871 | | - tangent.oscillation curl.oscillation) := by |
| 1872 | | - have hdt : SameCarrier (subBlock old primary) tangent := |
| 1873 | | - ⟨hot.frequency, hot.phase, hot.angular⟩ |
| 1874 | | - have htc : SameCarrier tangent curl := |
| 1875 | | - ⟨hoc.frequency.trans hot.frequency.symm, hoc.phase.trans hot.phase.symm, |
| 1876 | | - hoc.angular.trans hot.angular.symm⟩ |
| 1877 | | - have hd0 : ∀ n i, (subBlock old primary).velocity n i 0 = 0 := by |
| 1878 | | - intro n i |
| 1879 | | - change old.velocity n i 0 - primary.velocity n i 0 = 0 |
| 1880 | | - rw [ho0, hp0, sub_self] |
| 1881 | | - have hsum0 : ∀ n i, (addBlock tangent curl).velocity n i 0 = 0 := by |
| 1882 | | - intro n i |
| 1883 | | - change tangent.velocity n i 0 + curl.velocity n i 0 = 0 |
| 1884 | | - rw [ht0, hc0, add_zero] |
| 1885 | | - have hdiff := symmetricCovariance_mem (subBlock old primary) tangent hdt (max N N) |
| 1886 | | - (subBlock_band hoN hpN) hd ht hd0 ht0 hkp hP0 hP1 |
| 1887 | | - have hcurl := symmetricCovariance_mem old curl hoc N hoN ho hc ho0 hc0 hkp hP0 hP1 |
| 1888 | | - have hsum := block_waveBounds_all (addBlock tangent curl) |
| 1889 | | - (addBlock_waveBounds ht hc hβη) hsum0 hP0 |
| 1890 | | - have hsquare := HarmonicCovariance.blockCovariance_mem (addBlock tangent curl) (max N N) |
| 1891 | | - (addBlock_band htN hcN) hsum hP0 hP1 |
| 1892 | | - (fun n => by simpa only [addBlock, hot.angular] using hkp n) |
| 1893 | | - rw [subBlock_oscillation old primary hop] at hdiff |
| 1894 | | - simp only [addBlock_oscillation tangent curl htc] at hsquare |
| 1895 | | - rw [signedTensorRemainder_exact _ _ _ _ (block_angularContinuous primary) |
| 1896 | | - (block_angularContinuous old) (block_angularContinuous tangent) (block_angularContinuous curl)] |
| 1897 | | - intro i j |
| 1898 | | - exact ((hdiff i j).mono_exponent hγd |>.add ((hcurl i j).mono_exponent hγc)).add |
| 1899 | | - ((hsquare i j).mono_exponent (by linarith)) |
| 1900 | | - |
| 1901 | | -/-- Applying the fixed radial derivative loss still leaves the signed |
| 1902 | | -tensor error at the manuscript's `.17` improvement. -/ |
| 1903 | | -theorem signedTensorRemainder_divergence_mem {s : StripData D} {P : ℕ → D → ℝ} |
| 1904 | | - {σ κ : ℝ} (c : Context D) (hops : OperatorBounds s c.operators κ) |
| 1905 | | - (hσ : 1 / 5 ≤ σ) (hκ : κ ≤ 1 / 100000) |
| 1906 | | - (primary old tangent curl : HarmonicBlock D) (N : ℕ) |
| 1907 | | - (hop : SameCarrier old primary) (hot : SameCarrier old tangent) |
| 1908 | | - (hoc : SameCarrier old curl) |
| 1909 | | - (hpN : primary.BandLimited N) (hoN : old.BandLimited N) |
| 1910 | | - (htN : tangent.BandLimited N) (hcN : curl.BandLimited N) |
| 1911 | | - (ho : old.WaveBounds s P (1 / 2)) |
| 1912 | | - (hd : (subBlock old primary).WaveBounds s P (17 / 25)) |
| 1913 | | - (ht : tangent.WaveBounds s P (ExponentLedger.waveExponent σ - κ)) |
| 1914 | | - (hc : curl.WaveBounds s P (ExponentLedger.waveExponent σ + 1 / 2 - 2 * κ)) |
| 1915 | | - (hp0 : ∀ n i, primary.velocity n i 0 = 0) (ho0 : ∀ n i, old.velocity n i 0 = 0) |
| 1916 | | - (ht0 : ∀ n i, tangent.velocity n i 0 = 0) (hc0 : ∀ n i, curl.velocity n i 0 = 0) |
| 1917 | | - (hkp : ∀ n, old.angularFrequency n ≠ 0) |
| 1918 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 1919 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) : |
| 1920 | | - let E := signedTensorRemainder primary.oscillation old.oscillation tangent.oscillation curl.oscillation |
| 1921 | | - MeanClass s (ExponentLedger.meanExponent σ + 17 / 100) (thetaCovarianceChange c.operators E) ∧ |
| 1922 | | - MeanClass s (ExponentLedger.meanExponent σ + 17 / 100) (axialCovarianceChange c.operators E) ∧ |
| 1923 | | - MeanClass s (ExponentLedger.meanExponent σ + 17 / 100) (radialCovarianceChange c.operators E) := by |
| 1924 | | - have he := signedTensorRemainder_mem (γ := ExponentLedger.meanExponent σ + 17 / 100 + κ) |
| 1925 | | - primary old tangent curl N hop hot hoc hpN hoN htN hcN ho hd ht hc hp0 ho0 ht0 hc0 |
| 1926 | | - (by linarith) (by unfold ExponentLedger.waveExponent ExponentLedger.meanExponent; linarith) |
| 1927 | | - (by unfold ExponentLedger.waveExponent ExponentLedger.meanExponent; linarith) |
| 1928 | | - (by unfold ExponentLedger.waveExponent ExponentLedger.meanExponent; linarith) |
| 1929 | | - hkp hP0 hP1 |
| 1930 | | - simpa only [add_sub_cancel_right] using |
| 1931 | | - And.intro (thetaCovarianceChange_mem hops he) |
| 1932 | | - (And.intro (axialCovarianceChange_mem hops he) (radialCovarianceChange_mem hops he)) |
| 1933 | | - |
| 1934 | 483 | end SignedTensorRemainder |
| 1935 | 484 | |
| 1936 | 485 | section LocalMeanConstruction |
| @@ -1939,141 +488,6 @@ open CorrectionState PhysicalMeanDomain |
| 1939 | 488 | |
| 1940 | 489 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1941 | 490 | |
| 1942 | | -/-- The native temporal construction is bounded on a genuine open slow |
| 1943 | | -domain. The source need not satisfy estimates at nonpositive slow time. -/ |
| 1944 | | -theorem temporalIncrement_local_mem (r : ReconstructionData) (h : ℝ) |
| 1945 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1946 | | - (u : State (PressureStream.Lift S)) {cL cR H : ℝ} |
| 1947 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1948 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 1949 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 1950 | | - (hscale : ∀ n, ChartScales.S n ≤ L n) (U : Set S) (hU : IsOpen U) |
| 1951 | | - (hθclass : MeanClass (localStripData r.inner r.outer cL cR |
| 1952 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H (u.thetaResidual c)) |
| 1953 | | - (hzclass : MeanClass (localStripData r.inner r.outer cL cR |
| 1954 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H (u.axialResidual c)) |
| 1955 | | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain U)) |
| 1956 | | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain U)) |
| 1957 | | - (hpθ : ∀ n, PeriodicOn U (u.thetaResidual c n)) |
| 1958 | | - (hpz : ∀ n, PeriodicOn U (u.axialResidual c n)) |
| 1959 | | - (hsz : ∀ n, SupportedOn r.inner r.outer U (u.axialResidual c n)) : |
| 1960 | | - IncrementBounds (localStripData r.inner r.outer cL cR |
| 1961 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H (temporalIncrement r h axial c u) := by |
| 1962 | | - refine ⟨?_, ?_, ?_⟩ |
| 1963 | | - · exact PhysicalMeanDomain.meanClass_scaledRadialUpdate ha r.inner_lt_outer hd hcL hcR hh |
| 1964 | | - c.operators.epsilon L hε hεone hL hscale U hU hz hpz hsz hzclass |
| 1965 | | - r.frequency (fun _ => r.radialDirection) axial |
| 1966 | | - · exact PhysicalMeanDomain.meanClass_desiredIncrement ha hcL hcR hh |
| 1967 | | - c.operators.epsilon L hε hεone hL hscale U hU hθ hpθ hθclass |
| 1968 | | - · exact PhysicalMeanDomain.meanClass_axialUpdate ha r.inner_lt_outer hd hcL hcR hh |
| 1969 | | - c.operators.epsilon L hε hεone hL hscale U hU hz hpz hsz hzclass |
| 1970 | | - r.frequency (fun _ => r.radialDirection) |
| 1971 | | - |
| 1972 | | -theorem commonRatio_bandBound {s : StripData D} (h : ℝ) (index : ℕ → ℕ) (gap : ℕ) |
| 1973 | | - (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + gap) : |
| 1974 | | - BandBound s 0 (fun n => MeanChartCompatibility.commonRatio h n (index n)) := by |
| 1975 | | - refine ⟨ChartScales.Tg ^ gap, (pow_pos ChartScales.Tg_pos gap).le, 0, ?_⟩ |
| 1976 | | - intro n |
| 1977 | | - simp only [Real.norm_eq_abs, abs_of_pos (MeanChartCompatibility.commonRatio_pos h n (index n)), |
| 1978 | | - Real.rpow_zero, pow_zero, mul_one] |
| 1979 | | - exact MeanChartCompatibility.commonRatio_le (hgap n) |
| 1980 | | - |
| 1981 | | -/-- A local source estimate is transported through the actual common-clock |
| 1982 | | -inverse and then through the actual stream. No output estimate or global |
| 1983 | | -slow-domain extension is a hypothesis. -/ |
| 1984 | | -theorem commonTemporalIncrement_local_mem (r : ReconstructionData) (h : ℝ) |
| 1985 | | - (index : ℕ → ℕ) (gap : ℕ) (hgap : ∀ n, ChartScales.nativeIndex h n ≤ index n + gap) |
| 1986 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 1987 | | - (u : State (PressureStream.Lift S)) {cL cR H : ℝ} |
| 1988 | | - (ha : 0 < r.inner) (hd : 0 < r.exponent) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1989 | | - (L : ℕ → ℝ) (hε : ∀ n, 0 < c.operators.epsilon n) |
| 1990 | | - (hεone : ∀ n, c.operators.epsilon n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 1991 | | - (hscale : ∀ n, ChartScales.S n ≤ L n) (U : Set S) (hU : IsOpen U) |
| 1992 | | - (hθclass : MeanClass (localStripData r.inner r.outer cL cR |
| 1993 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H (u.thetaResidual c)) |
| 1994 | | - (hzclass : MeanClass (localStripData r.inner r.outer cL cR |
| 1995 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H (u.axialResidual c)) |
| 1996 | | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain U)) |
| 1997 | | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain U)) |
| 1998 | | - (hpθ : ∀ n, PeriodicOn U (u.thetaResidual c n)) |
| 1999 | | - (hpz : ∀ n, PeriodicOn U (u.axialResidual c n)) |
| 2000 | | - (hsz : ∀ n, SupportedOn r.inner r.outer U (u.axialResidual c n)) : |
| 2001 | | - IncrementBounds (localStripData r.inner r.outer cL cR |
| 2002 | | - ha hcL hcR c.operators.epsilon L hε hεone hL U hU) H |
| 2003 | | - (MeanChartCompatibility.commonTemporalIncrement (fun _ => r) h index axial c u) := by |
| 2004 | | - let s := localStripData r.inner r.outer cL cR ha hcL hcR c.operators.epsilon L hε hεone hL U hU |
| 2005 | | - let z : ScalarField (PressureStream.Lift S) := fun n => |
| 2006 | | - MeanChartCompatibility.temporalAtIndex h n (index n) (u.axialResidual c n) |
| 2007 | | - have hratio := commonRatio_bandBound (s := s) h index gap hgap |
| 2008 | | - have hzt : MeanClass s H z := by |
| 2009 | | - have hh' := (PhysicalMeanDomain.meanClass_desiredIncrement ha hcL hcR hh |
| 2010 | | - c.operators.epsilon L hε hεone hL hscale U hU hz hpz hzclass).band_smul hratio |
| 2011 | | - simpa only [z, MeanChartCompatibility.temporalAtIndex_eq_native, smul_eq_mul, add_zero] using hh' |
| 2012 | | - have hzs : ∀ n, ContDiffOn ℝ ∞ (z n) (slowDomain U) := by |
| 2013 | | - intro n |
| 2014 | | - simpa only [z, MeanChartCompatibility.temporalAtIndex_eq_native] using |
| 2015 | | - (contDiffOn_const (c := MeanChartCompatibility.commonRatio h n (index n))).mul |
| 2016 | | - (PhysicalMeanDomain.desiredIncrement_contDiffOn h n hU (hz n) (hpz n)) |
| 2017 | | - have hzsupport : ∀ n, SupportedOn r.inner r.outer U (z n) := by |
| 2018 | | - intro n x hx hn |
| 2019 | | - have hs := PhysicalMeanDomain.desiredIncrement_supportedOn h n hU (hz n) (hsz n) |
| 2020 | | - apply hs x hx |
| 2021 | | - have hn' : MeanChartCompatibility.commonRatio h n (index n) * |
| 2022 | | - TemporalMeanUpdate.desiredIncrement h n (u.axialResidual c n) x ≠ 0 := by |
| 2023 | | - simpa only [z, MeanChartCompatibility.temporalAtIndex_eq_native] using hn |
| 2024 | | - exact right_ne_zero_of_mul hn' |
| 2025 | | - refine ⟨?_, ?_, ?_⟩ |
| 2026 | | - · have hi := PhysicalMeanDomain.meanClass_streamBeta ha r.inner_lt_outer hd hcL hcR |
| 2027 | | - c.operators.epsilon L hε hεone hL U hU hzs hzsupport hzt |
| 2028 | | - r.frequency (fun _ => r.radialDirection) axial |
| 2029 | | - have heps : BandBound s 1 c.operators.epsilon := by |
| 2030 | | - have he := bandBound_rpow s 1 |
| 2031 | | - simp only [Real.rpow_one] at he |
| 2032 | | - exact he |
| 2033 | | - apply class_congr (hi.band_smul heps) |
| 2034 | | - intro n x hx |
| 2035 | | - simp only [MeanChartCompatibility.commonTemporalIncrement, MeanChartCompatibility.commonTemporalFields, |
| 2036 | | - MeanChartCompatibility.commonTemporalPotential, PressureStream.streamBeta, |
| 2037 | | - PressureStream.graphDz, smul_eq_mul] |
| 2038 | | - rw [show ((0 : ℝ), c.operators.epsilon n • axial) = |
| 2039 | | - c.operators.epsilon n • ((0 : ℝ), axial) by simp] |
| 2040 | | - simp only [map_smul, smul_eq_mul, mul_neg] |
| 2041 | | - rfl |
| 2042 | | - · have hi := (PhysicalMeanDomain.meanClass_desiredIncrement ha hcL hcR hh |
| 2043 | | - c.operators.epsilon L hε hεone hL hscale U hU hθ hpθ hθclass).band_smul hratio |
| 2044 | | - simpa only [MeanChartCompatibility.commonTemporalIncrement, MeanChartCompatibility.commonTemporalFields, |
| 2045 | | - MeanChartCompatibility.temporalAtIndex_eq_native, smul_eq_mul, add_zero] using hi |
| 2046 | | - · exact PhysicalMeanDomain.meanClass_streamGamma ha r.inner_lt_outer hd hcL hcR |
| 2047 | | - c.operators.epsilon L hε hεone hL U hU hzs hzsupport hzt |
| 2048 | | - r.frequency (fun _ => r.radialDirection) |
| 2049 | | - |
| 2050 | | -/-- Recomputed pressure on the same local slow domain. The source change |
| 2051 | | -class is derived from the exact nonlinear radial equation. -/ |
| 2052 | | -theorem reconstructedPressure_local_change_mem |
| 2053 | | - {a b d cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 2054 | | - (hcL : 0 < cL) (hcR : 0 < cR) |
| 2055 | | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) |
| 2056 | | - (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {κ H : ℝ} |
| 2057 | | - {o : Operators (PressureStream.Lift S)} {base mean inc : Triple (PressureStream.Lift S)} |
| 2058 | | - (ho : OperatorBounds (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) o κ) |
| 2059 | | - (hb : BaseBounds (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) base) |
| 2060 | | - (hm : MeanIncrementBounds.CumulativeBounds |
| 2061 | | - (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) mean) |
| 2062 | | - (hi : IncrementBounds (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H inc) |
| 2063 | | - (hH : 9 / 10 ≤ H) (hκ : 2 * κ ≤ 9 / 10) |
| 2064 | | - (W : Tensor (PressureStream.Lift S)) |
| 2065 | | - (hW : ∀ i j, SmoothOn (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU).domain (W i j)) |
| 2066 | | - (hf : ∀ n, ContDiffOn ℝ ∞ (gr o base (updated mean inc) W n) (slowDomain U)) |
| 2067 | | - (hg : ∀ n, ContDiffOn ℝ ∞ (gr o base mean W n) (slowDomain U)) |
| 2068 | | - (hsf : ∀ n, SupportedOn a b U (gr o base (updated mean inc) W n)) |
| 2069 | | - (hsg : ∀ n, SupportedOn a b U (gr o base mean W n)) |
| 2070 | | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : |
| 2071 | | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 2072 | | - (reconstructedPressure d a b hab M v o base (updated mean inc) W - |
| 2073 | | - reconstructedPressure d a b hab M v o base mean W) := by |
| 2074 | | - exact PhysicalMeanDomain.meanClass_meanPressure_change ha hab hd hcL hcR ε L hε hεone hL |
| 2075 | | - U hU hf hg hsf hsg (gr_change_mem ho hb hm hi hH W hW hκ) M v |
| 2076 | | - |
| 2077 | 491 | end LocalMeanConstruction |
| 2078 | 492 | |
| 2079 | 493 | section ConstructedSignedBlocks |
| @@ -2099,24 +513,6 @@ theorem blockOfCoefficients_difference_mem |
| 2099 | 513 | simp only [conjugatePair_apply] |
| 2100 | 514 | split_ifs <;> simp only [map_sub, map_zero, sub_div] <;> ring |
| 2101 | 515 | |
| 2102 | | -theorem correctedBlock_sameCarrier |
| 2103 | | - (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) (s : StripData (D × ℝ)) |
| 2104 | | - (d : LinearWaveBounds.GraphDirections (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) : |
| 2105 | | - SameCarrier (blockOfCoefficients (a.withCutoff ψ) kp) |
| 2106 | | - (blockOfCoefficients (a.corrected s d ψ) kp) := ⟨rfl, rfl, rfl⟩ |
| 2107 | | - |
| 2108 | | -theorem correctedBlock_split |
| 2109 | | - (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) (s : StripData (D × ℝ)) |
| 2110 | | - (d : LinearWaveBounds.GraphDirections (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) : |
| 2111 | | - (blockOfCoefficients (a.corrected s d ψ) kp).oscillation = |
| 2112 | | - (blockOfCoefficients (a.withCutoff ψ) kp).oscillation + |
| 2113 | | - (subBlock (blockOfCoefficients (a.corrected s d ψ) kp) |
| 2114 | | - (blockOfCoefficients (a.withCutoff ψ) kp)).oscillation := by |
| 2115 | | - have h : SameCarrier (blockOfCoefficients (a.corrected s d ψ) kp) |
| 2116 | | - (blockOfCoefficients (a.withCutoff ψ) kp) := ⟨rfl, rfl, rfl⟩ |
| 2117 | | - rw [subBlock_oscillation _ _ h] |
| 2118 | | - abel |
| 2119 | | - |
| 2120 | 516 | /-- The tangent and curl-difference blocks used by the tensor estimate are |
| 2121 | 517 | the blocks of the actual signed quotient, homogeneous pressure, cutoff, |
| 2122 | 518 | and curl construction. Their classes are conclusions from primitive data. -/ |
| @@ -2162,48 +558,12 @@ section CumulativeWaveUpdates |
| 2162 | 558 | |
| 2163 | 559 | open CorrectionState |
| 2164 | 560 | |
| 2165 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 2166 | | -/-- Both wave insertions retain their original carrier. This equality is |
| 2167 | | -about the actual evaluated fields, not only their coefficient arrays. -/ |
| 2168 | | -theorem twoWaveUpdates_oscillation (old particular signed : HarmonicBlock D) |
| 2169 | | - (hp : SameCarrier old particular) (hs : SameCarrier old signed) : |
| 2170 | | - (addBlock (addBlock old particular) signed).oscillation = |
| 2171 | | - old.oscillation + particular.oscillation + signed.oscillation := by |
| 2172 | | - have hs' : SameCarrier (addBlock old particular) signed := |
| 2173 | | - ⟨hs.frequency, hs.phase, hs.angular⟩ |
| 2174 | | - rw [addBlock_oscillation _ _ hs', addBlock_oscillation _ _ hp] |
| 2175 | | - |
| 2176 | 561 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 2177 | 562 | theorem twoWaveUpdates_band {old particular signed : HarmonicBlock D} {N M K : ℕ} |
| 2178 | 563 | (ho : old.BandLimited N) (hp : particular.BandLimited M) (hs : signed.BandLimited K) : |
| 2179 | 564 | (addBlock (addBlock old particular) signed).BandLimited (max (max N M) K) := |
| 2180 | 565 | addBlock_band (addBlock_band ho hp) hs |
| 2181 | 566 | |
| 2182 | | -/-- Cumulative bounds after the actual two coefficient additions. The |
| 2183 | | -reference field in the difference is the same primary tangent throughout. -/ |
| 2184 | | -theorem twoWaveUpdates_cumulative {s : StripData D} {P : ℕ → D → ℝ} {σ κ : ℝ} |
| 2185 | | - (hσ : 1 / 5 ≤ σ) (hκ : κ ≤ 1 / 100000) |
| 2186 | | - (primary old particular signed : HarmonicBlock D) |
| 2187 | | - (ho : old.WaveBounds s P (1 / 2)) |
| 2188 | | - (hod : ∀ i j, j ≠ 0 → WaveClass s P (17 / 25) |
| 2189 | | - (fun n x => old.velocity n i j x - primary.velocity n i j x)) |
| 2190 | | - (hop : old.PressureBounds s P 1) |
| 2191 | | - (hp : particular.WaveBounds s P (ExponentLedger.waveExponent σ)) |
| 2192 | | - (hpp : particular.PressureBounds s P (ExponentLedger.waveExponent σ + 1 / 2)) |
| 2193 | | - (hs : signed.WaveBounds s P (ExponentLedger.waveExponent σ - κ)) |
| 2194 | | - (hsp : signed.PressureBounds s P (ExponentLedger.waveExponent σ + 1 / 2 - κ)) : |
| 2195 | | - let finalBlock := addBlock (addBlock old particular) signed |
| 2196 | | - finalBlock.WaveBounds s P (1 / 2) ∧ |
| 2197 | | - (∀ i j, j ≠ 0 → WaveClass s P (17 / 25) |
| 2198 | | - (fun n x => finalBlock.velocity n i j x - primary.velocity n i j x)) ∧ |
| 2199 | | - finalBlock.PressureBounds s P 1 := by |
| 2200 | | - have hpbound := ExponentLedger.particular_increment_above_cumulative_difference hσ |
| 2201 | | - have hsbound := ExponentLedger.signed_increment_above_cumulative_difference hσ hκ |
| 2202 | | - refine ⟨addBlock_waveBounds (addBlock_waveBounds ho hp (by linarith)) hs (by linarith), ?_, ?_⟩ |
| 2203 | | - · exact addBlock_differenceBounds primary (addBlock old particular) signed |
| 2204 | | - (addBlock_differenceBounds primary old particular hod hp hpbound.le) hs hsbound.le |
| 2205 | | - · exact addBlock_pressureBounds (addBlock_pressureBounds hop hpp (by linarith)) hsp (by linarith) |
| 2206 | | - |
| 2207 | 567 | end CumulativeWaveUpdates |
| 2208 | 568 | |
| 2209 | 569 | section LocalCommonClock |
| @@ -2486,40 +846,6 @@ theorem gaugeTemporalStage_mean_gain {s : StripData (PressureStream.Lift S)} |
| 2486 | 846 | (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hu.pressure.smooth hnp |
| 2487 | 847 | hθ hz hpθ hpz |
| 2488 | 848 | |
| 2489 | | -theorem gaugeTemporalStage_next_mean {s : StripData (PressureStream.Lift S)} |
| 2490 | | - {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ s.domain, x.2.1 ∈ V) |
| 2491 | | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) |
| 2492 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {σ κ : ℝ} |
| 2493 | | - (hσ : 1 / 5 ≤ σ) (hκ : κ ≤ 1 / 100000) |
| 2494 | | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) |
| 2495 | | - (hfast : ∀ n, c.operators.fastCoefficient n = |
| 2496 | | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) |
| 2497 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 2498 | | - (hu : CorrectionState.CumulativeBounds s u) |
| 2499 | | - (hi : IncrementBounds s (ExponentLedger.meanUpdateExponent σ κ) |
| 2500 | | - (temporalIncrementState g h index axial c u)) |
| 2501 | | - (hdp : MeanClass s (ExponentLedger.meanUpdateExponent σ κ) |
| 2502 | | - (gaugeTemporalPressureChange g h index axial c u)) |
| 2503 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 2504 | | - (hbarθ : MeanClass s (ExponentLedger.meanExponent σ + 17 / 100) (meanBar (u.thetaResidual c))) |
| 2505 | | - (hbarz : MeanClass s (ExponentLedger.meanExponent σ + 17 / 100) (meanBar (u.axialResidual c))) |
| 2506 | | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) |
| 2507 | | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) |
| 2508 | | - (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) |
| 2509 | | - (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : |
| 2510 | | - MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) |
| 2511 | | - ((temporalStageState g h index axial c u).thetaResidual c) ∧ |
| 2512 | | - MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) |
| 2513 | | - (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - |
| 2514 | | - temporalAliasState g h index c u n (x, 0) 2) := by |
| 2515 | | - apply gaugeTemporalStage_mean_gain hV hUV g h index axial c u hv hfast ho hb hu hi hdp hW |
| 2516 | | - (hbarθ.mono_exponent (by unfold ExponentLedger.meanExponent; linarith)) |
| 2517 | | - (hbarz.mono_exponent (by unfold ExponentLedger.meanExponent; linarith)) |
| 2518 | | - hθ hz hpθ hpz |
| 2519 | | - · exact (ExponentLedger.mean_increment_above_cumulative_mean hσ hκ).le |
| 2520 | | - · simp only [ExponentLedger.meanUpdateExponent, ExponentLedger.meanExponent] |
| 2521 | | - linarith |
| 2522 | | - |
| 2523 | 849 | end GaugeTemporalGain |
| 2524 | 850 | |
| 2525 | 851 | section GaugeAliasBookkeeping |
| @@ -2534,64 +860,6 @@ noncomputable def gaugeRefreshPressureAlias (g : GaugeData S) |
| 2534 | 860 | { current with errors := { current.errors with aliasError := |
| 2535 | 861 | current.errors.aliasError + (pressureAliasState g c current - pressureAliasState g c old) } } |
| 2536 | 862 | |
| 2537 | | -theorem gaugeRefreshPressureAlias_separated (g : GaugeData S) |
| 2538 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) |
| 2539 | | - (other : Oscillation (PressureStream.Lift S)) |
| 2540 | | - (he : current.errors.aliasError = other + pressureAliasState g c old) : |
| 2541 | | - (gaugeRefreshPressureAlias g c old current).errors.aliasError = |
| 2542 | | - other + pressureAliasState g c current := by |
| 2543 | | - simp only [gaugeRefreshPressureAlias, he] |
| 2544 | | - abel |
| 2545 | | - |
| 2546 | | -theorem gaugeRefreshPressureAlias_fullResidual (g : GaugeData S) |
| 2547 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : |
| 2548 | | - fullResidual c (gaugeRefreshPressureAlias g c old current) = fullResidual c current := rfl |
| 2549 | | - |
| 2550 | | -theorem gaugeRefreshPressureAlias_fullGoodResidual (g : GaugeData S) |
| 2551 | | - (c : Context (PressureStream.Lift S)) (old current : State (PressureStream.Lift S)) : |
| 2552 | | - fullGoodResidual c (gaugeRefreshPressureAlias g c old current) = fullGoodResidual c current - |
| 2553 | | - (pressureAliasState g c current - pressureAliasState g c old) := by |
| 2554 | | - unfold fullGoodResidual |
| 2555 | | - rw [gaugeRefreshPressureAlias_fullResidual] |
| 2556 | | - simp only [gaugeRefreshPressureAlias, ExcludedErrors.total] |
| 2557 | | - abel |
| 2558 | | - |
| 2559 | | -noncomputable def gaugePressureAliasBlock (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2560 | | - (u : State (PressureStream.Lift S)) (b : HarmonicBlock (PressureStream.Lift S)) : |
| 2561 | | - HarmonicBlock (PressureStream.Lift S) := |
| 2562 | | - ErrorHarmonics.zeroBlock b.frequency b.phase b.angularFrequency |
| 2563 | | - (fun n x => pressureAliasState g c u n (x, 0)) |
| 2564 | | - |
| 2565 | | -noncomputable def gaugeTemporalAliasBlock (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 2566 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 2567 | | - (b : HarmonicBlock (PressureStream.Lift S)) : HarmonicBlock (PressureStream.Lift S) := |
| 2568 | | - ErrorHarmonics.zeroBlock b.frequency b.phase b.angularFrequency |
| 2569 | | - (fun n x => temporalAliasState g h index c u n (x, 0)) |
| 2570 | | - |
| 2571 | | -theorem gaugePressureAliasBlock_represents (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2572 | | - (u : State (PressureStream.Lift S)) (b : HarmonicBlock (PressureStream.Lift S)) : |
| 2573 | | - (gaugePressureAliasBlock g c u b).oscillation = pressureAliasState g c u := by |
| 2574 | | - funext n x i |
| 2575 | | - rw [gaugePressureAliasBlock, ErrorHarmonics.zeroBlock_evaluation] |
| 2576 | | - rfl |
| 2577 | | - |
| 2578 | | -theorem gaugeTemporalAliasBlock_represents (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 2579 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 2580 | | - (b : HarmonicBlock (PressureStream.Lift S)) : |
| 2581 | | - (gaugeTemporalAliasBlock g h index c u b).oscillation = temporalAliasState g h index c u := by |
| 2582 | | - funext n x i |
| 2583 | | - rw [gaugeTemporalAliasBlock, ErrorHarmonics.zeroBlock_evaluation] |
| 2584 | | - rfl |
| 2585 | | - |
| 2586 | | -theorem gaugePressureAliasBlock_band (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2587 | | - (u : State (PressureStream.Lift S)) (b : HarmonicBlock (PressureStream.Lift S)) : |
| 2588 | | - (gaugePressureAliasBlock g c u b).BandLimited 0 := ErrorHarmonics.zeroBlock_band _ _ _ _ |
| 2589 | | - |
| 2590 | | -theorem gaugeTemporalAliasBlock_band (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) |
| 2591 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 2592 | | - (b : HarmonicBlock (PressureStream.Lift S)) : |
| 2593 | | - (gaugeTemporalAliasBlock g h index c u b).BandLimited 0 := ErrorHarmonics.zeroBlock_band _ _ _ _ |
| 2594 | | - |
| 2595 | 863 | end GaugeAliasBookkeeping |
| 2596 | 864 | |
| 2597 | 865 | section PhysicalResidualDecomposition |
| @@ -2599,97 +867,12 @@ section PhysicalResidualDecomposition |
| 2599 | 867 | open CorrectionState PhysicalResidualBridge ProblemStatement Filter |
| 2600 | 868 | open scoped Topology |
| 2601 | 869 | |
| 2602 | | -/-- The coefficient/mean/error decomposition is a decomposition of the |
| 2603 | | -actual viscosity-one Cartesian residual after the proved graph scaling. -/ |
| 2604 | | -theorem physicalResidual_decomposition {ι : Type*} {Q : ℝ} (hQ : 0 < Q) |
| 2605 | | - (h : ℝ) (k n : ℕ) (c : Context Lift) (s : State Lift) |
| 2606 | | - (hop : MatchesAt c.operators (commonGraph Q h k) n) |
| 2607 | | - {V : Set Lift} (hmean : LiftedMeanResidual.MeanHypotheses V c s) |
| 2608 | | - {labels : ℕ → Finset ι} {blocks : ι → HarmonicBlock Lift} |
| 2609 | | - {gaussian aliasError : ι → HarmonicResidual.BlockCoefficients Lift} |
| 2610 | | - (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasError s) |
| 2611 | | - (hregular : HarmonicResidual.ExtractionRegular V c s labels blocks gaussian aliasError n) |
| 2612 | | - (hR : ∀ x ∈ HarmonicResidual.liftDomain V, x.1.1 ≠ 0) |
| 2613 | | - {p₀ : Cylinder → ℝ} |
| 2614 | | - (hB : ∀ i, ContDiffOn ℝ ∞ (fun x => baseComponents c n x i) (HarmonicResidual.liftDomain V)) |
| 2615 | | - (ha : ∀ i, ContDiffOn ℝ ∞ (fun x => incrementComponents s n x i) (HarmonicResidual.liftDomain V)) |
| 2616 | | - (hp₀ : ContDiffOn ℝ ∞ p₀ (HarmonicResidual.liftDomain V)) |
| 2617 | | - (hp : ContDiffOn ℝ ∞ (s.totalPressureIncrement n) (HarmonicResidual.liftDomain V)) |
| 2618 | | - {t : ℝ} {q : Space} |
| 2619 | | - (hz : (t, q) ∈ (commonGraph Q h k).source (HarmonicResidual.liftDomain V)) |
| 2620 | | - (hbase : ∀ i, graphResidual (Q ^ h) ScaledGraph.radius (commonGraph Q h k).radial |
| 2621 | | - ScaledGraph.angular (commonGraph Q h k).axial (commonGraph Q h k).temporal |
| 2622 | | - (baseComponents c n) p₀ ((commonGraph Q h k).map (t, q)) i = |
| 2623 | | - LiftedMeanResidual.virtualDivergence c n ((commonGraph Q h k).map (t, q)) i + |
| 2624 | | - s.errors.base n ((commonGraph Q h k).map (t, q)) i) |
| 2625 | | - {u : VelocityField} {P : PressureField} |
| 2626 | | - (hu : ContDiffAt ℝ 2 u (t, CylindricalResidual.chart q)) |
| 2627 | | - (hP : DifferentiableAt ℝ P (t, CylindricalResidual.chart q)) |
| 2628 | | - (huRep : (fun z : SpaceTime => u (z.1, CylindricalResidual.chart z.2)) =ᶠ[𝓝 (t, q)] |
| 2629 | | - (fun z => CylindricalResidual.frame (z.2 1) ((commonGraph Q h k).velocity |
| 2630 | | - (fun y j => baseComponents c n y j + incrementComponents s n y j) z))) |
| 2631 | | - (hpRep : CylindricalResidual.pressurePullback P =ᶠ[𝓝 (t, q)] (commonGraph Q h k).pressure |
| 2632 | | - (fun y => p₀ y + s.totalPressureIncrement n y)) (i : Fin 3) : |
| 2633 | | - Q ^ (2 * CoordinateAlgebra.A h + 1 / 2) * |
| 2634 | | - CylindricalResidual.frame (-(q 1)) |
| 2635 | | - (navierStokesResidual u P t (CylindricalResidual.chart q)) i = |
| 2636 | | - (∑ l ∈ labels n, |
| 2637 | | - (HarmonicResidual.residualBlock c s (blocks l) (gaussian l) (aliasError l)).oscillation |
| 2638 | | - n ((commonGraph Q h k).map (t, q)) i) + |
| 2639 | | - s.meanGoodResidual c n ((commonGraph Q h k).map (t, q)).1 i + |
| 2640 | | - s.errors.total n ((commonGraph Q h k).map (t, q)) i := by |
| 2641 | | - have he := context_fullResidual_physical hQ h k n c s hop |
| 2642 | | - (HarmonicResidual.liftDomain_open hmean.isOpen) hR hB ha hp₀ hp hz hbase hu hP huRep hpRep i |
| 2643 | | - exact he.symm.trans (fullResidual_reconstructed_with_mean hrep hmean hregular hz.2 i) |
| 2644 | | - |
| 2645 | 870 | end PhysicalResidualDecomposition |
| 2646 | 871 | |
| 2647 | 872 | section SourceCoefficientCompatibility |
| 2648 | 873 | |
| 2649 | 874 | open CorrectionState HarmonicFields MeasureTheory |
| 2650 | 875 | |
| 2651 | | -theorem angularMean_const_mul (a : ℂ) (f : ℝ → ℂ) : |
| 2652 | | - angularMean (fun θ => a * f θ) = a * angularMean f := by |
| 2653 | | - simp only [angularMean, intervalIntegral.integral_const_mul] |
| 2654 | | - ring |
| 2655 | | - |
| 2656 | | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 2657 | | -/-- Equality of actual real block fields, together with the literal |
| 2658 | | -carrier transformation, determines the transformed source coefficients. |
| 2659 | | -Conjugacy is used explicitly to recover the full complex field. -/ |
| 2660 | | -theorem block_velocity_pullback_at (a b : HarmonicBlock D) (n m : ℕ) |
| 2661 | | - (φ : D → D) (scale : ℝ) (x : D) (i : Fin 3) (j : ℤ) |
| 2662 | | - (ha : ConjugateSymmetric (a.velocity n i)) (hb : ConjugateSymmetric (b.velocity m i)) |
| 2663 | | - (hkp : a.angularFrequency n = b.angularFrequency m) |
| 2664 | | - (hkn : a.angularFrequency n ≠ 0) |
| 2665 | | - (hphase : a.frequency n * a.phase n x = b.frequency m * b.phase m (φ x)) |
| 2666 | | - (hfield : ∀ θ : ℝ, a.oscillation n (x, θ) i = scale * b.oscillation m (φ x, θ) i) : |
| 2667 | | - a.velocity n i j x = (scale : ℂ) * b.velocity m i j (φ x) := by |
| 2668 | | - have hkb : b.angularFrequency m ≠ 0 := by rw [← hkp]; exact hkn |
| 2669 | | - have hf θ : field (a.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ) = |
| 2670 | | - (scale : ℂ) * field (b.velocity m i) (b.frequency m) (b.phase m) (b.angularFrequency m) (φ x, θ) := by |
| 2671 | | - rw [← field_real ha, ← field_real hb] |
| 2672 | | - change (a.oscillation n (x, θ) i : ℂ) = (scale : ℂ) * (b.oscillation m (φ x, θ) i : ℂ) |
| 2673 | | - rw [hfield] |
| 2674 | | - exact Complex.ofReal_mul _ _ |
| 2675 | | - have hcarrier θ : field (AddMonoidAlgebra.single (-j) (fun _ : D => (1 : ℂ))) |
| 2676 | | - (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ) = |
| 2677 | | - field (AddMonoidAlgebra.single (-j) (fun _ : D => (1 : ℂ))) |
| 2678 | | - (b.frequency m) (b.phase m) (b.angularFrequency m) (φ x, θ) := by |
| 2679 | | - simp only [field, evaluate_single, hphase, hkp] |
| 2680 | | - rw [← HarmonicResidual.extract_field (a.velocity n i) (a.frequency n) (a.phase n) hkn j x, |
| 2681 | | - ← HarmonicResidual.extract_field (b.velocity m i) (b.frequency m) (b.phase m) hkb j (φ x)] |
| 2682 | | - unfold HarmonicResidual.extract |
| 2683 | | - have he : (fun θ => field (a.velocity n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ) * |
| 2684 | | - field (AddMonoidAlgebra.single (-j) (fun _ : D => (1 : ℂ))) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)) = |
| 2685 | | - fun θ => (scale : ℂ) * |
| 2686 | | - (field (b.velocity m i) (b.frequency m) (b.phase m) (b.angularFrequency m) (φ x, θ) * |
| 2687 | | - field (AddMonoidAlgebra.single (-j) (fun _ : D => (1 : ℂ))) |
| 2688 | | - (b.frequency m) (b.phase m) (b.angularFrequency m) (φ x, θ)) := by |
| 2689 | | - funext θ |
| 2690 | | - rw [hf θ, hcarrier θ, mul_assoc] |
| 2691 | | - rw [he, angularMean_const_mul] |
| 2692 | | - |
| 2693 | 876 | end SourceCoefficientCompatibility |
| 2694 | 877 | |
| 2695 | 878 | section AssembledSignedTensor |
| @@ -2698,106 +881,12 @@ open CorrectionState |
| 2698 | 881 | |
| 2699 | 882 | variable {ι : Type} |
| 2700 | 883 | |
| 2701 | | -/-- Uniform label bounds and the proved slot overlap bound control the |
| 2702 | | -actual state covariance after adding every signed tangent and curl. -/ |
| 2703 | | -theorem assembledSigned_stateTensor_mem {s : StripData D} {P : ι → ℕ → D → ℝ} |
| 2704 | | - {α δ β η γ : ℝ} (f : LabelSumBounds.SignedFamily s P α δ β η) |
| 2705 | | - (hβη : β ≤ η) (hγd : γ ≤ δ + β) (hγc : γ ≤ α + η) (hγs : γ ≤ 2 * β) |
| 2706 | | - {d h : ℝ} {vr vt : TorusInverse.Plane} {sys : PartitionedCovariance.SlotSystem d h vr vt} |
| 2707 | | - (labels : ℕ → Finset ι) (label : ℕ → ι → SlotColoring.Label) |
| 2708 | | - (hinj : ∀ n, Set.InjOn (label n) (labels n : Set ι)) |
| 2709 | | - (hlevel : ∀ n l, l ∈ labels n → 1 ≤ (label n l).1) |
| 2710 | | - (χ : ℕ → D → LabelSumBounds.WindowPoint) (hχ : ∀ n, ContinuousOn (χ n) s.domain) |
| 2711 | | - (Y : ℕ → D → TorusInverse.Plane) |
| 2712 | | - (hp : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (f.primary l).oscillation)) |
| 2713 | | - (ho : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (f.old l).oscillation)) |
| 2714 | | - (ht : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (f.tangent l).oscillation)) |
| 2715 | | - (hc : LabelSumBounds.SupportedOscillations sys label χ Y s.domain (fun l => (f.curl l).oscillation)) |
| 2716 | | - (u : State D) (hu : u.oscillation = LabelSumBounds.fieldSum labels (fun l => (f.old l).oscillation)) |
| 2717 | | - (m : Triple D) (p : ScalarField D) (q : OscillatoryScalar D) (e : ExcludedErrors D) : |
| 2718 | | - let primary := LabelSumBounds.fieldSum labels (fun l => (f.primary l).oscillation) |
| 2719 | | - let tangent := LabelSumBounds.fieldSum labels (fun l => (f.tangent l).oscillation) |
| 2720 | | - let curl := LabelSumBounds.fieldSum labels (fun l => (f.curl l).oscillation) |
| 2721 | | - TensorClass s γ ((u.addIncrement m p (tangent + curl) q e).covariance - u.covariance - |
| 2722 | | - symmetricCovariance primary tangent) := by |
| 2723 | | - let primary := LabelSumBounds.fieldSum labels (fun l => (f.primary l).oscillation) |
| 2724 | | - let old := LabelSumBounds.fieldSum labels (fun l => (f.old l).oscillation) |
| 2725 | | - let tangent := LabelSumBounds.fieldSum labels (fun l => (f.tangent l).oscillation) |
| 2726 | | - let curl := LabelSumBounds.fieldSum labels (fun l => (f.curl l).oscillation) |
| 2727 | | - have hcont (a : ι → HarmonicBlock D) : |
| 2728 | | - AngularContinuous (LabelSumBounds.fieldSum labels (fun l => (a l).oscillation)) := |
| 2729 | | - LabelSumBounds.fieldSum_angularContinuous labels _ (fun l => LabelSumBounds.block_angularContinuous (a l)) |
| 2730 | | - have hucont : AngularContinuous u.oscillation := by rw [hu]; exact hcont f.old |
| 2731 | | - have he : (u.addIncrement m p (tangent + curl) q e).covariance - u.covariance - |
| 2732 | | - symmetricCovariance primary tangent = signedTensorRemainder primary old tangent curl := by |
| 2733 | | - rw [covariance_actual_update u m p (tangent + curl) q e hucont ((hcont f.tangent).add (hcont f.curl))] |
| 2734 | | - unfold signedTensorRemainder |
| 2735 | | - rw [hu] |
| 2736 | | - change u.covariance + covarianceIncrement old (tangent + curl) - u.covariance - _ = _ |
| 2737 | | - abel |
| 2738 | | - change TensorClass s γ ((u.addIncrement m p (tangent + curl) q e).covariance - u.covariance - |
| 2739 | | - symmetricCovariance primary tangent) |
| 2740 | | - rw [he] |
| 2741 | | - exact fun i j => f.remainder_sum_mem hβη hγd hγc hγs labels label hinj hlevel χ hχ Y hp ho ht hc i j |
| 2742 | | - |
| 2743 | 884 | end AssembledSignedTensor |
| 2744 | 885 | |
| 2745 | 886 | section WaveStageGain |
| 2746 | 887 | |
| 2747 | 888 | open CorrectionState |
| 2748 | 889 | |
| 2749 | | -/-- The only linear input is a bound on the literal old residual plus |
| 2750 | | -the literal linear increment after its Gaussian subtraction. All nonlinear |
| 2751 | | -terms of the actual new residual are derived by the harmonic calculus. -/ |
| 2752 | | -theorem waveStage_residual_mem {s : StripData D} {P : ℕ → D → ℝ} {κ α β H γ : ℝ} |
| 2753 | | - (c : Context D) (ho : OperatorBounds s c.operators κ) (hκ : κ ≤ 1 / 2) |
| 2754 | | - (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 2755 | | - (u v : State D) (hmean : v.mean = u.mean) |
| 2756 | | - (hm : IncrementBounds s H u.mean) |
| 2757 | | - (hbase : SmoothTriple s.domain c.base) |
| 2758 | | - (a b : HarmonicBlock D) {M N : ℕ} |
| 2759 | | - (ha : a.WaveBounds s P α) (hb : b.WaveBounds s P β) |
| 2760 | | - (ha0 : HarmonicWaveInteraction.ZeroMode a) (hb0 : HarmonicWaveInteraction.ZeroMode b) |
| 2761 | | - (hM : a.BandLimited M) (hN : b.BandLimited N) |
| 2762 | | - (hΦ : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 2763 | | - (hk : ∀ n, a.frequency n ≠ 0) (hkp : ∀ n, a.angularFrequency n ≠ 0) |
| 2764 | | - (hda : HarmonicWaveInteraction.ModeSolenoidal s c a) |
| 2765 | | - (hdb : HarmonicWaveInteraction.ModeSolenoidal s c (HarmonicWaveInteraction.withCarrier a b)) |
| 2766 | | - (hNormal : ∀ i, UnweightedClass s 0 |
| 2767 | | - (fun n x => HarmonicMeanInteraction.slowNormal c ho hR a.phase n x i)) |
| 2768 | | - (hFreq : BandBound s (-(1 / 2)) a.frequency) |
| 2769 | | - (hAng : BandBound s (-(1 / 2)) (fun n => (a.angularFrequency n : ℝ))) |
| 2770 | | - (hP0 : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 2771 | | - (hP1 : ∀ n x, x ∈ s.domain → P n x ≤ 1) |
| 2772 | | - (hpa : ∀ n, HarmonicResidual.SmoothCoefficients s.domain (a.pressure n)) |
| 2773 | | - (hpb : ∀ n, HarmonicResidual.SmoothCoefficients s.domain (b.pressure n)) |
| 2774 | | - (G g A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 2775 | | - (hA : ∀ n i, HarmonicFields.BandLimited (A₁ n i - A₀ n i) 0) |
| 2776 | | - (hlinear : ∀ i j, j ≠ 0 → WaveClass s P γ (fun n x => |
| 2777 | | - (HarmonicResidual.residualBlock c u a G A₀).velocity n i j x + |
| 2778 | | - (HarmonicWaveInteraction.linearGoodBlock c a b g).velocity n i j x)) |
| 2779 | | - (hγm : γ ≤ β + H - 1 / 2) (hγc : γ ≤ α + β - κ) (hγs : γ ≤ β + β - κ) : |
| 2780 | | - (HarmonicResidual.residualBlock c v (HarmonicWaveInteraction.addBlock a b) (G + g) A₁).WaveBounds |
| 2781 | | - s P γ := by |
| 2782 | | - have hnon := HarmonicWaveInteraction.interactionBlock_class c ho hκ hR hm ha hb ha0 hb0 hM hN |
| 2783 | | - hΦ hk hda hdb hNormal hFreq hAng hP0 hP1 |
| 2784 | | - have hca := block_waveBounds_all a ha ha0 hP0 |
| 2785 | | - have hcb := block_waveBounds_all b hb hb0 hP0 |
| 2786 | | - intro i j hj |
| 2787 | | - apply WaveInteractionBounds.class_congr |
| 2788 | | - ((hlinear i j hj).add ((hnon i j hj).mono_exponent (le_min hγm (le_min hγc hγs)))) |
| 2789 | | - intro n x hx |
| 2790 | | - have hr : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial s.domain := |
| 2791 | | - contDiffOn_const.add ((contDiffOn_const.mul (ho.radialProfile.smooth 0)).smul contDiffOn_const) |
| 2792 | | - have he := HarmonicWaveInteraction.residualBlock_wave_update_split s.isOpen_domain c u v hmean |
| 2793 | | - a b G g A₀ A₁ hA n hr |
| 2794 | | - contDiffOn_const (hΦ n) (hkp n) |
| 2795 | | - (fun l => (HarmonicMeanInteraction.tripleField_smooth hbase n l)) |
| 2796 | | - (fun l => (HarmonicMeanInteraction.tripleField_smooth hm.smooth n l)) |
| 2797 | | - (fun l k => (hca l k).smooth n) (fun l k => (hcb l k).smooth n) (hpa n) (hpb n) hx j i |
| 2798 | | - change _ = _ at he |
| 2799 | | - linear_combination -he |
| 2800 | | - |
| 2801 | 890 | end WaveStageGain |
| 2802 | 891 | |
| 2803 | 892 | section WaveMeanResidual |
| @@ -2830,114 +919,6 @@ theorem gaugeWaveStage_mean (g : GaugeData S) (c : Context (PressureStream.Lift |
| 2830 | 919 | (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) : |
| 2831 | 920 | (gaugeWaveStage g c u w q e).mean = u.mean := updated_zeroTriple u.mean |
| 2832 | 921 | |
| 2833 | | -theorem gaugeWaveStage_covariance (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2834 | | - (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| 2835 | | - (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) |
| 2836 | | - (hu : AngularContinuous u.oscillation) (hw : AngularContinuous w) : |
| 2837 | | - (gaugeWaveStage g c u w q e).covariance = u.covariance + covarianceIncrement u.oscillation w := |
| 2838 | | - covariance_add hu hw |
| 2839 | | - |
| 2840 | | -theorem gaugeWaveStage_theta_change {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 2841 | | - (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2842 | | - (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| 2843 | | - (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) |
| 2844 | | - (hu : AngularContinuous u.oscillation) (hw : AngularContinuous w) |
| 2845 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 2846 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 2847 | | - (hX : ∀ i j, SmoothOn U (covarianceIncrement u.oscillation w i j)) : |
| 2848 | | - Agree U ((gaugeWaveStage g c u w q e).thetaResidual c - u.thetaResidual c) |
| 2849 | | - (thetaCovarianceChange c.operators (covarianceIncrement u.oscillation w)) := by |
| 2850 | | - change Agree U (MeanIncrementBounds.thetaResidual c.operators c.base |
| 2851 | | - (gaugeWaveStage g c u w q e).mean (gaugeWaveStage g c u w q e).covariance c.virtualTheta - _ ) _ |
| 2852 | | - rw [gaugeWaveStage_mean, gaugeWaveStage_covariance g c u w q e hu hw] |
| 2853 | | - exact thetaResidual_covariance_change hU c.operators hb hm u.covariance |
| 2854 | | - (covarianceIncrement u.oscillation w) hW hX c.virtualTheta |
| 2855 | | - |
| 2856 | | -theorem gaugeWaveStage_gr_change {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 2857 | | - (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2858 | | - (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| 2859 | | - (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) |
| 2860 | | - (hu : AngularContinuous u.oscillation) (hw : AngularContinuous w) |
| 2861 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 2862 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 2863 | | - (hX : ∀ i j, SmoothOn U (covarianceIncrement u.oscillation w i j)) : |
| 2864 | | - Agree U ((gaugeWaveStage g c u w q e).gr c - u.gr c) |
| 2865 | | - (radialCovarianceChange c.operators (covarianceIncrement u.oscillation w)) := by |
| 2866 | | - change Agree U (MeanIncrementBounds.gr c.operators c.base |
| 2867 | | - (gaugeWaveStage g c u w q e).mean (gaugeWaveStage g c u w q e).covariance - _) _ |
| 2868 | | - rw [gaugeWaveStage_mean, gaugeWaveStage_covariance g c u w q e hu hw] |
| 2869 | | - exact gr_covariance_change hU c.operators hb hm u.covariance |
| 2870 | | - (covarianceIncrement u.oscillation w) hW hX |
| 2871 | | - |
| 2872 | | -theorem axialResidual_pressure_change {U : Set D} (hU : IsOpen U) (o : Operators D) |
| 2873 | | - {b m : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) |
| 2874 | | - (W : Tensor D) (hW : ∀ i j, SmoothOn U (W i j)) |
| 2875 | | - (p q T : ScalarField D) (hp : SmoothOn U p) (hq : SmoothOn U q) : |
| 2876 | | - Agree U (MeanIncrementBounds.axialResidual o b m W (p + q) T - |
| 2877 | | - MeanIncrementBounds.axialResidual o b m W p T) (o.dz q) := by |
| 2878 | | - have he : axialAxial b m + W 2 2 + (p + q) = (axialAxial b m + W 2 2 + p) + q := by abel |
| 2879 | | - intro n x hx |
| 2880 | | - simp only [MeanIncrementBounds.axialResidual, Pi.sub_apply, Pi.add_apply] |
| 2881 | | - rw [he, o.dz_add hU (((hb.axialAxial hm).add (hW 2 2)).add hp) hq n hx] |
| 2882 | | - simp only [Pi.add_apply] |
| 2883 | | - ring |
| 2884 | | - |
| 2885 | | -theorem gaugeWaveStage_axial_change {U : Set (PressureStream.Lift S)} (hU : IsOpen U) |
| 2886 | | - (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2887 | | - (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| 2888 | | - (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) |
| 2889 | | - (hu : AngularContinuous u.oscillation) (hw : AngularContinuous w) |
| 2890 | | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) |
| 2891 | | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) |
| 2892 | | - (hX : ∀ i j, SmoothOn U (covarianceIncrement u.oscillation w i j)) |
| 2893 | | - (hp : SmoothOn U u.pressure) (hδp : SmoothOn U (gaugeWavePressureChange g c u w q e)) : |
| 2894 | | - Agree U ((gaugeWaveStage g c u w q e).axialResidual c - u.axialResidual c) |
| 2895 | | - (axialCovarianceChange c.operators (covarianceIncrement u.oscillation w) + |
| 2896 | | - c.operators.dz (gaugeWavePressureChange g c u w q e)) := by |
| 2897 | | - have hpressure : (gaugeWaveStage g c u w q e).pressure = |
| 2898 | | - u.pressure + gaugeWavePressureChange g c u w q e := by unfold gaugeWavePressureChange; abel |
| 2899 | | - have hc := axialResidual_covariance_change hU c.operators hb hm u.covariance |
| 2900 | | - (covarianceIncrement u.oscillation w) hW hX |
| 2901 | | - (u.pressure + gaugeWavePressureChange g c u w q e) c.virtualAxial (hp.add hδp) |
| 2902 | | - have hd := axialResidual_pressure_change hU c.operators hb hm u.covariance hW |
| 2903 | | - u.pressure (gaugeWavePressureChange g c u w q e) c.virtualAxial hp hδp |
| 2904 | | - intro n x hx |
| 2905 | | - have hc' := hc n hx |
| 2906 | | - have hd' := hd n hx |
| 2907 | | - change MeanIncrementBounds.axialResidual c.operators c.base (gaugeWaveStage g c u w q e).mean |
| 2908 | | - (gaugeWaveStage g c u w q e).covariance (gaugeWaveStage g c u w q e).pressure c.virtualAxial n x - _ = _ |
| 2909 | | - rw [gaugeWaveStage_mean, gaugeWaveStage_covariance g c u w q e hu hw, hpressure] |
| 2910 | | - simp only [Pi.add_apply, Pi.sub_apply] at hc' hd' ⊢ |
| 2911 | | - change _ - MeanIncrementBounds.axialResidual c.operators c.base u.mean u.covariance |
| 2912 | | - u.pressure c.virtualAxial n x = _ |
| 2913 | | - linarith |
| 2914 | | - |
| 2915 | | -theorem gaugeWaveStage_mean_changes_mem {s : StripData (PressureStream.Lift S)} {α κ : ℝ} |
| 2916 | | - (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2917 | | - (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| 2918 | | - (q : OscillatoryScalar (PressureStream.Lift S)) (e : ExcludedErrors (PressureStream.Lift S)) |
| 2919 | | - (hu : AngularContinuous u.oscillation) (hw : AngularContinuous w) |
| 2920 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 2921 | | - (hm : CorrectionState.CumulativeBounds s u) |
| 2922 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 2923 | | - (hX : TensorClass s α (covarianceIncrement u.oscillation w)) |
| 2924 | | - (hδp : MeanClass s (α - κ) (gaugeWavePressureChange g c u w q e)) : |
| 2925 | | - MeanClass s (α - κ) ((gaugeWaveStage g c u w q e).thetaResidual c - u.thetaResidual c) ∧ |
| 2926 | | - MeanClass s (α - κ) ((gaugeWaveStage g c u w q e).axialResidual c - u.axialResidual c) ∧ |
| 2927 | | - MeanClass s (α - κ) ((gaugeWaveStage g c u w q e).gr c - u.gr c) := by |
| 2928 | | - have hXs := fun i j => (hX i j).smooth |
| 2929 | | - refine ⟨?_, ?_, ?_⟩ |
| 2930 | | - · apply class_congr (thetaCovarianceChange_mem ho hX) |
| 2931 | | - exact gaugeWaveStage_theta_change s.isOpen_domain g c u w q e hu hw |
| 2932 | | - hb.smooth hm.velocity.smooth hW hXs |
| 2933 | | - · apply class_congr ((axialCovarianceChange_mem ho hX).add |
| 2934 | | - ((ho.dz hδp).mono_exponent (by linarith))) |
| 2935 | | - exact gaugeWaveStage_axial_change s.isOpen_domain g c u w q e hu hw |
| 2936 | | - hb.smooth hm.velocity.smooth hW hXs hm.pressure.smooth hδp.smooth |
| 2937 | | - · apply class_congr (radialCovarianceChange_mem ho hX) |
| 2938 | | - exact gaugeWaveStage_gr_change s.isOpen_domain g c u w q e hu hw |
| 2939 | | - hb.smooth hm.velocity.smooth hW hXs |
| 2940 | | - |
| 2941 | 922 | theorem gaugeWaveStage_cumulative {s : StripData (PressureStream.Lift S)} {α : ℝ} |
| 2942 | 923 | (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 2943 | 924 | (u : State (PressureStream.Lift S)) (w : Oscillation (PressureStream.Lift S)) |
| @@ -2993,40 +974,11 @@ noncomputable def SignedParameters.curlBlock (p : SignedParameters D) (s : Strip |
| 2993 | 974 | (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := |
| 2994 | 975 | subBlock (p.exactBlock s request) (p.tangentBlock s request) |
| 2995 | 976 | |
| 2996 | | -theorem SignedParameters.exactBlock_split (p : SignedParameters D) (s : StripData D) |
| 2997 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 2998 | | - (p.exactBlock s request).oscillation = |
| 2999 | | - (p.tangentBlock s request).oscillation + (p.curlBlock s request).oscillation := |
| 3000 | | - correctedBlock_split (p.coefficients s request) (HarmonicWaveInteraction.productStrip s) |
| 3001 | | - p.directions p.cutoff p.angularFrequency |
| 3002 | | - |
| 3003 | 977 | theorem sectionStrip_productStrip (s : StripData D) : |
| 3004 | 978 | SignedWaveUpdate.sectionStrip (HarmonicWaveInteraction.productStrip s) = s := by |
| 3005 | 979 | cases s |
| 3006 | 980 | rfl |
| 3007 | 981 | |
| 3008 | | -theorem SignedParameters.exactBlock_band (p : SignedParameters D) (s : StripData D) |
| 3009 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.exactBlock s request).BandLimited 1 := |
| 3010 | | - SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ |
| 3011 | | - |
| 3012 | | -theorem SignedParameters.tangentBlock_band (p : SignedParameters D) (s : StripData D) |
| 3013 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.tangentBlock s request).BandLimited 1 := |
| 3014 | | - SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ |
| 3015 | | - |
| 3016 | | -theorem SignedParameters.curlBlock_band (p : SignedParameters D) (s : StripData D) |
| 3017 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : (p.curlBlock s request).BandLimited 1 := |
| 3018 | | - subBlock_band (p.exactBlock_band s request) (p.tangentBlock_band s request) |
| 3019 | | - |
| 3020 | | -theorem SignedParameters.exactBlock_zero (p : SignedParameters D) (s : StripData D) |
| 3021 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 3022 | | - ∀ n i, (p.exactBlock s request).velocity n i 0 = 0 := |
| 3023 | | - (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).1 |
| 3024 | | - |
| 3025 | | -theorem SignedParameters.tangentBlock_zero (p : SignedParameters D) (s : StripData D) |
| 3026 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 3027 | | - ∀ n i, (p.tangentBlock s request).velocity n i 0 = 0 := |
| 3028 | | - (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).1 |
| 3029 | | - |
| 3030 | 982 | /-- Every output bound here is derived from the same explicit signed |
| 3031 | 983 | quotient and curl, on the exact product strip used by the current state. -/ |
| 3032 | 984 | theorem SignedParameters.block_bounds (p : SignedParameters D) (s : StripData D) |
| @@ -3104,77 +1056,6 @@ section ActualSignedStage |
| 3104 | 1056 | |
| 3105 | 1057 | open CorrectionState |
| 3106 | 1058 | |
| 3107 | | -noncomputable def stateSignedBlock (p : SignedParameters LocalSignedRequest.Point) |
| 3108 | | - (s : StripData LocalSignedRequest.Point) (patch : SignedStressPrimitive.Patch) (coord : ℝ) |
| 3109 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) : |
| 3110 | | - HarmonicBlock LocalSignedRequest.Point := |
| 3111 | | - p.exactBlock s (LocalSignedRequest.fullRequest s patch coord c u) |
| 3112 | | - |
| 3113 | | -noncomputable def stateSignedTangent (p : SignedParameters LocalSignedRequest.Point) |
| 3114 | | - (s : StripData LocalSignedRequest.Point) (patch : SignedStressPrimitive.Patch) (coord : ℝ) |
| 3115 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) : |
| 3116 | | - HarmonicBlock LocalSignedRequest.Point := |
| 3117 | | - p.tangentBlock s (LocalSignedRequest.fullRequest s patch coord c u) |
| 3118 | | - |
| 3119 | | -noncomputable def stateSignedCurl (p : SignedParameters LocalSignedRequest.Point) |
| 3120 | | - (s : StripData LocalSignedRequest.Point) (patch : SignedStressPrimitive.Patch) (coord : ℝ) |
| 3121 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) : |
| 3122 | | - HarmonicBlock LocalSignedRequest.Point := |
| 3123 | | - p.curlBlock s (LocalSignedRequest.fullRequest s patch coord c u) |
| 3124 | | - |
| 3125 | | -noncomputable def stateSignedGaussian (p : SignedParameters LocalSignedRequest.Point) |
| 3126 | | - (s : StripData LocalSignedRequest.Point) (patch : SignedStressPrimitive.Patch) (coord : ℝ) |
| 3127 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) : |
| 3128 | | - HarmonicBlock LocalSignedRequest.Point := |
| 3129 | | - SignedWaveUpdate.gaussianBlock (p.coefficients s (LocalSignedRequest.fullRequest s patch coord c u)) |
| 3130 | | - p.directions p.cutoff p.angularFrequency |
| 3131 | | - |
| 3132 | | -/-- Every signed block and Gaussian field is computed from the actual |
| 3133 | | -current residual. The pressure is then recomputed from the updated field. -/ |
| 3134 | | -noncomputable def signedWaveStage {ι : Type} |
| 3135 | | - (g : VariableGaugeMean.GaugeData PressureStream.Plane) |
| 3136 | | - (parameters : ι → SignedParameters LocalSignedRequest.Point) (labels : ℕ → Finset ι) |
| 3137 | | - (s : StripData LocalSignedRequest.Point) (patch : SignedStressPrimitive.Patch) (coord : ℝ) |
| 3138 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) : State LocalSignedRequest.Point := |
| 3139 | | - gaugeWaveStage g c u |
| 3140 | | - (LabelSumBounds.fieldSum labels (fun l => (stateSignedBlock (parameters l) s patch coord c u).oscillation)) |
| 3141 | | - (fun n x => ∑ l ∈ labels n, (stateSignedBlock (parameters l) s patch coord c u).oscillatoryPressure n x) |
| 3142 | | - ⟨0, LabelSumBounds.fieldSum labels |
| 3143 | | - (fun l => (stateSignedGaussian (parameters l) s patch coord c u).oscillation), 0⟩ |
| 3144 | | - |
| 3145 | | -/-- The requested tensor is not supplied as an arbitrary input: these |
| 3146 | | -classes start from the current state's two actual mean residuals. -/ |
| 3147 | | -theorem stateSignedBlock_bounds {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 3148 | | - (patch : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 3149 | | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 3150 | | - (s : StripData LocalSignedRequest.Point) |
| 3151 | | - (hs : s = LocalSignedRequest.movingStripData U patch.a patch.b cL cR patch.a_pos hcL hcR |
| 3152 | | - ε L hε hεone hL) |
| 3153 | | - (p : SignedParameters LocalSignedRequest.Point) |
| 3154 | | - {P₀ : ℕ → LocalSignedRequest.Point × ℝ → ℝ} {P : ℕ → LocalSignedRequest.Point → ℝ} |
| 3155 | | - {α₀ κ B : ℝ} (hcontrol : p.Control s P₀ P α₀ κ) |
| 3156 | | - (c : Context LocalSignedRequest.Point) (u : State LocalSignedRequest.Point) |
| 3157 | | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 3158 | | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 3159 | | - (hsθ : ∀ n, LocalSignedRequest.MovingSupport patch.a patch.b coord U.carrier (u.thetaResidual c n)) |
| 3160 | | - (hsz : ∀ n, LocalSignedRequest.MovingSupport patch.a patch.b coord U.carrier (u.axialResidual c n)) |
| 3161 | | - (hcθ : MeanClass s (B + 1 / 2 - κ) (u.thetaResidual c)) |
| 3162 | | - (hcz : MeanClass s (B + 1 / 2 - κ) (u.axialResidual c)) : |
| 3163 | | - (stateSignedTangent p s patch coord c u).WaveBounds s P (B - κ) ∧ |
| 3164 | | - (stateSignedBlock p s patch coord c u).WaveBounds s P (B - κ) ∧ |
| 3165 | | - (stateSignedBlock p s patch coord c u).PressureBounds s P (B + 1 / 2 - κ) ∧ |
| 3166 | | - (stateSignedCurl p s patch coord c u).WaveBounds s P (B + 1 / 2 - 2 * κ) := by |
| 3167 | | - have hnorm : ∀ i, MeanClass s ((B + 1 / 2 - κ) - 1) |
| 3168 | | - (fun n x => LocalSignedRequest.normalizedRequest s patch coord c u n x i) := by |
| 3169 | | - subst s |
| 3170 | | - exact LocalSignedRequest.normalizedRequest_class U patch hcL hcR ε L hε hεone hL |
| 3171 | | - c u (B + 1 / 2 - κ) hθ hz hsθ hsz hcθ hcz |
| 3172 | | - have hfull := LocalSignedRequest.fullRequest_class s patch coord c u hnorm |
| 3173 | | - apply hcontrol.bounds (LocalSignedRequest.fullRequest s patch coord c u) |
| 3174 | | - intro i |
| 3175 | | - convert! hfull i using 1 |
| 3176 | | - ring |
| 3177 | | - |
| 3178 | 1059 | end ActualSignedStage |
| 3179 | 1060 | |
| 3180 | 1061 | section LinearCoefficientBridge |
| @@ -3273,31 +1154,6 @@ theorem linearGoodBlock_cancel {U : Set D} (hU : IsOpen U) |
| 3273 | 1154 | HarmonicMeanInteraction.nonconstant_apply_of_ne _ hj, AddMonoidAlgebra.coeff_add, |
| 3274 | 1155 | Finsupp.add_apply, Pi.add_apply] using he |
| 3275 | 1156 | |
| 3276 | | -theorem linearGoodBlock_cancel_mem {s : StripData D} {P : ℕ → D → ℝ} {γ : ℝ} |
| 3277 | | - (c : Context D) (a b source good : HarmonicBlock D) |
| 3278 | | - (g : HarmonicResidual.BlockCoefficients D) |
| 3279 | | - (hr : ∀ n, ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial s.domain) |
| 3280 | | - (hz : ∀ n, ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).axial s.domain) |
| 3281 | | - (hB : SmoothTriple s.domain c.base) |
| 3282 | | - (hb : ∀ n i, HarmonicResidual.SmoothCoefficients s.domain (b.velocity n i)) |
| 3283 | | - (hp : ∀ n, HarmonicResidual.SmoothCoefficients s.domain (b.pressure n)) |
| 3284 | | - (hΦ : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) (hkp : ∀ n, a.angularFrequency n ≠ 0) |
| 3285 | | - (hs : ∀ n i, HarmonicFields.ConjugateSymmetric (source.velocity n i)) |
| 3286 | | - (hg : ∀ n i, HarmonicFields.ConjugateSymmetric (good.velocity n i)) |
| 3287 | | - (hgood : good.WaveBounds s P γ) |
| 3288 | | - (hcancel : ∀ n x, x ∈ s.domain → ∀ θ i, linearBlockField c a b n (x, θ) i + |
| 3289 | | - (HarmonicWaveInteraction.withCarrier a source).oscillation n (x, θ) i = |
| 3290 | | - (HarmonicWaveInteraction.withCarrier a good).oscillation n (x, θ) i + |
| 3291 | | - (HarmonicFields.field (g n i) (a.frequency n) (a.phase n) (a.angularFrequency n) (x, θ)).re) : |
| 3292 | | - ∀ i j, j ≠ 0 → WaveClass s P γ (fun n x => source.velocity n i j x + |
| 3293 | | - (HarmonicWaveInteraction.linearGoodBlock c a b g).velocity n i j x) := by |
| 3294 | | - intro i j hj |
| 3295 | | - apply WaveInteractionBounds.class_congr (hgood i j hj) |
| 3296 | | - intro n x hx |
| 3297 | | - exact (linearGoodBlock_cancel s.isOpen_domain c a b source good g n (hr n) (hz n) |
| 3298 | | - (fun l => HarmonicMeanInteraction.tripleField_smooth hB n l) (hb n) (hp n) |
| 3299 | | - (hΦ n) (hkp n) (hs n) (hg n) hx j hj i (fun θ => hcancel n x hx θ i)).symm |
| 3300 | | - |
| 3301 | 1157 | end LinearCoefficientBridge |
| 3302 | 1158 | |
| 3303 | 1159 | section ConstructedSignedLinear |
| @@ -3429,43 +1285,6 @@ theorem linearBlockField_eq_modeResidual {U : Set D} (hU : IsOpen U) |
| 3429 | 1285 | (by rw [hpress]; exact Complex.reCLM.contDiff.comp_contDiffOn hp') hx] |
| 3430 | 1286 | exact he.symm |
| 3431 | 1287 | |
| 3432 | | -theorem SignedParameters.Control.full_bounds {p : SignedParameters D} {s : StripData D} |
| 3433 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3434 | | - (h : p.Control s P₀ P α₀ κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) |
| 3435 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3436 | | - (fun n x => request n x i)) : |
| 3437 | | - let z := p.coefficients s request |
| 3438 | | - WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (B - κ) |
| 3439 | | - (z.corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff).amplitude ∧ |
| 3440 | | - WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (B + 1 / 2 - κ) |
| 3441 | | - (z.corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff).pressure ∧ |
| 3442 | | - WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (B + 1 / 2 - 2 * κ) |
| 3443 | | - (fun n x => (z.corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff).amplitude n x - |
| 3444 | | - (z.withCutoff p.cutoff).amplitude n x) ∧ |
| 3445 | | - WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (B + 1 / 2 - 4 * κ) |
| 3446 | | - (z.constructedGood (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff) := |
| 3447 | | - SignedWaveUpdate.signed_bounds h.baseBounds h.kappa_le_half h.covariance hR h.mask h.fundamental |
| 3448 | | - h.normal h.normalMotion h.action h.lower_pos h.norm_lower h.norm_upper h.inverseFrequency |
| 3449 | | - h.radius_eq h.cutoff p.column |
| 3450 | | - |
| 3451 | | -noncomputable def SignedParameters.goodBlock (p : SignedParameters D) (s : StripData D) |
| 3452 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := |
| 3453 | | - SignedWaveUpdate.coefficientBlock p.base.frequency (fun n x => p.base.phase n (x,0)) p.angularFrequency |
| 3454 | | - (fun n x => (p.coefficients s request).constructedGood |
| 3455 | | - (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff n (x,0)) 0 |
| 3456 | | - |
| 3457 | | -theorem SignedParameters.Control.good_bounds {p : SignedParameters D} {s : StripData D} |
| 3458 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3459 | | - (h : p.Control s P₀ P α₀ κ) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) |
| 3460 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3461 | | - (fun n x => request n x i)) : |
| 3462 | | - (p.goodBlock s request).WaveBounds s P (B + 1 / 2 - 4 * κ) := by |
| 3463 | | - have hg := SignedWaveUpdate.class_zeroSection (h.full_bounds request hR).2.2.2 |
| 3464 | | - rw [sectionStrip_productStrip] at hg |
| 3465 | | - exact (SignedWaveUpdate.coefficientBlock_classes p.base.frequency |
| 3466 | | - (fun n x => p.base.phase n (x,0)) p.angularFrequency hg |
| 3467 | | - (MemClass.zero (α := (0 : ℝ)) hg.weight_nonneg)).1 |
| 3468 | | - |
| 3469 | 1288 | /-- The ODE and phase data of the fixed primary column, before performing |
| 3470 | 1289 | any signed update. All equalities concern primitive inputs. -/ |
| 3471 | 1290 | structure SignedParameters.Dynamics (p : SignedParameters D) (s : StripData D) |
| @@ -3496,67 +1315,6 @@ structure SignedParameters.Dynamics (p : SignedParameters D) (s : StripData D) |
| 3496 | 1315 | (p.directions.radialField n) (fun y => CurlClassBounds.complexify (p.fundamental n y)) x |
| 3497 | 1316 | cutoff_smooth : ∀ n, ContDiff ℝ ∞ (p.cutoff n) |
| 3498 | 1317 | |
| 3499 | | -theorem SignedParameters.Dynamics.phase_eq {p : SignedParameters D} {s : StripData D} |
| 3500 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} (h : p.Dynamics s request) |
| 3501 | | - (n : ℕ) (x : D) (θ : ℝ) : |
| 3502 | | - p.base.frequency n * p.base.phase n (x,θ) = |
| 3503 | | - p.base.frequency n * p.base.phase n (x,0) + (p.angularFrequency n : ℝ) * θ := by |
| 3504 | | - rw [CopyAngularInvariance.affinePhase_eq_zeroSlice |
| 3505 | | - (Φ := p.base.phase n) (m := h.slope n) |
| 3506 | | - (by simpa only [h.angular_direction] using h.angular.phase n) x θ, |
| 3507 | | - mul_add, ← mul_assoc, h.angular_frequency] |
| 3508 | | - |
| 3509 | | -theorem SignedParameters.Dynamics.good_represents {p : SignedParameters D} {s : StripData D} |
| 3510 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} (h : p.Dynamics s request) : |
| 3511 | | - (p.goodBlock s request).oscillation = fun n x i => |
| 3512 | | - ((p.coefficients s request).constructedGood (HarmonicWaveInteraction.productStrip s) |
| 3513 | | - p.directions p.cutoff n x i * HarmonicCalculus.carrier (p.base.frequency n) (p.base.phase n) x).re := by |
| 3514 | | - have hi (n : ℕ) : CopyAngularInvariance.Invariant p.directions.angular |
| 3515 | | - ((p.coefficients s request).constructedGood (HarmonicWaveInteraction.productStrip s) |
| 3516 | | - p.directions p.cutoff n) := |
| 3517 | | - ParticularWaveAssembly.constructedGood_invariant (a := p.coefficients s request) |
| 3518 | | - p.cutoff h.angular.radius h.angular.radial_base h.angular.frequency_base h.angular.axial_base |
| 3519 | | - h.angular.radialField (fun _ => CopyAngularInvariance.Invariant.const _) |
| 3520 | | - (fun n => ⟨h.slope n, h.angular.phase n⟩) |
| 3521 | | - (h.angular.amplitude p.column) (h.angular.pressure p.column) h.angular.cutoff n |
| 3522 | | - let z : LinearWaveBounds.WaveCoefficients (D × ℝ) := |
| 3523 | | - {p.base with amplitude := ((p.coefficients s request).constructedGood |
| 3524 | | - (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff), pressure := 0} |
| 3525 | | - have he := (SignedWaveUpdate.blockOfCoefficients_represents z p.angularFrequency |
| 3526 | | - (fun n x θ => CopyAngularInvariance.invariant_eq_zeroSlice |
| 3527 | | - (by simpa only [h.angular_direction] using hi n) x θ) |
| 3528 | | - (fun _ _ _ => rfl) h.phase_eq).1 |
| 3529 | | - exact he |
| 3530 | | - |
| 3531 | | -theorem SignedParameters.Dynamics.exact_represents {p : SignedParameters D} {s : StripData D} |
| 3532 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} (h : p.Dynamics s request) : |
| 3533 | | - let z := (p.coefficients s request).corrected (HarmonicWaveInteraction.productStrip s) |
| 3534 | | - p.directions p.cutoff |
| 3535 | | - (p.exactBlock s request).oscillation = |
| 3536 | | - (fun n x i => (HarmonicCalculus.vectorMode (p.base.frequency n) (p.base.phase n) (z.amplitude n) x i).re) ∧ |
| 3537 | | - (p.exactBlock s request).oscillatoryPressure = |
| 3538 | | - (fun n x => (HarmonicCalculus.mode (p.base.frequency n) (p.base.phase n) (z.pressure n) x).re) := |
| 3539 | | - SignedWaveUpdate.signedBlock_represents h.angular h.angular_direction p.angularFrequency |
| 3540 | | - h.angular_frequency p.column |
| 3541 | | - |
| 3542 | | -theorem SignedParameters.Dynamics.linear_identity {p : SignedParameters D} {s : StripData D} |
| 3543 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3544 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3545 | | - (h : p.Dynamics s request) (hc : p.Control s P₀ P α₀ κ) |
| 3546 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3547 | | - (fun n x => request n x i)) : |
| 3548 | | - let z := p.coefficients s request |
| 3549 | | - ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → |
| 3550 | | - (z.corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff).harmonicResidual |
| 3551 | | - (HarmonicWaveInteraction.productStrip s) p.directions n x = |
| 3552 | | - (fun i => (z.constructedGood (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff n x i + |
| 3553 | | - LinearWaveBounds.excludedSlotError p.directions p.cutoff z.amplitude 0 n x i) * |
| 3554 | | - HarmonicCalculus.carrier (p.base.frequency n) (p.base.phase n) x) := |
| 3555 | | - SignedWaveUpdate.signed_linear_identity hc.baseBounds hc.kappa_le_half hc.covariance hR |
| 3556 | | - hc.mask hc.fundamental hc.normal hc.normalMotion hc.action hc.lower_pos hc.norm_lower hc.norm_upper |
| 3557 | | - hc.inverseFrequency hc.radius_eq hc.cutoff h.angular h.geometry h.matrix_frozen h.target_frozen |
| 3558 | | - h.request_frozen h.mask_frozen h.frequency_nonzero h.ode h.action_eq p.column |
| 3559 | | - |
| 3560 | 1318 | theorem productStrip_domain (s : StripData D) : |
| 3561 | 1319 | (HarmonicWaveInteraction.productStrip s).domain = HarmonicResidual.liftDomain s.domain := by |
| 3562 | 1320 | ext x |
| @@ -3575,135 +1333,9 @@ theorem withCarrier_of_same {a b : HarmonicBlock D} (h : SameCarrier a b) : |
| 3575 | 1333 | subst bkp |
| 3576 | 1334 | rfl |
| 3577 | 1335 | |
| 3578 | | -theorem SignedParameters.frame_corrected (p : SignedParameters D) (s : StripData D) |
| 3579 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) {c : Context D} |
| 3580 | | - (h : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) : |
| 3581 | | - WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions |
| 3582 | | - ((p.coefficients s request).corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff) := |
| 3583 | | - ⟨h.epsilon, h.radius, h.radial, h.angular, h.axial, h.time, h.radialBase, h.angularBase, h.axialBase⟩ |
| 3584 | | - |
| 3585 | | -noncomputable def SignedParameters.gaussianBlock (p : SignedParameters D) (s : StripData D) |
| 3586 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := |
| 3587 | | - SignedWaveUpdate.gaussianBlock (p.coefficients s request) p.directions p.cutoff p.angularFrequency |
| 3588 | | - |
| 3589 | | -theorem SignedParameters.exactBlock_pressure_zero (p : SignedParameters D) (s : StripData D) |
| 3590 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 3591 | | - ∀ n, (p.exactBlock s request).pressure n 0 = 0 := |
| 3592 | | - (SignedWaveUpdate.coefficientBlock_zero_coefficient _ _ _ _ _).2 |
| 3593 | | - |
| 3594 | | -theorem SignedParameters.Dynamics.gaussian_represents {p : SignedParameters D} {s : StripData D} |
| 3595 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} (h : p.Dynamics s request) : |
| 3596 | | - (p.gaussianBlock s request).oscillation = fun n x i => |
| 3597 | | - (LinearWaveBounds.excludedSlotError p.directions p.cutoff (p.coefficients s request).amplitude 0 n x i * |
| 3598 | | - HarmonicCalculus.carrier (p.base.frequency n) (p.base.phase n) x).re := |
| 3599 | | - SignedWaveUpdate.gaussianBlock_represents h.angular h.angular_direction h.cutoff_smooth |
| 3600 | | - p.angularFrequency h.angular_frequency p.column |
| 3601 | | - |
| 3602 | | -/-- The actual signed field, with the literal `Context` operators, has the |
| 3603 | | -computed good residual plus its computed Gaussian error. -/ |
| 3604 | | -theorem SignedParameters.Dynamics.context_linear_identity |
| 3605 | | - {p : SignedParameters D} {s : StripData D} |
| 3606 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3607 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3608 | | - (h : p.Dynamics s request) (hc : p.Control s P₀ P α₀ κ) |
| 3609 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3610 | | - (fun n x => request n x i)) |
| 3611 | | - (c : Context D) (hB : SmoothTriple s.domain c.base) |
| 3612 | | - (hmatch : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) |
| 3613 | | - (a : HarmonicBlock D) (hcarrier : SameCarrier a (p.exactBlock s request)) |
| 3614 | | - (n : ℕ) (x : D × ℝ) (hx : x.1 ∈ s.domain) : |
| 3615 | | - linearBlockField c a (p.exactBlock s request) n x = |
| 3616 | | - (p.goodBlock s request).oscillation n x + (p.gaussianBlock s request).oscillation n x := by |
| 3617 | | - let z := (p.coefficients s request).corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff |
| 3618 | | - have hb := hc.full_bounds request hR |
| 3619 | | - have hr := (h.geometry n).radial_smooth |
| 3620 | | - have hz := (h.geometry n).axial_smooth |
| 3621 | | - rw [productStrip_domain, hmatch.radial] at hr |
| 3622 | | - rw [productStrip_domain, hmatch.axial] at hz |
| 3623 | | - have hp := h.angular.phase_smooth n |
| 3624 | | - rw [productStrip_domain] at hp |
| 3625 | | - have hv (i : Fin 3) : ContDiffOn ℝ ∞ (fun y => z.amplitude n y i) |
| 3626 | | - (HarmonicResidual.liftDomain s.domain) := by |
| 3627 | | - simpa only [productStrip_domain] using (CurlClassBounds.class_component hb.1 i).smooth n |
| 3628 | | - have hpressure : ContDiffOn ℝ ∞ (z.pressure n) (HarmonicResidual.liftDomain s.domain) := by |
| 3629 | | - simpa only [productStrip_domain] using hb.2.1.smooth n |
| 3630 | | - have hvrep : (HarmonicWaveInteraction.withCarrier a (p.exactBlock s request)).oscillation n = |
| 3631 | | - fun y i => (HarmonicCalculus.vectorMode (z.frequency n) (z.phase n) (z.amplitude n) y i).re := by |
| 3632 | | - rw [withCarrier_of_same hcarrier] |
| 3633 | | - exact congrFun h.exact_represents.1 n |
| 3634 | | - have hprep : (HarmonicWaveInteraction.withCarrier a (p.exactBlock s request)).oscillatoryPressure n = |
| 3635 | | - fun y => (HarmonicCalculus.mode (z.frequency n) (z.phase n) (z.pressure n) y).re := by |
| 3636 | | - rw [withCarrier_of_same hcarrier] |
| 3637 | | - exact congrFun h.exact_represents.2 n |
| 3638 | | - rw [linearBlockField_eq_modeResidual s.isOpen_domain c a (p.exactBlock s request) |
| 3639 | | - (HarmonicWaveInteraction.productStrip s) p.directions z (p.frame_corrected s request hmatch) |
| 3640 | | - n hB hr hz hp hv hpressure hvrep hprep ⟨hx, trivial⟩] |
| 3641 | | - rw [h.good_represents, h.gaussian_represents] |
| 3642 | | - funext i |
| 3643 | | - have he := congrArg Complex.re (congrFun (h.linear_identity hc hR n x hx) i) |
| 3644 | | - simpa only [add_mul, Complex.add_re, Pi.add_apply] using he |
| 3645 | | - |
| 3646 | | -/-- The literal harmonic linear remainder has the gain proved for the |
| 3647 | | -constructed signed coefficient. No output residual class is an input. -/ |
| 3648 | | -theorem SignedParameters.Dynamics.linearGood_bounds |
| 3649 | | - {p : SignedParameters D} {s : StripData D} |
| 3650 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3651 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3652 | | - (h : p.Dynamics s request) (hc : p.Control s P₀ P α₀ κ) |
| 3653 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3654 | | - (fun n x => request n x i)) |
| 3655 | | - (c : Context D) (hB : SmoothTriple s.domain c.base) |
| 3656 | | - (hmatch : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) |
| 3657 | | - (a : HarmonicBlock D) (hcarrier : SameCarrier a (p.exactBlock s request)) : |
| 3658 | | - (HarmonicWaveInteraction.linearGoodBlock c a (p.exactBlock s request) |
| 3659 | | - (p.gaussianBlock s request).velocity).WaveBounds s P (B + 1 / 2 - 4 * κ) := by |
| 3660 | | - let zero : HarmonicBlock D := ErrorHarmonics.zeroBlock a.frequency a.phase a.angularFrequency 0 |
| 3661 | | - have hbounds := hc.bounds request hR |
| 3662 | | - have hbs := HarmonicWaveInteraction.waveBounds_smooth hbounds.2.1 (p.exactBlock_zero s request) |
| 3663 | | - have hps (n : ℕ) : HarmonicResidual.SmoothCoefficients s.domain ((p.exactBlock s request).pressure n) := by |
| 3664 | | - intro j |
| 3665 | | - by_cases hj : j = 0 |
| 3666 | | - · subst j |
| 3667 | | - rw [p.exactBlock_pressure_zero s request n] |
| 3668 | | - exact contDiffOn_const |
| 3669 | | - exact (hbounds.2.2.1 j hj).smooth n |
| 3670 | | - have hphase (n : ℕ) : ContDiffOn ℝ ∞ (a.phase n) s.domain := by |
| 3671 | | - rw [← hcarrier.phase] |
| 3672 | | - exact (h.angular.phase_smooth n).comp (SignedWaveUpdate.zeroSection (D := D)).contDiff.contDiffOn |
| 3673 | | - (fun x hx => hx) |
| 3674 | | - have hkp (n : ℕ) : a.angularFrequency n ≠ 0 := by |
| 3675 | | - rw [← hcarrier.angular] |
| 3676 | | - exact h.angular_nonzero n |
| 3677 | | - have hrad (n : ℕ) : ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame c n).radial s.domain := by |
| 3678 | | - have he := (h.geometry n).radial_smooth |
| 3679 | | - rw [hmatch.radial] at he |
| 3680 | | - have hh := (contDiff_fst.comp_contDiffOn he).comp |
| 3681 | | - (SignedWaveUpdate.zeroSection (D := D)).contDiff.contDiffOn (fun x hx => hx) |
| 3682 | | - exact hh |
| 3683 | | - have hgcarrier : SameCarrier a (p.goodBlock s request) := |
| 3684 | | - ⟨hcarrier.frequency, hcarrier.phase, hcarrier.angular⟩ |
| 3685 | | - have hecarrier : SameCarrier a (p.gaussianBlock s request) := |
| 3686 | | - ⟨hcarrier.frequency, hcarrier.phase, hcarrier.angular⟩ |
| 3687 | | - have hcancel := linearGoodBlock_cancel_mem c a (p.exactBlock s request) zero |
| 3688 | | - (p.goodBlock s request) (p.gaussianBlock s request).velocity hrad |
| 3689 | | - (fun _ => contDiffOn_const) hB hbs hps hphase hkp |
| 3690 | | - (fun n i => ErrorHarmonics.zeroBlock_symmetric _ _ _ _ n i) |
| 3691 | | - (SignedWaveUpdate.coefficientBlock_symmetric _ _ _ _ _).1 |
| 3692 | | - (hc.good_bounds request hR) ?_ |
| 3693 | | - · intro i j hj |
| 3694 | | - simpa [zero, ErrorHarmonics.zeroBlock, HarmonicFields.constantCoefficient, |
| 3695 | | - Finsupp.single_apply, hj, Ne.symm hj] using hcancel i j hj |
| 3696 | | - · intro n x hx θ i |
| 3697 | | - have he := congrFun (h.context_linear_identity hc hR c hB hmatch a hcarrier n (x,θ) hx) i |
| 3698 | | - rw [withCarrier_of_same hgcarrier] |
| 3699 | | - have heval : (HarmonicFields.field ((p.gaussianBlock s request).velocity n i) |
| 3700 | | - (a.frequency n) (a.phase n) (a.angularFrequency n) (x,θ)).re = |
| 3701 | | - (p.gaussianBlock s request).oscillation n (x,θ) i := by |
| 3702 | | - simp only [HarmonicBlock.oscillation, hecarrier.frequency, hecarrier.phase, hecarrier.angular] |
| 3703 | | - rw [heval] |
| 3704 | | - simpa only [zero, HarmonicWaveInteraction.withCarrier, ErrorHarmonics.zeroBlock, |
| 3705 | | - HarmonicBlock.oscillation, HarmonicResidual.field_constant, Pi.zero_apply, Complex.ofReal_zero, |
| 3706 | | - Complex.zero_re, Pi.add_apply, add_zero] using he |
| 1336 | +noncomputable def SignedParameters.gaussianBlock (p : SignedParameters D) (s : StripData D) |
| 1337 | + (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : HarmonicBlock D := |
| 1338 | + SignedWaveUpdate.gaussianBlock (p.coefficients s request) p.directions p.cutoff p.angularFrequency |
| 3707 | 1339 | |
| 3708 | 1340 | end ConstructedSignedLinear |
| 3709 | 1341 | |
| @@ -3725,95 +1357,6 @@ structure SignedParameters.GaussianControl (p : SignedParameters D) (s : StripDa |
| 3725 | 1357 | envelope : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → |
| 3726 | 1358 | P n x.1 ≤ Real.exp (-rate * (slot.coordinate n x - 1 / 2) ^ 2 * slot.length n) |
| 3727 | 1359 | |
| 3728 | | -theorem SignedParameters.GaussianControl.coefficient_flat |
| 3729 | | - {p : SignedParameters D} {s : StripData D} |
| 3730 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3731 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3732 | | - (h : p.GaussianControl s P) (hc : p.Control s P₀ P α₀ κ) |
| 3733 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3734 | | - (fun n x => request n x i)) (N : ℝ) : |
| 3735 | | - UnweightedClass (HarmonicWaveInteraction.productStrip s) N |
| 3736 | | - (LinearWaveBounds.excludedSlotError p.directions p.cutoff (p.coefficients s request).amplitude 0) := by |
| 3737 | | - have hi := SignedWaveUpdate.coefficients_inputBounds hc.baseBounds hc.covariance hR hc.mask hc.fundamental |
| 3738 | | - hc.normal hc.normalMotion hc.action hc.lower_pos hc.norm_lower hc.norm_upper hc.inverseFrequency p.column |
| 3739 | | - have ha := LinearWaveBounds.component_classes hi.amplitude |
| 3740 | | - rw [h.cutoff] |
| 3741 | | - exact LinearWaveBounds.excludedSlotError_all_gains h.slot p.directions h.fast h.edges h.scales |
| 3742 | | - ha (MemClass.zero ha.weight_nonneg) h.rate_pos h.envelope N |
| 3743 | | - |
| 3744 | | -theorem SignedParameters.GaussianControl.block_flat |
| 3745 | | - {p : SignedParameters D} {s : StripData D} |
| 3746 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3747 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3748 | | - (h : p.GaussianControl s P) (hc : p.Control s P₀ P α₀ κ) |
| 3749 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3750 | | - (fun n x => request n x i)) (N : ℝ) (i : Fin 3) (j : ℤ) : |
| 3751 | | - UnweightedClass s N (fun n x => (p.gaussianBlock s request).velocity n i j x) := by |
| 3752 | | - have he := HarmonicWaveInteraction.class_slice (s := s) (w := fun _ _ => 1) |
| 3753 | | - (h.coefficient_flat hc hR N) |
| 3754 | | - exact SignedWaveUpdate.conjugatePair_class (CurlClassBounds.class_component he i) j |
| 3755 | | - |
| 3756 | | -theorem SignedParameters.Dynamics.full_divergence_zero |
| 3757 | | - {p : SignedParameters D} {s : StripData D} |
| 3758 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3759 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3760 | | - (h : p.Dynamics s request) (hc : p.Control s P₀ P α₀ κ) |
| 3761 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3762 | | - (fun n x => request n x i)) |
| 3763 | | - (ht : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → |
| 3764 | | - ⟪p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x, p.fundamental n x⟫_ℝ = 0) |
| 3765 | | - (c : Context D) |
| 3766 | | - (hmatch : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) |
| 3767 | | - (n : ℕ) (x : D × ℝ) (hx : x.1 ∈ s.domain) : |
| 3768 | | - HarmonicCalculus.cylindricalDivergence (fun q => c.operators.radius q.1) |
| 3769 | | - (radialDirection c n) angularDirection (axialDirection c n) |
| 3770 | | - (fun q i => ((p.exactBlock s request).oscillation n q i : ℂ)) x = 0 := by |
| 3771 | | - let z := (p.coefficients s request).corrected (HarmonicWaveInteraction.productStrip s) p.directions p.cutoff |
| 3772 | | - have hb := hc.full_bounds request hR |
| 3773 | | - have hdiff (i : Fin 3) : DifferentiableAt ℝ |
| 3774 | | - (fun y => HarmonicCalculus.vectorMode (p.base.frequency n) (p.base.phase n) (z.amplitude n) y i) x := by |
| 3775 | | - exact ((HarmonicCalculus.contDiffOn_mode (p.base.frequency n) (h.angular.phase_smooth n) |
| 3776 | | - ((CurlClassBounds.class_component hb.1 i).smooth n)).contDiffAt |
| 3777 | | - ((HarmonicWaveInteraction.productStrip s).isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 3778 | | - have hd := (SignedWaveUpdate.signed_curl_realization hc.baseBounds hc.covariance hR |
| 3779 | | - hc.mask hc.fundamental hc.normal hc.normalMotion hc.action hc.lower_pos hc.norm_lower hc.norm_upper |
| 3780 | | - hc.inverseFrequency hc.cutoff p.column n (h.geometry n) (h.frequency_nonzero n) |
| 3781 | | - (h.angular.phase_smooth n) ht x hx).2 |
| 3782 | | - change HarmonicCalculus.cylindricalDivergence (p.base.radius n) (p.directions.radialField n) |
| 3783 | | - (fun _ => p.directions.angular) (p.directions.axialField (HarmonicWaveInteraction.productStrip s) n) |
| 3784 | | - (HarmonicCalculus.vectorMode (p.base.frequency n) (p.base.phase n) (z.amplitude n)) x = 0 at hd |
| 3785 | | - let L : ℂ →L[ℝ] ℂ := Complex.ofRealCLM.comp Complex.reCLM |
| 3786 | | - have he := ParticularWaveAssembly.divergence_map L (p.base.radius n) (p.directions.radialField n) |
| 3787 | | - (fun _ => p.directions.angular) (p.directions.axialField (HarmonicWaveInteraction.productStrip s) n) hdiff |
| 3788 | | - rw [hd] at he |
| 3789 | | - have ha : angularDirection (D := D) = fun _ => p.directions.angular := by |
| 3790 | | - rw [h.angular_direction] |
| 3791 | | - rfl |
| 3792 | | - rw [h.exact_represents.1, ← hmatch.radius, ← hmatch.radial, ← hmatch.axial, ha] |
| 3793 | | - simp only [L, ContinuousLinearMap.comp_apply, Complex.ofRealCLM_apply, Complex.reCLM_apply, |
| 3794 | | - map_zero] at he |
| 3795 | | - exact he |
| 3796 | | - |
| 3797 | | -theorem SignedParameters.Dynamics.modeSolenoidal |
| 3798 | | - {p : SignedParameters D} {s : StripData D} |
| 3799 | | - {P₀ : ℕ → D × ℝ → ℝ} {P : ℕ → D → ℝ} {α₀ κ B : ℝ} |
| 3800 | | - {request : ℕ → D × ℝ → SignedWaveUpdate.Vec2} |
| 3801 | | - (h : p.Dynamics s request) (hc : p.Control s P₀ P α₀ κ) |
| 3802 | | - (hR : ∀ i, MeanClass (HarmonicWaveInteraction.productStrip s) (B - 1 / 2 - κ) |
| 3803 | | - (fun n x => request n x i)) |
| 3804 | | - (ht : ∀ n x, x ∈ (HarmonicWaveInteraction.productStrip s).domain → |
| 3805 | | - ⟪p.base.normal (HarmonicWaveInteraction.productStrip s) p.directions n x, p.fundamental n x⟫_ℝ = 0) |
| 3806 | | - (c : Context D) |
| 3807 | | - (hmatch : WaveFrameMatch c (HarmonicWaveInteraction.productStrip s) p.directions p.base) : |
| 3808 | | - HarmonicWaveInteraction.ModeSolenoidal s c (p.exactBlock s request) := by |
| 3809 | | - apply HarmonicWaveInteraction.modeSolenoidal_of_full c (p.exactBlock s request) |
| 3810 | | - · intro n |
| 3811 | | - exact (h.angular.phase_smooth n).comp (SignedWaveUpdate.zeroSection (D := D)).contDiff.contDiffOn |
| 3812 | | - (fun x hx => hx) |
| 3813 | | - · exact h.angular_nonzero |
| 3814 | | - · exact HarmonicWaveInteraction.waveBounds_smooth (hc.bounds request hR).2.1 (p.exactBlock_zero s request) |
| 3815 | | - · exact h.full_divergence_zero hc hR ht c hmatch |
| 3816 | | - |
| 3817 | 1360 | end ConstructedSignedInvariants |
| 3818 | 1361 | |
| 3819 | 1362 | section GaugeRankMean |
| @@ -3903,33 +1446,6 @@ theorem gaugeRankStage_mean_gain {s : StripData (PressureStream.Lift S)} |
| 3903 | 1446 | change _ - _ = (u.axialResidual c n x - A n x) + (_ - u.axialResidual c n x) |
| 3904 | 1447 | ring |
| 3905 | 1448 | |
| 3906 | | -theorem gaugeRankStage_next_mean {s : StripData (PressureStream.Lift S)} |
| 3907 | | - {U : Set S} (hU : IsOpen U) (hSU : ∀ x ∈ s.domain, x.2.1 ∈ U) |
| 3908 | | - (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) |
| 3909 | | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) |
| 3910 | | - (hg : LocalRankDefect.RankGeometry g r U c u) |
| 3911 | | - {a b : ℝ} (ha : 0 < a) (hab : a < b) |
| 3912 | | - (hleft : ∀ n p, p ∈ U → a ≤ r.length n p * r.inner) |
| 3913 | | - (hright : ∀ n p, p ∈ U → r.length n p * r.outer ≤ b) |
| 3914 | | - {σ κ : ℝ} (hσ : 1 / 5 ≤ σ) (hκ : κ ≤ 1 / 100000) |
| 3915 | | - (v : PressureStream.Plane) (hfast : c.operators.vT = (0, (0, v))) |
| 3916 | | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) |
| 3917 | | - (hu : CorrectionState.CumulativeBounds s u) |
| 3918 | | - (hi : IncrementBounds s (ExponentLedger.meanUpdateExponent σ κ) (rankIncrementState g r axial c u)) |
| 3919 | | - (hdp : MeanClass s (ExponentLedger.meanUpdateExponent σ κ) (gaugeRankPressureChange g r axial c u)) |
| 3920 | | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) |
| 3921 | | - (A : ScalarField (PressureStream.Lift S)) |
| 3922 | | - (hθ : MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) (u.thetaResidual c)) |
| 3923 | | - (hz : MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) (u.axialResidual c - A)) : |
| 3924 | | - MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) ((rankStageState g r axial c u).thetaResidual c) ∧ |
| 3925 | | - MeanClass s (ExponentLedger.meanExponent (σ + 1 / 10)) ((rankStageState g r axial c u).axialResidual c - A) := by |
| 3926 | | - apply gaugeRankStage_mean_gain hU hSU g r axial c u hg ha hab hleft hright v hfast |
| 3927 | | - ho hb hu hi hdp hW A hθ hz |
| 3928 | | - · unfold ExponentLedger.meanUpdateExponent ExponentLedger.meanExponent |
| 3929 | | - linarith |
| 3930 | | - · unfold ExponentLedger.meanUpdateExponent ExponentLedger.meanExponent |
| 3931 | | - linarith |
| 3932 | | - |
| 3933 | 1449 | end GaugeRankMean |
| 3934 | 1450 | |
| 3935 | 1451 | |
| @@ -4322,9 +1838,6 @@ noncomputable def copyData (s : StripData D) (request : ℕ → D × ℝ → Sig |
| 4322 | 1838 | cutoff n i := p.cutoff i n |
| 4323 | 1839 | source := fun _ _ => 0 |
| 4324 | 1840 | |
| 4325 | | -theorem copyData_raw (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (i : I) : |
| 4326 | | - (p.copyData s request).raw i = (p.native i).coefficients s request := rfl |
| 4327 | | - |
| 4328 | 1841 | noncomputable def exactBlock (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 4329 | 1842 | HarmonicBlock D := |
| 4330 | 1843 | SignedWaveUpdate.blockOfCoefficients |
| @@ -4367,10 +1880,6 @@ theorem tangentBlock_band (s : StripData D) (request : ℕ → D × ℝ → Sign |
| 4367 | 1880 | theorem gaussianBlock_band (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 4368 | 1881 | (p.gaussianBlock s request).BandLimited 1 := SignedWaveUpdate.coefficientBlock_band _ _ _ _ _ |
| 4369 | 1882 | |
| 4370 | | -theorem gaussian_source_zero (s : StripData D) (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) : |
| 4371 | | - (p.copyData s request).globalGaussian p.directions = (p.copyData s request).globalTail p.directions := |
| 4372 | | - (p.copyData s request).globalGaussian_of_source_zero p.directions rfl |
| 4373 | | - |
| 4374 | 1883 | end PeriodizedSignedParameters |
| 4375 | 1884 | end PeriodizedSignedConstruction |
| 4376 | 1885 | |
| @@ -4457,13 +1966,6 @@ theorem gaussianBlock_band |
| 4457 | 1966 | (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (N : ℕ) : |
| 4458 | 1967 | (p.gaussianBlock c u b G A N).BandLimited N := ParticularWaveAssembly.assembledBlock_band _ _ _ _ _ _ |
| 4459 | 1968 | |
| 4460 | | -theorem source_eq_residual (c : Context (P × TorusInverse.Plane)) (u : State (P × TorusInverse.Plane)) |
| 4461 | | - (b : HarmonicBlock (P × TorusInverse.Plane)) |
| 4462 | | - (G A : HarmonicResidual.BlockCoefficients (P × TorusInverse.Plane)) (j : ℤ) (n : ℕ) |
| 4463 | | - (x : (P × ℝ) × TorusInverse.Plane) (i : Fin 3) : |
| 4464 | | - (p.copyData c u b G A j).source n x i = |
| 4465 | | - (HarmonicResidual.residualBlock c u b G A).velocity n i j (x.1.1,x.2) := rfl |
| 4466 | | - |
| 4467 | 1969 | end ParticularParameters |
| 4468 | 1970 | end ParticularConstruction |
| 4469 | 1971 | |
| @@ -4900,90 +2402,6 @@ local notation "slowStrip" => PhysicalMeanDomain.localSlowStripData U.carrier U. |
| 4900 | 2402 | local notation "signedState" => p.afterSigned v c u |
| 4901 | 2403 | local notation "temporalState" => p.afterTemporal v c u |
| 4902 | 2404 | |
| 4903 | | -/-- The two actual mean stages complete the `σ+1/10` mean and debt gains. |
| 4904 | | -Every increment and pressure-change estimate is derived internally from the |
| 4905 | | -post-signed residuals and measured debts. -/ |
| 4906 | | -theorem finish_mean_stages {σ κ : ℝ} |
| 4907 | | - (hσ : 1 / 5 ≤ σ) (hκsmall : κ ≤ 1 / 100000) |
| 4908 | | - (hh : 0 ≤ p.timeExponent) (hscale : ∀ n, ChartScales.S n ≤ L n) |
| 4909 | | - (gap : ℕ) (hgap : ∀ n, ChartScales.nativeIndex p.timeExponent n ≤ p.commonIndex n + gap) |
| 4910 | | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) |
| 4911 | | - (hfast : ∀ n, c.operators.fastCoefficient n = |
| 4912 | | - ChartScales.Tg ^ p.commonIndex n * ChartScales.Q n ^ (1 + p.timeExponent)) |
| 4913 | | - (ho : OperatorBounds stageStrip c.operators κ) (hb : BaseBounds stageStrip c.base) |
| 4914 | | - (hsigned : CorrectionState.CumulativeBounds stageStrip signedState) |
| 4915 | | - (hop : LocalRankDefect.LocalOperators U.carrier c.operators) |
| 4916 | | - (hbase : SmoothTriple (LocalRankDefect.positiveDomain U.carrier) c.base) |
| 4917 | | - (hV : LocalRankDefect.IsSlowOn U.carrier c.base.angular) |
| 4918 | | - (hG : LocalRankDefect.IsSlowOn U.carrier c.base.axial) |
| 4919 | | - (hm : SmoothTriple (PhysicalMeanDomain.slowDomain U.carrier) (signedState).mean) |
| 4920 | | - (hms : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier (signedState).mean) |
| 4921 | | - (hW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) ((signedState).covariance i j)) |
| 4922 | | - (hWs : ∀ i j, GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier ((signedState).covariance i j)) |
| 4923 | | - (hθ : ∀ n, ContDiffOn ℝ ∞ ((signedState).thetaResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 4924 | | - (hz : ∀ n, ContDiffOn ℝ ∞ ((signedState).axialResidual c n) (PhysicalMeanDomain.slowDomain U.carrier)) |
| 4925 | | - (hpθ : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((signedState).thetaResidual c n)) |
| 4926 | | - (hpz : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier ((signedState).axialResidual c n)) |
| 4927 | | - (hsθ : GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier ((signedState).thetaResidual c)) |
| 4928 | | - (hsz : GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier ((signedState).axialResidual c)) |
| 4929 | | - (hcθ : MeanClass stageStrip (1 + σ - 2 * κ) ((signedState).thetaResidual c)) |
| 4930 | | - (hcz : MeanClass stageStrip (1 + σ - 2 * κ) ((signedState).axialResidual c)) |
| 4931 | | - (hbarθ : MeanClass stageStrip (1 + σ + 17 / 100) (meanBar ((signedState).thetaResidual c))) |
| 4932 | | - (hbarz : MeanClass stageStrip (1 + σ + 17 / 100) (meanBar ((signedState).axialResidual c))) |
| 4933 | | - (hdebt : ∀ i : Fin 3, UnweightedClass slowStrip (1 + σ - 2 * κ) |
| 4934 | | - (fun n x => debt c signedState n x i)) |
| 4935 | | - (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c temporalState) |
| 4936 | | - (hparam : RankStateBounds.NormalizedParameters coord A B p.rank U.carrier) (hB : B ≠ 0) |
| 4937 | | - (hleft : p.gauge.radial.inner < p.rank.inner) (hright : p.rank.outer < p.gauge.radial.outer) : |
| 4938 | | - CorrectionState.CumulativeBounds stageStrip (p.next v c u) ∧ |
| 4939 | | - DefectBounds slowStrip (σ + 1 / 10) c (p.next v c u) ∧ |
| 4940 | | - MeanClass stageStrip (1 + (σ + 1 / 10)) ((p.next v c u).thetaResidual c) ∧ |
| 4941 | | - MeanClass stageStrip (1 + (σ + 1 / 10)) |
| 4942 | | - ((p.next v c u).axialResidual c - |
| 4943 | | - fun n x => temporalAliasState p.gauge p.timeExponent p.commonIndex c signedState n (x,0) 2) := by |
| 4944 | | - have hH : 9 / 10 ≤ 1 + σ - 2 * κ := by linarith |
| 4945 | | - have hκ : 2 * κ ≤ 9 / 10 := by linarith |
| 4946 | | - have hβ : 1 + (σ + 1 / 10) ≤ (1 + σ - 2 * κ) + 1 - 2 * κ := by linarith |
| 4947 | | - obtain ⟨hi, hp, htCum, htSmooth, htSupport, htTheta, htAxial⟩ := |
| 4948 | | - gaugeTemporalStage_constructed U p.gauge ha hd hcL hcR ε L hε hεone hL hell |
| 4949 | | - hh hscale p.commonIndex gap hgap p.axial c signedState ho.epsilon_eq hv hfast rfl |
| 4950 | | - hH hκ hβ ho hb hsigned hop hbase hm hms hW hWs hθ hz hpθ hpz hsθ hsz hcθ hcz |
| 4951 | | - (hbarθ.mono_exponent (by linarith)) (hbarz.mono_exponent (by linarith)) |
| 4952 | | - have hiSmooth := gaugeTemporalIncrement_smooth U p.gauge ha hd hell p.timeExponent p.commonIndex p.axial |
| 4953 | | - c signedState hθ hz hpθ hpz hsz |
| 4954 | | - have hiSupport : GaugeSupportedTriple p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier |
| 4955 | | - (p.temporalIncrement v c u) := by |
| 4956 | | - have hs n := temporalIncrementState_supportedGauge U p.gauge ha hd hell c signedState |
| 4957 | | - p.timeExponent p.commonIndex p.axial n (hz n) (hpz n) (hsz n) (hsθ n) |
| 4958 | | - exact ⟨fun n => (hs n).1, fun n => (hs n).2.1, fun n => (hs n).2.2⟩ |
| 4959 | | - have hmReg : GaugeDebtIncrement.RegularTriple U p.gauge.radial.inner p.gauge.radial.outer (signedState).mean := |
| 4960 | | - ⟨⟨hm.radial, hms.radial⟩, ⟨hm.angular, hms.angular⟩, ⟨hm.axial, hms.axial⟩⟩ |
| 4961 | | - have hiReg : GaugeDebtIncrement.RegularTriple U p.gauge.radial.inner p.gauge.radial.outer |
| 4962 | | - (p.temporalIncrement v c u) := |
| 4963 | | - ⟨⟨hiSmooth.radial, hiSupport.radial⟩, ⟨hiSmooth.angular, hiSupport.angular⟩, |
| 4964 | | - ⟨hiSmooth.axial, hiSupport.axial⟩⟩ |
| 4965 | | - have htDebt := GaugeDebtIncrement.temporalStage_debt_mem U ha p.gauge.radial.inner_lt_outer |
| 4966 | | - hcL hcR ε L hε hεone hL p.gauge p.timeExponent p.commonIndex p.axial c signedState |
| 4967 | | - hop hbase hmReg hiReg (fun i j => ⟨hW i j, hWs i j⟩) ho hb hsigned.velocity hi hH hκ le_rfl hdebt |
| 4968 | | - have hcov : (temporalState).covariance = (signedState).covariance := |
| 4969 | | - gaugeTemporalStage_covariance p.gauge p.timeExponent p.commonIndex p.axial c signedState |
| 4970 | | - have htW : ∀ i j, SmoothOn (PhysicalMeanDomain.slowDomain U.carrier) ((temporalState).covariance i j) := by |
| 4971 | | - simpa only [hcov] using hW |
| 4972 | | - have htWs : ∀ i j, GaugeSupported p.gauge.radial.inner p.gauge.radial.outer (qLength coord) U.carrier |
| 4973 | | - ((temporalState).covariance i j) := by simpa only [hcov] using hWs |
| 4974 | | - let aliasField : ScalarField Point := fun n x => |
| 4975 | | - temporalAliasState p.gauge p.timeExponent p.commonIndex c signedState n (x,0) 2 |
| 4976 | | - obtain ⟨hrInc, hrPressure, hrCum, _, _, hrTheta, hrAxial⟩ := |
| 4977 | | - gaugeRankStage_constructed U p.gauge p.rank ha hd hcL hcR ε L hε hεone hL hell |
| 4978 | | - p.axial c temporalState hg hparam hB hleft hright hH hκ hβ hv rfl |
| 4979 | | - ho hb htCum hop hbase htSmooth htSupport htW htWs |
| 4980 | | - (RankStateBounds.debtClass_of_components _ htDebt) aliasField htTheta htAxial |
| 4981 | | - have hrDebt := MovingMomentBounds.rankStage_defectBounds U p.gauge p.rank ha hcL hcR |
| 4982 | | - ε L hε hεone hL hell p.axial c temporalState hg hop hbase htSmooth |
| 4983 | | - ⟨htSupport.radial, htSupport.angular, htSupport.axial⟩ htW htWs hV hG |
| 4984 | | - ho hb htCum.velocity hrInc hH (show 1 + (σ + 1 / 10) ≤ (1 + σ - 2 * κ) + 9 / 10 - 2 * κ by linarith) |
| 4985 | | - exact ⟨⟨hrCum.velocity, hrCum.pressure⟩, hrDebt, hrTheta, hrAxial⟩ |
| 4986 | | - |
| 4987 | 2405 | end CycleParameters |
| 4988 | 2406 | |
| 4989 | 2407 | end CycleMeanCompletion |
| @@ -5135,34 +2553,6 @@ theorem NativeControl.global_bounds (h : p.NativeControl s P κ) (hκ : κ ≤ 1 |
| 5135 | 2553 | (LocalizedWaveBounds.LocalClass.band_const h.inverse_frequency) hcover |
| 5136 | 2554 | simpa only [show β + 1 / 2 + 1 / 2 = β + 1 by ring] using hh |
| 5137 | 2555 | |
| 5138 | | -theorem NativeControl.block_bounds (h : p.NativeControl s P κ) (hκ : κ ≤ 1 / 2) |
| 5139 | | - (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) |
| 5140 | | - (hR : ∀ j, MeanClass (HarmonicWaveInteraction.productStrip s) β (fun n x => request n x j)) : |
| 5141 | | - (p.tangentBlock s request).WaveBounds s P (β + 1 / 2) ∧ |
| 5142 | | - (p.exactBlock s request).WaveBounds s P (β + 1 / 2) ∧ |
| 5143 | | - (p.exactBlock s request).PressureBounds s P (β + 1) ∧ |
| 5144 | | - (p.curlBlock s request).WaveBounds s P (β + 1 - κ) ∧ |
| 5145 | | - (p.goodBlock s request).WaveBounds s P (β + 1 - 3 * κ) := by |
| 5146 | | - obtain ⟨ha, he, hp, hc, hg⟩ := h.global_bounds hκ request hR |
| 5147 | | - have ht := SignedWaveUpdate.blockOfCoefficients_classes (p.copyData s request).common p.angularFrequency ha hp |
| 5148 | | - have hx := SignedWaveUpdate.blockOfCoefficients_classes |
| 5149 | | - ((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) p.directions) |
| 5150 | | - p.angularFrequency he hp |
| 5151 | | - have hd : WaveClass (HarmonicWaveInteraction.productStrip s) (fun n x => P n x.1) (β + 1 - κ) |
| 5152 | | - (fun n x => ((p.copyData s request).commonCorrected |
| 5153 | | - (HarmonicWaveInteraction.productStrip s) p.directions).amplitude n x - |
| 5154 | | - (p.copyData s request).common.amplitude n x) := by |
| 5155 | | - apply LinearWaveBounds.class_congr hc |
| 5156 | | - intro n x hx |
| 5157 | | - simp only [PeriodizedWaveBounds.CopyData.commonCorrected, |
| 5158 | | - LinearWaveBounds.WaveCoefficients.addAmplitude, add_sub_cancel_left] |
| 5159 | | - have hd' := blockOfCoefficients_difference_mem _ _ p.angularFrequency hd |
| 5160 | | - have hg' := SignedWaveUpdate.class_zeroSection hg |
| 5161 | | - rw [sectionStrip_productStrip] at ht hx hd' hg' |
| 5162 | | - exact ⟨ht.1, hx.1, hx.2, hd', (SignedWaveUpdate.coefficientBlock_classes |
| 5163 | | - p.base.frequency (fun n x => p.base.phase n (x,0)) p.angularFrequency hg' |
| 5164 | | - (MemClass.zero (α := (0 : ℝ)) hg'.weight_nonneg)).1⟩ |
| 5165 | | - |
| 5166 | 2556 | end PeriodizedSignedParameters |
| 5167 | 2557 | |
| 5168 | 2558 | namespace ParticularParameters |
| @@ -5341,14 +2731,6 @@ open scoped ContDiff Topology |
| 5341 | 2731 | |
| 5342 | 2732 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 5343 | 2733 | |
| 5344 | | -theorem localClass_contDiffOn_inter {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 5345 | | - {s : StripData D} {C : ℕ → I → Set D} {w : ℕ → I → D → ℝ} {α : ℝ} |
| 5346 | | - {f : ℕ → I → D → E} (hf : LocalizedWaveBounds.LocalClass s C w α f) |
| 5347 | | - (hC : ∀ n i, IsOpen (C n i)) (n : ℕ) (i : I) : |
| 5348 | | - ContDiffOn ℝ ∞ (f n i) (s.domain ∩ C n i) := |
| 5349 | | - (s.isOpen_domain.inter (hC n i)).contDiffOn_iff.mpr |
| 5350 | | - (fun x hx => hf.smooth n i x hx.1 hx.2) |
| 5351 | | - |
| 5352 | 2734 | /-- Angular and radial geometry of the actual raw copies. The analytic |
| 5353 | 2735 | bounds on the normal and material defect remain restricted to `C`. -/ |
| 5354 | 2736 | structure NativeAngularGeometry (a : PeriodizedWaveBounds.CopyData D I) (s : StripData D) |
| @@ -5368,78 +2750,6 @@ structure NativeAngularGeometry (a : PeriodizedWaveBounds.CopyData D I) (s : Str |
| 5368 | 2750 | pressure : ∀ i n, CopyAngularInvariance.Invariant d.angular (a.pressure n i) |
| 5369 | 2751 | cutoff : ∀ i n, CopyAngularInvariance.Invariant d.angular (a.cutoff n i) |
| 5370 | 2752 | |
| 5371 | | -theorem NativeAngularGeometry.exactOn |
| 5372 | | - {a : PeriodizedWaveBounds.CopyData D I} {s : StripData D} |
| 5373 | | - {d : LinearWaveBounds.GraphDirections D} {C : ℕ → I → Set D} |
| 5374 | | - {P : ℕ → I → D → ℝ} {α κ lower upper : ℝ} |
| 5375 | | - (g : NativeAngularGeometry a s d C) |
| 5376 | | - (h : LocalizedWaveBounds.InputBounds s C P α κ d (LocalizedWaveBounds.rawFamily a)) |
| 5377 | | - (hψ : LocalizedWaveBounds.LocalUnweighted s C 0 a.cutoff) |
| 5378 | | - (hκ : κ ≤ 1 / 2) (hlower : 0 < lower) |
| 5379 | | - (hlo : ∀ n i x, x ∈ s.domain → x ∈ C n i → lower ≤ ‖a.background.normal s d n x‖) |
| 5380 | | - (hhi : ∀ n i x, x ∈ s.domain → x ∈ C n i → ‖a.background.normal s d n x‖ ≤ upper) |
| @@ -5515,16 +2825,6 @@ structure NativeDynamics where |
| @@ -5536,67 +2836,6 @@ theorem NativeDynamics.principal (d : NativeDynamics h request) |
| @@ -5628,29 +2867,6 @@ structure NativeDynamics : Prop where |
| @@ -5661,44 +2877,6 @@ theorem NativeDynamics.principal (d : NativeDynamics h) |
| @@ -5726,12 +2904,6 @@ theorem common_pressure (n : ℕ) : |
| @@ -5750,65 +2922,6 @@ variable {p : PeriodizedSignedParameters D I} {s : StripData D} |
| @@ -5827,103 +2940,6 @@ theorem exactBlock_pressure_zero (p : PeriodizedSignedParameters D I) (s : Strip |
| @@ -5969,49 +2985,6 @@ theorem NativeDynamics.frequency_ne (d : NativeDynamics h) (n : ℕ) : b.frequen |
| @@ -6060,156 +3033,6 @@ variable (p : ParticularParameters Q) (s : StripData (Q × Plane)) |
| @@ -6219,57 +3042,6 @@ open Set Filter WeightedClasses MeanIncrementBounds CorrectionState |
| @@ -6470,14 +3242,6 @@ theorem iterate_bands (p : ℕ → CycleParameters ι) (c : Context CyclePoint) |
| @@ -6500,89 +3264,8 @@ variable {p : PeriodizedSignedParameters D I} {s : StripData D} |
| @@ -6595,41 +3278,8 @@ variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| @@ -6667,36 +3317,6 @@ variable (p : ParticularParameters Q) (s : StripData (Q × Plane)) |
| @@ -6837,77 +3457,10 @@ theorem meanIncrement_of_cumulative {s : StripData D} {m : Triple D} |
| @@ -6915,57 +3468,6 @@ variable {I : Type} {p : PeriodizedSignedParameters D I} {s : StripData D} |
| @@ -7200,73 +3702,6 @@ section NativeSignedMeanComposition |
| @@ -7638,96 +4073,6 @@ theorem uniform_assembled_bounds {W : ι → ℕ → (Q×ℝ)×Plane → ℝ} { |
| @@ -7737,77 +4082,6 @@ section BandNativeSignedMeanComposition |
| @@ -7824,114 +4098,6 @@ variable {D I ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| @@ -7954,125 +4120,6 @@ local notation "u₁" => SignedMeanGain.waveStage G.gauge c u w₁ q₁ e₁ |
| @@ -8499,99 +4546,6 @@ variable (hcs : ∀ l, SameCarrier (v.blocks l) ((ofGeometry G h index axial par |
| @@ -8673,52 +4627,6 @@ section Reindex |
| @@ -8734,24 +4642,6 @@ theorem withAxis (h : CycleRepresentation v u axis) : |
| @@ -9245,17 +5135,6 @@ theorem next_covariance_mem {α β γ : ℝ} |
| Diff truncated — view the file for the rest. |