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.SolenoidalDiagonal |
| 2 | import NavierStokes.AxisymmetricResidual |
| 3 | import NavierStokes.PhysicalWaveSum |
| 4 | import NavierStokes.VariableGaugeMean |
| 5 | import NavierStokes.ResidualCalculus |
| 6 | import NavierStokes.SpatialLocalization |
| 7 | import NavierStokes.OffplaneCorrectionExtensions |
| 8 | import NavierStokes.LocalRankDefect |
| 9 | |
| 10 | /-! |
| 11 | # Direct angular means in the physical diagonal |
| 12 | |
| 13 | The angular velocity is retained as a direct field. It is not replaced by |
| 14 | an axial primitive. Axisymmetry proves its divergence equation, and an |
| 15 | annular zero germ removes the coordinate singularity on the axis. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace NavierStokes.DirectAngularDiagonal |
| 21 | |
| 22 | open Set Function Filter ProblemStatement |
| 23 | open scoped Topology ContDiff BigOperators |
| 24 | |
| 25 | abbrev Slow := ℝ × ℝ |
| 26 | abbrev CylPoint := ℝ × (ℝ × ℝ) |
| 27 | abbrev Coefficient := CylPoint → ℝ |
| 28 | |
| 29 | noncomputable def radius (w : SpaceTime) : ℝ := |
| 30 | PolarCharts.radius (PhysicalGraphBounds.radialProjection w) |
| 31 | |
| 32 | noncomputable def slowPoint (w : SpaceTime) : Slow := (w.1, w.2 2) |
| 33 | |
| 34 | noncomputable def cylPoint (w : SpaceTime) : CylPoint := (w.1, (radius w, w.2 2)) |
| 35 | |
| 36 | noncomputable def slowOfCyl (p : CylPoint) : Slow := (p.1, p.2.2) |
| 37 | |
| 38 | noncomputable def physicalDomain (U : Set Slow) : Set SpaceTime := slowPoint ⁻¹' U |
| 39 | |
| 40 | noncomputable def positiveDomain (U : Set Slow) : Set CylPoint := |
| 41 | {p | slowOfCyl p ∈ U ∧ 0 < p.2.1} |
| 42 | |
| 43 | theorem slowPoint_smooth : ContDiff ℝ ∞ slowPoint := |
| 44 | contDiff_fst.prodMk ((AxisymmetricFields.projection 2).contDiff.comp contDiff_snd) |
| 45 | |
| 46 | theorem physicalDomain_open {U : Set Slow} (hU : IsOpen U) : IsOpen (physicalDomain U) := |
| 47 | hU.preimage slowPoint_smooth.continuous |
| 48 | |
| 49 | theorem positiveDomain_open {U : Set Slow} (hU : IsOpen U) : IsOpen (positiveDomain U) := |
| 50 | (hU.preimage (continuous_fst.prodMk continuous_snd.snd)).inter |
| 51 | (isOpen_lt continuous_const continuous_snd.fst) |
| 52 | |
| 53 | theorem radius_nonneg (w : SpaceTime) : 0 ≤ radius w := PolarCharts.radius_nonneg _ |
| 54 | |
| 55 | theorem radius_continuous : Continuous radius := |
| 56 | PolarCharts.radius_continuous.comp PhysicalGraphBounds.radialProjection.continuous |
| 57 | |
| 58 | noncomputable def profileToCyl (p : AxisymmetricFields.ProfilePoint) : CylPoint := |
| 59 | (p.1, (Real.sqrt (2 * p.2.1), p.2.2)) |
| 60 | |
| 61 | noncomputable def rate (b : Coefficient) (p : AxisymmetricFields.ProfilePoint) : ℝ := |
| 62 | b (profileToCyl p) / Real.sqrt (2 * p.2.1) |
| 63 | |
| 64 | /-- Literal angular velocity with physical tangential magnitude `b`. -/ |
| 65 | noncomputable def angularField (b : Coefficient) (w : SpaceTime) : Space := |
| 66 | (-w.2 1 / radius w * b (cylPoint w)) • coordinateVector 0 + |
| 67 | (w.2 0 / radius w * b (cylPoint w)) • coordinateVector 1 |
| 68 | |
| 69 | noncomputable def rotationField (F : AxisymmetricFields.Profile) (w : SpaceTime) : Space := |
| 70 | AxisymmetricResidual.pack (-w.2 1 * F (AxisymmetricFields.profilePoint w.1 w.2)) |
| 71 | (w.2 0 * F (AxisymmetricFields.profilePoint w.1 w.2)) 0 |
| 72 | |
| 73 | theorem profileToCyl_profilePoint (w : SpaceTime) : |
| 74 | profileToCyl (AxisymmetricFields.profilePoint w.1 w.2) = cylPoint w := by |
| 75 | have he : 2 * AxisymmetricFields.radialEnergy w.2 = w.2 0 ^ 2 + w.2 1 ^ 2 := by |
| 76 | unfold AxisymmetricFields.radialEnergy |
| 77 | ring |
| 78 | simp only [profileToCyl, AxisymmetricFields.profilePoint, he, cylPoint, radius, |
| 79 | PolarCharts.radius, PhysicalGraphBounds.radialProjection_apply] |
| 80 | |
| 81 | theorem angularField_eq_rotationField (b : Coefficient) : angularField b = rotationField (rate b) := by |
| 82 | funext w |
| 83 | have hr : Real.sqrt (2 * AxisymmetricFields.radialEnergy w.2) = radius w := |
| 84 | congrArg (fun p : CylPoint => p.2.1) (profileToCyl_profilePoint w) |
| 85 | simp only [angularField, rotationField, rate] |
| 86 | rw [profileToCyl_profilePoint] |
| 87 | simp only [AxisymmetricFields.profilePoint, hr, AxisymmetricResidual.pack, zero_smul, add_zero] |
| 88 | congr 1 <;> congr 1 <;> ring |
| 89 | |
| 90 | /-- The cancellation is computed from actual Cartesian derivatives. -/ |
| 91 | theorem divergence_rotationField {F : AxisymmetricFields.Profile} {w : SpaceTime} |
| 92 | (hF : DifferentiableAt ℝ F (AxisymmetricFields.profilePoint w.1 w.2)) : |
| 93 | spatialDivergence (rotationField F) w.1 w.2 = 0 := by |
| 94 | have hf := AxisymmetricFields.hasFDerivAt_profile_composition F w.1 w.2 hF |
| 95 | have hd := AxisymmetricResidual.hasFDerivAt_pack |
| 96 | ((AxisymmetricFields.projection 1).hasFDerivAt.neg.mul hf) |
| 97 | ((AxisymmetricFields.projection 0).hasFDerivAt.mul hf) |
| 98 | (hasFDerivAt_const (0 : ℝ) w.2) |
| 99 | unfold spatialDivergence spatialDerivative |
| 100 | change (∑ i : Fin 3, fderiv ℝ (fun x => rotationField F (w.1, x)) w.2 |
| 101 | (coordinateVector i) i) = 0 |
| 102 | rw [show fderiv ℝ (fun x => rotationField F (w.1, x)) w.2 = _ from hd.fderiv, |
| 103 | Fin.sum_univ_three] |
| 104 | simp [AxisymmetricResidual.packDerivative_apply, AxisymmetricFields.profileDerivative_apply, |
| 105 | AxisymmetricFields.projection, coordinateVector] |
| 106 | ring |
| 107 | |
| 108 | theorem rotationField_smoothAt {F : AxisymmetricFields.Profile} {w : SpaceTime} |
| 109 | (hF : ContDiffAt ℝ ∞ F (AxisymmetricFields.profilePoint w.1 w.2)) : |
| 110 | ContDiffAt ℝ ∞ (rotationField F) w := by |
| 111 | have hf := hF.comp w AxisymmetricFields.contDiff_profilePoint.contDiffAt |
| 112 | exact (((((AxisymmetricFields.projection 1).contDiff.comp contDiff_snd).contDiffAt.neg.mul hf).smul |
| 113 | contDiffAt_const).add |
| 114 | ((((AxisymmetricFields.projection 0).contDiff.comp contDiff_snd).contDiffAt.mul hf).smul |
| 115 | contDiffAt_const)).add (show ContDiffAt ℝ ∞ (fun _ : SpaceTime => (0 : ℝ) • coordinateVector 2) w from contDiffAt_const) |
| 116 | |
| 117 | theorem rate_smoothAt {U : Set Slow} (hU : IsOpen U) {b : Coefficient} |
| 118 | (hb : ContDiffOn ℝ ∞ b (positiveDomain U)) {w : SpaceTime} |
| 119 | (hw : w ∈ physicalDomain U) (hr : 0 < radius w) : |
| 120 | ContDiffAt ℝ ∞ (rate b) (AxisymmetricFields.profilePoint w.1 w.2) := by |
| 121 | have he : 2 * AxisymmetricFields.radialEnergy w.2 = w.2 0 ^ 2 + w.2 1 ^ 2 := by |
| 122 | unfold AxisymmetricFields.radialEnergy |
| 123 | ring |
| 124 | have hpos : 0 < 2 * AxisymmetricFields.radialEnergy w.2 := by |
| 125 | rw [he] |
| 126 | exact Real.sqrt_pos.mp hr |
| 127 | have hs : ContDiffAt ℝ ∞ (fun p : AxisymmetricFields.ProfilePoint => Real.sqrt (2 * p.2.1)) |
| 128 | (AxisymmetricFields.profilePoint w.1 w.2) := |
| 129 | (contDiffAt_const.mul contDiffAt_snd.fst).sqrt hpos.ne' |
| 130 | have hp : profileToCyl (AxisymmetricFields.profilePoint w.1 w.2) ∈ positiveDomain U := by |
| 131 | rw [profileToCyl_profilePoint] |
| 132 | exact ⟨hw, hr⟩ |
| 133 | have hb' := hb.contDiffAt ((positiveDomain_open hU).mem_nhds hp) |
| 134 | exact (hb'.comp _ (contDiffAt_fst.prodMk (hs.prodMk contDiffAt_snd.snd))).div hs |
| 135 | (Real.sqrt_pos.mpr hpos).ne' |
| 136 | |
| 137 | /-- A moving positive inner support radius is a primitive support datum. |
| 138 | It may shrink as the physical terminal point is approached. -/ |
| 139 | structure AngularData (U : Set Slow) where |
| 140 | scalar : Coefficient |
| 141 | smooth : ContDiffOn ℝ ∞ scalar (positiveDomain U) |
| 142 | inner : Slow → ℝ |
| 143 | inner_continuous : ContinuousOn inner U |
| 144 | inner_pos : ∀ s ∈ U, 0 < inner s |
| 145 | vanishes : ∀ p, slowOfCyl p ∈ U → 0 ≤ p.2.1 → p.2.1 < inner (slowOfCyl p) → scalar p = 0 |
| 146 | |
| 147 | namespace AngularData |
| 148 | |
| 149 | variable {U : Set Slow} (D : AngularData U) |
| 150 | |
| 151 | theorem field_zero_germ (hU : IsOpen U) {w : SpaceTime} (hw : w ∈ physicalDomain U) |
| 152 | (hr : radius w < D.inner (slowPoint w)) : |
| 153 | angularField D.scalar =ᶠ[𝓝 w] fun _ => 0 := by |
| 154 | have hi : ContinuousAt (fun y => D.inner (slowPoint y)) w := |
| 155 | (D.inner_continuous.continuousAt (hU.mem_nhds hw)).comp slowPoint_smooth.continuous.continuousAt |
| 156 | have hp := (hi.sub radius_continuous.continuousAt) |
| 157 | (lt_mem_nhds (sub_pos.mpr hr)) |
| 158 | filter_upwards [(physicalDomain_open hU).mem_nhds hw, hp] with y hy hpy |
| 159 | have hz := D.vanishes (cylPoint y) hy (radius_nonneg y) (sub_pos.mp hpy) |
| 160 | simp only [angularField, hz, mul_zero, zero_smul, add_zero] |
| 161 | |
| 162 | theorem field_smoothAt (hU : IsOpen U) {w : SpaceTime} (hw : w ∈ physicalDomain U) : |
| 163 | ContDiffAt ℝ ∞ (angularField D.scalar) w := by |
| 164 | by_cases hr : 0 < radius w |
| 165 | · rw [angularField_eq_rotationField] |
| 166 | exact rotationField_smoothAt (rate_smoothAt hU D.smooth hw hr) |
| 167 | · have hz : radius w = 0 := le_antisymm (le_of_not_gt hr) (radius_nonneg w) |
| 168 | exact contDiffAt_const.congr_of_eventuallyEq |
| 169 | (D.field_zero_germ hU hw (hz ▸ D.inner_pos _ hw)) |
| 170 | |
| 171 | theorem field_smooth (hU : IsOpen U) : |
| 172 | ContDiffOn ℝ ∞ (angularField D.scalar) (physicalDomain U) := |
| 173 | fun _ hw => (D.field_smoothAt hU hw).contDiffWithinAt |
| 174 | |
| 175 | theorem field_divergence (hU : IsOpen U) {w : SpaceTime} (hw : w ∈ physicalDomain U) : |
| 176 | spatialDivergence (angularField D.scalar) w.1 w.2 = 0 := by |
| 177 | by_cases hr : 0 < radius w |
| 178 | · rw [angularField_eq_rotationField] |
| 179 | exact divergence_rotationField ((rate_smoothAt hU D.smooth hw hr).differentiableAt (by simp)) |
| 180 | · have hz : radius w = 0 := le_antisymm (le_of_not_gt hr) (radius_nonneg w) |
| 181 | have he := (D.field_zero_germ hU hw (hz ▸ D.inner_pos _ hw)).comp_tendsto |
| 182 | (continuous_const.prodMk continuous_id).continuousAt |
| 183 | have he' : (fun y : Space => angularField D.scalar (w.1, y)) =ᶠ[𝓝 w.2] fun _ => 0 := he |
| 184 | unfold spatialDivergence spatialDerivative |
| 185 | rw [he'.fderiv_eq] |
| 186 | simp |
| 187 | |
| 188 | noncomputable def multiply (f : Coefficient) (hf : ContDiffOn ℝ ∞ f (positiveDomain U)) : AngularData U where |
| 189 | scalar p := f p * D.scalar p |
| 190 | smooth := hf.mul D.smooth |
| 191 | inner := D.inner |
| 192 | inner_continuous := D.inner_continuous |
| 193 | inner_pos := D.inner_pos |
| 194 | vanishes p hp hr hi := by rw [D.vanishes p hp hr hi, mul_zero] |
| 195 | |
| 196 | end AngularData |
| 197 | |
| 198 | theorem angularField_axis (b : Coefficient) (t : ℝ) (x : Space) (h0 : x 0 = 0) (h1 : x 1 = 0) : |
| 199 | angularField b (t, x) = 0 := by |
| 200 | simp [angularField, h0, h1] |
| 201 | |
| 202 | theorem angularField_mul (f b : Coefficient) : |
| 203 | angularField (fun p => f p * b p) = fun w => f (cylPoint w) • angularField b w := by |
| 204 | funext w |
| 205 | simp only [angularField, smul_add, smul_smul] |
| 206 | congr 1 <;> congr 1 <;> ring |
| 207 | |
| 208 | noncomputable def cutCoefficient (a : ℝ) (q b : Coefficient) : Coefficient := |
| 209 | fun p => SmoothCutoffs.scaledCutoff a (q p) * b p |
| 210 | |
| 211 | theorem cut_angularField (a : ℝ) (q b : Coefficient) : |
| 212 | angularField (cutCoefficient a q b) = |
| 213 | fun w => SmoothCutoffs.scaledCutoff a (q (cylPoint w)) • angularField b w := |
| 214 | angularField_mul _ _ |
| 215 | |
| 216 | noncomputable def AngularData.cut {U : Set Slow} (D : AngularData U) (a : ℝ) |
| 217 | (q : Coefficient) (hq : ContDiffOn ℝ ∞ q (positiveDomain U)) : AngularData U := |
| 218 | D.multiply (fun p => SmoothCutoffs.scaledCutoff a (q p)) |
| 219 | ((SmoothCutoffs.scaledCutoff_contDiff a).comp_contDiffOn hq) |
| 220 | |
| 221 | theorem divergence_cut_angular {U : Set Slow} (hU : IsOpen U) (D : AngularData U) |
| 222 | (a : ℝ) (q : Coefficient) (hq : ContDiffOn ℝ ∞ q (positiveDomain U)) |
| 223 | {w : SpaceTime} (hw : w ∈ physicalDomain U) : |
| 224 | spatialDivergence (fun y => SmoothCutoffs.scaledCutoff a (q (cylPoint y)) • angularField D.scalar y) |
| 225 | w.1 w.2 = 0 := by |
| 226 | rw [← cut_angularField] |
| 227 | exact (D.cut a q hq).field_divergence hU hw |
| 228 | |
| 229 | /-! ## Locally finite direct angular sums -/ |
| 230 | |
| 231 | noncomputable def angularSum (a : ℕ → ℝ) (q : SpaceTime → ℝ) |
| 232 | (b : ℕ → Coefficient) : VelocityField := |
| 233 | SolenoidalDiagonal.potentialSum a q (fun j => angularField (b j)) |
| 234 | |
| 235 | noncomputable def angularPartial (a : ℕ → ℝ) (q : SpaceTime → ℝ) |
| 236 | (b : ℕ → Coefficient) (N : ℕ) : VelocityField := |
| 237 | SolenoidalDiagonal.partialPotential a q (fun j => angularField (b j)) N |
| 238 | |
| 239 | theorem divergence_congr {v w : VelocityField} {x : SpaceTime} (h : v =ᶠ[𝓝 x] w) : |
| 240 | spatialDivergence v x.1 x.2 = spatialDivergence w x.1 x.2 := by |
| 241 | have he : (fun y : Space => v (x.1, y)) =ᶠ[𝓝 x.2] fun y => w (x.1, y) := |
| 242 | h.comp_tendsto (continuous_const.prodMk continuous_id).continuousAt |
| 243 | unfold spatialDivergence spatialDerivative |
| 244 | rw [he.fderiv_eq] |
| 245 | |
| 246 | theorem divergence_finset_sum {I : Type} (J : Finset I) (v : I → VelocityField) |
| 247 | (x : SpaceTime) (hv : ∀ j ∈ J, DifferentiableAt ℝ (fun y : Space => v j (x.1, y)) x.2) : |
| 248 | spatialDivergence (fun y => ∑ j ∈ J, v j y) x.1 x.2 = |
| 249 | ∑ j ∈ J, spatialDivergence (v j) x.1 x.2 := by |
| 250 | unfold spatialDivergence spatialDerivative |
| 251 | rw [fderiv_fun_sum hv] |
| 252 | simp only [_root_.sum_apply] |
| 253 | calc |
| 254 | _ = ∑ i : Fin 3, ∑ j ∈ J, (fderiv ℝ (fun y => v j (x.1, y)) x.2 (coordinateVector i)) i := by |
| 255 | apply Finset.sum_congr rfl |
| 256 | intro i _ |
| 257 | exact map_sum (EuclideanSpace.proj i) _ _ |
| 258 | _ = _ := Finset.sum_comm |
| 259 | |
| 260 | theorem angularSum_eventuallyEq_partial {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 261 | {q : SpaceTime → ℝ} {x : SpaceTime} (hq : ContinuousAt q x) (hx : 0 < q x) |
| 262 | (b : ℕ → Coefficient) : |
| 263 | ∃ N : ℕ, angularSum a q b =ᶠ[𝓝 x] angularPartial a q b N := |
| 264 | SolenoidalDiagonal.potentialSum_eventuallyEq_partial ha hq hx _ |
| 265 | |
| 266 | theorem angularSum_smooth {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 267 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 268 | (hq : ContDiffOn ℝ ∞ q (physicalDomain U)) (hpos : ∀ x ∈ physicalDomain U, 0 < q x) : |
| 269 | ContDiffOn ℝ ∞ (angularSum a q (fun j => (D j).scalar)) (physicalDomain U) := |
| 270 | SolenoidalDiagonal.potentialSum_contDiffOn ha (physicalDomain_open hU) hpos hq |
| 271 | (fun j => (D j).field_smooth hU) |
| 272 | |
| 273 | theorem angularSum_allJets {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 274 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 275 | (hq : ContDiffOn ℝ ∞ q (physicalDomain U)) (hpos : ∀ x ∈ physicalDomain U, 0 < q x) |
| 276 | {x : SpaceTime} (hx : x ∈ physicalDomain U) : |
| 277 | ∃ N : ℕ, ∀ k : ℕ, ∀ᶠ y in 𝓝 x, |
| 278 | iteratedFDeriv ℝ k (angularSum a q (fun j => (D j).scalar)) y = |
| 279 | ∑ j ∈ Finset.range N, iteratedFDeriv ℝ k |
| 280 | (SolenoidalDiagonal.cutStage a q (fun j => angularField (D j).scalar) j) y := |
| 281 | SolenoidalDiagonal.potentialSum_allJets_eventuallyEq_sum ha (physicalDomain_open hU) |
| 282 | hpos hq (fun j => (D j).field_smooth hU) hx |
| 283 | |
| 284 | theorem angularSum_locallyFinite {U : Set Slow} (D : ℕ → AngularData U) |
| 285 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 286 | (hq : ContinuousOn q (physicalDomain U)) (hpos : ∀ x ∈ physicalDomain U, 0 < q x) : |
| 287 | LocallyFinite (fun j => support (fun x : physicalDomain U => |
| 288 | SolenoidalDiagonal.cutStage a q (fun j => angularField (D j).scalar) j x)) := |
| 289 | SolenoidalDiagonal.locallyFinite_cutStage_support_on ha hq hpos _ |
| 290 | |
| 291 | theorem angularSum_divergence {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 292 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) (q : Coefficient) |
| 293 | (hq : ContDiffOn ℝ ∞ q (positiveDomain U)) |
| 294 | (hqp : ContDiffOn ℝ ∞ (fun x => q (cylPoint x)) (physicalDomain U)) |
| 295 | (hpos : ∀ x ∈ physicalDomain U, 0 < q (cylPoint x)) |
| 296 | {x : SpaceTime} (hx : x ∈ physicalDomain U) : |
| 297 | spatialDivergence (angularSum a (fun x => q (cylPoint x)) (fun j => (D j).scalar)) x.1 x.2 = 0 := by |
| 298 | have hqAt := hqp.contDiffAt ((physicalDomain_open hU).mem_nhds hx) |
| 299 | obtain ⟨N, hN⟩ := angularSum_eventuallyEq_partial ha hqAt.continuousAt (hpos x hx) |
| 300 | (fun j => (D j).scalar) |
| 301 | rw [divergence_congr hN] |
| 302 | have hs (j : ℕ) : DifferentiableAt ℝ |
| 303 | (fun y : Space => SolenoidalDiagonal.cutStage a (fun x => q (cylPoint x)) |
| 304 | (fun j => angularField (D j).scalar) j (x.1, y)) x.2 := |
| 305 | ((SolenoidalDiagonal.cutStage_contDiffAt hqAt |
| 306 | (fun j => (D j).field_smoothAt hU hx) j).comp x.2 |
| 307 | (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp) |
| 308 | change spatialDivergence (fun y => ∑ j ∈ Finset.range N, |
| 309 | SolenoidalDiagonal.cutStage a (fun x => q (cylPoint x)) (fun j => angularField (D j).scalar) j y) x.1 x.2 = 0 |
| 310 | rw [divergence_finset_sum _ _ x (fun j _ => hs j)] |
| 311 | apply Finset.sum_eq_zero |
| 312 | intro j _ |
| 313 | exact divergence_cut_angular hU (D j) (a j) q hq hx |
| 314 | |
| 315 | theorem angularSum_axis (a : ℕ → ℝ) (q : SpaceTime → ℝ) (b : ℕ → Coefficient) |
| 316 | (t : ℝ) (x : Space) (h0 : x 0 = 0) (h1 : x 1 = 0) : |
| 317 | angularSum a q b (t, x) = 0 := by |
| 318 | simp only [angularSum, SolenoidalDiagonal.potentialSum, SolenoidalDiagonal.cutStage, |
| 319 | angularField_axis _ _ _ h0 h1, smul_zero, tsum_zero] |
| 320 | |
| 321 | theorem angularSum_axis_zero_germ {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 322 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 323 | {x : SpaceTime} (hq : ContinuousAt q x) (hpos : 0 < q x) (hx : x ∈ physicalDomain U) |
| 324 | (haxis : radius x = 0) : |
| 325 | angularSum a q (fun j => (D j).scalar) =ᶠ[𝓝 x] fun _ => 0 := by |
| 326 | obtain ⟨N, hN⟩ := angularSum_eventuallyEq_partial ha hq hpos (fun j => (D j).scalar) |
| 327 | have hz (j : ℕ) : (fun y => SolenoidalDiagonal.cutStage a q |
| 328 | (fun j => angularField (D j).scalar) j y) =ᶠ[𝓝 x] fun _ => 0 := by |
| 329 | filter_upwards [(D j).field_zero_germ hU hx (haxis ▸ (D j).inner_pos _ hx)] with y hy |
| 330 | simp only [SolenoidalDiagonal.cutStage, hy, smul_zero] |
| 331 | have hsum : angularPartial a q (fun j => (D j).scalar) N =ᶠ[𝓝 x] fun _ => 0 := by |
| 332 | filter_upwards [(Filter.eventually_all_finset (Finset.range N)).2 (fun j _ => hz j)] with y hy |
| 333 | exact Finset.sum_eq_zero hy |
| 334 | exact hN.trans hsum |
| 335 | |
| 336 | /-! ## Curl potentials plus direct angular velocity -/ |
| 337 | |
| 338 | noncomputable def mixedVelocity (a : ℕ → ℝ) (q : SpaceTime → ℝ) |
| 339 | (A : ℕ → VelocityField) (b : ℕ → Coefficient) : VelocityField := |
| 340 | fun x => SolenoidalDiagonal.velocitySum a q A x + angularSum a q b x |
| 341 | |
| 342 | theorem mixedVelocity_smooth {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 343 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 344 | (hq : ContDiffOn ℝ ∞ q (physicalDomain U)) (hpos : ∀ x ∈ physicalDomain U, 0 < q x) |
| 345 | {A : ℕ → VelocityField} (hA : ∀ j, ContDiffOn ℝ ∞ (A j) (physicalDomain U)) : |
| 346 | ContDiffOn ℝ ∞ (mixedVelocity a q A (fun j => (D j).scalar)) (physicalDomain U) := |
| 347 | (SolenoidalDiagonal.velocitySum_contDiffOn ha (physicalDomain_open hU) hpos hq hA).add |
| 348 | (angularSum_smooth hU D ha hq hpos) |
| 349 | |
| 350 | theorem mixedVelocity_divergence {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 351 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) (q : Coefficient) |
| 352 | (hq : ContDiffOn ℝ ∞ q (positiveDomain U)) |
| 353 | (hqp : ContDiffOn ℝ ∞ (fun x => q (cylPoint x)) (physicalDomain U)) |
| 354 | (hpos : ∀ x ∈ physicalDomain U, 0 < q (cylPoint x)) |
| 355 | {A : ℕ → VelocityField} (hA : ∀ j, ContDiffOn ℝ ∞ (A j) (physicalDomain U)) |
| 356 | {x : SpaceTime} (hx : x ∈ physicalDomain U) : |
| 357 | spatialDivergence (mixedVelocity a (fun x => q (cylPoint x)) A (fun j => (D j).scalar)) x.1 x.2 = 0 := by |
| 358 | have hmem := (physicalDomain_open hU).mem_nhds hx |
| 359 | have hc := (SolenoidalDiagonal.velocitySum_contDiffOn ha (physicalDomain_open hU) hpos hqp hA).contDiffAt hmem |
| 360 | have hd := (angularSum_smooth hU D ha hqp hpos).contDiffAt hmem |
| 361 | unfold mixedVelocity |
| 362 | rw [ResidualCalculus.spatialDivergence_add _ _ _ _ |
| 363 | ((hc.comp x.2 (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp)) |
| 364 | ((hd.comp x.2 (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp)), |
| 365 | SolenoidalDiagonal.divergence_velocitySum_on ha (physicalDomain_open hU) hpos hqp hA x hx, |
| 366 | angularSum_divergence hU D ha q hq hqp hpos hx, add_zero] |
| 367 | |
| 368 | theorem mixedVelocity_axis (a : ℕ → ℝ) (q : SpaceTime → ℝ) (A : ℕ → VelocityField) |
| 369 | (b : ℕ → Coefficient) (t : ℝ) (x : Space) (h0 : x 0 = 0) (h1 : x 1 = 0) : |
| 370 | mixedVelocity a q A b (t, x) = SolenoidalDiagonal.velocitySum a q A (t, x) := by |
| 371 | rw [mixedVelocity, angularSum_axis a q b t x h0 h1, add_zero] |
| 372 | |
| 373 | /-! ## The actual similarity cutoff -/ |
| 374 | |
| 375 | noncomputable def preterminalSlow : Set Slow := {s | s.1 < 1} |
| 376 | |
| 377 | theorem preterminalSlow_open : IsOpen preterminalSlow := isOpen_lt continuous_fst continuous_const |
| 378 | |
| 379 | noncomputable def qCoefficient (h : ℝ) : Coefficient := SimilarityProfile.q h |
| 380 | |
| 381 | theorem qCoefficient_physical (h : ℝ) (w : SpaceTime) : |
| 382 | qCoefficient h (cylPoint w) = PhysicalWaveSum.physicalQ h w := rfl |
| 383 | |
| 384 | theorem physicalDomain_preterminal : physicalDomain preterminalSlow = PhysicalWaveSum.preterminal := rfl |
| 385 | |
| 386 | theorem qCoefficient_smooth {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 387 | ContDiffOn ℝ ∞ (qCoefficient h) (positiveDomain preterminalSlow) := |
| 388 | fun _ hp => (SimilarityProfile.q_smoothAt hh hh1 hp.1).contDiffWithinAt |
| 389 | |
| 390 | theorem physicalQ_smooth {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 391 | ContDiffOn ℝ ∞ (PhysicalWaveSum.physicalQ h) (physicalDomain preterminalSlow) := |
| 392 | fun _ hw => (PhysicalWaveSum.physicalQ_smoothAt hh hh1 hw).contDiffWithinAt |
| 393 | |
| 394 | theorem actual_diagonal_divergence {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 395 | (D : ℕ → AngularData preterminalSlow) {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 396 | {w : SpaceTime} (hw : w.1 < 1) : |
| 397 | spatialDivergence (angularSum a (PhysicalWaveSum.physicalQ h) (fun j => (D j).scalar)) w.1 w.2 = 0 := |
| 398 | angularSum_divergence preterminalSlow_open D ha (qCoefficient h) (qCoefficient_smooth hh hh1) |
| 399 | (physicalQ_smooth hh hh1) (fun _ hx => PhysicalWaveSum.physicalQ_pos hh hh1 hx) hw |
| 400 | |
| 401 | theorem actual_diagonal_smooth {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 402 | (D : ℕ → AngularData preterminalSlow) {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) : |
| 403 | ContDiffOn ℝ ∞ (angularSum a (PhysicalWaveSum.physicalQ h) (fun j => (D j).scalar)) |
| 404 | PhysicalWaveSum.preterminal := |
| 405 | angularSum_smooth preterminalSlow_open D ha (physicalQ_smooth hh hh1) |
| 406 | (fun _ hx => PhysicalWaveSum.physicalQ_pos hh hh1 hx) |
| 407 | |
| 408 | theorem actual_mixed_divergence {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 409 | (D : ℕ → AngularData preterminalSlow) {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 410 | {A : ℕ → VelocityField} (hA : ∀ j, ContDiffOn ℝ ∞ (A j) PhysicalWaveSum.preterminal) |
| 411 | {w : SpaceTime} (hw : w.1 < 1) : |
| 412 | spatialDivergence (mixedVelocity a (PhysicalWaveSum.physicalQ h) A (fun j => (D j).scalar)) w.1 w.2 = 0 := |
| 413 | mixedVelocity_divergence preterminalSlow_open D ha (qCoefficient h) (qCoefficient_smooth hh hh1) |
| 414 | (physicalQ_smooth hh hh1) (fun _ hx => PhysicalWaveSum.physicalQ_pos hh hh1 hx) hA hw |
| 415 | |
| 416 | /-! ## The existing Cartesian spatial cutoff is axisymmetric -/ |
| 417 | |
| 418 | noncomputable def spatialProfile (p : CylPoint) : ℝ := |
| 419 | SpatialLocalization.cutoffProfile (p.2.1 ^ 2, p.2.2) |
| 420 | |
| 421 | theorem spatialProfile_smooth : ContDiff ℝ ∞ spatialProfile := |
| 422 | SpatialLocalization.cutoffProfile_contDiff.comp ((contDiff_snd.fst.pow 2).prodMk contDiff_snd.snd) |
| 423 | |
| 424 | theorem spatialProfile_physical (w : SpaceTime) : |
| 425 | spatialProfile (cylPoint w) = SpatialLocalization.spatialCutoff w.2 := by |
| 426 | have hr : radius w ^ 2 = w.2 0 ^ 2 + w.2 1 ^ 2 := |
| 427 | Real.sq_sqrt (add_nonneg (sq_nonneg _) (sq_nonneg _)) |
| 428 | simp only [spatialProfile, cylPoint, hr, SpatialLocalization.spatialCutoff, |
| 429 | SpatialLocalization.radialSquare] |
| 430 | |
| 431 | theorem spatialCut_angular {U : Set Slow} (hU : IsOpen U) (D : AngularData U) |
| 432 | {w : SpaceTime} (hw : w ∈ physicalDomain U) : |
| 433 | spatialDivergence (SpatialLocalization.cutPotential (angularField D.scalar)) w.1 w.2 = 0 := by |
| 434 | have he : angularField (fun p => spatialProfile p * D.scalar p) = |
| 435 | SpatialLocalization.cutPotential (angularField D.scalar) := by |
| 436 | rw [angularField_mul] |
| 437 | funext x |
| 438 | rw [spatialProfile_physical] |
| 439 | rfl |
| 440 | rw [← he] |
| 441 | exact (D.multiply spatialProfile spatialProfile_smooth.contDiffOn).field_divergence hU hw |
| 442 | |
| 443 | theorem angularSum_multiply (a : ℕ → ℝ) (q : SpaceTime → ℝ) (f : Coefficient) |
| 444 | (b : ℕ → Coefficient) : |
| 445 | angularSum a q (fun j p => f p * b j p) = fun w => f (cylPoint w) • angularSum a q b w := by |
| 446 | funext w |
| 447 | simp only [angularSum, SolenoidalDiagonal.potentialSum, SolenoidalDiagonal.cutStage, angularField_mul] |
| 448 | simp_rw [smul_comm (SmoothCutoffs.scaledCutoff _ _) (f (cylPoint w))] |
| 449 | exact tsum_const_smul'' _ |
| 450 | |
| 451 | theorem spatialCut_angularSum (a : ℕ → ℝ) (q : SpaceTime → ℝ) (b : ℕ → Coefficient) : |
| 452 | SpatialLocalization.cutPotential (angularSum a q b) = |
| 453 | angularSum a q (fun j p => spatialProfile p * b j p) := by |
| 454 | rw [angularSum_multiply] |
| 455 | funext w |
| 456 | rw [spatialProfile_physical] |
| 457 | rfl |
| 458 | |
| 459 | theorem spatialCut_angularSum_divergence {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 460 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) (q : Coefficient) |
| 461 | (hq : ContDiffOn ℝ ∞ q (positiveDomain U)) |
| 462 | (hqp : ContDiffOn ℝ ∞ (fun x => q (cylPoint x)) (physicalDomain U)) |
| 463 | (hpos : ∀ x ∈ physicalDomain U, 0 < q (cylPoint x)) |
| 464 | {x : SpaceTime} (hx : x ∈ physicalDomain U) : |
| 465 | spatialDivergence (SpatialLocalization.cutPotential |
| 466 | (angularSum a (fun x => q (cylPoint x)) (fun j => (D j).scalar))) x.1 x.2 = 0 := by |
| 467 | rw [spatialCut_angularSum] |
| 468 | exact angularSum_divergence hU |
| 469 | (fun j => (D j).multiply spatialProfile spatialProfile_smooth.contDiffOn) ha q hq hqp hpos hx |
| 470 | |
| 471 | theorem actual_spatialCut_diagonal_divergence {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 472 | (D : ℕ → AngularData preterminalSlow) {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 473 | (t : ℝ) (ht : t < 1) (x : Space) : |
| 474 | spatialDivergence (SpatialLocalization.cutPotential |
| 475 | (angularSum a (PhysicalWaveSum.physicalQ h) (fun j => (D j).scalar))) t x = 0 := by |
| 476 | have hqp : ContDiffOn ℝ ∞ (fun w => qCoefficient h (cylPoint w)) (physicalDomain preterminalSlow) := by |
| 477 | simpa only [qCoefficient_physical] using physicalQ_smooth hh hh1 |
| 478 | have hpos : ∀ w ∈ physicalDomain preterminalSlow, 0 < qCoefficient h (cylPoint w) := |
| 479 | fun _ hw => PhysicalWaveSum.physicalQ_pos hh hh1 hw |
| 480 | have he := spatialCut_angularSum_divergence preterminalSlow_open D ha (qCoefficient h) |
| 481 | (qCoefficient_smooth hh hh1) hqp hpos (x := (t, x)) ht |
| 482 | simpa only [qCoefficient_physical] using he |
| 483 | |
| 484 | /-! ## Actual full-fiber means restricted to a physical graph -/ |
| 485 | |
| 486 | abbrev Lift := PressureStream.Lift Slow |
| 487 | |
| 488 | /-- The time/axial variables in the actual mean-field convention `(T,Z)`. -/ |
| 489 | noncomputable def graphSlow (G : PhysicalResidualBridge.ScaledGraph) (s : Slow) : Slow := |
| 490 | (G.velocityScale * G.radialScale * G.epsilon * (1 - s.1), |
| 491 | G.radialScale * G.epsilon * s.2) |
| 492 | |
| 493 | noncomputable def graphPoint (G : PhysicalResidualBridge.ScaledGraph) (p : CylPoint) : Lift := |
| 494 | (G.radialScale * p.2.1, (graphSlow G (slowOfCyl p), |
| 495 | (G.frequency * (G.radialScale * p.2.1) ^ G.exponent) • G.radialVector + |
| 496 | (G.velocityScale * G.radialScale * G.fastCoefficient * p.1) • G.temporalVector)) |
| 497 | |
| 498 | /-- The physical velocity normalization is included here. -/ |
| 499 | noncomputable def graphCoefficient (G : PhysicalResidualBridge.ScaledGraph) (f : Lift → ℝ) : Coefficient := |
| 500 | fun p => G.velocityScale * f (graphPoint G p) |
| 501 | |
| 502 | theorem graphPoint_actual (G : PhysicalResidualBridge.ScaledGraph) (p : CylPoint) (theta : ℝ) : |
| 503 | graphPoint G p = PhysicalResidualTZ.swapSlow |
| 504 | (G.map (p.1, AxisymmetricResidual.pack p.2.1 theta p.2.2)).1 := by |
| 505 | simp only [graphPoint, graphSlow, slowOfCyl, PhysicalResidualTZ.swapSlow_apply, |
| 506 | PhysicalResidualBridge.ScaledGraph.map, AxisymmetricResidual.pack_zero, |
| 507 | AxisymmetricResidual.pack_one, AxisymmetricResidual.pack_two] |
| 508 | |
| 509 | theorem graphCoefficient_actual (G : PhysicalResidualBridge.ScaledGraph) (f : Lift → ℝ) |
| 510 | (p : CylPoint) (theta : ℝ) : |
| 511 | graphCoefficient G f p = G.velocityScale * |
| 512 | f (PhysicalResidualTZ.swapSlow (G.map (p.1, AxisymmetricResidual.pack p.2.1 theta p.2.2)).1) := by |
| 513 | rw [graphCoefficient, graphPoint_actual G p theta] |
| 514 | |
| 515 | theorem graphSlow_smooth (G : PhysicalResidualBridge.ScaledGraph) : ContDiff ℝ ∞ (graphSlow G) := |
| 516 | (contDiff_const.mul (contDiff_const.sub contDiff_fst)).prodMk (contDiff_const.mul contDiff_snd) |
| 517 | |
| 518 | theorem graphPoint_smoothAt (G : PhysicalResidualBridge.ScaledGraph) (hG : 0 < G.radialScale) |
| 519 | {p : CylPoint} (hp : 0 < p.2.1) : ContDiffAt ℝ ∞ (graphPoint G) p := by |
| 520 | have hr : ContDiffAt ℝ ∞ (fun p : CylPoint => (G.radialScale * p.2.1) ^ G.exponent) p := |
| 521 | (contDiffAt_const.mul contDiffAt_snd.fst).rpow_const_of_ne (mul_pos hG hp).ne' |
| 522 | exact (contDiffAt_const.mul contDiffAt_snd.fst).prodMk |
| 523 | (((graphSlow_smooth G).contDiffAt.comp p (contDiffAt_fst.prodMk contDiffAt_snd.snd)).prodMk |
| 524 | (((contDiffAt_const.mul hr).smul contDiffAt_const).add |
| 525 | ((contDiffAt_const.mul contDiffAt_fst).smul contDiffAt_const))) |
| 526 | |
| 527 | /-- Smoothness and the positive moving support of the actual mean field |
| 528 | produce the angular data. No divergence or physical output is assumed. -/ |
| 529 | noncomputable def graphAngularData (G : PhysicalResidualBridge.ScaledGraph) (hG : 0 < G.radialScale) |
| 530 | {U : Set Slow} (hU : IsOpen U) {a b : ℝ} (ha : 0 < a) (ell : Slow → ℝ) |
| 531 | (hell : ContinuousOn ell U) (hpos : ∀ s ∈ U, 0 < ell s) |
| 532 | (f : Lift → ℝ) (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 533 | (hs : VariableGaugeMean.SupportedGauge a b ell U f) : AngularData (graphSlow G ⁻¹' U) where |
| 534 | scalar := graphCoefficient G f |
| 535 | smooth := by |
| 536 | intro p hp |
| 537 | have hfAt : ContDiffAt ℝ ∞ f (graphPoint G p) := |
| 538 | hf.contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hp.1) |
| 539 | exact (contDiffAt_const.mul (hfAt.comp p (graphPoint_smoothAt G hG hp.2))).contDiffWithinAt |
| 540 | inner s := ell (graphSlow G s) * a / G.radialScale |
| 541 | inner_continuous := ((hell.comp (graphSlow_smooth G).continuous.continuousOn (fun _ hx => hx)).mul |
| 542 | continuousOn_const).div_const _ |
| 543 | inner_pos s hs := div_pos (mul_pos (hpos _ hs) ha) hG |
| 544 | vanishes := by |
| 545 | classical |
| 546 | intro p hp _ hi |
| 547 | have hz : f (graphPoint G p) = 0 := by |
| 548 | by_contra hn |
| 549 | have hbound := (hs (graphPoint G p) hp hn).1 |
| 550 | have hlt := (lt_div_iff₀ hG).mp hi |
| 551 | apply (not_lt_of_ge hbound) |
| 552 | simpa only [graphPoint, mul_comm G.radialScale p.2.1] using hlt |
| 553 | simp only [graphCoefficient, hz, mul_zero] |
| 554 | |
| 555 | noncomputable def commonAngularData {Q : ℝ} (hQ : 0 < Q) (h : ℝ) (cover : ℕ) |
| 556 | {U : Set Slow} (hU : IsOpen U) {a b : ℝ} (ha : 0 < a) (ell : Slow → ℝ) |
| 557 | (hell : ContinuousOn ell U) (hpos : ∀ s ∈ U, 0 < ell s) |
| 558 | (f : Lift → ℝ) (hf : ContDiffOn ℝ ∞ f (PhysicalMeanDomain.slowDomain U)) |
| 559 | (hs : VariableGaugeMean.SupportedGauge a b ell U f) : |
| 560 | AngularData (graphSlow (PhysicalResidualBridge.commonGraph Q h cover) ⁻¹' U) := |
| 561 | graphAngularData _ (Real.rpow_pos_of_pos hQ _) hU ha ell hell hpos f hf hs |
| 562 | |
| 563 | /-- The common-graph coefficient carries exactly the manuscript's |
| 564 | `Q^(-A)` velocity factor, with no independent angular choice. -/ |
| 565 | theorem commonCoefficient_actual (Q h : ℝ) (cover : ℕ) (f : Lift → ℝ) (p : CylPoint) (theta : ℝ) : |
| 566 | graphCoefficient (PhysicalResidualBridge.commonGraph Q h cover) f p = |
| 567 | Q ^ (-CoordinateAlgebra.A h) * |
| 568 | f (PhysicalResidualTZ.swapSlow |
| 569 | ((PhysicalResidualBridge.commonGraph Q h cover).map |
| 570 | (p.1, AxisymmetricResidual.pack p.2.1 theta p.2.2)).1) := |
| 571 | graphCoefficient_actual _ f p theta |
| 572 | |
| 573 | /-- The direct angular part of the literal temporal update, with its |
| 574 | regularity and support inherited from the actual input residual. -/ |
| 575 | noncomputable def temporalAngularData (G : PhysicalResidualBridge.ScaledGraph) (hG : 0 < G.radialScale) |
| 576 | (g : VariableGaugeMean.GaugeData Slow) (h : ℝ) (index : ℕ → ℕ) |
| 577 | (axial : Slow × PressureStream.Plane) (c : CorrectionState.Context Lift) |
| 578 | (u : CorrectionState.State Lift) (n : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 579 | {a b : ℝ} (ha : 0 < a) (ell : Slow → ℝ) (hell : ContinuousOn ell U) |
| 580 | (hpos : ∀ s ∈ U, 0 < ell s) |
| 581 | (hf : ContDiffOn ℝ ∞ (u.thetaResidual c n) (PhysicalMeanDomain.slowDomain U)) |
| 582 | (hp : PhysicalMeanDomain.PeriodicOn U (u.thetaResidual c n)) |
| 583 | (hs : VariableGaugeMean.SupportedGauge a b ell U (u.thetaResidual c n)) : |
| 584 | AngularData (graphSlow G ⁻¹' U) := |
| 585 | graphAngularData G hG hU ha ell hell hpos |
| 586 | ((VariableGaugeMean.temporalIncrementState g h index axial c u).angular n) |
| 587 | (VariableGaugeMean.temporalAtIndex_contDiffOn h n (index n) hU hf hp) |
| 588 | (VariableGaugeMean.temporalAtIndex_supportedGauge h n (index n) hs) |
| 589 | |
| 590 | /-- The direct angular part of the literal rank update. Its smoothness |
| 591 | comes from the actual five-row rank family and current debt. -/ |
| 592 | noncomputable def rankAngularData (G : PhysicalResidualBridge.ScaledGraph) (hG : 0 < G.radialScale) |
| 593 | (g : VariableGaugeMean.GaugeData Slow) (r : CorrectionState.RankData Slow) |
| 594 | (axial : Slow × PressureStream.Plane) (c : CorrectionState.Context Lift) |
| 595 | (u : CorrectionState.State Lift) (n : ℕ) {U : Set Slow} (hU : IsOpen U) |
| 596 | (H : LocalRankDefect.RankGeometry g r U c u) : AngularData (graphSlow G ⁻¹' U) := |
| 597 | graphAngularData G hG hU H.inner_pos (r.length n) (H.length_smooth n).continuousOn |
| 598 | (H.length_pos n) ((VariableGaugeMean.rankIncrementState g r axial c u).angular n) |
| 599 | (H.angular_lift_smooth n) (H.angular_supportedGauge axial n) |
| 600 | |
| 601 | /-! ## Agreement with the actual offplane continuation fields -/ |
| 602 | |
| 603 | noncomputable def nativeGraphData (h : ℝ) (n : ℕ) : PhysicalResidualBridge.ScaledGraph where |
| 604 | radialScale := 1 |
| 605 | velocityScale := 1 |
| 606 | epsilon := 1 |
| 607 | exponent := ChartScales.radialExponent h |
| 608 | frequency := ChartScales.Lambda ^ ChartScales.nativeIndex h n |
| 609 | fastCoefficient := ChartScales.Tg ^ ChartScales.nativeIndex h n |
| 610 | radialVector := PhysicalGraphBounds.radialDirection |
| 611 | temporalVector := PhysicalGraphBounds.timeDirection |
| 612 | |
| 613 | theorem native_graphPoint (h : ℝ) (n : ℕ) (w : SpaceTime) : |
| 614 | graphPoint (nativeGraphData h n) (cylPoint w) = OffplaneCorrectionExtensions.physicalLift h n w := by |
| 615 | simp only [graphPoint, nativeGraphData, cylPoint, graphSlow, slowOfCyl, one_mul, |
| 616 | OffplaneCorrectionExtensions.physicalLift, OffplaneCorrectionExtensions.physicalSlow, |
| 617 | PhysicalGraphBounds.nativeGraph_eq, PhysicalGraphBounds.radialProfile, |
| 618 | PhysicalGraphBounds.radiusPower_eq, smul_smul] |
| 619 | rfl |
| 620 | |
| 621 | /-- This is the direct continuation field, with no curl applied. -/ |
| 622 | theorem native_angularField (h : ℝ) (n : ℕ) (f : Lift → ℝ) : |
| 623 | angularField (graphCoefficient (nativeGraphData h n) f) = |
| 624 | OffplaneCorrectionExtensions.angularField h n f := by |
| 625 | funext w |
| 626 | simp only [angularField, graphCoefficient] |
| 627 | rw [native_graphPoint] |
| 628 | simp only [nativeGraphData, one_mul, |
| 629 | OffplaneCorrectionExtensions.angularField, OffplaneCorrectionExtensions.azimuthalPotential, |
| 630 | OffplaneCorrectionExtensions.physicalScalar, Function.comp_apply] |
| 631 | rfl |
| 632 | |
| 633 | noncomputable def continuationAngularData {coord a b : ℝ} |
| 634 | {W : OffplaneCorrectionExtensions.Window coord a b} {f : Lift → ℝ} |
| 635 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (h : ℝ) (n : ℕ) : |
| 636 | AngularData (graphSlow (nativeGraphData h n) ⁻¹' W.carrier) := |
| 637 | graphAngularData (nativeGraphData h n) (by norm_num [nativeGraphData]) W.isOpen W.lower_pos |
| 638 | (fun _ => 1) continuousOn_const (fun _ _ => by norm_num) e.value e.smooth (by |
| 639 | intro p hp hn |
| 640 | simpa only [one_mul] using W.fixed_support e.supported p hp hn) |
| 641 | |
| 642 | theorem continuation_angular_divergence {coord a b : ℝ} |
| 643 | {W : OffplaneCorrectionExtensions.Window coord a b} {f : Lift → ℝ} |
| 644 | (e : OffplaneCorrectionExtensions.SupportedContinuation W f) (h : ℝ) (n : ℕ) |
| 645 | {w : SpaceTime} (hw : w ∈ OffplaneCorrectionExtensions.physicalDomain W.carrier) : |
| 646 | spatialDivergence (OffplaneCorrectionExtensions.angularField h n e.value) w.1 w.2 = 0 := by |
| 647 | rw [← native_angularField] |
| 648 | apply (continuationAngularData e h n).field_divergence |
| 649 | (W.isOpen.preimage (graphSlow_smooth _).continuous) |
| 650 | simpa only [physicalDomain, Set.mem_preimage, slowPoint, graphSlow, nativeGraphData, |
| 651 | one_mul, OffplaneCorrectionExtensions.physicalDomain, OffplaneCorrectionExtensions.physicalSlow] using hw |
| 652 | |
| 653 | /-! ## Mixed finite prefixes and preservation of every axis jet -/ |
| 654 | |
| 655 | theorem mixedVelocity_allJets {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 656 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 657 | (hq : ContDiffOn ℝ ∞ q (physicalDomain U)) (hpos : ∀ x ∈ physicalDomain U, 0 < q x) |
| 658 | {A : ℕ → VelocityField} (hA : ∀ j, ContDiffOn ℝ ∞ (A j) (physicalDomain U)) |
| 659 | {x : SpaceTime} (hx : x ∈ physicalDomain U) : |
| 660 | ∃ N M : ℕ, ∀ k : ℕ, |
| 661 | iteratedFDeriv ℝ k (mixedVelocity a q A (fun j => (D j).scalar)) =ᶠ[𝓝 x] |
| 662 | iteratedFDeriv ℝ k (fun y => |
| 663 | (∑ j ∈ Finset.range N, SpatialCurl.spatialCurl (SolenoidalDiagonal.cutStage a q A j) y) + |
| 664 | angularPartial a q (fun j => (D j).scalar) M y) := by |
| 665 | obtain ⟨N, hN⟩ := SolenoidalDiagonal.velocitySum_eventuallyEq_sum ha |
| 666 | (physicalDomain_open hU) hpos hq hA hx |
| 667 | obtain ⟨M, hM⟩ := angularSum_eventuallyEq_partial ha |
| 668 | (hq.contDiffAt ((physicalDomain_open hU).mem_nhds hx)).continuousAt (hpos x hx) |
| 669 | (fun j => (D j).scalar) |
| 670 | exact ⟨N, M, fun k => SolenoidalDiagonal.iteratedFDeriv_eventuallyEq (hN.add hM) k⟩ |
| 671 | |
| 672 | theorem angularSum_axis_jets {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 673 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 674 | {x : SpaceTime} (hq : ContinuousAt q x) (hpos : 0 < q x) (hx : x ∈ physicalDomain U) |
| 675 | (haxis : radius x = 0) (k : ℕ) : |
| 676 | iteratedFDeriv ℝ k (angularSum a q (fun j => (D j).scalar)) x = 0 := by |
| 677 | have he := (SolenoidalDiagonal.iteratedFDeriv_eventuallyEq |
| 678 | (angularSum_axis_zero_germ hU D ha hq hpos hx haxis) k).self_of_nhds |
| 679 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply] using he |
| 680 | |
| 681 | theorem potentialSum_zero_germ {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 682 | {q : SpaceTime → ℝ} {x : SpaceTime} (hq : ContinuousAt q x) (hpos : 0 < q x) |
| 683 | (A : ℕ → VelocityField) (hA : ∀ j, A j =ᶠ[𝓝 x] fun _ => 0) : |
| 684 | SolenoidalDiagonal.potentialSum a q A =ᶠ[𝓝 x] fun _ => 0 := by |
| 685 | obtain ⟨N, hN⟩ := SolenoidalDiagonal.potentialSum_eventuallyEq_partial ha hq hpos A |
| 686 | have hz (j : ℕ) : SolenoidalDiagonal.cutStage a q A j =ᶠ[𝓝 x] fun _ => 0 := by |
| 687 | filter_upwards [hA j] with y hy |
| 688 | simp only [SolenoidalDiagonal.cutStage, hy, smul_zero] |
| 689 | apply hN.trans |
| 690 | filter_upwards [(Filter.eventually_all_finset (Finset.range N)).2 (fun j _ => hz j)] with y hy |
| 691 | exact Finset.sum_eq_zero hy |
| 692 | |
| 693 | /-- If the actual potentials vanish near the axis, adding the direct |
| 694 | angular diagonal preserves the entire axis germ, hence every axis jet. -/ |
| 695 | theorem mixedVelocity_axis_zero_germ {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 696 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 697 | {x : SpaceTime} (hq : ContinuousAt q x) (hpos : 0 < q x) (hx : x ∈ physicalDomain U) |
| 698 | (haxis : radius x = 0) (A : ℕ → VelocityField) (hA : ∀ j, A j =ᶠ[𝓝 x] fun _ => 0) : |
| 699 | mixedVelocity a q A (fun j => (D j).scalar) =ᶠ[𝓝 x] fun _ => 0 := by |
| 700 | have hc := SolenoidalDiagonal.spatialCurl_eventuallyEq (potentialSum_zero_germ ha hq hpos A hA) |
| 701 | have hd := angularSum_axis_zero_germ hU D ha hq hpos hx haxis |
| 702 | filter_upwards [hc, hd] with y hy hdy |
| 703 | change SpatialCurl.spatialCurl (SolenoidalDiagonal.potentialSum a q A) y + |
| 704 | angularSum a q (fun j => (D j).scalar) y = 0 |
| 705 | rw [hy, hdy] |
| 706 | simp [SpatialCurl.spatialCurl, SpatialCurl.curl] |
| 707 | |
| 708 | theorem mixedVelocity_axis_jets {U : Set Slow} (hU : IsOpen U) (D : ℕ → AngularData U) |
| 709 | {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) {q : SpaceTime → ℝ} |
| 710 | {x : SpaceTime} (hq : ContinuousAt q x) (hpos : 0 < q x) (hx : x ∈ physicalDomain U) |
| 711 | (haxis : radius x = 0) (A : ℕ → VelocityField) (hA : ∀ j, A j =ᶠ[𝓝 x] fun _ => 0) (k : ℕ) : |
| 712 | iteratedFDeriv ℝ k (mixedVelocity a q A (fun j => (D j).scalar)) x = 0 := by |
| 713 | have he := (SolenoidalDiagonal.iteratedFDeriv_eventuallyEq |
| 714 | (mixedVelocity_axis_zero_germ hU D ha hq hpos hx haxis A hA) k).self_of_nhds |
| 715 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply] using he |
| 716 | |
| 717 | end NavierStokes.DirectAngularDiagonal |