Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.StateMomentBalances |
| 2 | import NavierStokes.VariableGaugeMean |
| 3 | import NavierStokes.LocalSignedRequest |
| 4 | |
| 5 | /-! |
| 6 | # Measured moment balances in the actual moving pressure gauge |
| 7 | |
| 8 | The pressure coefficient is the measured second moment of the normalized |
| 9 | physical density. It varies with the true similarity coordinate. All moment |
| 10 | identities below use the actual state residual and the actual pressure recipe. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.GaugeMomentBalances |
| 16 | |
| 17 | open Set Filter Function MeasureTheory |
| 18 | open CorrectionState |
| 19 | open scoped ContDiff Topology BigOperators Interval |
| 20 | |
| 21 | abbrev Plane := PressureStream.Plane |
| 22 | abbrev Point := PressureStream.Lift Plane |
| 23 | |
| 24 | noncomputable def basePressureCoefficient (a b : ℝ) (hab : a < b) : ℝ := |
| 25 | IntegratedMeanBalances.moment 2 (PressureStream.rho a b hab) / 2 |
| 26 | |
| 27 | theorem basePressureCoefficient_lower {a b : ℝ} (ha : 0 < a) (hab : a < b) : |
| 28 | a ^ 2 / 2 ≤ basePressureCoefficient a b hab := by |
| 29 | have hm : (∫ r, a ^ 2 * PressureStream.rho a b hab r) ≤ |
| 30 | ∫ r, r ^ 2 * PressureStream.rho a b hab r := by |
| 31 | apply integral_mono ((PressureStream.rho_integrable a b hab).const_mul (a ^ 2)) |
| 32 | (IntegratedMeanBalances.weighted_integrable (PressureStream.rho_contDiff a b hab).continuous |
| 33 | (PressureStream.rho_hasCompactSupport a b hab) 2) |
| 34 | intro r |
| 35 | by_cases hr : PressureStream.rho a b hab r = 0 |
| 36 | · simp only [hr, mul_zero, le_refl] |
| 37 | · have har := (PressureStream.rho_support a b hab hr).1 |
| 38 | apply mul_le_mul_of_nonneg_right _ (PressureStream.rho_nonneg a b hab r) |
| 39 | nlinarith [mul_nonneg (sub_nonneg.mpr har) (add_nonneg (ha.le.trans har) ha.le)] |
| 40 | rw [integral_const_mul, PressureStream.rho_integral, mul_one] at hm |
| 41 | exact div_le_div_of_nonneg_right hm (by norm_num) |
| 42 | |
| 43 | theorem basePressureCoefficient_pos {a b : ℝ} (ha : 0 < a) (hab : a < b) : |
| 44 | 0 < basePressureCoefficient a b hab := |
| 45 | lt_of_lt_of_le (by positivity : 0 < a ^ 2 / 2) (basePressureCoefficient_lower ha hab) |
| 46 | |
| 47 | noncomputable def pressureCoefficient {S : Type} (g : VariableGaugeMean.GaugeData S) |
| 48 | (n : ℕ) (s : S) : ℝ := |
| 49 | basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * g.length n s ^ 2 |
| 50 | |
| 51 | /-- Exact second moment of the scaled, normalized density. -/ |
| 52 | theorem rho_second_moment_scale {l a b : ℝ} (hl : 0 < l) (hab : a < b) : |
| 53 | IntegratedMeanBalances.moment 2 |
| 54 | (PressureStream.rho (l * a) (l * b) (mul_lt_mul_of_pos_left hab hl)) = |
| 55 | l ^ 2 * IntegratedMeanBalances.moment 2 (PressureStream.rho a b hab) := by |
| 56 | have he : PressureStream.rho (l * a) (l * b) (mul_lt_mul_of_pos_left hab hl) = |
| 57 | fun r => l⁻¹ * PressureStream.rho a b hab (l⁻¹ * r) := by |
| 58 | funext r |
| 59 | have hh := MeanChartCompatibility.rho_scale hl hab (r / l) |
| 60 | rw [mul_div_cancel₀ _ hl.ne'] at hh |
| 61 | simpa only [div_eq_mul_inv, mul_comm] using hh |
| 62 | rw [he, IntegratedMeanBalances.moment_const_mul] |
| 63 | change l⁻¹ * (∫ r, r ^ 2 * PressureStream.rho a b hab (l⁻¹ * r)) = _ |
| 64 | rw [SignedStressPrimitive.integral_dilate_weighted 2 _ (inv_pos.mpr hl)] |
| 65 | unfold IntegratedMeanBalances.moment |
| 66 | field_simp [hl.ne'] ; ring_nf ; field_simp [hl.ne'] |
| 67 | |
| 68 | section GeneralGauge |
| 69 | |
| 70 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 71 | |
| 72 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 73 | /-- This is the coefficient of the pressure debt, measured in the moving |
| 74 | physical radius, rather than in the normalized profile radius. -/ |
| 75 | theorem pressureCoefficient_measured (g : VariableGaugeMean.GaugeData S) (n : ℕ) (s : S) |
| 76 | (hl : 0 < g.length n s) (Y : Plane) : |
| 77 | (IntegratedMeanBalances.moment 2 (fun R => VariableGaugeMean.density |
| 78 | g.radial.inner g.radial.outer g.radial.inner_lt_outer (g.length n) (R, (s, Y)))) / 2 = |
| 79 | pressureCoefficient g n s := by |
| 80 | have he : (fun R => VariableGaugeMean.density g.radial.inner g.radial.outer |
| 81 | g.radial.inner_lt_outer (g.length n) (R, (s, Y))) = |
| 82 | PressureStream.rho (g.length n s * g.radial.inner) (g.length n s * g.radial.outer) |
| 83 | (mul_lt_mul_of_pos_left g.radial.inner_lt_outer hl) := by |
| 84 | funext R |
| 85 | exact VariableGaugeMean.density_eq_scaled g.radial.inner_lt_outer (g.length n) (R, (s, Y)) hl |
| 86 | rw [he, rho_second_moment_scale hl g.radial.inner_lt_outer] |
| 87 | unfold pressureCoefficient basePressureCoefficient |
| 88 | ring |
| 89 | |
| 90 | /-- The actual moving-gauge pressure moment. Freezing is used only to apply |
| 91 | a radial integral theorem on one fiber; no slow derivative is frozen. -/ |
| 92 | theorem moving_pressure_moment {a b d M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 93 | (ell : S → ℝ) (v : Plane) {U : Set S} (hU : IsOpen U) |
| 94 | {f : PressureStream.Lift S → ℝ} |
| 95 | (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 96 | (hs : VariableGaugeMean.SupportedGauge a b ell U f) |
| 97 | (hp : PhysicalMeanDomain.PeriodicOn U f) {s : S} (hsm : s ∈ U) (hl : 0 < ell s) : |
| 98 | IntegratedMeanBalances.moment 1 (fun R => PressureStream.torusAverage |
| 99 | (VariableGaugeMean.meanPressure d a b M hab ell v f) (R, s)) = |
| 100 | -(1 / 2 : ℝ) * IntegratedMeanBalances.moment 2 |
| 101 | (fun R => PressureStream.torusAverage f (R, s)) + |
| 102 | (basePressureCoefficient a b hab * ell s ^ 2) * PressureStream.pressureMass f s := by |
| 103 | let F := PhysicalMeanDomain.freezeSlow s f |
| 104 | have hF : ContDiff ℝ ∞ F := VariableGaugeMean.freezeSlow_contDiff hU hsm hf |
| 105 | have hFs : RadialAlias.RadiallySupported (ell s * a) (ell s * b) F := by |
| 106 | intro p hn |
| 107 | exact hs (p.1, (s, p.2.2)) hsm hn |
| 108 | have hFp : PressureStream.TorusPeriodicLift F := by |
| 109 | intro R t Y k |
| 110 | exact hp R s hsm Y k |
| 111 | have he (R : ℝ) (Y : Plane) : |
| 112 | VariableGaugeMean.meanPressure d a b M hab ell v f (R, (s, Y)) = |
| 113 | PressureStream.meanPressure d (ell s * a) (ell s * b) M (mul_lt_mul_of_pos_left hab hl) |
| 114 | v F (R, (s, Y)) := by |
| 115 | rw [VariableGaugeMean.meanPressure_eq_fixed hab d M ell v f _ hl] |
| 116 | exact PhysicalMeanDomain.meanPressure_fiberLocal d (ell s * a) (ell s * b) M |
| 117 | (mul_lt_mul_of_pos_left hab hl) v f F s (fun _ _ => rfl) R Y |
| 118 | have hbar : (fun R => PressureStream.torusAverage |
| 119 | (VariableGaugeMean.meanPressure d a b M hab ell v f) (R, s)) = |
| 120 | (fun R => PressureStream.torusAverage |
| 121 | (PressureStream.meanPressure d (ell s * a) (ell s * b) M |
| 122 | (mul_lt_mul_of_pos_left hab hl) v F) (R, s)) := by |
| 123 | funext R |
| 124 | exact PressureStream.torusAverage_congr_slice (R, s) (he R) |
| 125 | have hFbar : (fun R => PressureStream.torusAverage F (R, s)) = |
| 126 | (fun R => PressureStream.torusAverage f (R, s)) := by |
| 127 | funext R |
| 128 | exact PressureStream.torusAverage_congr_slice (R, s) (fun _ => rfl) |
| 129 | have hmass : PressureStream.pressureMass F s = PressureStream.pressureMass f s := by |
| 130 | change (∫ R, PressureStream.torusAverage F (R, s)) = _ |
| 131 | rw [hFbar] |
| 132 | rfl |
| 133 | rw [hbar, IntegratedMeanBalances.constructed_pressure_moment (mul_pos hl ha) |
| 134 | (mul_lt_mul_of_pos_left hab hl) hd v hF hFs hFp s, hFbar, hmass, rho_second_moment_scale hl hab] |
| 135 | unfold basePressureCoefficient |
| 136 | ring |
| 137 | |
| 138 | @[simp] theorem reconstructState_gr (g : VariableGaugeMean.GaugeData S) |
| 139 | (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 140 | (VariableGaugeMean.reconstructState g c u).gr c = u.gr c := rfl |
| 141 | |
| 142 | @[simp] theorem reconstructState_idempotent (g : VariableGaugeMean.GaugeData S) |
| 143 | (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) : |
| 144 | VariableGaugeMean.reconstructState g c (VariableGaugeMean.reconstructState g c u) = |
| 145 | VariableGaugeMean.reconstructState g c u := rfl |
| 146 | |
| 147 | end GeneralGauge |
| 148 | |
| 149 | section SimilarityCoefficient |
| 150 | |
| 151 | theorem similarity_pressureCoefficient {h d a b M : ℝ} (hab : a < b) (index : ℕ → ℕ) |
| 152 | (hc : 0 < 2 * h) (hc1 : 2 * h < 1) (n : ℕ) {s : Plane} (hs : 0 < s.1) : |
| 153 | pressureCoefficient (VariableGaugeMean.similarityGauge h d a b M hab index) n s = |
| 154 | basePressureCoefficient a b hab * SimilarityCoordinates.coordinateQ (2 * h) s := by |
| 155 | unfold pressureCoefficient VariableGaugeMean.similarityGauge VariableGaugeMean.qLength |
| 156 | rw [Real.sq_sqrt (SimilarityCoordinates.coordinateQ_spec hc hc1 hs).1.le] |
| 157 | |
| 158 | theorem similarity_pressureCoefficient_fderiv {h d a b M : ℝ} (hab : a < b) (index : ℕ → ℕ) |
| 159 | (hc : 0 < 2 * h) (hc1 : 2 * h < 1) (n : ℕ) {s : Plane} (hs : 0 < s.1) (v : Plane) : |
| 160 | fderiv ℝ (pressureCoefficient (VariableGaugeMean.similarityGauge h d a b M hab index) n) s v = |
| 161 | basePressureCoefficient a b hab * |
| 162 | ((v.1 + 2 * s.2 * SimilarityCoordinates.coordinateQ (2 * h) s ^ (2 * h) * v.2) / |
| 163 | SimilarityCoordinates.scalarSlope (2 * h) s.2 (SimilarityCoordinates.coordinateQ (2 * h) s)) := by |
| 164 | have he : pressureCoefficient (VariableGaugeMean.similarityGauge h d a b M hab index) n =ᶠ[𝓝 s] |
| 165 | (fun t => basePressureCoefficient a b hab * SimilarityCoordinates.coordinateQ (2 * h) t) := by |
| 166 | filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hs)] with t ht |
| 167 | exact similarity_pressureCoefficient hab index hc hc1 n ht |
| 168 | rw [he.fderiv_eq] |
| 169 | have hd := ((SimilarityCoordinates.coordinateQ_smooth hc hc1 hs).differentiableAt (by simp)).hasFDerivAt |
| 170 | rw [(hd.const_mul (basePressureCoefficient a b hab)).fderiv] |
| 171 | change basePressureCoefficient a b hab * fderiv ℝ (SimilarityCoordinates.coordinateQ (2 * h)) s v = _ |
| 172 | rw [SimilarityCoordinates.coordinateQ_fderiv_apply hc hc1 hs] |
| 173 | |
| 174 | end SimilarityCoefficient |
| 175 | |
| 176 | /-! ## Local integration on a genuine open slow region -/ |
| 177 | |
| 178 | section LocalIntegration |
| 179 | |
| 180 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 181 | |
| 182 | open StateMomentBalances |
| 183 | |
| 184 | /-- Local smoothness, compact radial support, and true torus periodicity of a |
| 185 | field. These are regularity hypotheses, not a moment equation. -/ |
| 186 | structure LocalField (a b : ℝ) (U : Set S) (f : ScalarField (PressureStream.Lift S)) : Prop where |
| 187 | smooth : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U) |
| 188 | supported : ∀ n, PhysicalMeanDomain.SupportedOn a b U (f n) |
| 189 | periodic : ∀ n, PhysicalMeanDomain.PeriodicOn U (f n) |
| 190 | |
| 191 | theorem LocalField.add {a b : ℝ} {U : Set S} {f g : ScalarField (PressureStream.Lift S)} |
| 192 | (hf : LocalField a b U f) (hg : LocalField a b U g) : LocalField a b U (f + g) := by |
| 193 | refine ⟨fun n => (hf.smooth n).add (hg.smooth n), ?_, ?_⟩ |
| 194 | · intro n x hx hn |
| 195 | by_cases h : f n x = 0 |
| 196 | · apply hg.supported n x hx |
| 197 | simpa only [Pi.add_apply, h, zero_add] using hn |
| 198 | · exact hf.supported n x hx h |
| 199 | · intro n R s hs Y k |
| 200 | exact congrArg₂ (· + ·) (hf.periodic n R s hs Y k) (hg.periodic n R s hs Y k) |
| 201 | |
| 202 | noncomputable def localizeFamily (χ : S → ℝ) (f : ScalarField (PressureStream.Lift S)) : |
| 203 | ScalarField (PressureStream.Lift S) := fun n => PhysicalMeanDomain.localize χ (f n) |
| 204 | |
| 205 | theorem LocalField.localize {a b : ℝ} {U : Set S} (hU : IsOpen U) |
| 206 | {f : ScalarField (PressureStream.Lift S)} (hf : LocalField a b U f) |
| 207 | {χ : S → ℝ} (hχ : ContDiff ℝ ∞ χ) (hs : tsupport χ ⊆ U) : |
| 208 | DefectIncrementBounds.Shell a b (localizeFamily χ f) := |
| 209 | ⟨fun n => PhysicalMeanDomain.localize_smooth hU hχ hs (hf.smooth n), |
| 210 | fun n => PhysicalMeanDomain.localize_supported hs (hf.supported n)⟩ |
| 211 | |
| 212 | theorem LocalField.localize_periodic {a b : ℝ} {U : Set S} |
| 213 | {f : ScalarField (PressureStream.Lift S)} (hf : LocalField a b U f) |
| 214 | {χ : S → ℝ} (hs : tsupport χ ⊆ U) (n : ℕ) : |
| 215 | PressureStream.TorusPeriodicLift (localizeFamily χ f n) := |
| 216 | PhysicalMeanDomain.localize_periodic hs (hf.periodic n) |
| 217 | |
| 218 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 219 | theorem radialMoment_fiber_congr (k : ℕ) {f g : ScalarField (PressureStream.Lift S)} |
| 220 | (n : ℕ) (s : S) (he : ∀ R Y, f n (R, (s, Y)) = g n (R, (s, Y))) : |
| 221 | CorrectionState.radialMoment k f n s = CorrectionState.radialMoment k g n s := by |
| 222 | rw [state_radialMoment_eq, state_radialMoment_eq] |
| 223 | apply integral_congr_ae |
| 224 | filter_upwards [] with R |
| 225 | exact congrArg (fun v => R ^ k * v) (PressureStream.torusAverage_congr_slice (R, s) (he R)) |
| 226 | |
| 227 | omit [NormedSpace ℝ S] in |
| 228 | theorem radialMoment_fiber_germ (k : ℕ) {f g : ScalarField (PressureStream.Lift S)} |
| 229 | (n : ℕ) {s : S} (he : PhysicalMeanDomain.FiberGerm s (f n) (g n)) : |
| 230 | CorrectionState.radialMoment k f n =ᶠ[𝓝 s] CorrectionState.radialMoment k g n := by |
| 231 | filter_upwards [he] with t ht |
| 232 | exact radialMoment_fiber_congr k n t ht |
| 233 | |
| 234 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 235 | theorem radialMoment_localize (k : ℕ) (χ : S → ℝ) (f : ScalarField (PressureStream.Lift S)) |
| 236 | (n : ℕ) (s : S) : |
| 237 | CorrectionState.radialMoment k (localizeFamily χ f) n s = |
| 238 | χ s * CorrectionState.radialMoment k f n s := by |
| 239 | have hb (R : ℝ) : PressureStream.torusAverage (localizeFamily χ f n) (R, s) = |
| 240 | χ s * PressureStream.torusAverage (f n) (R, s) := by |
| 241 | rw [← AuxiliaryAverage.average_const_mul] |
| 242 | exact PressureStream.torusAverage_congr_slice (R, s) (fun _ => rfl) |
| 243 | rw [state_radialMoment_eq, state_radialMoment_eq] |
| 244 | change IntegratedMeanBalances.moment k (fun R => PressureStream.torusAverage |
| 245 | (localizeFamily χ f n) (R, s)) = _ |
| 246 | simp only [hb] |
| 247 | exact IntegratedMeanBalances.moment_const_mul k (χ s) _ |
| 248 | |
| 249 | theorem dr_eventuallyEq (o : MeanIncrementBounds.Operators (PressureStream.Lift S)) |
| 250 | {f g : ScalarField (PressureStream.Lift S)} {n : ℕ} {x : PressureStream.Lift S} |
| 251 | (he : f n =ᶠ[𝓝 x] g n) : o.dr f n =ᶠ[𝓝 x] o.dr g n := by |
| 252 | filter_upwards [he.fderiv (𝕜 := ℝ)] with y hy |
| 253 | simp only [MeanIncrementBounds.Operators.dr, WeightedClasses.graphDerivative, hy] |
| 254 | |
| 255 | theorem dz_eventuallyEq (o : MeanIncrementBounds.Operators (PressureStream.Lift S)) |
| 256 | {f g : ScalarField (PressureStream.Lift S)} {n : ℕ} {x : PressureStream.Lift S} |
| 257 | (he : f n =ᶠ[𝓝 x] g n) : o.dz f n =ᶠ[𝓝 x] o.dz g n := by |
| 258 | filter_upwards [he.fderiv (𝕜 := ℝ)] with y hy |
| 259 | simp only [MeanIncrementBounds.Operators.dz, hy] |
| 260 | |
| 261 | theorem fluxResidual_eventuallyEq (o : MeanIncrementBounds.Operators (PressureStream.Lift S)) |
| 262 | (d k : ℝ) {u R Z T u' R' Z' T' : ScalarField (PressureStream.Lift S)} |
| 263 | {n : ℕ} {x : PressureStream.Lift S} |
| 264 | (hu : u n =ᶠ[𝓝 x] u' n) (hR : R n =ᶠ[𝓝 x] R' n) |
| 265 | (hZ : Z n =ᶠ[𝓝 x] Z' n) (hT : T n =ᶠ[𝓝 x] T' n) : |
| 266 | fluxResidual o d k u R Z T n =ᶠ[𝓝 x] fluxResidual o d k u' R' Z' T' n := by |
| 267 | have hdu := dr_eventuallyEq o hu |
| 268 | have hddu := dr_eventuallyEq o hdu |
| 269 | have hzzu := dz_eventuallyEq o (dz_eventuallyEq o hu) |
| 270 | have hdR := dr_eventuallyEq o hR |
| 271 | have hdT := dr_eventuallyEq o hT |
| 272 | have hdZ := dz_eventuallyEq o hZ |
| 273 | filter_upwards [hu, hu.fderiv (𝕜 := ℝ), hR, hT, hdu, hddu, hzzu, hdR, hdT, hdZ] |
| 274 | with y hy hdy hRy hTy hduy hdduy hzzy hdRy hdTy hdZy |
| 275 | simp only [fluxResidual, MeanIncrementBounds.Operators.time, |
| 276 | MeanIncrementBounds.Operators.slowTime, MeanIncrementBounds.Operators.fastTime, |
| 277 | MeanIncrementBounds.Operators.radialDiv, MeanIncrementBounds.Operators.viscosity, |
| 278 | Pi.add_apply, Pi.sub_apply, Pi.smul_apply, Pi.mul_apply, |
| 279 | hy, hdy, hRy, hTy, hduy, hdduy, hzzy, hdRy, hdTy, hdZy] |
| 280 | |
| 281 | theorem global_angular_moment {a b : ℝ} (ha : 0 < a) |
| 282 | (r : ReconstructionData) (ε fast : ℕ → ℝ) (z t : S) (v : Plane) |
| 283 | {u R Z T : ScalarField (PressureStream.Lift S)} (H : FluxInputs a b u R Z T) |
| 284 | (hmass : CorrectionState.radialMoment 2 u = 0) (n : ℕ) (s : S) : |
| 285 | CorrectionState.radialMoment 2 |
| 286 | (fluxResidual (nativeOperators r ε fast z t v) 2 1 u R Z T) n s = |
| 287 | ε n * fderiv ℝ (CorrectionState.radialMoment 2 Z n) s z := by |
| 288 | have hm : IntegratedMeanBalances.radialMoment 2 (averaged u n) = 0 := by |
| 289 | funext q |
| 290 | rw [← state_radialMoment_eq, hmass] |
| 291 | rfl |
| 292 | have he : averaged (fluxResidual (nativeOperators r ε fast z t v) 2 1 u R Z T) n = |
| 293 | angularBalanceAlong (ε n) z t (averaged u n) (averaged R n) (averaged Z n) (averaged T n) := by |
| 294 | funext x |
| 295 | rw [averaged_fluxResidual ha r ε fast z t v 2 1 H.velocity H.radial H.axial H.stress |
| 296 | H.velocity_periodic H.radial_periodic H.axial_periodic H.stress_periodic, balance_angular] |
| 297 | rw [state_radialMoment_eq, he, integrated_angular_along (ε n) z t |
| 298 | (averaged_radialShell H.velocity n) (averaged_radialShell H.radial n) |
| 299 | (averaged_radialShell H.axial n) (averaged_radialShell H.stress n) hm s] |
| 300 | rw [show IntegratedMeanBalances.radialMoment 2 (averaged Z n) = |
| 301 | CorrectionState.radialMoment 2 Z n from funext fun q => (state_radialMoment_eq 2 Z n q).symm] |
| 302 | |
| 303 | theorem global_axial_moment {a b : ℝ} (ha : 0 < a) |
| 304 | (r : ReconstructionData) (ε fast : ℕ → ℝ) (z t : S) (v : Plane) |
| 305 | {u R Z T : ScalarField (PressureStream.Lift S)} (H : FluxInputs a b u R Z T) |
| 306 | (hmass : CorrectionState.radialMoment 1 u = 0) (n : ℕ) (s : S) : |
| 307 | CorrectionState.radialMoment 1 |
| 308 | (fluxResidual (nativeOperators r ε fast z t v) 1 0 u R Z T) n s = |
| 309 | ε n * fderiv ℝ (CorrectionState.radialMoment 1 Z n) s z := by |
| 310 | have hm : IntegratedMeanBalances.radialMoment 1 (averaged u n) = 0 := by |
| 311 | funext q |
| 312 | rw [← state_radialMoment_eq, hmass] |
| 313 | rfl |
| 314 | have he : averaged (fluxResidual (nativeOperators r ε fast z t v) 1 0 u R Z T) n = |
| 315 | axialBalanceAlong (ε n) z t (averaged u n) (averaged R n) (averaged Z n) (averaged T n) := by |
| 316 | funext x |
| 317 | rw [averaged_fluxResidual ha r ε fast z t v 1 0 H.velocity H.radial H.axial H.stress |
| 318 | H.velocity_periodic H.radial_periodic H.axial_periodic H.stress_periodic, balance_axial] |
| 319 | rw [state_radialMoment_eq, he, integrated_axial_along (ε n) z t |
| 320 | (averaged_radialShell H.velocity n) (averaged_radialShell H.radial n) |
| 321 | (averaged_radialShell H.axial n) (averaged_radialShell H.stress n) hm s] |
| 322 | rw [show IntegratedMeanBalances.radialMoment 1 (averaged Z n) = |
| 323 | CorrectionState.radialMoment 1 Z n from funext fun q => (state_radialMoment_eq 1 Z n q).symm] |
| 324 | |
| 325 | structure LocalFluxInputs (a b : ℝ) (U : Set S) |
| 326 | (u R Z T : ScalarField (PressureStream.Lift S)) : Prop where |
| 327 | velocity : LocalField a b U u |
| 328 | radial : LocalField a b U R |
| 329 | axial : LocalField a b U Z |
| 330 | stress : LocalField a b U T |
| 331 | |
| 332 | omit [NormedSpace ℝ S] in |
| 333 | theorem localize_fiber_germ {s : S} {χ : S → ℝ} (hχ : χ =ᶠ[𝓝 s] fun _ => 1) |
| 334 | (f : ScalarField (PressureStream.Lift S)) (n : ℕ) : |
| 335 | PhysicalMeanDomain.FiberGerm s (localizeFamily χ f n) (f n) := by |
| 336 | filter_upwards [hχ] with t ht |
| 337 | intro R Y |
| 338 | simp only [localizeFamily, PhysicalMeanDomain.localize, ht, one_smul] |
| 339 | |
| 340 | omit [NormedSpace ℝ S] in |
| 341 | theorem localize_zero_moment {U : Set S} {χ : S → ℝ} |
| 342 | (hχ : tsupport χ ⊆ U) (e : ℕ) {u : ScalarField (PressureStream.Lift S)} |
| 343 | (hmass : ∀ n s, s ∈ U → CorrectionState.radialMoment e u n s = 0) : |
| 344 | CorrectionState.radialMoment e (localizeFamily χ u) = 0 := by |
| 345 | funext n s |
| 346 | rw [radialMoment_localize] |
| 347 | by_cases hc : χ s = 0 |
| 348 | · simp [hc] |
| 349 | · rw [hmass n s (hχ (subset_tsupport χ hc)), mul_zero] |
| 350 | rfl |
| 351 | |
| 352 | variable [FiniteDimensional ℝ S] |
| 353 | |
| 354 | theorem exists_slow_cutoff {U : Set S} (hU : IsOpen U) {s : S} (hs : s ∈ U) : |
| 355 | ∃ χ : S → ℝ, ContDiff ℝ ∞ χ ∧ tsupport χ ⊆ U ∧ χ =ᶠ[𝓝 s] fun _ => 1 := by |
| 356 | obtain ⟨χ, hc, hcs, _, he⟩ := PhysicalMeanDomain.exists_fiber_localization hU hs |
| 357 | (f := fun _ : PressureStream.Lift S => (1 : ℝ)) contDiffOn_const |
| 358 | refine ⟨χ, hc, hcs, ?_⟩ |
| 359 | filter_upwards [he] with t ht |
| 360 | simpa only [PhysicalMeanDomain.localize, smul_eq_mul, mul_one] using ht 0 0 |
| 361 | |
| 362 | omit [FiniteDimensional ℝ S] in |
| 363 | theorem LocalFluxInputs.localize {a b : ℝ} {U : Set S} (hU : IsOpen U) |
| 364 | {u R Z T : ScalarField (PressureStream.Lift S)} (H : LocalFluxInputs a b U u R Z T) |
| 365 | {χ : S → ℝ} (hχ : ContDiff ℝ ∞ χ) (hs : tsupport χ ⊆ U) : |
| 366 | FluxInputs a b (localizeFamily χ u) (localizeFamily χ R) |
| 367 | (localizeFamily χ Z) (localizeFamily χ T) := |
| 368 | ⟨H.velocity.localize hU hχ hs, H.radial.localize hU hχ hs, |
| 369 | H.axial.localize hU hχ hs, H.stress.localize hU hχ hs, |
| 370 | H.velocity.localize_periodic hs, H.radial.localize_periodic hs, |
| 371 | H.axial.localize_periodic hs, H.stress.localize_periodic hs⟩ |
| 372 | |
| 373 | omit [FiniteDimensional ℝ S] in |
| 374 | theorem residual_moment_localize (o : MeanIncrementBounds.Operators (PressureStream.Lift S)) |
| 375 | (e : ℕ) (d k : ℝ) {s : S} {χ : S → ℝ} (hχ : χ =ᶠ[𝓝 s] fun _ => 1) |
| 376 | (u R Z T : ScalarField (PressureStream.Lift S)) (n : ℕ) : |
| 377 | CorrectionState.radialMoment e (fluxResidual o d k |
| 378 | (localizeFamily χ u) (localizeFamily χ R) (localizeFamily χ Z) (localizeFamily χ T)) n s = |
| 379 | CorrectionState.radialMoment e (fluxResidual o d k u R Z T) n s := by |
| 380 | apply radialMoment_fiber_congr |
| 381 | intro r Y |
| 382 | exact (fluxResidual_eventuallyEq o d k |
| 383 | ((localize_fiber_germ hχ u n).eventuallyEq r Y) |
| 384 | ((localize_fiber_germ hχ R n).eventuallyEq r Y) |
| 385 | ((localize_fiber_germ hχ Z n).eventuallyEq r Y) |
| 386 | ((localize_fiber_germ hχ T n).eventuallyEq r Y)).self_of_nhds |
| 387 | |
| 388 | /-- All slow and radial derivatives are taken before integration. A compact |
| 389 | slow cutoff equals one on a whole neighborhood, so no moving-boundary terms |
| 390 | are omitted. -/ |
| 391 | theorem local_angular_moment {a b : ℝ} (ha : 0 < a) {U : Set S} (hU : IsOpen U) |
| 392 | (r : ReconstructionData) (ε fast : ℕ → ℝ) (z t : S) (v : Plane) |
| 393 | {u R Z T : ScalarField (PressureStream.Lift S)} (H : LocalFluxInputs a b U u R Z T) |
| 394 | (hmass : ∀ n s, s ∈ U → CorrectionState.radialMoment 2 u n s = 0) |
| 395 | (n : ℕ) {s : S} (hs : s ∈ U) : |
| 396 | CorrectionState.radialMoment 2 |
| 397 | (fluxResidual (nativeOperators r ε fast z t v) 2 1 u R Z T) n s = |
| 398 | ε n * fderiv ℝ (CorrectionState.radialMoment 2 Z n) s z := by |
| 399 | obtain ⟨χ, hc, hcs, he⟩ := exists_slow_cutoff hU hs |
| 400 | have hh := global_angular_moment ha r ε fast z t v (H.localize hU hc hcs) |
| 401 | (localize_zero_moment hcs 2 hmass) n s |
| 402 | rw [residual_moment_localize _ 2 2 1 he u R Z T n, |
| 403 | (radialMoment_fiber_germ 2 n (localize_fiber_germ he Z n)).fderiv_eq] at hh |
| 404 | exact hh |
| 405 | |
| 406 | theorem local_axial_moment {a b : ℝ} (ha : 0 < a) {U : Set S} (hU : IsOpen U) |
| 407 | (r : ReconstructionData) (ε fast : ℕ → ℝ) (z t : S) (v : Plane) |
| 408 | {u R Z T : ScalarField (PressureStream.Lift S)} (H : LocalFluxInputs a b U u R Z T) |
| 409 | (hmass : ∀ n s, s ∈ U → CorrectionState.radialMoment 1 u n s = 0) |
| 410 | (n : ℕ) {s : S} (hs : s ∈ U) : |
| 411 | CorrectionState.radialMoment 1 |
| 412 | (fluxResidual (nativeOperators r ε fast z t v) 1 0 u R Z T) n s = |
| 413 | ε n * fderiv ℝ (CorrectionState.radialMoment 1 Z n) s z := by |
| 414 | obtain ⟨χ, hc, hcs, he⟩ := exists_slow_cutoff hU hs |
| 415 | have hh := global_axial_moment ha r ε fast z t v (H.localize hU hc hcs) |
| 416 | (localize_zero_moment hcs 1 hmass) n s |
| 417 | rw [residual_moment_localize _ 1 1 0 he u R Z T n, |
| 418 | (radialMoment_fiber_germ 1 n (localize_fiber_germ he Z n)).fderiv_eq] at hh |
| 419 | exact hh |
| 420 | |
| 421 | theorem LocalField.radialMoment_smooth {a b : ℝ} {U : Set S} (hU : IsOpen U) |
| 422 | {f : ScalarField (PressureStream.Lift S)} (hf : LocalField a b U f) (e n : ℕ) : |
| 423 | ContDiffOn ℝ ∞ (CorrectionState.radialMoment e f n) U := by |
| 424 | have hsm : ContDiffOn ℝ ∞ (fun x : PressureStream.Lift S => x.1 ^ e * f n x) |
| 425 | (PhysicalMeanDomain.slowDomain U) := (contDiffOn_fst.pow e).mul (hf.smooth n) |
| 426 | have hsp : PhysicalMeanDomain.SupportedOn a b U |
| 427 | (fun x : PressureStream.Lift S => x.1 ^ e * f n x) := by |
| 428 | intro x hx hn |
| 429 | exact hf.supported n x hx (right_ne_zero_of_mul hn) |
| 430 | have hm := PhysicalMeanDomain.liftedPressureMass_contDiffOn hU hsm hsp |
| 431 | have hi : ContDiffOn ℝ ∞ (fun s : S => ((0 : ℝ), (s, (0 : Plane)))) U := |
| 432 | contDiffOn_const.prodMk (contDiffOn_id.prodMk contDiffOn_const) |
| 433 | exact hm.comp hi (fun s hs => hs) |
| 434 | |
| 435 | theorem LocalField.radialMoment_add {a b : ℝ} {U : Set S} (hU : IsOpen U) |
| 436 | {f g : ScalarField (PressureStream.Lift S)} (hf : LocalField a b U f) |
| 437 | (hg : LocalField a b U g) (e n : ℕ) {s : S} (hs : s ∈ U) : |
| 438 | CorrectionState.radialMoment e (f + g) n s = |
| 439 | CorrectionState.radialMoment e f n s + CorrectionState.radialMoment e g n s := by |
| 440 | obtain ⟨χ, hc, hcs, he⟩ := exists_slow_cutoff hU hs |
| 441 | have hχ : χ s = 1 := he.self_of_nhds |
| 442 | have hh := congrFun (congrFun |
| 443 | (DefectIncrementBounds.barMoment_add (hf.localize hU hc hcs) (hg.localize hU hc hcs) e) n) s |
| 444 | have heq : localizeFamily χ f + localizeFamily χ g = localizeFamily χ (f + g) := by |
| 445 | funext n x |
| 446 | simp [localizeFamily, PhysicalMeanDomain.localize, mul_add] |
| 447 | change CorrectionState.radialMoment e (localizeFamily χ f + localizeFamily χ g) n s = |
| 448 | CorrectionState.radialMoment e (localizeFamily χ f) n s + |
| 449 | CorrectionState.radialMoment e (localizeFamily χ g) n s at hh |
| 450 | simpa only [heq, radialMoment_localize, hχ, one_mul] using hh |
| 451 | |
| 452 | end LocalIntegration |
| 453 | |
| 454 | /-! ## The actual reconstructed state in a moving similarity shell -/ |
| 455 | |
| 456 | section MovingState |
| 457 | |
| 458 | open StateMomentBalances LocalSignedRequest |
| 459 | |
| 460 | /-- Regularity of an actual field on the moving physical shell. -/ |
| 461 | structure MovingField {coord : ℝ} (U : SlowRegion coord) (a b : ℝ) |
| 462 | (f : ScalarField Point) : Prop where |
| 463 | smooth : ∀ n, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U.carrier) |
| 464 | supported : ∀ n, VariableGaugeMean.SupportedGauge a b |
| 465 | (VariableGaugeMean.qLength coord) U.carrier (f n) |
| 466 | periodic : ∀ n, PhysicalMeanDomain.PeriodicOn U.carrier (f n) |
| 467 | |
| 468 | theorem MovingField.containing {coord a b c e : ℝ} {U : SlowRegion coord} |
| 469 | {f : ScalarField Point} (hf : MovingField U a b f) |
| 470 | (hl : ∀ s ∈ U.carrier, c ≤ VariableGaugeMean.qLength coord s * a) |
| 471 | (hr : ∀ s ∈ U.carrier, VariableGaugeMean.qLength coord s * b ≤ e) : |
| 472 | LocalField c e U.carrier f := by |
| 473 | refine ⟨hf.smooth, ?_, hf.periodic⟩ |
| 474 | intro n x hx hn |
| 475 | exact ⟨(hl _ hx).trans (hf.supported n x hx hn).1, |
| 476 | (hf.supported n x hx hn).2.trans (hr _ hx)⟩ |
| 477 | |
| 478 | theorem MovingField.radialMoment_smooth {coord a b : ℝ} {U : SlowRegion coord} |
| 479 | (ha : 0 < a) (hab : a < b) {f : ScalarField Point} (hf : MovingField U a b f) |
| 480 | (e n : ℕ) : ContDiffOn ℝ ∞ (CorrectionState.radialMoment e f n) U.carrier := by |
| 481 | obtain ⟨c, e', _, _, _, _, _, hl, hr, _⟩ := VariableGaugeMean.qLength_reference_bounds U ha hab |
| 482 | exact (hf.containing hl hr).radialMoment_smooth U.isOpen e n |
| 483 | |
| 484 | structure MovingFluxInputs {coord : ℝ} (U : SlowRegion coord) (a b : ℝ) |
| 485 | (u R Z T : ScalarField Point) : Prop where |
| 486 | velocity : MovingField U a b u |
| 487 | radial : MovingField U a b R |
| 488 | axial : MovingField U a b Z |
| 489 | stress : MovingField U a b T |
| 490 | |
| 491 | abbrev MovingAngularInputs {coord : ℝ} (U : SlowRegion coord) (a b : ℝ) |
| 492 | (c : Context Point) (u : State Point) := |
| 493 | MovingFluxInputs U a b u.mean.angular (thetaRadialFlux c u) (thetaAxialFlux c u) c.virtualTheta |
| 494 | |
| 495 | abbrev MovingAxialInputs {coord : ℝ} (U : SlowRegion coord) (a b : ℝ) |
| 496 | (c : Context Point) (u : State Point) := |
| 497 | MovingFluxInputs U a b u.mean.axial (axialRadialFlux c u) (axialAxialFlux c u) c.virtualAxial |
| 498 | |
| 499 | noncomputable def pressureRecipe (g : VariableGaugeMean.GaugeData Plane) |
| 500 | (c : Context Point) (u : State Point) : ScalarField Point := |
| 501 | (VariableGaugeMean.reconstructState g c u).pressure |
| 502 | |
| 503 | noncomputable def axialDebtPotential (g : VariableGaugeMean.GaugeData Plane) |
| 504 | (c : Context Point) (u : State Point) : ScalarField Plane := |
| 505 | fun n s => CorrectionState.axialDefect c u n s + |
| 506 | pressureCoefficient g n s * CorrectionState.pressureDefect c u n s |
| 507 | |
| 508 | theorem pressureRecipe_movingField {coord : ℝ} (U : SlowRegion coord) |
| 509 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 510 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 511 | (c : Context Point) (u : State Point) |
| 512 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) : |
| 513 | MovingField U g.radial.inner g.radial.outer (pressureRecipe g c u) := by |
| 514 | refine ⟨?_, ?_, ?_⟩ |
| 515 | · intro n |
| 516 | change ContDiffOn ℝ ∞ (VariableGaugeMean.meanPressure g.radial.exponent g.radial.inner |
| 517 | g.radial.outer (g.radial.frequency n) g.radial.inner_lt_outer (g.length n) |
| 518 | g.radial.radialDirection (u.gr c n)) _ |
| 519 | rw [hg n] |
| 520 | exact VariableGaugeMean.meanPressure_q_contDiffOn U ha g.radial.inner_lt_outer hd |
| 521 | (g.radial.frequency n) g.radial.radialDirection (hf.smooth n) (hf.supported n) |
| 522 | · intro n |
| 523 | change VariableGaugeMean.SupportedGauge _ _ _ _ |
| 524 | (VariableGaugeMean.meanPressure g.radial.exponent g.radial.inner g.radial.outer |
| 525 | (g.radial.frequency n) g.radial.inner_lt_outer (g.length n) g.radial.radialDirection (u.gr c n)) |
| 526 | rw [hg n] |
| 527 | exact VariableGaugeMean.meanPressure_q_supportedGauge U ha g.radial.inner_lt_outer hd |
| 528 | (g.radial.frequency n) g.radial.radialDirection (hf.smooth n) (hf.supported n) |
| 529 | · intro n |
| 530 | exact VariableGaugeMean.meanPressure_periodicOn g.radial.inner_lt_outer |
| 531 | g.radial.exponent (g.radial.frequency n) (g.length n) g.radial.radialDirection (hf.periodic n) |
| 532 | |
| 533 | theorem pressureRecipe_moment {coord : ℝ} (U : SlowRegion coord) |
| 534 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 535 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 536 | (c : Context Point) (u : State Point) |
| 537 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 538 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 539 | CorrectionState.radialMoment 1 (pressureRecipe g c u) n s = |
| 540 | -(1 / 2 : ℝ) * CorrectionState.radialMoment 2 (u.gr c) n s + |
| 541 | pressureCoefficient g n s * CorrectionState.pressureDefect c u n s := by |
| 542 | have hl : 0 < g.length n s := by |
| 543 | rw [hg n] |
| 544 | exact VariableGaugeMean.qLength_pos U.coord_pos U.coord_lt_one (U.time_pos s hs) |
| 545 | have hsp : VariableGaugeMean.SupportedGauge g.radial.inner g.radial.outer (g.length n) |
| 546 | U.carrier (u.gr c n) := by rw [hg n]; exact hf.supported n |
| 547 | have hh := moving_pressure_moment (M := g.radial.frequency n) ha g.radial.inner_lt_outer hd (g.length n) |
| 548 | g.radial.radialDirection U.isOpen (hf.smooth n) hsp (hf.periodic n) hs hl |
| 549 | rw [state_radialMoment_eq, state_radialMoment_eq] |
| 550 | simpa only [pressureRecipe, VariableGaugeMean.reconstructState, averaged, |
| 551 | IntegratedMeanBalances.radialMoment, pressureCoefficient, |
| 552 | CorrectionState.pressureDefect, CorrectionState.radialMoment, pow_zero, one_mul] using hh |
| 553 | |
| 554 | theorem axial_flux_pressure_moment {coord : ℝ} (U : SlowRegion coord) |
| 555 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 556 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 557 | (c : Context Point) (u : State Point) |
| 558 | (hZ : MovingField U g.radial.inner g.radial.outer (axialAxialFlux c u)) |
| 559 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 560 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 561 | CorrectionState.radialMoment 1 (axialAxialFlux c u + pressureRecipe g c u) n s = |
| 562 | axialDebtPotential g c u n s := by |
| 563 | obtain ⟨a, b, _, _, _, _, _, hl, hr, _⟩ := |
| 564 | VariableGaugeMean.qLength_reference_bounds U ha g.radial.inner_lt_outer |
| 565 | rw [(hZ.containing hl hr).radialMoment_add U.isOpen |
| 566 | ((pressureRecipe_movingField U g ha hd hg c u hf).containing hl hr) 1 n hs, |
| 567 | pressureRecipe_moment U g ha hd hg c u hf n hs] |
| 568 | simp only [axialDebtPotential, CorrectionState.axialDefect, Pi.sub_apply, Pi.smul_apply, |
| 569 | smul_eq_mul, axialAxialFlux] |
| 570 | ring |
| 571 | |
| 572 | theorem state_angular_moment {coord a b : ℝ} (U : SlowRegion coord) |
| 573 | (ha : 0 < a) (hab : a < b) (r : ReconstructionData) |
| 574 | (ε fast : ℕ → ℝ) (z t v : Plane) (c : Context Point) (u : State Point) |
| 575 | (ho : c.operators = nativeOperators r ε fast z t v) |
| 576 | (H : MovingAngularInputs U a b c u) |
| 577 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 2 u.mean.angular n s = 0) |
| 578 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 579 | CorrectionState.radialMoment 2 (u.thetaResidual c) n s = |
| 580 | ε n * fderiv ℝ (CorrectionState.thetaDefect c u n) s z := by |
| 581 | obtain ⟨a', b', _, ha', _, _, _, hl, hr, _⟩ := VariableGaugeMean.qLength_reference_bounds U ha hab |
| 582 | have he : u.thetaResidual c = fluxResidual (nativeOperators r ε fast z t v) 2 1 |
| 583 | u.mean.angular (thetaRadialFlux c u) (thetaAxialFlux c u) c.virtualTheta := by |
| 584 | simp only [State.thetaResidual, MeanIncrementBounds.thetaResidual, fluxResidual, |
| 585 | thetaRadialFlux, thetaAxialFlux, ho] |
| 586 | rw [he] |
| 587 | exact local_angular_moment ha' U.isOpen r ε fast z t v |
| 588 | ⟨H.velocity.containing hl hr, H.radial.containing hl hr, |
| 589 | H.axial.containing hl hr, H.stress.containing hl hr⟩ hmass n hs |
| 590 | |
| 591 | /-- The residual is evaluated on the literal moving-gauge reconstruction. |
| 592 | The differentiated potential contains the full variable measured coefficient. -/ |
| 593 | theorem reconstructed_state_axial_moment {coord : ℝ} (U : SlowRegion coord) |
| 594 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 595 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 596 | (ε fast : ℕ → ℝ) (z t v : Plane) (c : Context Point) (u : State Point) |
| 597 | (ho : c.operators = nativeOperators g.radial ε fast z t v) |
| 598 | (H : MovingAxialInputs U g.radial.inner g.radial.outer c u) |
| 599 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 600 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 1 u.mean.axial n s = 0) |
| 601 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 602 | CorrectionState.radialMoment 1 ((VariableGaugeMean.reconstructState g c u).axialResidual c) n s = |
| 603 | ε n * fderiv ℝ (axialDebtPotential g c u n) s z := by |
| 604 | obtain ⟨a', b', _, ha', _, _, _, hl, hr, _⟩ := |
| 605 | VariableGaugeMean.qLength_reference_bounds U ha g.radial.inner_lt_outer |
| 606 | have hp := (pressureRecipe_movingField U g ha hd hg c u hf).containing hl hr |
| 607 | have he : (VariableGaugeMean.reconstructState g c u).axialResidual c = |
| 608 | fluxResidual (nativeOperators g.radial ε fast z t v) 1 0 |
| 609 | u.mean.axial (axialRadialFlux c u) (axialAxialFlux c u + pressureRecipe g c u) c.virtualAxial := by |
| 610 | simp only [VariableGaugeMean.reconstructState, State.axialResidual, |
| 611 | MeanIncrementBounds.axialResidual, fluxResidual, axialRadialFlux, axialAxialFlux, |
| 612 | pressureRecipe, ho] |
| 613 | rfl |
| 614 | have hh := local_axial_moment ha' U.isOpen g.radial ε fast z t v |
| 615 | ⟨H.velocity.containing hl hr, H.radial.containing hl hr, |
| 616 | (H.axial.containing hl hr).add hp, H.stress.containing hl hr⟩ hmass n hs |
| 617 | have heq : CorrectionState.radialMoment 1 (axialAxialFlux c u + pressureRecipe g c u) n =ᶠ[𝓝 s] |
| 618 | axialDebtPotential g c u n := by |
| 619 | filter_upwards [U.isOpen.mem_nhds hs] with q hq |
| 620 | exact axial_flux_pressure_moment U g ha hd hg c u H.axial hf n hq |
| 621 | rwa [he, ← heq.fderiv_eq] |
| 622 | |
| 623 | theorem state_axial_moment {coord : ℝ} (U : SlowRegion coord) |
| 624 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 625 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 626 | (ε fast : ℕ → ℝ) (z t v : Plane) (c : Context Point) (u : State Point) |
| 627 | (ho : c.operators = nativeOperators g.radial ε fast z t v) |
| 628 | (H : MovingAxialInputs U g.radial.inner g.radial.outer c u) |
| 629 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 630 | (hfixed : VariableGaugeMean.reconstructState g c u = u) |
| 631 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 1 u.mean.axial n s = 0) |
| 632 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 633 | CorrectionState.radialMoment 1 (u.axialResidual c) n s = |
| 634 | ε n * fderiv ℝ (axialDebtPotential g c u n) s z := by |
| 635 | simpa only [hfixed] using |
| 636 | reconstructed_state_axial_moment U g ha hd hg ε fast z t v c u ho H hf hmass n hs |
| 637 | |
| 638 | end MovingState |
| 639 | |
| 640 | /-! ## All variable-coefficient terms and the actual debt classes -/ |
| 641 | |
| 642 | section DebtClasses |
| 643 | |
| 644 | open WeightedClasses LocalSignedRequest StateMomentBalances |
| 645 | |
| 646 | theorem q_pressureCoefficient {coord : ℝ} (U : SlowRegion coord) |
| 647 | (g : VariableGaugeMean.GaugeData Plane) |
| 648 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 649 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 650 | pressureCoefficient g n s = |
| 651 | basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * |
| 652 | SimilarityCoordinates.coordinateQ coord s := by |
| 653 | unfold pressureCoefficient |
| 654 | rw [hg n] |
| 655 | unfold VariableGaugeMean.qLength |
| 656 | rw [Real.sq_sqrt (SimilarityCoordinates.coordinateQ_spec U.coord_pos U.coord_lt_one |
| 657 | (U.time_pos s hs)).1.le] |
| 658 | |
| 659 | theorem pressureCoefficient_smooth {coord : ℝ} (U : SlowRegion coord) |
| 660 | (g : VariableGaugeMean.GaugeData Plane) |
| 661 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) (n : ℕ) : |
| 662 | ContDiffOn ℝ ∞ (pressureCoefficient g n) U.carrier := by |
| 663 | change ContDiffOn ℝ ∞ (fun s => |
| 664 | basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * g.length n s ^ 2) _ |
| 665 | rw [hg n] |
| 666 | exact contDiffOn_const.mul (((VariableGaugeMean.qLength_contDiffOn U.coord_pos U.coord_lt_one).mono |
| 667 | (fun s hs => U.time_pos s hs)).pow 2) |
| 668 | |
| 669 | theorem q_pressureCoefficient_fderiv {coord : ℝ} (U : SlowRegion coord) |
| 670 | (g : VariableGaugeMean.GaugeData Plane) |
| 671 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 672 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) (v : Plane) : |
| 673 | fderiv ℝ (pressureCoefficient g n) s v = |
| 674 | basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * |
| 675 | ((v.1 + 2 * s.2 * SimilarityCoordinates.coordinateQ coord s ^ coord * v.2) / |
| 676 | SimilarityCoordinates.scalarSlope coord s.2 (SimilarityCoordinates.coordinateQ coord s)) := by |
| 677 | have he : pressureCoefficient g n =ᶠ[𝓝 s] |
| 678 | (fun t => basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * |
| 679 | SimilarityCoordinates.coordinateQ coord t) := by |
| 680 | filter_upwards [U.isOpen.mem_nhds hs] with t ht |
| 681 | exact q_pressureCoefficient U g hg n ht |
| 682 | rw [he.fderiv_eq] |
| 683 | have hd := ((SimilarityCoordinates.coordinateQ_smooth U.coord_pos U.coord_lt_one |
| 684 | (U.time_pos s hs)).differentiableAt (by simp)).hasFDerivAt |
| 685 | rw [(hd.const_mul (basePressureCoefficient g.radial.inner g.radial.outer |
| 686 | g.radial.inner_lt_outer)).fderiv] |
| 687 | change basePressureCoefficient _ _ _ * fderiv ℝ (SimilarityCoordinates.coordinateQ coord) s v = _ |
| 688 | rw [SimilarityCoordinates.coordinateQ_fderiv_apply U.coord_pos U.coord_lt_one (U.time_pos s hs)] |
| 689 | |
| 690 | /-- On the positive axial half-plane the coefficient has a strictly positive |
| 691 | axial derivative, so replacing it by a constant would change the identity. -/ |
| 692 | theorem q_pressureCoefficient_axial_derivative_pos {coord : ℝ} (U : SlowRegion coord) |
| 693 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) |
| 694 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 695 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) (hz : 0 < s.2) : |
| 696 | 0 < fderiv ℝ (pressureCoefficient g n) s (0, 1) := by |
| 697 | have hq := SimilarityCoordinates.coordinateQ_spec U.coord_pos U.coord_lt_one (U.time_pos s hs) |
| 698 | have hforward : 0 < SimilarityCoordinates.forwardScalar coord s.2 |
| 699 | (SimilarityCoordinates.coordinateQ coord s) := by rw [hq.2]; exact U.time_pos s hs |
| 700 | have hsl := SimilarityCoordinates.scalarSlope_pos U.coord_pos U.coord_lt_one hq.1 hforward |
| 701 | rw [q_pressureCoefficient_fderiv U g hg n hs] |
| 702 | simp only [zero_add, mul_one] |
| 703 | exact mul_pos (basePressureCoefficient_pos ha g.radial.inner_lt_outer) |
| 704 | (div_pos (mul_pos (mul_pos (by norm_num) hz) (Real.rpow_pos_of_pos hq.1 coord)) hsl) |
| 705 | |
| 706 | theorem axialDebtPotential_smooth {coord : ℝ} (U : SlowRegion coord) |
| 707 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) |
| 708 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 709 | (c : Context Point) (u : State Point) |
| 710 | (hZ : MovingField U g.radial.inner g.radial.outer (axialAxialFlux c u)) |
| 711 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) (n : ℕ) : |
| 712 | ContDiffOn ℝ ∞ (axialDebtPotential g c u n) U.carrier := by |
| 713 | exact ((hZ.radialMoment_smooth ha g.radial.inner_lt_outer 1 n).sub |
| 714 | ((hf.radialMoment_smooth ha g.radial.inner_lt_outer 2 n).const_smul (1 / 2 : ℝ))).add |
| 715 | ((pressureCoefficient_smooth U g hg n).mul |
| 716 | (hf.radialMoment_smooth ha g.radial.inner_lt_outer 0 n)) |
| 717 | |
| 718 | /-- The product rule is applied to the actual measured coefficient. In |
| 719 | particular, the last summand is present even if the unweighted debts are known. -/ |
| 720 | theorem axialDebtPotential_fderiv {coord : ℝ} (U : SlowRegion coord) |
| 721 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) |
| 722 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 723 | (c : Context Point) (u : State Point) |
| 724 | (hZ : MovingField U g.radial.inner g.radial.outer (axialAxialFlux c u)) |
| 725 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 726 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) (v : Plane) : |
| 727 | fderiv ℝ (axialDebtPotential g c u n) s v = |
| 728 | fderiv ℝ (CorrectionState.axialDefect c u n) s v + |
| 729 | pressureCoefficient g n s * fderiv ℝ (CorrectionState.pressureDefect c u n) s v + |
| 730 | fderiv ℝ (pressureCoefficient g n) s v * CorrectionState.pressureDefect c u n s := by |
| 731 | have hP : ContDiffOn ℝ ∞ (CorrectionState.pressureDefect c u n) U.carrier := |
| 732 | hf.radialMoment_smooth ha g.radial.inner_lt_outer 0 n |
| 733 | have hJ : ContDiffOn ℝ ∞ (CorrectionState.axialDefect c u n) U.carrier := |
| 734 | (hZ.radialMoment_smooth ha g.radial.inner_lt_outer 1 n).sub |
| 735 | ((hf.radialMoment_smooth ha g.radial.inner_lt_outer 2 n).const_smul (1 / 2 : ℝ)) |
| 736 | have hp := ((hP.contDiffAt (U.isOpen.mem_nhds hs)).differentiableAt (by simp)).hasFDerivAt |
| 737 | have hj := ((hJ.contDiffAt (U.isOpen.mem_nhds hs)).differentiableAt (by simp)).hasFDerivAt |
| 738 | have hc := (((pressureCoefficient_smooth U g hg n).contDiffAt |
| 739 | (U.isOpen.mem_nhds hs)).differentiableAt (by simp)).hasFDerivAt |
| 740 | change fderiv ℝ (fun s => CorrectionState.axialDefect c u n s + |
| 741 | pressureCoefficient g n s * CorrectionState.pressureDefect c u n s) s v = _ |
| 742 | rw [(hj.fun_add (hc.fun_mul hp)).fderiv] |
| 743 | simp only [_root_.add_apply, _root_.smul_apply, smul_eq_mul] |
| 744 | ring |
| 745 | |
| 746 | /-- Explicit native `Z` balance, with the moving-density derivative retained. -/ |
| 747 | theorem state_axial_moment_expanded {coord : ℝ} (U : SlowRegion coord) |
| 748 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 749 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 750 | (ε fast : ℕ → ℝ) (v : Plane) (c : Context Point) (u : State Point) |
| 751 | (ho : c.operators = nativeOperators g.radial ε fast (0, 1) (1, 0) v) |
| 752 | (H : MovingAxialInputs U g.radial.inner g.radial.outer c u) |
| 753 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 754 | (hfixed : VariableGaugeMean.reconstructState g c u = u) |
| 755 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 1 u.mean.axial n s = 0) |
| 756 | (n : ℕ) {s : Plane} (hs : s ∈ U.carrier) : |
| 757 | CorrectionState.radialMoment 1 (u.axialResidual c) n s = ε n * |
| 758 | (fderiv ℝ (CorrectionState.axialDefect c u n) s (0, 1) + |
| 759 | pressureCoefficient g n s * fderiv ℝ (CorrectionState.pressureDefect c u n) s (0, 1) + |
| 760 | (basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * |
| 761 | ((2 * s.2 * SimilarityCoordinates.coordinateQ coord s ^ coord) / |
| 762 | SimilarityCoordinates.scalarSlope coord s.2 (SimilarityCoordinates.coordinateQ coord s))) * |
| 763 | CorrectionState.pressureDefect c u n s) := by |
| 764 | rw [state_axial_moment U g ha hd hg ε fast (0, 1) (1, 0) v c u ho H hf hfixed hmass n hs, |
| 765 | axialDebtPotential_fderiv U g ha hg c u H.axial hf n hs, |
| 766 | q_pressureCoefficient_fderiv U g hg n hs] |
| 767 | simp only [zero_add, mul_one] |
| 768 | |
| 769 | theorem pressureCoefficient_unweighted {coord : ℝ} (U : SlowRegion coord) |
| 770 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 771 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 772 | (g : VariableGaugeMean.GaugeData Plane) |
| 773 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) : |
| 774 | UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) 0 |
| 775 | (fun n x => pressureCoefficient g n x.2.1) := by |
| 776 | have hq := qPower_unweighted U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL 1 |
| 777 | simp only [Real.rpow_one] at hq |
| 778 | have hc := hq.map ((ContinuousLinearMap.lsmul ℝ ℝ) |
| 779 | (basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer)) |
| 780 | apply MeanIncrementBounds.class_congr hc |
| 781 | intro n x hx |
| 782 | have hs := ((movingStrip_domain U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL x).mp hx).1 |
| 783 | change pressureCoefficient g n x.2.1 = |
| 784 | basePressureCoefficient g.radial.inner g.radial.outer g.radial.inner_lt_outer * |
| 785 | SimilarityCoordinates.coordinateQ coord x.2.1 |
| 786 | exact q_pressureCoefficient U g hg n hs |
| 787 | |
| 788 | /-- The combined potential has the same all-jet order as its actual two |
| 789 | debt components. The coefficient estimate uses the same moving strip. -/ |
| 790 | theorem axialDebtPotential_unweighted {coord : ℝ} (U : SlowRegion coord) |
| 791 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 792 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 793 | (g : VariableGaugeMean.GaugeData Plane) |
| 794 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 795 | (c : Context Point) (u : State Point) (α : ℝ) |
| 796 | (hP : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 797 | (fun n x => CorrectionState.pressureDefect c u n x.2.1)) |
| 798 | (hZ : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 799 | (fun n x => CorrectionState.axialDefect c u n x.2.1)) : |
| 800 | UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 801 | (fun n x => axialDebtPotential g c u n x.2.1) := by |
| 802 | have hc := (pressureCoefficient_unweighted U P hcL hcR ε L hε hεone hL g hg).mul hP |
| 803 | simp only [one_mul, zero_add] at hc |
| 804 | exact hZ.add hc |
| 805 | |
| 806 | end DebtClasses |
| 807 | |
| 808 | /-! ## Removed physical bumps for the same actual residuals -/ |
| 809 | |
| 810 | section RemovedBumps |
| 811 | |
| 812 | open WeightedClasses LocalSignedRequest StateMomentBalances |
| 813 | |
| 814 | /-- The literal angular residual, its measured mass, and the removed physical |
| 815 | bump all refer to the same state and moving chart. -/ |
| 816 | theorem state_angular_bump_improvedClass {coord a b : ℝ} (U : SlowRegion coord) |
| 817 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 818 | (ha : 0 < a) (hab : a < b) (r : ReconstructionData) |
| 819 | (ε fast L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 820 | (z t v : Plane) (c : Context Point) (u : State Point) (α : ℝ) |
| 821 | (ho : c.operators = nativeOperators r ε fast z t v) |
| 822 | (H : MovingAngularInputs U a b c u) |
| 823 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 2 u.mean.angular n s = 0) |
| 824 | (hD : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 825 | (fun n x => CorrectionState.thetaDefect c u n x.2.1)) : |
| 826 | MeanClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) (α + 1) |
| 827 | (fun n x => SignedStressPrimitive.physicalBump P 2 (SimilarityCoordinates.coordinateQ coord) |
| 828 | (PressureStream.torusAverage (u.thetaResidual c n)) (x.1, x.2.1)) := by |
| 829 | apply physicalBump_improvedClass_of_moment U P 2 hcL hcR ε L hε hεone hL |
| 830 | (u.thetaResidual c) (CorrectionState.thetaDefect c u) z α |
| 831 | (fun n => H.axial.radialMoment_smooth ha hab 2 n) hD |
| 832 | intro n s hs |
| 833 | change IntegratedMeanBalances.radialMoment 2 (averaged (u.thetaResidual c) n) s = _ |
| 834 | rw [← state_radialMoment_eq] |
| 835 | exact state_angular_moment U ha hab r ε fast z t v c u ho H hmass n hs |
| 836 | |
| 837 | /-- Direct reconstruction version: the source is the actual axial residual |
| 838 | after applying the moving pressure recipe, with no moment identity as input. -/ |
| 839 | theorem reconstructed_state_axial_bump_improvedClass {coord : ℝ} (U : SlowRegion coord) |
| 840 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 841 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 842 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 843 | (ε fast L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 844 | (z t v : Plane) (c : Context Point) (u : State Point) (α : ℝ) |
| 845 | (ho : c.operators = nativeOperators g.radial ε fast z t v) |
| 846 | (H : MovingAxialInputs U g.radial.inner g.radial.outer c u) |
| 847 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 848 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 1 u.mean.axial n s = 0) |
| 849 | (hP : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 850 | (fun n x => CorrectionState.pressureDefect c u n x.2.1)) |
| 851 | (hZ : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 852 | (fun n x => CorrectionState.axialDefect c u n x.2.1)) : |
| 853 | MeanClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) (α + 1) |
| 854 | (fun n x => SignedStressPrimitive.physicalBump P 1 (SimilarityCoordinates.coordinateQ coord) |
| 855 | (PressureStream.torusAverage ((VariableGaugeMean.reconstructState g c u).axialResidual c n)) |
| 856 | (x.1, x.2.1)) := by |
| 857 | apply physicalBump_improvedClass_of_moment U P 1 hcL hcR ε L hε hεone hL |
| 858 | ((VariableGaugeMean.reconstructState g c u).axialResidual c) (axialDebtPotential g c u) z α |
| 859 | (axialDebtPotential_smooth U g ha hg c u H.axial hf) |
| 860 | (axialDebtPotential_unweighted U P hcL hcR ε L hε hεone hL g hg c u α hP hZ) |
| 861 | intro n s hs |
| 862 | change IntegratedMeanBalances.radialMoment 1 |
| 863 | (averaged ((VariableGaugeMean.reconstructState g c u).axialResidual c) n) s = _ |
| 864 | rw [← state_radialMoment_eq] |
| 865 | exact reconstructed_state_axial_moment U g ha hd hg ε fast z t v c u ho H hf hmass n hs |
| 866 | |
| 867 | /-- Fixed-point version for the actual output of a temporal or rank stage, |
| 868 | whose constructor finishes with `reconstructState`. -/ |
| 869 | theorem state_axial_bump_improvedClass {coord : ℝ} (U : SlowRegion coord) |
| 870 | (P : SignedStressPrimitive.Patch) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| 871 | (g : VariableGaugeMean.GaugeData Plane) (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 872 | (hg : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 873 | (ε fast L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 874 | (z t v : Plane) (c : Context Point) (u : State Point) (α : ℝ) |
| 875 | (ho : c.operators = nativeOperators g.radial ε fast z t v) |
| 876 | (H : MovingAxialInputs U g.radial.inner g.radial.outer c u) |
| 877 | (hf : MovingField U g.radial.inner g.radial.outer (u.gr c)) |
| 878 | (hfixed : VariableGaugeMean.reconstructState g c u = u) |
| 879 | (hmass : ∀ n s, s ∈ U.carrier → CorrectionState.radialMoment 1 u.mean.axial n s = 0) |
| 880 | (hP : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 881 | (fun n x => CorrectionState.pressureDefect c u n x.2.1)) |
| 882 | (hZ : UnweightedClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) α |
| 883 | (fun n x => CorrectionState.axialDefect c u n x.2.1)) : |
| 884 | MeanClass (movingStripData U P.a P.b cL cR P.a_pos hcL hcR ε L hε hεone hL) (α + 1) |
| 885 | (fun n x => SignedStressPrimitive.physicalBump P 1 (SimilarityCoordinates.coordinateQ coord) |
| 886 | (PressureStream.torusAverage (u.axialResidual c n)) (x.1, x.2.1)) := by |
| 887 | simpa only [hfixed] using reconstructed_state_axial_bump_improvedClass U P hcL hcR g ha hd hg |
| 888 | ε fast L hε hεone hL z t v c u α ho H hf hmass hP hZ |
| 889 | |
| 890 | end RemovedBumps |
| 891 | |
| 892 | end NavierStokes.GaugeMomentBalances |