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.DefectIncrementBounds |
| 2 | import NavierStokes.VariableGaugeMean |
| 3 | |
| 4 | /-! |
| 5 | # Rank correction on the actual open slow domain |
| 6 | |
| 7 | The stream uses the variable similarity gauge. Its zero weighted mass makes |
| 8 | it equal to the same zero-axis primitive in every containing gauge. All |
| 9 | moment estimates below use the local physical domain, not global slow data. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.LocalRankDefect |
| 15 | |
| 16 | open Set Function Filter MeasureTheory |
| 17 | open scoped ContDiff Topology Interval |
| 18 | open WeightedClasses MeanIncrementBounds |
| 19 | |
| 20 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 21 | |
| 22 | abbrev Point (P : Type) := PressureStream.Lift P |
| 23 | abbrev ScalarField (D : Type) := MeanIncrementBounds.Field D |
| 24 | |
| 25 | noncomputable def positiveDomain (U : Set P) : Set (Point P) := |
| 26 | DefectIncrementBounds.positiveDomain ∩ PhysicalMeanDomain.slowDomain U |
| 27 | |
| 28 | omit [NormedSpace ℝ P] in |
| 29 | theorem positiveDomain_open {U : Set P} (hU : IsOpen U) : IsOpen (positiveDomain U) := |
| 30 | DefectIncrementBounds.positiveDomain_open.inter (PhysicalMeanDomain.slowDomain_open hU) |
| 31 | |
| 32 | /-- Smoothness and radial support only where the slow parameter is used. -/ |
| 33 | structure LocalShell (a b : ℝ) (U : Set P) (f : ScalarField (Point P)) : Prop where |
| 34 | smooth : SmoothOn (PhysicalMeanDomain.slowDomain U) f |
| 35 | supported : ∀ n, PhysicalMeanDomain.SupportedOn a b U (f n) |
| 36 | |
| 37 | namespace LocalShell |
| 38 | |
| 39 | variable {a b : ℝ} {U : Set P} {f g : ScalarField (Point P)} |
| 40 | |
| 41 | theorem zero_of_not_mem (hf : LocalShell a b U f) (n : ℕ) (x : Point P) |
| 42 | (hx : x.2.1 ∈ U) (hr : x.1 ∉ Icc a b) : f n x = 0 := by |
| 43 | by_contra hn |
| 44 | exact hr (hf.supported n x hx hn) |
| 45 | |
| 46 | theorem zero : LocalShell a b U (0 : ScalarField (Point P)) := |
| 47 | ⟨fun _ => contDiffOn_const, fun _ _ _ hn => (hn rfl).elim⟩ |
| 48 | |
| 49 | theorem add (hf : LocalShell a b U f) (hg : LocalShell a b U g) : |
| 50 | LocalShell a b U (f + g) := by |
| 51 | refine ⟨hf.smooth.add hg.smooth, ?_⟩ |
| 52 | intro n x hx hn |
| 53 | by_contra hr |
| 54 | exact hn (by simp [hf.zero_of_not_mem n x hx hr, hg.zero_of_not_mem n x hx hr]) |
| 55 | |
| 56 | theorem neg (hf : LocalShell a b U f) : LocalShell a b U (-f) := |
| 57 | ⟨hf.smooth.neg, fun n x hx hn => hf.supported n x hx (neg_ne_zero.mp hn)⟩ |
| 58 | |
| 59 | theorem sub (hf : LocalShell a b U f) (hg : LocalShell a b U g) : |
| 60 | LocalShell a b U (f - g) := by |
| 61 | simpa only [sub_eq_add_neg] using hf.add hg.neg |
| 62 | |
| 63 | theorem mul (hf : LocalShell a b U f) (hg : LocalShell a b U g) : |
| 64 | LocalShell a b U (f * g) := |
| 65 | ⟨hf.smooth.mul hg.smooth, fun n x hx hn => hf.supported n x hx (left_ne_zero_of_mul hn)⟩ |
| 66 | |
| 67 | theorem band_mul (hf : LocalShell a b U f) (c : ℕ → ℝ) : |
| 68 | LocalShell a b U (fun n x => c n * f n x) := |
| 69 | ⟨fun n => contDiffOn_const.mul (hf.smooth n), |
| 70 | fun n x hx hn => hf.supported n x hx (right_ne_zero_of_mul hn)⟩ |
| 71 | |
| 72 | theorem smul (hf : LocalShell a b U f) (c : ℝ) : LocalShell a b U (c • f) := |
| 73 | hf.band_mul (fun _ => c) |
| 74 | |
| 75 | theorem directional (hf : LocalShell a b U f) (hU : IsOpen U) (v : Point P) : |
| 76 | LocalShell a b U (fun n x => fderiv ℝ (f n) x v) := by |
| 77 | refine ⟨hf.smooth.directional (PhysicalMeanDomain.slowDomain_open hU) v, ?_⟩ |
| 78 | intro n x hx hn |
| 79 | by_contra hr |
| 80 | have he : f n =ᶠ[𝓝 x] fun _ => 0 := by |
| 81 | filter_upwards [(PhysicalMeanDomain.slowDomain_open hU).mem_nhds hx, |
| 82 | (isClosed_Icc.preimage continuous_fst).isOpen_compl.mem_nhds hr] with y hy hyr |
| 83 | exact hf.zero_of_not_mem n y hy hyr |
| 84 | exact hn (by change fderiv ℝ (f n) x v = 0; rw [he.fderiv_eq]; simp) |
| 85 | |
| 86 | theorem coefficient_mul (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) |
| 87 | (hg : SmoothOn (positiveDomain U) g) : LocalShell a b U (g * f) := by |
| 88 | refine ⟨?_, fun n x hx hn => hf.supported n x hx (right_ne_zero_of_mul hn)⟩ |
| 89 | intro n x hx |
| 90 | apply ContDiffAt.contDiffWithinAt |
| 91 | by_cases hr : x.1 < a |
| 92 | · apply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : Point P => (0 : ℝ)) x).congr_of_eventuallyEq |
| 93 | filter_upwards [(PhysicalMeanDomain.slowDomain_open hU).mem_nhds hx, |
| 94 | (isOpen_lt continuous_fst continuous_const).mem_nhds hr] with y hy hyr |
| 95 | simp only [Pi.mul_apply, hf.zero_of_not_mem n y hy (fun hm => (not_le_of_gt hyr) hm.1), mul_zero] |
| 96 | · have hp : x ∈ positiveDomain U := ⟨ha.trans_le (le_of_not_gt hr), hx⟩ |
| 97 | exact ((hg n).contDiffAt ((positiveDomain_open hU).mem_nhds hp)).mul |
| 98 | ((hf.smooth n).contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hx)) |
| 99 | |
| 100 | theorem mul_coefficient (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) |
| 101 | (hg : SmoothOn (positiveDomain U) g) : LocalShell a b U (f * g) := by |
| 102 | simpa only [mul_comm] using hf.coefficient_mul ha hU hg |
| 103 | |
| 104 | theorem freeze (hf : LocalShell a b U f) (hU : IsOpen U) {x : P} (hx : x ∈ U) : |
| 105 | DefectIncrementBounds.Shell a b (fun n => PhysicalMeanDomain.freezeSlow x (f n)) := by |
| 106 | refine ⟨fun n => VariableGaugeMean.freezeSlow_contDiff hU hx (hf.smooth n), ?_⟩ |
| 107 | intro n z hz |
| 108 | exact hf.supported n (z.1, (x, z.2.2)) hx hz |
| 109 | |
| 110 | end LocalShell |
| 111 | |
| 112 | structure LocalTriple (a b : ℝ) (U : Set P) (m : Triple (Point P)) : Prop where |
| 113 | radial : LocalShell a b U m.radial |
| 114 | angular : LocalShell a b U m.angular |
| 115 | axial : LocalShell a b U m.axial |
| 116 | |
| 117 | theorem LocalTriple.updated {a b : ℝ} {U : Set P} {m h : Triple (Point P)} |
| 118 | (hm : LocalTriple a b U m) (hh : LocalTriple a b U h) : |
| 119 | LocalTriple a b U (updated m h) := |
| 120 | ⟨hm.radial.add hh.radial, hm.angular.add hh.angular, hm.axial.add hh.axial⟩ |
| 121 | |
| 122 | theorem LocalTriple.smooth {a b : ℝ} {U : Set P} {m : Triple (Point P)} |
| 123 | (hm : LocalTriple a b U m) : SmoothTriple (PhysicalMeanDomain.slowDomain U) m := |
| 124 | ⟨hm.radial.smooth, hm.angular.smooth, hm.axial.smooth⟩ |
| 125 | |
| 126 | structure LocalOperators (U : Set P) (o : Operators (Point P)) : Prop where |
| 127 | radius_eq : o.radius = Prod.fst |
| 128 | radialProfile : ContDiffOn ℝ ∞ o.radialProfile (positiveDomain U) |
| 129 | |
| 130 | theorem LocalOperators.invRadius_smooth {U : Set P} {o : Operators (Point P)} |
| 131 | (ho : LocalOperators U o) : SmoothOn (positiveDomain U) o.invRadius := by |
| 132 | intro n |
| 133 | change ContDiffOn ℝ ∞ (fun x => (o.radius x)⁻¹) (positiveDomain U) |
| 134 | rw [ho.radius_eq] |
| 135 | exact contDiffOn_fst.inv (fun _ hx => (ne_of_gt hx.1)) |
| 136 | |
| 137 | namespace LocalShell |
| 138 | |
| 139 | variable {a b : ℝ} {U : Set P} {f : ScalarField (Point P)} {o : Operators (Point P)} |
| 140 | |
| 141 | theorem dr (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) (ho : LocalOperators U o) : |
| 142 | LocalShell a b U (o.dr f) := by |
| 143 | exact (hf.directional hU o.eR).add |
| 144 | (((hf.directional hU o.vR).coefficient_mul ha hU (fun _ => ho.radialProfile)).band_mul o.radialFrequency) |
| 145 | |
| 146 | theorem dz (hf : LocalShell a b U f) (hU : IsOpen U) (o : Operators (Point P)) : |
| 147 | LocalShell a b U (o.dz f) := (hf.directional hU o.eZ).band_mul o.epsilon |
| 148 | |
| 149 | theorem time (hf : LocalShell a b U f) (hU : IsOpen U) (o : Operators (Point P)) : |
| 150 | LocalShell a b U (o.time f) := |
| 151 | ((hf.directional hU o.eT).band_mul o.epsilon).neg.add |
| 152 | ((hf.directional hU o.vT).band_mul o.fastCoefficient) |
| 153 | |
| 154 | theorem inv_mul (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) |
| 155 | (ho : LocalOperators U o) : LocalShell a b U (o.invRadius * f) := |
| 156 | hf.coefficient_mul ha hU ho.invRadius_smooth |
| 157 | |
| 158 | theorem radialDiv (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) |
| 159 | (ho : LocalOperators U o) (c : ℝ) : LocalShell a b U (o.radialDiv c f) := |
| 160 | (hf.dr ha hU ho).add ((hf.inv_mul ha hU ho).smul c) |
| 161 | |
| 162 | theorem viscosity (hf : LocalShell a b U f) (ha : 0 < a) (hU : IsOpen U) |
| 163 | (ho : LocalOperators U o) (c : ℝ) : LocalShell a b U (o.viscosity c f) := |
| 164 | (((((hf.dr ha hU ho).dr ha hU ho).add ((hf.dr ha hU ho).inv_mul ha hU ho)).add |
| 165 | ((hf.dz hU o).dz hU o)).sub (((hf.inv_mul ha hU ho).inv_mul ha hU ho).smul c)).band_mul o.epsilon |
| 166 | |
| 167 | end LocalShell |
| 168 | |
| 169 | section FluxSupport |
| 170 | |
| 171 | variable {a b : ℝ} (ha : 0 < a) {U : Set P} (hU : IsOpen U) |
| 172 | {base m h : Triple (Point P)} (hb : SmoothTriple (positiveDomain U) base) |
| 173 | (hm : LocalTriple a b U m) (hh : LocalTriple a b U h) |
| 174 | |
| 175 | include ha hU hb hm in |
| 176 | theorem thetaAxial_localShell : LocalShell a b U (thetaAxial base m) := |
| 177 | ((hm.angular.coefficient_mul ha hU hb.axial).add |
| 178 | (hm.axial.coefficient_mul ha hU hb.angular)).add (hm.axial.mul hm.angular) |
| 179 | |
| 180 | include ha hU hb hm in |
| 181 | theorem axialAxial_localShell : LocalShell a b U (axialAxial base m) := |
| 182 | ((hm.axial.coefficient_mul ha hU hb.axial).smul 2).add (hm.axial.mul hm.axial) |
| 183 | |
| 184 | include ha hU hb hm in |
| 185 | theorem axialRadial_localShell : LocalShell a b U (axialRadial base m) := |
| 186 | ((hm.axial.coefficient_mul ha hU hb.radial).add |
| 187 | (hm.radial.mul_coefficient ha hU hb.axial)).add (hm.radial.mul hm.axial) |
| 188 | |
| 189 | include ha hU hb hm in |
| 190 | theorem radialRadial_localShell : LocalShell a b U (radialRadial base m) := |
| 191 | ((hm.radial.coefficient_mul ha hU hb.radial).smul 2).add (hm.radial.mul hm.radial) |
| 192 | |
| 193 | include ha hU hb hm in |
| 194 | theorem radialAngular_localShell : LocalShell a b U (radialAngular base m) := |
| 195 | ((hm.angular.coefficient_mul ha hU hb.angular).smul 2).add (hm.angular.mul hm.angular) |
| 196 | |
| 197 | include ha hU hb hm in |
| 198 | theorem gr_localShell {o : Operators (Point P)} (ho : LocalOperators U o) |
| 199 | (W : Fin 3 → Fin 3 → ScalarField (Point P)) (hW : ∀ i j, LocalShell a b U (W i j)) : |
| 200 | LocalShell a b U (gr o base m W) := |
| 201 | (((((hm.radial.time hU o).add |
| 202 | (((radialRadial_localShell ha hU hb hm).add (hW 0 0)).radialDiv ha hU ho 1)).add |
| 203 | (((axialRadial_localShell ha hU hb hm).add (hW 2 0)).dz hU o)).sub |
| 204 | (((radialAngular_localShell ha hU hb hm).add (hW 1 1)).inv_mul ha hU ho)).sub |
| 205 | (hm.radial.viscosity ha hU ho 1)).neg |
| 206 | |
| 207 | include ha hU hb hh in |
| 208 | theorem leadingRadial_localShell {o : Operators (Point P)} (ho : LocalOperators U o) : |
| 209 | LocalShell a b U (leadingRadial o base h) := |
| 210 | (((hh.angular.coefficient_mul ha hU hb.angular).smul 2).inv_mul ha hU ho) |
| 211 | |
| 212 | include hm hh in |
| 213 | theorem thetaQuadratic_localShell : LocalShell a b U (DefectIncrementBounds.thetaQuadratic m h) := |
| 214 | ((hm.axial.mul hh.angular).add (hh.axial.mul hm.angular)).add (hh.axial.mul hh.angular) |
| 215 | |
| 216 | include hm hh in |
| 217 | theorem axialQuadratic_localShell : LocalShell a b U (DefectIncrementBounds.axialQuadratic m h) := |
| 218 | ((hm.axial.mul hh.axial).smul 2).add (hh.axial.mul hh.axial) |
| 219 | |
| 220 | include ha hU hb hh in |
| 221 | theorem thetaLeading_localShell : LocalShell a b U (DefectIncrementBounds.thetaLeading base h) := |
| 222 | (hh.angular.coefficient_mul ha hU hb.axial).add (hh.axial.coefficient_mul ha hU hb.angular) |
| 223 | |
| 224 | include ha hU hb hh in |
| 225 | theorem axialLeading_localShell : LocalShell a b U (DefectIncrementBounds.axialLeading base h) := |
| 226 | (hh.axial.coefficient_mul ha hU hb.axial).smul 2 |
| 227 | |
| 228 | include ha hU hb hm hh in |
| 229 | theorem actualRadialError_localShell {o : Operators (Point P)} (ho : LocalOperators U o) |
| 230 | (W : Fin 3 → Fin 3 → ScalarField (Point P)) (hW : ∀ i j, LocalShell a b U (W i j)) : |
| 231 | LocalShell a b U (DefectIncrementBounds.actualRadialError o base m h W) := |
| 232 | ((gr_localShell ha hU hb (hm.updated hh) ho W hW).sub |
| 233 | (gr_localShell ha hU hb hm ho W hW)).sub (leadingRadial_localShell ha hU hb hh ho) |
| 234 | |
| 235 | end FluxSupport |
| 236 | |
| 237 | open DefectIncrementBounds |
| 238 | |
| 239 | theorem LocalShell.barIntegrable {a b : ℝ} {U : Set P} {f : ScalarField (Point P)} |
| 240 | (hf : LocalShell a b U f) (hU : IsOpen U) (k n : ℕ) {p : P} (hp : p ∈ U) : |
| 241 | Integrable (fun r => r ^ k * PressureStream.torusAverage (f n) (r, p)) := by |
| 242 | simpa only [PressureStream.torusAverage, PressureStream.torusInner, PhysicalMeanDomain.freezeSlow] using |
| 243 | (hf.freeze hU hp).barIntegrable k n p |
| 244 | |
| 245 | theorem LocalShell.sliceIntegrable {a b : ℝ} {U : Set P} {f : ScalarField (Point P)} |
| 246 | (hf : LocalShell a b U f) (hU : IsOpen U) (k n : ℕ) {p : P} (hp : p ∈ U) : |
| 247 | Integrable (fun r => r ^ k * slowSlice f n p r) := by |
| 248 | simpa only [slowSlice, PhysicalMeanDomain.freezeSlow] using (hf.freeze hU hp).sliceIntegrable k n p |
| 249 | |
| 250 | theorem barMoment_add_on {a b : ℝ} {U : Set P} (hU : IsOpen U) {f g : ScalarField (Point P)} |
| 251 | (hf : LocalShell a b U f) (hg : LocalShell a b U g) (k n : ℕ) {p : P} (hp : p ∈ U) : |
| 252 | barMoment k (f + g) n p = barMoment k f n p + barMoment k g n p := by |
| 253 | have h := congrFun (congrFun (barMoment_add (hf.freeze hU hp) (hg.freeze hU hp) k) n) p |
| 254 | simpa only [barMoment_apply, PressureStream.torusAverage, PressureStream.torusInner, |
| 255 | PhysicalMeanDomain.freezeSlow, Pi.add_apply] using h |
| 256 | |
| 257 | theorem barMoment_sub_on {a b : ℝ} {U : Set P} (hU : IsOpen U) {f g : ScalarField (Point P)} |
| 258 | (hf : LocalShell a b U f) (hg : LocalShell a b U g) (k n : ℕ) {p : P} (hp : p ∈ U) : |
| 259 | barMoment k (f - g) n p = barMoment k f n p - barMoment k g n p := by |
| 260 | have h := congrFun (congrFun (barMoment_sub (hf.freeze hU hp) (hg.freeze hU hp) k) n) p |
| 261 | simpa only [barMoment_apply, PressureStream.torusAverage, PressureStream.torusInner, |
| 262 | PhysicalMeanDomain.freezeSlow, Pi.sub_apply] using h |
| 263 | |
| 264 | theorem barMoment_mem_local [FiniteDimensional ℝ P] |
| 265 | {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 266 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 267 | (U : Set P) (hU : IsOpen U) {α : ℝ} {f : ScalarField (Point P)} (hf : LocalShell a b U f) |
| 268 | (hclass : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) |
| 269 | (k : ℕ) : |
| 270 | UnweightedClass (PhysicalMeanDomain.localSlowStripData U hU ε L hε hεone hL) α (barMoment k f) := by |
| 271 | have h := PhysicalMeanDomain.meanClass_radialMoment ha hab hcL hcR ε L hε hεone hL U hU |
| 272 | hf.smooth hf.supported hclass k |
| 273 | have he : barMoment k f = fun n => |
| 274 | IntegratedMeanBalances.radialMoment k (PressureStream.torusAverage (f n)) := by |
| 275 | funext n p |
| 276 | exact barMoment_apply k f n p |
| 277 | rw [he] |
| 278 | exact h |
| 279 | |
| 280 | section ExactMoments |
| 281 | |
| 282 | variable {a b : ℝ} (ha : 0 < a) {U : Set P} (hU : IsOpen U) |
| 283 | {o : Operators (Point P)} (hop : LocalOperators U o) |
| 284 | {base m h : Triple (Point P)} (hb : SmoothTriple (positiveDomain U) base) |
| 285 | (hm : LocalTriple a b U m) (hh : LocalTriple a b U h) |
| 286 | (W : Fin 3 → Fin 3 → ScalarField (Point P)) (hW : ∀ i j, LocalShell a b U (W i j)) |
| 287 | |
| 288 | include ha hU hop hb hm hh hW in |
| 289 | theorem pressureDefect_update_on (n : ℕ) {p : P} (hp : p ∈ U) : |
| 290 | pressureDefect o base (updated m h) W n p = pressureDefect o base m W n p + |
| 291 | barMoment 0 (leadingRadial o base h) n p + barMoment 0 (actualRadialError o base m h W) n p := by |
| 292 | have h0 := gr_localShell ha hU hb hm hop W hW |
| 293 | have hl := leadingRadial_localShell ha hU hb hh hop |
| 294 | have hr := actualRadialError_localShell ha hU hb hm hh hop W hW |
| 295 | unfold pressureDefect |
| 296 | rw [radial_update_split, barMoment_add_on hU (h0.add hl) hr 0 n hp, |
| 297 | barMoment_add_on hU h0 hl 0 n hp] |
| 298 | |
| 299 | include ha hU hb hm hh hW in |
| 300 | theorem thetaDefect_update_on (n : ℕ) {p : P} (hp : p ∈ U) : |
| 301 | thetaDefect base (updated m h) W n p = thetaDefect base m W n p + |
| 302 | barMoment 2 (thetaLeading base h) n p + barMoment 2 (thetaQuadratic m h) n p := by |
| 303 | have h0 := (thetaAxial_localShell ha hU hb hm).add (hW 2 1) |
| 304 | have hl := thetaLeading_localShell ha hU hb hh |
| 305 | have hr := thetaQuadratic_localShell hm hh |
| 306 | unfold thetaDefect |
| 307 | rw [thetaAxial_update_split, barMoment_add_on hU (h0.add hl) hr 2 n hp, |
| 308 | barMoment_add_on hU h0 hl 2 n hp] |
| 309 | |
| 310 | include ha hU hop hb hm hh hW in |
| 311 | theorem axialDefect_update_on (n : ℕ) {p : P} (hp : p ∈ U) : |
| 312 | axialDefect o base (updated m h) W n p = axialDefect o base m W n p + |
| 313 | (barMoment 1 (axialLeading base h) n p - (1 / 2) * barMoment 2 (leadingRadial o base h) n p) + |
| 314 | (barMoment 1 (axialQuadratic m h) n p - (1 / 2) * barMoment 2 (actualRadialError o base m h W) n p) := by |
| 315 | have hz0 := (axialAxial_localShell ha hU hb hm).add (hW 2 2) |
| 316 | have hzl := axialLeading_localShell ha hU hb hh |
| 317 | have hzr := axialQuadratic_localShell hm hh |
| 318 | have hr0 := gr_localShell ha hU hb hm hop W hW |
| 319 | have hrl := leadingRadial_localShell ha hU hb hh hop |
| 320 | have hrr := actualRadialError_localShell ha hU hb hm hh hop W hW |
| 321 | unfold axialDefect |
| 322 | simp only [Pi.sub_apply, Pi.smul_apply, smul_eq_mul] |
| 323 | rw [axialAxial_update_split, radial_update_split, |
| 324 | barMoment_add_on hU (hz0.add hzl) hzr 1 n hp, barMoment_add_on hU hz0 hzl 1 n hp, |
| 325 | barMoment_add_on hU (hr0.add hrl) hrr 2 n hp, barMoment_add_on hU hr0 hrl 2 n hp] |
| 326 | ring |
| 327 | |
| 328 | include ha hU hop hb hm hh hW in |
| 329 | theorem defects_update_on (n : ℕ) {p : P} (hp : p ∈ U) : |
| 330 | defects o base (updated m h) W n p = |
| 331 | defects o base m W n p + linearRows o base h n p + remainders o base m h W n p := by |
| 332 | have hP := pressureDefect_update_on ha hU hop hb hm hh W hW n hp |
| 333 | have hT := thetaDefect_update_on ha hU hb hm hh W hW n hp |
| 334 | have hZ := axialDefect_update_on ha hU hop hb hm hh W hW n hp |
| 335 | funext i |
| 336 | fin_cases i <;> simp [defects, linearRows, remainders, hP, hT, hZ] |
| 337 | |
| 338 | include ha hU hop hb hm hh hW in |
| 339 | theorem defects_after_solved_rows_on (n : ℕ) {p : P} (hp : p ∈ U) |
| 340 | (hrows : linearRows o base h n p = -defects o base m W n p) : |
| 341 | defects o base (updated m h) W n p = remainders o base m h W n p := by |
| 342 | rw [defects_update_on ha hU hop hb hm hh W hW n hp, hrows] |
| 343 | simp |
| 344 | |
| 345 | end ExactMoments |
| 346 | |
| 347 | section IntegratedBounds |
| 348 | |
| 349 | variable [FiniteDimensional ℝ P] |
| 350 | {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 351 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 352 | (U : Set P) (hU : IsOpen U) {o : Operators (Point P)} {κ H : ℝ} |
| 353 | {base m h : Triple (Point P)} (hop : LocalOperators U o) |
| 354 | (hbs : SmoothTriple (positiveDomain U) base) |
| 355 | (hms : LocalTriple a b U m) (hhs : LocalTriple a b U h) |
| 356 | (W : Fin 3 → Fin 3 → ScalarField (Point P)) (hW : ∀ i j, LocalShell a b U (W i j)) |
| 357 | (ho : OperatorBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) o κ) |
| 358 | (hb : BaseBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) base) |
| 359 | (hm : CumulativeBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) m) |
| 360 | (hh : IncrementBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H h) |
| 361 | (hH : 9 / 10 ≤ H) |
| 362 | |
| 363 | include ha hab hcL hcR hop hbs hms hhs hW ho hb hm hh hH in |
| 364 | /-- Integration uses actual local moments; the complete equation-(32) |
| 365 | remainder is derived before integration. -/ |
| 366 | theorem remainders_mem_local (i : Fin 3) : |
| 367 | UnweightedClass (PhysicalMeanDomain.localSlowStripData U hU ε L hε hεone hL) |
| 368 | (H + 9 / 10 - 2 * κ) (fun n p => remainders o base m h W n p i) := by |
| 369 | have hrc := actualRadialError_mem ho hb hm hh hH W |
| 370 | (fun i j n => ((hW i j).smooth n).mono (fun _ hp => hp.2)) |
| 371 | have hrs := actualRadialError_localShell ha hU hbs hms hhs hop W hW |
| 372 | have hr0 := barMoment_mem_local ha hab hcL hcR ε L hε hεone hL U hU hrs hrc 0 |
| 373 | have hr2 := barMoment_mem_local ha hab hcL hcR ε L hε hεone hL U hU hrs hrc 2 |
| 374 | have ht := barMoment_mem_local ha hab hcL hcR ε L hε hεone hL U hU |
| 375 | (thetaQuadratic_localShell hms hhs) (thetaQuadratic_mem ho hm hh hH) 2 |
| 376 | have hz := barMoment_mem_local ha hab hcL hcR ε L hε hεone hL U hU |
| 377 | (axialQuadratic_localShell hms hhs) (axialQuadratic_mem ho hm hh hH) 1 |
| 378 | fin_cases i |
| 379 | · exact hr0 |
| 380 | · exact ht |
| 381 | · exact unweighted_sub hz (unweighted_smul hr2 (1 / 2)) |
| 382 | |
| 383 | end IntegratedBounds |
| 384 | |
| 385 | noncomputable def IsSlowOn (U : Set P) (f : ScalarField (Point P)) : Prop := |
| 386 | ∀ n R p, p ∈ U → ∀ Y, f n (R, (p, Y)) = slowSlice f n p R |
| 387 | |
| 388 | namespace IsSlowOn |
| 389 | |
| 390 | variable {U : Set P} {f g : ScalarField (Point P)} |
| 391 | |
| 392 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 393 | theorem add (hf : IsSlowOn U f) (hg : IsSlowOn U g) : IsSlowOn U (f + g) := by |
| 394 | intro n R p hp Y |
| 395 | simp only [Pi.add_apply, slowSlice, hf n R p hp Y, hg n R p hp Y] |
| 396 | |
| 397 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 398 | theorem mul (hf : IsSlowOn U f) (hg : IsSlowOn U g) : IsSlowOn U (f * g) := by |
| 399 | intro n R p hp Y |
| 400 | simp only [Pi.mul_apply, slowSlice, hf n R p hp Y, hg n R p hp Y] |
| 401 | |
| 402 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 403 | theorem smul (hf : IsSlowOn U f) (c : ℝ) : IsSlowOn U (c • f) := by |
| 404 | intro n R p hp Y |
| 405 | simp only [Pi.smul_apply, smul_eq_mul, slowSlice, hf n R p hp Y] |
| 406 | |
| 407 | end IsSlowOn |
| 408 | |
| 409 | theorem LocalOperators.invRadius_slow {U : Set P} {o : Operators (Point P)} |
| 410 | (ho : LocalOperators U o) : IsSlowOn U o.invRadius := by |
| 411 | intro n R p hp Y |
| 412 | simp only [Operators.invRadius, slowSlice, ho.radius_eq] |
| 413 | |
| 414 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 415 | theorem barMoment_slow_on {U : Set P} {f : ScalarField (Point P)} |
| 416 | (hf : IsSlowOn U f) (k n : ℕ) {p : P} (hp : p ∈ U) : |
| 417 | barMoment k f n p = ∫ R, R ^ k * slowSlice f n p R := by |
| 418 | rw [barMoment_apply] |
| 419 | apply integral_congr_ae |
| 420 | filter_upwards [] with R |
| 421 | congr 1 |
| 422 | simp [PressureStream.torusAverage, PressureStream.torusInner, hf n R p hp] |
| 423 | |
| 424 | theorem linearRows_eq_neg_of_fiveRows_on {a b : ℝ} (ha : 0 < a) {U : Set P} (hU : IsOpen U) |
| 425 | {o : Operators (Point P)} (hop : LocalOperators U o) {base m h : Triple (Point P)} |
| 426 | (hb : SmoothTriple (positiveDomain U) base) (hh : LocalTriple a b U h) |
| 427 | (hV : IsSlowOn U base.angular) (hG : IsSlowOn U base.axial) |
| 428 | (hv : IsSlowOn U h.angular) (hg : IsSlowOn U h.axial) |
| 429 | (W : Fin 3 → Fin 3 → ScalarField (Point P)) (n : ℕ) {p : P} (hp : p ∈ U) |
| 430 | (hrows : FiveRowRank.FiveRows (slowSlice base.angular n p) (slowSlice base.axial n p) |
| 431 | (defects o base m W n p) (slowSlice h.angular n p) (slowSlice h.axial n p)) : |
| 432 | linearRows o base h n p = -defects o base m W n p := by |
| 433 | have hrslow : IsSlowOn U (leadingRadial o base h) := |
| 434 | hop.invRadius_slow.mul ((hV.mul hv).smul 2) |
| 435 | have htslow : IsSlowOn U (thetaLeading base h) := (hG.mul hv).add (hV.mul hg) |
| 436 | have hzslow : IsSlowOn U (axialLeading base h) := (hG.mul hg).smul 2 |
| 437 | have hrs := leadingRadial_localShell ha hU hb hh hop |
| 438 | have hzs := axialLeading_localShell ha hU hb hh |
| 439 | funext i |
| 440 | fin_cases i |
| 441 | · change barMoment 0 (leadingRadial o base h) n p = -(defects o base m W n p 0) |
| 442 | rw [barMoment_slow_on hrslow 0 n hp] |
| 443 | calc |
| 444 | _ = ∫ R, (2 * slowSlice base.angular n p R / R) * slowSlice h.angular n p R := by |
| 445 | apply integral_congr_ae |
| 446 | filter_upwards [] with R |
| 447 | simp only [slowSlice, leadingRadial, Operators.invRadius, hop.radius_eq, |
| 448 | Pi.mul_apply, Pi.smul_apply, smul_eq_mul, pow_zero, one_mul, div_eq_mul_inv] |
| 449 | ring |
| 450 | _ = _ := hrows.2.2.1 |
| 451 | · change barMoment 2 (thetaLeading base h) n p = -(defects o base m W n p 1) |
| 452 | rw [barMoment_slow_on htslow 2 n hp] |
| 453 | exact hrows.2.2.2.1 |
| 454 | · change barMoment 1 (axialLeading base h) n p - (1 / 2) * barMoment 2 (leadingRadial o base h) n p = |
| 455 | -(defects o base m W n p 2) |
| 456 | rw [barMoment_slow_on hzslow 1 n hp, barMoment_slow_on hrslow 2 n hp] |
| 457 | calc |
| 458 | _ = ∫ R, R ^ (1 : ℕ) * slowSlice (axialLeading base h) n p R - |
| 459 | (1 / 2) * (R ^ (2 : ℕ) * slowSlice (leadingRadial o base h) n p R) := by |
| 460 | rw [integral_sub (hzs.sliceIntegrable hU 1 n hp) ((hrs.sliceIntegrable hU 2 n hp).const_mul (1 / 2)), |
| 461 | integral_const_mul] |
| 462 | _ = ∫ R, 2 * R * slowSlice base.axial n p R * slowSlice h.axial n p R - |
| 463 | R * slowSlice base.angular n p R * slowSlice h.angular n p R := by |
| 464 | apply integral_congr_ae |
| 465 | filter_upwards [] with R |
| 466 | simp only [slowSlice, axialLeading, leadingRadial, Operators.invRadius, hop.radius_eq, |
| 467 | Pi.mul_apply, Pi.smul_apply, smul_eq_mul, pow_one] |
| 468 | by_cases hr : R = 0 |
| 469 | · simp [hr] |
| 470 | · field_simp |
| 471 | _ = _ := hrows.2.2.2.2 |
| 472 | |
| 473 | /-! ## The constructed rank source and the variable gauge -/ |
| 474 | |
| 475 | theorem gauge_streamPotential_eq_fixed (d a b M : ℝ) (ell : P → ℝ) |
| 476 | (v : PressureStream.Plane) (f : Point P → ℝ) (p : Point P) : |
| 477 | VariableGaugeMean.streamPotential d a b M ell v f p = |
| 478 | PressureStream.streamPotential d (ell p.2.1 * a) (ell p.2.1 * b) M ((0 : P), v) f p := by |
| 479 | simp only [VariableGaugeMean.streamPotential, PressureStream.streamPotential, |
| 480 | PressureStream.divideRadius, VariableGaugeMean.compactPrimitive] |
| 481 | |
| 482 | /-- A zero-mass slow source removes the actual variable gauge cutoff. -/ |
| 483 | theorem slow_gaugePotential_eq_scaledPrimitive {a b d M : ℝ} (ha : 0 < a) (hab : a < b) |
| 484 | (hd : 0 < d) (ell : P → ℝ) (v : PressureStream.Plane) (f : ℝ × P → ℝ) |
| 485 | (p : Point P) (hl : 0 < ell p.2.1) |
| 486 | (hf : ContDiff ℝ ∞ (fun R => f (R, p.2.1))) |
| 487 | (hs : support (fun R => f (R, p.2.1)) ⊆ Icc (ell p.2.1 * a) (ell p.2.1 * b)) |
| 488 | (hm : (∫ R, R * f (R, p.2.1)) = 0) : |
| 489 | VariableGaugeMean.streamPotential d a b M ell v (MeanRankUpdate.slowLift f) p = |
| 490 | MeanRankUpdate.scaledPrimitive (fun R => f (R, p.2.1)) p.1 := by |
| 491 | rw [gauge_streamPotential_eq_fixed d a b M ell v (MeanRankUpdate.slowLift f) p] |
| 492 | exact MeanRankUpdate.slow_streamPotential_eq_scaledPrimitive_slice (M := M) |
| 493 | (mul_pos hl ha) (mul_lt_mul_of_pos_left hab hl) hd v f p hf hs hm |
| 494 | |
| 495 | theorem rankDesired_slice_smooth (r : CorrectionState.RankData P) |
| 496 | (c : CorrectionState.Context (Point P)) (u : CorrectionState.State (Point P)) (n : ℕ) (x : P) : |
| 497 | ContDiff ℝ ∞ (fun R => CorrectionState.rankDesiredAxial r c u n (R, x)) := |
| 498 | MeanRankUpdate.desiredAxialIncrement_smooth r.lambda (r.coefficient n x) r.inner r.outer |
| 499 | (r.length n x) (r.velocity n x) (CorrectionState.debt c u n x) |
| 500 | |
| 501 | /-- Primitive rank data and the actual base patch model, restricted to the |
| 502 | open physical slow domain. Invertibility, masses, and rows are conclusions. -/ |
| 503 | structure RankGeometry (g : VariableGaugeMean.GaugeData P) (r : CorrectionState.RankData P) |
| 504 | (U : Set P) (c : CorrectionState.Context (Point P)) (u : CorrectionState.State (Point P)) : Prop where |
| 505 | primitive_inner_pos : 0 < g.radial.inner |
| 506 | exponent_pos : 0 < g.radial.exponent |
| 507 | lambda_pos : 0 < r.lambda |
| 508 | inner_pos : 0 < r.inner |
| 509 | inner_lt_outer : r.inner < r.outer |
| 510 | coefficient_ne : ∀ n x, x ∈ U → r.coefficient n x ≠ 0 |
| 511 | length_pos : ∀ n x, x ∈ U → 0 < r.length n x |
| 512 | velocity_ne : ∀ n x, x ∈ U → r.velocity n x ≠ 0 |
| 513 | coefficient_smooth : ∀ n, ContDiffOn ℝ ∞ (r.coefficient n) U |
| 514 | length_smooth : ∀ n, ContDiffOn ℝ ∞ (r.length n) U |
| 515 | velocity_smooth : ∀ n, ContDiffOn ℝ ∞ (r.velocity n) U |
| 516 | debt_smooth : ∀ n, ContDiffOn ℝ ∞ (CorrectionState.debt c u n) U |
| 517 | gauge_length_pos : ∀ n x, x ∈ U → 0 < g.length n x |
| 518 | gauge_left : ∀ n x, x ∈ U → g.length n x * g.radial.inner ≤ r.length n x * r.inner |
| 519 | gauge_right : ∀ n x, x ∈ U → r.length n x * r.outer ≤ g.length n x * g.radial.outer |
| 520 | angular_model : ∀ n x, x ∈ U → ∀ R ∈ Ioo (r.length n x * r.inner) (r.length n x * r.outer), |
| 521 | c.base.angular n (R, (x, 0)) = |
| 522 | MeanRankUpdate.background r.lambda (r.coefficient n x) (r.length n x) (r.velocity n x) R |
| 523 | axial_model : ∀ n x, x ∈ U → ∀ R ∈ Ioo (r.length n x * r.inner) (r.length n x * r.outer), |
| 524 | c.base.axial n (R, (x, 0)) = 0 |
| 525 | |
| 526 | namespace RankGeometry |
| 527 | |
| 528 | variable {g : VariableGaugeMean.GaugeData P} {r : CorrectionState.RankData P} {U : Set P} |
| 529 | {c : CorrectionState.Context (Point P)} {u : CorrectionState.State (Point P)} |
| 530 | (hg : RankGeometry g r U c u) |
| 531 | |
| 532 | include hg |
| 533 | |
| 534 | theorem angular_smooth (n : ℕ) : |
| 535 | ContDiffOn ℝ ∞ (CorrectionState.rankAngular r c u n) (univ ×ˢ U) := |
| 536 | MeanRankUpdate.angularFamily_contDiffOn r.lambda r.inner r.outer |
| 537 | (hg.length_smooth n) (hg.velocity_smooth n) (hg.coefficient_smooth n) (hg.debt_smooth n) |
| 538 | (fun x hx => (hg.length_pos n x hx).ne') (hg.velocity_ne n) (hg.coefficient_ne n) |
| 539 | |
| 540 | theorem desired_smooth (n : ℕ) : |
| 541 | ContDiffOn ℝ ∞ (CorrectionState.rankDesiredAxial r c u n) (univ ×ˢ U) := |
| 542 | MeanRankUpdate.desiredAxialFamily_contDiffOn r.lambda r.inner r.outer |
| 543 | (hg.length_smooth n) (hg.velocity_smooth n) (hg.coefficient_smooth n) (hg.debt_smooth n) |
| 544 | (fun x hx => (hg.length_pos n x hx).ne') (hg.velocity_ne n) (hg.coefficient_ne n) |
| 545 | |
| 546 | theorem angular_lift_smooth (n : ℕ) : |
| 547 | ContDiffOn ℝ ∞ (MeanRankUpdate.slowLift (CorrectionState.rankAngular r c u n)) |
| 548 | (PhysicalMeanDomain.slowDomain U) := |
| 549 | (hg.angular_smooth n).comp (contDiffOn_fst.prodMk contDiffOn_snd.fst) |
| 550 | (fun _ hp => ⟨mem_univ _, hp⟩) |
| 551 | |
| 552 | theorem desired_lift_smooth (n : ℕ) : |
| 553 | ContDiffOn ℝ ∞ (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) |
| 554 | (PhysicalMeanDomain.slowDomain U) := |
| 555 | (hg.desired_smooth n).comp (contDiffOn_fst.prodMk contDiffOn_snd.fst) |
| 556 | (fun _ hp => ⟨mem_univ _, hp⟩) |
| 557 | |
| 558 | theorem desired_slice_support (n : ℕ) {x : P} (hx : x ∈ U) {lo hi : ℝ} |
| 559 | (hlo : lo ≤ r.length n x * r.inner) (hhi : r.length n x * r.outer ≤ hi) : |
| 560 | support (fun R => CorrectionState.rankDesiredAxial r c u n (R, x)) ⊆ Icc lo hi := by |
| 561 | intro R hR |
| 562 | change MeanRankUpdate.desiredAxialIncrement r.lambda (r.coefficient n x) r.inner r.outer |
| 563 | (r.length n x) (r.velocity n x) (CorrectionState.debt c u n x) R ≠ 0 at hR |
| 564 | have h := MeanRankUpdate.desiredAxialIncrement_tsupport r.lambda (r.coefficient n x) |
| 565 | r.inner r.outer (r.velocity n x) (hg.length_pos n x hx) hg.inner_lt_outer |
| 566 | (CorrectionState.debt c u n x) (subset_tsupport _ hR) |
| 567 | exact ⟨hlo.trans h.1.le, h.2.le.trans hhi⟩ |
| 568 | |
| 569 | theorem desired_supported {a b : ℝ} |
| 570 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 571 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) (n : ℕ) : |
| 572 | PhysicalMeanDomain.SupportedOn a b U |
| 573 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) := by |
| 574 | intro p hp hn |
| 575 | exact hg.desired_slice_support n hp (hleft n _ hp) (hright n _ hp) hn |
| 576 | |
| 577 | theorem angular_supported {a b : ℝ} |
| 578 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 579 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) (n : ℕ) : |
| 580 | PhysicalMeanDomain.SupportedOn a b U |
| 581 | (MeanRankUpdate.slowLift (CorrectionState.rankAngular r c u n)) := by |
| 582 | intro p hp hn |
| 583 | change MeanRankUpdate.angularIncrement r.lambda (r.coefficient n p.2.1) r.inner r.outer |
| 584 | (r.length n p.2.1) (r.velocity n p.2.1) (CorrectionState.debt c u n p.2.1) p.1 ≠ 0 at hn |
| 585 | have h := MeanRankUpdate.angularIncrement_tsupport r.lambda (r.coefficient n p.2.1) |
| 586 | r.inner r.outer (r.velocity n p.2.1) (hg.length_pos n p.2.1 hp) hg.inner_lt_outer |
| 587 | (CorrectionState.debt c u n p.2.1) (subset_tsupport _ hn) |
| 588 | exact ⟨(hleft n _ hp).trans h.1.le, h.2.le.trans (hright n _ hp)⟩ |
| 589 | |
| 590 | theorem desired_mass_zero (n : ℕ) {x : P} (hx : x ∈ U) : |
| 591 | (∫ R, R * CorrectionState.rankDesiredAxial r c u n (R, x)) = 0 := |
| 592 | (CorrectionState.rank_model_rows r c u n x hg.lambda_pos (hg.coefficient_ne n x hx) |
| 593 | hg.inner_pos hg.inner_lt_outer (hg.length_pos n x hx) (hg.velocity_ne n x hx)).2.1 |
| 594 | |
| 595 | theorem potential_eq_scaledPrimitive (n : ℕ) {p : Point P} (hp : p.2.1 ∈ U) : |
| 596 | VariableGaugeMean.rankPotential g r c u n p = |
| 597 | MeanRankUpdate.scaledPrimitive (fun R => CorrectionState.rankDesiredAxial r c u n (R, p.2.1)) p.1 := by |
| 598 | exact slow_gaugePotential_eq_scaledPrimitive (M := g.radial.frequency n) |
| 599 | hg.primitive_inner_pos g.radial.inner_lt_outer |
| 600 | hg.exponent_pos (g.length n) g.radial.radialDirection (CorrectionState.rankDesiredAxial r c u n) p |
| 601 | (hg.gauge_length_pos n _ hp) |
| 602 | (rankDesired_slice_smooth r c u n p.2.1) |
| 603 | (hg.desired_slice_support n hp (hg.gauge_left n _ hp) (hg.gauge_right n _ hp)) |
| 604 | (hg.desired_mass_zero n hp) |
| 605 | |
| 606 | theorem potential_eq_fixed {a b : ℝ} (ha : 0 < a) (hab : a < b) |
| 607 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 608 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 609 | (n : ℕ) {p : Point P} (hp : p.2.1 ∈ U) : |
| 610 | VariableGaugeMean.rankPotential g r c u n p = |
| 611 | PressureStream.streamPotential g.radial.exponent a b (g.radial.frequency n) |
| 612 | ((0 : P), g.radial.radialDirection) |
| 613 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) p := by |
| 614 | rw [hg.potential_eq_scaledPrimitive n hp] |
| 615 | exact (MeanRankUpdate.slow_streamPotential_eq_scaledPrimitive_slice (M := g.radial.frequency n) |
| 616 | ha hab hg.exponent_pos g.radial.radialDirection (CorrectionState.rankDesiredAxial r c u n) p |
| 617 | (rankDesired_slice_smooth r c u n p.2.1) |
| 618 | (hg.desired_slice_support n hp (hleft n _ hp) (hright n _ hp)) (hg.desired_mass_zero n hp)).symm |
| 619 | |
| 620 | theorem potential_eventuallyEq_fixed {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 621 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 622 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 623 | (n : ℕ) {p : Point P} (hp : p.2.1 ∈ U) : |
| 624 | VariableGaugeMean.rankPotential g r c u n =ᶠ[𝓝 p] |
| 625 | PressureStream.streamPotential g.radial.exponent a b (g.radial.frequency n) |
| 626 | ((0 : P), g.radial.radialDirection) |
| 627 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) := by |
| 628 | filter_upwards [(PhysicalMeanDomain.slowDomain_open hU).mem_nhds hp] with z hz |
| 629 | exact hg.potential_eq_fixed ha hab hleft hright n hz |
| 630 | |
| 631 | variable [FiniteDimensional ℝ P] |
| 632 | |
| 633 | theorem potential_localShell {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 634 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 635 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) : |
| 636 | LocalShell a b U (VariableGaugeMean.rankPotential g r c u) := by |
| 637 | constructor |
| 638 | · intro n |
| 639 | exact (PhysicalMeanDomain.streamPotential_contDiffOn (M := g.radial.frequency n) |
| 640 | ha hab hg.exponent_pos g.radial.radialDirection hU (hg.desired_lift_smooth n) |
| 641 | (hg.desired_supported hleft hright n)).congr |
| 642 | (fun p hp => hg.potential_eq_fixed ha hab hleft hright n hp) |
| 643 | · intro n p hp hn |
| 644 | rw [hg.potential_eq_fixed ha hab hleft hright n hp] at hn |
| 645 | exact ((PhysicalMeanDomain.streamPotential_fiberLocal g.radial.exponent a b (g.radial.frequency n) |
| 646 | g.radial.radialDirection).supportedOn |
| 647 | (fun _ hf hs => PressureStream.streamPotential_supported ha hab hg.exponent_pos _ hf hs) |
| 648 | hU (hg.desired_lift_smooth n) (hg.desired_supported hleft hright n)) p hp hn |
| 649 | |
| 650 | /-- The actual variable-gauge axial stream is the desired rank source. -/ |
| 651 | theorem axial_exact {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 652 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 653 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 654 | (axial : P × PressureStream.Plane) (n : ℕ) {p : Point P} (hp : p.2.1 ∈ U) : |
| 655 | (VariableGaugeMean.rankIncrementState g r axial c u).axial n p = |
| 656 | CorrectionState.rankDesiredAxial r c u n (p.1, p.2.1) := by |
| 657 | have he := hg.potential_eventuallyEq_fixed ha hab hU hleft hright n hp |
| 658 | have hF := PhysicalMeanDomain.streamPotential_contDiffOn (M := g.radial.frequency n) |
| 659 | ha hab hg.exponent_pos g.radial.radialDirection hU (hg.desired_lift_smooth n) |
| 660 | (hg.desired_supported hleft hright n) |
| 661 | have h := MeanRankUpdate.slow_streamGamma_eq_desired_slice (M := g.radial.frequency n) ha hab hg.exponent_pos |
| 662 | g.radial.radialDirection (CorrectionState.rankDesiredAxial r c u n) p |
| 663 | (rankDesired_slice_smooth r c u n p.2.1) |
| 664 | (hg.desired_slice_support n hp (hleft n _ hp) (hright n _ hp)) |
| 665 | (hg.desired_mass_zero n hp) |
| 666 | ((hF.contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hp)).differentiableAt (by simp)) |
| 667 | simpa only [VariableGaugeMean.rankIncrementState, PressureStream.streamGamma, PressureStream.graphDr, |
| 668 | PressureStream.divideRadius, he.fderiv_eq, he.self_of_nhds] using h |
| 669 | |
| 670 | end RankGeometry |
| 671 | |
| 672 | theorem streamBeta_smul (a : ℝ) (w : P × PressureStream.Plane) (F : Point P → ℝ) : |
| 673 | PressureStream.streamBeta (a • w) F = fun p => a * PressureStream.streamBeta w F p := by |
| 674 | funext p |
| 675 | have he : ((0 : ℝ), a • w) = a • ((0 : ℝ), w) := by simp |
| 676 | simp only [PressureStream.streamBeta, PressureStream.graphDz, he, map_smul, smul_eq_mul] |
| 677 | ring |
| 678 | |
| 679 | theorem rankStage_covariance (g : VariableGaugeMean.GaugeData P) (r : CorrectionState.RankData P) |
| 680 | (axial : P × PressureStream.Plane) (c : CorrectionState.Context (Point P)) |
| 681 | (u : CorrectionState.State (Point P)) : |
| 682 | (VariableGaugeMean.rankStageState g r axial c u).covariance = u.covariance := by |
| 683 | funext i j |
| 684 | change CorrectionState.bilinearCovariance (u.oscillation + 0) (u.oscillation + 0) i j = _ |
| 685 | rw [add_zero] |
| 686 | rfl |
| 687 | |
| 688 | theorem rankStage_debt_eq (g : VariableGaugeMean.GaugeData P) (r : CorrectionState.RankData P) |
| 689 | (axial : P × PressureStream.Plane) (c : CorrectionState.Context (Point P)) |
| 690 | (u : CorrectionState.State (Point P)) : |
| 691 | CorrectionState.debt c (VariableGaugeMean.rankStageState g r axial c u) = |
| 692 | defects c.operators c.base (updated u.mean (VariableGaugeMean.rankIncrementState g r axial c u)) |
| 693 | u.covariance := by |
| 694 | rw [← defects_eq_stateDebt, rankStage_covariance] |
| 695 | rfl |
| 696 | |
| 697 | theorem rank_angular_slow (g : VariableGaugeMean.GaugeData P) (r : CorrectionState.RankData P) |
| 698 | (axial : P × PressureStream.Plane) (U : Set P) (c : CorrectionState.Context (Point P)) |
| 699 | (u : CorrectionState.State (Point P)) : |
| 700 | IsSlowOn U (VariableGaugeMean.rankIncrementState g r axial c u).angular := by |
| 701 | intro n R p hp Y |
| 702 | rfl |
| 703 | |
| 704 | namespace RankGeometry |
| 705 | |
| 706 | variable [FiniteDimensional ℝ P] |
| 707 | {g : VariableGaugeMean.GaugeData P} {r : CorrectionState.RankData P} {U : Set P} |
| 708 | {c : CorrectionState.Context (Point P)} {u : CorrectionState.State (Point P)} |
| 709 | (hg : RankGeometry g r U c u) |
| 710 | |
| 711 | include hg |
| 712 | |
| 713 | theorem increment_localTriple {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 714 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 715 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 716 | (axial : P × PressureStream.Plane) : |
| 717 | LocalTriple a b U (VariableGaugeMean.rankIncrementState g r axial c u) := by |
| 718 | have hp := hg.potential_localShell ha hab hU hleft hright |
| 719 | constructor |
| 720 | · have hr := ((hp.directional hU (0, axial)).neg).band_mul c.operators.epsilon |
| 721 | simpa only [VariableGaugeMean.rankIncrementState, streamBeta_smul, |
| 722 | PressureStream.streamBeta, PressureStream.graphDz, Pi.neg_apply] using hr |
| 723 | · exact ⟨hg.angular_lift_smooth, hg.angular_supported hleft hright⟩ |
| 724 | · constructor |
| 725 | · intro n |
| 726 | exact (hg.desired_lift_smooth n).congr |
| 727 | (fun p hp => hg.axial_exact ha hab hU hleft hright axial n hp) |
| 728 | · intro n p hp hn |
| 729 | rw [hg.axial_exact ha hab hU hleft hright axial n hp] at hn |
| 730 | exact hg.desired_supported hleft hright n p hp hn |
| 731 | |
| 732 | theorem axial_slow {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 733 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 734 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 735 | (axial : P × PressureStream.Plane) : |
| 736 | IsSlowOn U (VariableGaugeMean.rankIncrementState g r axial c u).axial := by |
| 737 | intro n R p hp Y |
| 738 | change (VariableGaugeMean.rankIncrementState g r axial c u).axial n (R, (p, Y)) = |
| 739 | (VariableGaugeMean.rankIncrementState g r axial c u).axial n (R, (p, 0)) |
| 740 | rw [hg.axial_exact ha hab hU hleft hright axial n hp, |
| 741 | hg.axial_exact ha hab hU hleft hright axial n hp] |
| 742 | |
| 743 | theorem divergence_zero {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 744 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 745 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 746 | (axial : P × PressureStream.Plane) (n : ℕ) {p : Point P} (hp : p.2.1 ∈ U) (hr : p.1 ≠ 0) : |
| 747 | PressureStream.graphDivergence |
| 748 | (PressureStream.physicalSpeed g.radial.exponent (g.radial.frequency n)) |
| 749 | ((0 : P), g.radial.radialDirection) (c.operators.epsilon n • axial) |
| 750 | ((VariableGaugeMean.rankIncrementState g r axial c u).radial n) |
| 751 | ((VariableGaugeMean.rankIncrementState g r axial c u).axial n) p = 0 := by |
| 752 | have hpot := ((hg.potential_localShell ha hab hU hleft hright).smooth n).contDiffAt |
| 753 | ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hp) |
| 754 | exact PressureStream.stream_divergence_zero _ _ |
| 755 | (hpot.of_le (ENat.natCast_lt_of_coe_top_le_withTop le_rfl 2).le) |
| 756 | ((PressureStream.physicalSpeed_smooth _ _ hr).differentiableAt (by simp)) hr |
| 757 | |
| 758 | theorem fiveRows {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 759 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 760 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 761 | (axial : P × PressureStream.Plane) (n : ℕ) {x : P} (hx : x ∈ U) : |
| 762 | FiveRowRank.FiveRows (slowSlice c.base.angular n x) (slowSlice c.base.axial n x) |
| 763 | (CorrectionState.debt c u n x) |
| 764 | (slowSlice (VariableGaugeMean.rankIncrementState g r axial c u).angular n x) |
| 765 | (slowSlice (VariableGaugeMean.rankIncrementState g r axial c u).axial n x) := by |
| 766 | have hax : slowSlice (VariableGaugeMean.rankIncrementState g r axial c u).axial n x = |
| 767 | fun R => CorrectionState.rankDesiredAxial r c u n (R, x) := by |
| 768 | funext R |
| 769 | exact hg.axial_exact ha hab hU hleft hright axial n hx |
| 770 | rw [hax] |
| 771 | exact CorrectionState.rank_rows_on_patch r c u n x 0 hg.lambda_pos (hg.coefficient_ne n x hx) |
| 772 | hg.inner_pos hg.inner_lt_outer (hg.length_pos n x hx) (hg.velocity_ne n x hx) |
| 773 | (hg.angular_model n x hx) (hg.axial_model n x hx) |
| 774 | |
| 775 | theorem solved_rows {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 776 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 777 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 778 | (axial : P × PressureStream.Plane) (hop : LocalOperators U c.operators) |
| 779 | (hb : SmoothTriple (positiveDomain U) c.base) |
| 780 | (hV : IsSlowOn U c.base.angular) (hG : IsSlowOn U c.base.axial) |
| 781 | (n : ℕ) {x : P} (hx : x ∈ U) : |
| 782 | linearRows c.operators c.base (VariableGaugeMean.rankIncrementState g r axial c u) n x = |
| 783 | -CorrectionState.debt c u n x := |
| 784 | linearRows_eq_neg_of_fiveRows_on ha hU hop hb (hg.increment_localTriple ha hab hU hleft hright axial) |
| 785 | hV hG (rank_angular_slow g r axial U c u) (hg.axial_slow ha hab hU hleft hright axial) |
| 786 | u.covariance n hx (hg.fiveRows ha hab hU hleft hright axial n hx) |
| 787 | |
| 788 | theorem preserve_masses {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 789 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 790 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 791 | (axial : P × PressureStream.Plane) (hm : LocalTriple a b U u.mean) |
| 792 | (n : ℕ) {x : P} (hx : x ∈ U) : |
| 793 | CorrectionState.radialMoment 2 (VariableGaugeMean.rankStageState g r axial c u).mean.angular n x = |
| 794 | CorrectionState.radialMoment 2 u.mean.angular n x ∧ |
| 795 | CorrectionState.radialMoment 1 (VariableGaugeMean.rankStageState g r axial c u).mean.axial n x = |
| 796 | CorrectionState.radialMoment 1 u.mean.axial n x := by |
| 797 | have hh := hg.increment_localTriple ha hab hU hleft hright axial |
| 798 | have hrows := hg.fiveRows ha hab hU hleft hright axial n hx |
| 799 | have hv : barMoment 2 (VariableGaugeMean.rankIncrementState g r axial c u).angular n x = 0 := by |
| 800 | rw [barMoment_slow_on (rank_angular_slow g r axial U c u) 2 n hx] |
| 801 | exact hrows.1 |
| 802 | have hz : barMoment 1 (VariableGaugeMean.rankIncrementState g r axial c u).axial n x = 0 := by |
| 803 | rw [barMoment_slow_on (hg.axial_slow ha hab hU hleft hright axial) 1 n hx] |
| 804 | simpa only [pow_one] using hrows.2.1 |
| 805 | change barMoment 2 (u.mean.angular + (VariableGaugeMean.rankIncrementState g r axial c u).angular) n x = _ ∧ |
| 806 | barMoment 1 (u.mean.axial + (VariableGaugeMean.rankIncrementState g r axial c u).axial) n x = _ |
| 807 | rw [barMoment_add_on hU hm.angular hh.angular 2 n hx, |
| 808 | barMoment_add_on hU hm.axial hh.axial 1 n hx, hv, hz] |
| 809 | exact ⟨add_zero _, add_zero _⟩ |
| 810 | |
| 811 | theorem debt_eq_remainders {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 812 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 813 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 814 | (axial : P × PressureStream.Plane) (hop : LocalOperators U c.operators) |
| 815 | (hb : SmoothTriple (positiveDomain U) c.base) (hm : LocalTriple a b U u.mean) |
| 816 | (hW : ∀ i j, LocalShell a b U (u.covariance i j)) |
| 817 | (hV : IsSlowOn U c.base.angular) (hG : IsSlowOn U c.base.axial) |
| 818 | (n : ℕ) {x : P} (hx : x ∈ U) : |
| 819 | CorrectionState.debt c (VariableGaugeMean.rankStageState g r axial c u) n x = |
| 820 | remainders c.operators c.base u.mean (VariableGaugeMean.rankIncrementState g r axial c u) u.covariance n x := by |
| 821 | rw [rankStage_debt_eq] |
| 822 | exact defects_after_solved_rows_on ha hU hop hb hm (hg.increment_localTriple ha hab hU hleft hright axial) |
| 823 | u.covariance hW n hx (hg.solved_rows ha hab hU hleft hright axial hop hb hV hG n hx) |
| 824 | |
| 825 | end RankGeometry |
| 826 | |
| 827 | |
| 828 | section ConstructedBounds |
| 829 | |
| 830 | variable [FiniteDimensional ℝ P] |
| 831 | {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 832 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 833 | (U : Set P) (hU : IsOpen U) |
| 834 | {g : VariableGaugeMean.GaugeData P} {r : CorrectionState.RankData P} |
| 835 | {c : CorrectionState.Context (Point P)} {u : CorrectionState.State (Point P)} |
| 836 | (hg : RankGeometry g r U c u) |
| 837 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 838 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 839 | (axial : P × PressureStream.Plane) {H : ℝ} |
| 840 | |
| 841 | include ha hab hcL hcR hg hleft hright in |
| 842 | theorem RankGeometry.potential_class |
| 843 | (hsource : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 844 | (fun n => MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n))) : |
| 845 | MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 846 | (VariableGaugeMean.rankPotential g r c u) := by |
| 847 | have h := PhysicalMeanDomain.meanClass_streamPotential ha hab hg.exponent_pos hcL hcR |
| 848 | ε L hε hεone hL U hU hg.desired_lift_smooth (hg.desired_supported hleft hright) hsource |
| 849 | g.radial.frequency (fun _ => g.radial.radialDirection) |
| 850 | apply class_congr h |
| 851 | intro n p hp |
| 852 | exact hg.potential_eq_fixed ha hab hleft hright n hp.2 |
| 853 | |
| 854 | include ha hab hcL hcR hg hleft hright in |
| 855 | /-- The extra epsilon in the actual radial stream yields `M_(H+1)`. |
| 856 | Both source classes refer to the already constructed rank inverse. -/ |
| 857 | theorem RankGeometry.increment_bounds |
| 858 | (hangular : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 859 | (fun n => MeanRankUpdate.slowLift (CorrectionState.rankAngular r c u n))) |
| 860 | (haxial : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 861 | (fun n => MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n))) |
| 862 | (heps : BandBound (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) 1 |
| 863 | c.operators.epsilon) : |
| 864 | IncrementBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 865 | (VariableGaugeMean.rankIncrementState g r axial c u) := by |
| 866 | have hp := RankGeometry.potential_class ha hab hcL hcR ε L hε hεone hL U hU hg hleft hright haxial |
| 867 | have hb : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 868 | (fun n => PressureStream.streamBeta axial (VariableGaugeMean.rankPotential g r c u n)) := by |
| 869 | have he := (hp.directional (0, axial)).map (-ContinuousLinearMap.id ℝ ℝ) |
| 870 | simp only [ |
| 871 | _root_.neg_apply, ContinuousLinearMap.id_apply] at he ⊢ |
| 872 | exact he |
| 873 | constructor |
| 874 | · simpa only [VariableGaugeMean.rankIncrementState, streamBeta_smul, smul_eq_mul] using hb.band_smul heps |
| 875 | · exact hangular |
| 876 | · apply class_congr haxial |
| 877 | intro n p hp |
| 878 | exact hg.axial_exact ha hab hU hleft hright axial n hp.2 |
| 879 | |
| 880 | variable {κ : ℝ} |
| 881 | (hop : LocalOperators U c.operators) |
| 882 | (hbs : SmoothTriple (positiveDomain U) c.base) |
| 883 | (hms : LocalTriple a b U u.mean) |
| 884 | (hW : ∀ i j, LocalShell a b U (u.covariance i j)) |
| 885 | (hV : IsSlowOn U c.base.angular) (hG : IsSlowOn U c.base.axial) |
| 886 | (ho : OperatorBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) |
| 887 | c.operators κ) |
| 888 | (hb : BaseBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) c.base) |
| 889 | (hm : CumulativeBounds (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) u.mean) |
| 890 | (hangular : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 891 | (fun n => MeanRankUpdate.slowLift (CorrectionState.rankAngular r c u n))) |
| 892 | (haxial : MeanClass (PhysicalMeanDomain.localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) H |
| 893 | (fun n => MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n))) |
| 894 | (hH : 9 / 10 ≤ H) |
| 895 | |
| 896 | include ha hab hcL hcR hg hleft hright axial hop hbs hms hW hV hG ho hb hm hangular haxial hH in |
| 897 | /-- The actual variable-gauge rank stage cancels the measured linear debt. |
| 898 | Only local primitive/source bounds are inputs. -/ |
| 899 | theorem rankStage_defect_class (i : Fin 3) : |
| 900 | UnweightedClass (PhysicalMeanDomain.localSlowStripData U hU ε L hε hεone hL) |
| 901 | (H + 9 / 10 - 2 * κ) |
| 902 | (fun n x => CorrectionState.debt c (VariableGaugeMean.rankStageState g r axial c u) n x i) := by |
| 903 | have hhs := hg.increment_localTriple ha hab hU hleft hright axial |
| 904 | have hh := RankGeometry.increment_bounds ha hab hcL hcR ε L hε hεone hL U hU hg hleft hright |
| 905 | axial hangular haxial ho.epsilon |
| 906 | have hr := remainders_mem_local ha hab hcL hcR ε L hε hεone hL U hU hop hbs hms hhs |
| 907 | u.covariance hW ho hb hm hh hH i |
| 908 | apply class_congr hr |
| 909 | intro n x hx |
| 910 | exact congrFun (hg.debt_eq_remainders ha hab hU hleft hright axial hop hbs hms hW hV hG n hx) i |
| 911 | |
| 912 | include ha hab hcL hcR hg hleft hright axial hop hbs hms hW hV hG ho hb hm hangular haxial hH in |
| 913 | theorem rankStage_defectBounds {σ : ℝ} (hσ : 1 + σ ≤ H + 9 / 10 - 2 * κ) : |
| 914 | CorrectionState.DefectBounds (PhysicalMeanDomain.localSlowStripData U hU ε L hε hεone hL) σ c |
| 915 | (VariableGaugeMean.rankStageState g r axial c u) := by |
| 916 | intro i |
| 917 | exact (rankStage_defect_class ha hab hcL hcR ε L hε hεone hL U hU hg hleft hright axial hop hbs hms hW |
| 918 | hV hG ho hb hm hangular haxial hH i).mono_exponent hσ |
| 919 | |
| 920 | end ConstructedBounds |
| 921 | |
| 922 | |
| 923 | /-! ## Support retained in the reserved moving patch -/ |
| 924 | |
| 925 | /-- Derivatives retain the moving support when its length is continuous on |
| 926 | the open slow domain. No global continuation of the length is needed. -/ |
| 927 | theorem supportedGauge_directional {a b : ℝ} {ell : P → ℝ} {U : Set P} |
| 928 | (hU : IsOpen U) (hell : ContinuousOn ell U) {f : Point P → ℝ} |
| 929 | (hs : VariableGaugeMean.SupportedGauge a b ell U f) (v : Point P) : |
| 930 | VariableGaugeMean.SupportedGauge a b ell U (fun p => fderiv ℝ f p v) := by |
| 931 | classical |
| 932 | intro p hp hn |
| 933 | by_contra hr |
| 934 | let F : Point P → ℝ × ℝ × ℝ := fun z => (z.1, (ell z.2.1 * a, ell z.2.1 * b)) |
| 935 | have he : ContinuousAt (fun z : Point P => ell z.2.1) p := |
| 936 | (hell.continuousAt (hU.mem_nhds hp)).comp (f := fun z : Point P => z.2.1) |
| 937 | continuous_snd.fst.continuousAt |
| 938 | have hF : ContinuousAt F p := ContinuousAt.prodMk continuousAt_fst |
| 939 | (ContinuousAt.prodMk (he.mul continuousAt_const) (he.mul continuousAt_const)) |
| 940 | let O : Set (ℝ × ℝ × ℝ) := {q | q.1 < q.2.1 ∨ q.2.2 < q.1} |
| 941 | have hO : IsOpen O := |
| 942 | (isOpen_lt continuous_fst continuous_snd.fst).union |
| 943 | (isOpen_lt continuous_snd.snd continuous_fst) |
| 944 | have hFp : F p ∈ O := by |
| 945 | change p.1 < ell p.2.1 * a ∨ ell p.2.1 * b < p.1 |
| 946 | simpa only [mem_Icc, not_and_or, not_le] using hr |
| 947 | have hzero : f =ᶠ[𝓝 p] fun _ => 0 := by |
| 948 | filter_upwards [(PhysicalMeanDomain.slowDomain_open hU).mem_nhds hp, |
| 949 | hF.eventually (hO.mem_nhds hFp)] with z hz hzo |
| 950 | by_contra hf |
| 951 | have hsz := hs z hz hf |
| 952 | rcases hzo with hlo | hhi |
| 953 | · exact (not_lt_of_ge hsz.1) hlo |
| 954 | · exact (not_lt_of_ge hsz.2) hhi |
| 955 | exact hn (by change fderiv ℝ f p v = 0; rw [hzero.fderiv_eq]; simp) |
| 956 | |
| 957 | namespace RankGeometry |
| 958 | |
| 959 | variable {g : VariableGaugeMean.GaugeData P} {r : CorrectionState.RankData P} {U : Set P} |
| 960 | {c : CorrectionState.Context (Point P)} {u : CorrectionState.State (Point P)} |
| 961 | (hg : RankGeometry g r U c u) |
| 962 | |
| 963 | include hg |
| 964 | |
| 965 | theorem desired_supportedGauge (n : ℕ) : |
| 966 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 967 | (MeanRankUpdate.slowLift (CorrectionState.rankDesiredAxial r c u n)) := by |
| 968 | intro p hp hn |
| 969 | exact hg.desired_slice_support n hp le_rfl le_rfl hn |
| 970 | |
| 971 | theorem angular_supportedGauge (axial : P × PressureStream.Plane) (n : ℕ) : |
| 972 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 973 | ((VariableGaugeMean.rankIncrementState g r axial c u).angular n) := by |
| 974 | intro p hp hn |
| 975 | have h := MeanRankUpdate.angularIncrement_tsupport r.lambda (r.coefficient n p.2.1) |
| 976 | r.inner r.outer (r.velocity n p.2.1) (hg.length_pos n p.2.1 hp) hg.inner_lt_outer |
| 977 | (CorrectionState.debt c u n p.2.1) (subset_tsupport _ hn) |
| 978 | exact ⟨h.1.le, h.2.le⟩ |
| 979 | |
| 980 | /-- The zero weighted mass prevents the primitive from spreading beyond |
| 981 | the actual reserved rank patch. -/ |
| 982 | theorem potential_supportedGauge (n : ℕ) : |
| 983 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 984 | (VariableGaugeMean.rankPotential g r c u n) := by |
| 985 | intro p hp hn |
| 986 | by_contra hr |
| 987 | apply hn |
| 988 | rw [hg.potential_eq_scaledPrimitive n hp] |
| 989 | have hsupport := MeanRankUpdate.desiredAxialIncrement_tsupport r.lambda (r.coefficient n p.2.1) |
| 990 | r.inner r.outer (r.velocity n p.2.1) (hg.length_pos n p.2.1 hp) hg.inner_lt_outer |
| 991 | (CorrectionState.debt c u n p.2.1) |
| 992 | exact MeanRankUpdate.scaledPrimitive_zero_of_support |
| 993 | (mul_pos (hg.length_pos n p.2.1 hp) hg.inner_pos) |
| 994 | (mul_lt_mul_of_pos_left hg.inner_lt_outer (hg.length_pos n p.2.1 hp)) |
| 995 | hsupport (hg.desired_mass_zero n hp) (fun hi => hr ⟨hi.1.le, hi.2.le⟩) |
| 996 | |
| 997 | theorem radial_supportedGauge (hU : IsOpen U) (axial : P × PressureStream.Plane) (n : ℕ) : |
| 998 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 999 | ((VariableGaugeMean.rankIncrementState g r axial c u).radial n) := by |
| 1000 | have h := supportedGauge_directional hU (hg.length_smooth n).continuousOn |
| 1001 | (hg.potential_supportedGauge n) ((0 : ℝ), c.operators.epsilon n • axial) |
| 1002 | intro p hp hn |
| 1003 | exact h p hp (neg_ne_zero.mp hn) |
| 1004 | |
| 1005 | variable [FiniteDimensional ℝ P] |
| 1006 | |
| 1007 | /-- All three actual rank components retain the same reserved moving |
| 1008 | support, including the radial derivative of the stream potential. -/ |
| 1009 | theorem increment_supportedGauge {a b : ℝ} (ha : 0 < a) (hab : a < b) (hU : IsOpen U) |
| 1010 | (hleft : ∀ n x, x ∈ U → a ≤ r.length n x * r.inner) |
| 1011 | (hright : ∀ n x, x ∈ U → r.length n x * r.outer ≤ b) |
| 1012 | (axial : P × PressureStream.Plane) (n : ℕ) : |
| 1013 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 1014 | ((VariableGaugeMean.rankIncrementState g r axial c u).radial n) ∧ |
| 1015 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 1016 | ((VariableGaugeMean.rankIncrementState g r axial c u).angular n) ∧ |
| 1017 | VariableGaugeMean.SupportedGauge r.inner r.outer (r.length n) U |
| 1018 | ((VariableGaugeMean.rankIncrementState g r axial c u).axial n) := by |
| 1019 | refine ⟨hg.radial_supportedGauge hU axial n, hg.angular_supportedGauge axial n, ?_⟩ |
| 1020 | intro p hp hn |
| 1021 | rw [hg.axial_exact ha hab hU hleft hright axial n hp] at hn |
| 1022 | exact hg.desired_supportedGauge n p hp hn |
| 1023 | |
| 1024 | end RankGeometry |
| 1025 | |
| 1026 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 1027 | /-- A fixed reserved profile interval has a uniform positive distance from |
| 1028 | both outer moving edges after division by the actual local length. -/ |
| 1029 | theorem normalized_support_margin {a b lo hi : ℝ} (hal : a < lo) (hhb : hi < b) |
| 1030 | (ell : ℕ → P → ℝ) (U : Set P) (f : ScalarField (Point P)) |
| 1031 | (hell : ∀ n x, x ∈ U → 0 < ell n x) |
| 1032 | (hs : ∀ n, VariableGaugeMean.SupportedGauge lo hi (ell n) U (f n)) : |
| 1033 | ∃ δ : ℝ, 0 < δ ∧ ∀ n p, p.2.1 ∈ U → f n p ≠ 0 → |
| 1034 | δ ≤ p.1 / ell n p.2.1 - a ∧ δ ≤ b - p.1 / ell n p.2.1 := by |
| 1035 | refine ⟨min (lo - a) (b - hi), lt_min (sub_pos.mpr hal) (sub_pos.mpr hhb), ?_⟩ |
| 1036 | intro n p hp hn |
| 1037 | have hr := hs n p hp hn |
| 1038 | have hl : lo ≤ p.1 / ell n p.2.1 := (le_div_iff₀ (hell n _ hp)).mpr (by simpa only [mul_comm] using hr.1) |
| 1039 | have hh : p.1 / ell n p.2.1 ≤ hi := (div_le_iff₀ (hell n _ hp)).mpr (by simpa only [mul_comm] using hr.2) |
| 1040 | have h1 := min_le_left (lo - a) (b - hi) |
| 1041 | have h2 := min_le_right (lo - a) (b - hi) |
| 1042 | constructor <;> linarith |
| 1043 | |
| 1044 | end NavierStokes.LocalRankDefect |