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

Merge pull request #414 from s1-ns-signed-2
Browse fileschore(NavierStokes/Signed): delete 31 declarations nothing uses
Checks
challenge Program · challenge files and build config
Details
+0 −195 NavierStokes/SignedStressPrimitive.lean View file
| @@ -82,20 +82,6 @@ theorem cutoff_one (P : Patch) {r : ℝ} (hr : P.right ≤ r) : cutoff P r = 1 : | ||
| 82 | 82 | rw [TransportPrimitive.pastIntegral_eq_total_of_ge (densityLift_supported P) (r, 0) hr, |
| 83 | 83 | cutoff_total] |
| 84 | 84 | |
| 85 | -theorem cutoff_hasDerivAt (P : Patch) (r : ℝ) : HasDerivAt (cutoff P) (density P r) r := by | |
| 86 | - have hs := TransportPrimitive.pastIntegral_contDiff (M := 0) (v := (0 : ℝ)) | |
| 87 | - (densityLift_contDiff P) (densityLift_supported P) | |
| 88 | - have hd := ((hs.differentiable (by simp)) (r, 0)).hasFDerivAt.comp_hasDerivAt r | |
| 89 | - ((hasDerivAt_id r).prodMk (hasDerivAt_const r (0 : ℝ))) | |
| 90 | - have ht := TransportPrimitive.transport_pastIntegral (M := 0) (v := (0 : ℝ)) | |
| 91 | - (densityLift_contDiff P) (densityLift_supported P) (r, 0) | |
| 92 | - simp only [TransportPrimitive.fixedDeriv, zero_smul, densityLift] at ht | |
| 93 | - unfold cutoff | |
| 94 | - simpa only [ht, Function.comp_def, id_eq] using hd | |
| 95 | - | |
| 96 | -theorem cutoff_deriv (P : Patch) (r : ℝ) : deriv (cutoff P) r = density P r := | |
| 97 | - (cutoff_hasDerivAt P r).deriv | |
| 98 | - | |
| 99 | 85 | noncomputable def inversePower (P : Patch) (e : ℕ) (r : ℝ) : ℝ := |
| 100 | 86 | ((RadialPullback.positiveRadius (P.a / 4) r) ^ e)⁻¹ |
| 101 | 87 | |
| @@ -125,10 +111,6 @@ theorem weighted_momentDensity (P : Patch) (e : ℕ) (r : ℝ) : | ||
| 125 | 111 | rw [momentDensity, inversePower_eq P e (P.a_lt_left.le.trans hr.1)] |
| 126 | 112 | field_simp [hr0.ne'] |
| 127 | 113 | |
| 128 | -theorem momentDensity_moment (P : Patch) (e : ℕ) : (∫ r, r ^ e * momentDensity P e r) = 1 := by | |
| 129 | - simp_rw [weighted_momentDensity] | |
| 130 | - exact density_integral P | |
| 131 | - | |
| 132 | 114 | section Primitive |
| 133 | 115 | |
| 134 | 116 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| @@ -161,22 +143,6 @@ theorem mass_contDiff {P : Patch} (e : ℕ) {F : ℝ × E → ℝ} (hF : ContDif | ||
| 161 | 143 | (hs : RadialAlias.RadiallySupported P.a P.b F) : ContDiff ℝ ∞ (mass e F) := |
| 162 | 144 | IntegratedMeanBalances.radialMoment_smooth hF hs e |
| 163 | 145 | |
| 164 | -theorem bumpCorrection_contDiff (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : ContDiff ℝ ∞ F) | |
| 165 | - (hs : RadialAlias.RadiallySupported P.a P.b F) : ContDiff ℝ ∞ (bumpCorrection P e F) := | |
| 166 | - ((momentDensity_contDiff P e).comp contDiff_fst).mul ((mass_contDiff e hF hs).comp contDiff_snd) | |
| 167 | - | |
| 168 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] in | |
| 169 | -theorem bumpCorrection_supported (P : Patch) (e : ℕ) (F : ℝ × E → ℝ) : | |
| 170 | - RadialAlias.RadiallySupported P.left P.right (bumpCorrection P e F) := | |
| 171 | - fun _ h => momentDensity_support P e (left_ne_zero_of_mul h) | |
| 172 | - | |
| 173 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] in | |
| 174 | -theorem bumpCorrection_moment (P : Patch) (e : ℕ) (F : ℝ × E → ℝ) (p : E) : | |
| 175 | - mass e (bumpCorrection P e F) p = mass e F p := by | |
| 176 | - change (∫ r, r ^ e * (momentDensity P e r * mass e F p)) = _ | |
| 177 | - simp_rw [← mul_assoc] | |
| 178 | - rw [integral_mul_const, momentDensity_moment, one_mul] | |
| 179 | - | |
| 180 | 146 | theorem primitive_contDiff (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : ContDiff ℝ ∞ F) |
| 181 | 147 | (hs : RadialAlias.RadiallySupported P.a P.b F) : ContDiff ℝ ∞ (primitive P e F) := |
| 182 | 148 | TransportPrimitive.compactIntegral_contDiff (cutoff_contDiff P) |
| @@ -194,11 +160,6 @@ theorem sigma_contDiff (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : ContDi | ||
| 194 | 160 | (hs : RadialAlias.RadiallySupported P.a P.b F) : ContDiff ℝ ∞ (sigma P e F) := |
| 195 | 161 | (((inversePower_contDiff P e).comp contDiff_fst).neg).mul (primitive_contDiff P e hF hs) |
| 196 | 162 | |
| 197 | -theorem sigma_supported (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : Continuous F) | |
| 198 | - (hs : RadialAlias.RadiallySupported P.a P.b F) : | |
| 199 | - RadialAlias.RadiallySupported P.a P.b (sigma P e F) := | |
| 200 | - fun _ h => primitive_supported P e hF hs (right_ne_zero_of_mul h) | |
| 201 | - | |
| 202 | 163 | theorem total_weightedSource (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : Continuous F) |
| 203 | 164 | (hs : RadialAlias.RadiallySupported P.a P.b F) (z : ℝ × E) : |
| 204 | 165 | TransportPrimitive.totalIntegral 0 (0 : E) (weightedSource e F) z = mass e F z.2 := by |
| @@ -235,16 +196,6 @@ theorem primitive_eq_integral (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : | ||
| 235 | 196 | (weightedSource_supported e hs), total_weightedSource P e hF.continuous hs, cutoff_eq_integral] |
| 236 | 197 | rfl |
| 237 | 198 | |
| 238 | -theorem weighted_sigma_eq (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} (hF : Continuous F) | |
| 239 | - (hs : RadialAlias.RadiallySupported P.a P.b F) (z : ℝ × E) : | |
| 240 | - z.1 ^ e * sigma P e F z = -primitive P e F z := by | |
| 241 | - by_cases h : primitive P e F z = 0 | |
| 242 | - · simp [sigma, h] | |
| 243 | - have hr := primitive_supported P e hF hs h | |
| 244 | - have hz0 : z.1 ≠ 0 := (P.a_pos.trans_le hr.1).ne' | |
| 245 | - rw [sigma, inversePower_eq P e hr.1] | |
| 246 | - field_simp | |
| 247 | - | |
| 248 | 199 | theorem sigma_eq_negative_primitive (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} |
| 249 | 200 | (hF : ContDiff ℝ ∞ F) (hs : RadialAlias.RadiallySupported P.a P.b F) (z : ℝ × E) : |
| 250 | 201 | sigma P e F z = -(∫ r in (0 : ℝ)..z.1, r ^ e * adjusted P e F (r, z.2)) / z.1 ^ e := by |
| @@ -254,63 +205,6 @@ theorem sigma_eq_negative_primitive (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} | ||
| 254 | 205 | rw [sigma, inversePower_eq P e (primitive_supported P e hF.continuous hs h).1] |
| 255 | 206 | ring |
| 256 | 207 | |
| 257 | -theorem adjusted_moment_zero (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} | |
| 258 | - (hF : ContDiff ℝ ∞ F) (hs : RadialAlias.RadiallySupported P.a P.b F) (p : E) : | |
| 259 | - mass e (adjusted P e F) p = 0 := by | |
| 260 | - have hiF := IntegratedMeanBalances.weighted_integrable | |
| 261 | - (IntegratedMeanBalances.radial_slice_smooth hF p).continuous | |
| 262 | - (IntegratedMeanBalances.radial_slice_compact hs p) e | |
| 263 | - have hiB := IntegratedMeanBalances.weighted_integrable | |
| 264 | - (IntegratedMeanBalances.radial_slice_smooth (bumpCorrection_contDiff P e hF hs) p).continuous | |
| 265 | - (IntegratedMeanBalances.radial_slice_compact (bumpCorrection_supported P e F) p) e | |
| 266 | - change IntegratedMeanBalances.moment e | |
| 267 | - (fun r => F (r, p) - bumpCorrection P e F (r, p)) = 0 | |
| 268 | - rw [IntegratedMeanBalances.moment_sub e hiF hiB] | |
| 269 | - change mass e F p - mass e (bumpCorrection P e F) p = 0 | |
| 270 | - rw [bumpCorrection_moment, sub_self] | |
| 271 | - | |
| 272 | -theorem primitive_hasDerivAt (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} | |
| 273 | - (hF : ContDiff ℝ ∞ F) (hs : RadialAlias.RadiallySupported P.a P.b F) (p : E) (r : ℝ) : | |
| 274 | - HasDerivAt (fun t => primitive P e F (t, p)) (r ^ e * adjusted P e F (r, p)) r := by | |
| 275 | - have hp := primitive_contDiff P e hF hs | |
| 276 | - have hd := ((hp.differentiable (by simp)) (r, p)).hasFDerivAt.comp_hasDerivAt r | |
| 277 | - ((hasDerivAt_id r).prodMk (hasDerivAt_const r p)) | |
| 278 | - have ht := TransportPrimitive.transport_compactIntegral (M := 0) (v := (0 : E)) | |
| 279 | - (cutoff_contDiff P) (weightedSource_contDiff e hF) (weightedSource_supported e hs) (r, p) | |
| 280 | - simp only [TransportPrimitive.fixedDeriv, zero_smul, cutoff_deriv, | |
| 281 | - total_weightedSource P e hF.continuous hs, smul_eq_mul] at ht | |
| 282 | - have he : weightedSource e F (r, p) - density P r * mass e F p = | |
| 283 | - r ^ e * adjusted P e F (r, p) := by | |
| 284 | - dsimp [weightedSource, adjusted, bumpCorrection] | |
| 285 | - rw [mul_sub, ← mul_assoc, weighted_momentDensity] | |
| 286 | - rw [he] at ht | |
| 287 | - change fderiv ℝ (primitive P e F) (r, p) (1, 0) = _ at ht | |
| 288 | - simpa only [ht, Function.comp_def, id_eq] using hd | |
| 289 | - | |
| 290 | -/-- The sign is the one required to cancel the adjusted residual by divergence. -/ | |
| 291 | -theorem weighted_sigma_hasDerivAt (P : Patch) (e : ℕ) {F : ℝ × E → ℝ} | |
| 292 | - (hF : ContDiff ℝ ∞ F) (hs : RadialAlias.RadiallySupported P.a P.b F) (p : E) (r : ℝ) : | |
| 293 | - HasDerivAt (fun t => t ^ e * sigma P e F (t, p)) (-r ^ e * adjusted P e F (r, p)) r := by | |
| 294 | - have he : (fun t => t ^ e * sigma P e F (t, p)) = | |
| 295 | - fun t => -primitive P e F (t, p) := funext (fun t => weighted_sigma_eq P e hF.continuous hs (t, p)) | |
| 296 | - rw [he] | |
| 297 | - convert! (primitive_hasDerivAt P e hF hs p r).neg using 1 | |
| 298 | - ring | |
| 299 | - | |
| 300 | -theorem angular_divergence (P : Patch) {F : ℝ × E → ℝ} | |
| 301 | - (hF : ContDiff ℝ ∞ F) (hs : RadialAlias.RadiallySupported P.a P.b F) (p : E) {r : ℝ} (hr : 0 < r) : | |
| 302 | - IntegratedMeanBalances.radialDivergence 2 (fun t => sigma P 2 F (t, p)) r = | |
| 303 | - -adjusted P 2 F (r, p) := by | |
| 304 | - have hsD := ((IntegratedMeanBalances.radial_slice_smooth (sigma_contDiff P 2 hF hs) p).differentiable (by simp) r).hasDerivAt | |
| 305 | - have he := ((hasDerivAt_pow 2 r).mul hsD).unique (weighted_sigma_hasDerivAt P 2 hF hs p r) | |
| 306 | - norm_num at he | |
| 307 | - apply mul_left_cancel₀ (pow_ne_zero 2 hr.ne') | |
| 308 | - dsimp [IntegratedMeanBalances.radialDivergence] | |
| 309 | - calc | |
| 310 | - _ = 2 * r * sigma P 2 F (r, p) + r ^ 2 * deriv (fun t => sigma P 2 F (t, p)) r := by | |
| 311 | - field_simp ; ring | |
| 312 | - _ = _ := by nlinarith [he] | |
| 313 | - | |
| 314 | 208 | /-- The constructed interior bump carries the full edge weight, because its |
| 315 | 209 | support lies in a fixed compact subset of the active annulus. -/ |
| 316 | 210 | theorem momentDensity_meanClass (P : Patch) (e : ℕ) {cL cR : ℝ} (hcL : 0 < cL) (hcR : 0 < cR) |
| @@ -353,42 +247,6 @@ theorem momentDensity_meanClass (P : Patch) (e : ℕ) {cL cR : ℝ} (hcL : 0 < c | ||
| 353 | 247 | rw [hzj, norm_zero] |
| 354 | 248 | exact mul_nonneg (div_nonneg hC hD.le) (s.zeta_nonneg z hz) |
| 355 | 249 | |
| 356 | -theorem fderiv_lift (D : E → ℝ) (hD : ContDiff ℝ ∞ D) (z : ℝ × E) (v : E) : | |
| 357 | - fderiv ℝ (fun y : ℝ × E => D y.2) z (0, v) = fderiv ℝ D z.2 v := by | |
| 358 | - have h := ((hD.differentiable (by simp)) z.2).hasFDerivAt.comp z hasFDerivAt_snd | |
| 359 | - change fderiv ℝ (D ∘ Prod.snd) z (0, v) = _ | |
| 360 | - rw [h.fderiv] | |
| 361 | - simp | |
| 362 | - | |
| 363 | -/-- The improved bump order follows from a proved residual-moment identity: | |
| 364 | -one slow derivative comes with one additional factor of epsilon. -/ | |
| 365 | -theorem bump_improvedClass_of_moment_identity (P : Patch) (e : ℕ) {cL cR : ℝ} | |
| 366 | - (hcL : 0 < cL) (hcR : 0 < cR) (ε slow : ℕ → ℝ) | |
| 367 | - (hε : ∀ n, 0 < ε n) (hε1 : ∀ n, ε n ≤ 1) (hslow : ∀ n, 1 ≤ slow n) | |
| 368 | - (α : ℝ) (F : ℕ → ℝ × E → ℝ) (D : ℕ → E → ℝ) (v : E) | |
| 369 | - (hD : ∀ n, ContDiff ℝ ∞ (D n)) | |
| 370 | - (hclass : WeightedClasses.UnweightedClass | |
| 371 | - (WeightedRadialPrimitive.logStripData P.a P.b cL cR P.a_pos hcL hcR ε slow hε hε1 hslow) | |
| 372 | - α (fun n (z : ℝ × E) => D n z.2)) | |
| 373 | - (hmoment : ∀ n p, mass e (F n) p = ε n * fderiv ℝ (D n) p v) : | |
| 374 | - WeightedClasses.MeanClass | |
| 375 | - (WeightedRadialPrimitive.logStripData P.a P.b cL cR P.a_pos hcL hcR ε slow hε hε1 hslow) | |
| 376 | - (α + 1) (fun n => bumpCorrection P e (F n)) := by | |
| 377 | - let s := WeightedRadialPrimitive.logStripData (E := E) P.a P.b cL cR P.a_pos hcL hcR ε slow hε hε1 hslow | |
| 378 | - have hd := hclass.directional ((0 : ℝ), v) | |
| 379 | - have hb := (momentDensity_meanClass (E := E) P e hcL hcR ε slow hε hε1 hslow).mul hd | |
| 380 | - have hmean : WeightedClasses.MeanClass s α (fun n (z : ℝ × E) => | |
| 381 | - momentDensity P e z.1 * fderiv ℝ (D n) z.2 v) := by | |
| 382 | - simpa only [WeightedClasses.MeanClass, zero_add, mul_one, fderiv_lift _ (hD _)] using hb | |
| 383 | - have hh := hmean.band_smul (WeightedClasses.bandBound_rpow s 1) | |
| 384 | - have heq : (fun n (z : ℝ × E) => s.epsilon n ^ (1 : ℝ) • | |
| 385 | - (momentDensity P e z.1 * fderiv ℝ (D n) z.2 v)) = fun n => bumpCorrection P e (F n) := by | |
| 386 | - funext n z | |
| 387 | - simp only [Real.rpow_one, smul_eq_mul, bumpCorrection, hmoment] | |
| 388 | - change ε n * (momentDensity P e z.1 * _) = momentDensity P e z.1 * (ε n * _) | |
| 389 | - ring | |
| 390 | - rwa [heq] at hh | |
| 391 | - | |
| 392 | 250 | noncomputable def barSigma (P : Patch) (e : ℕ) (F : PressureStream.Lift E → ℝ) : ℝ × E → ℝ := |
| 393 | 251 | sigma P e (PressureStream.torusAverage F) |
| 394 | 252 | |
| @@ -517,13 +375,6 @@ theorem physicalSigma_contDiff (P : Patch) (e : ℕ) {q : E → ℝ} | ||
| 517 | 375 | (nativeSource_supported P hpos hs)).comp |
| 518 | 376 | ((contDiff_fst.div hl (fun z => (lengthScale_pos hpos z.2).ne')).prodMk contDiff_snd)) |
| 519 | 377 | |
| 520 | -theorem physicalSigma_supported (P : Patch) (e : ℕ) {q : E → ℝ} | |
| 521 | - (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : ℝ × E → ℝ} | |
| 522 | - (hF : ContDiff ℝ ∞ F) (hs : PhysicalSupport P q F) : PhysicalSupport P q (physicalSigma P e q F) := by | |
| 523 | - intro z hz | |
| 524 | - exact sigma_supported P e (nativeSource_contDiff hq hpos hF).continuous | |
| 525 | - (nativeSource_supported P hpos hs) (right_ne_zero_of_mul hz) | |
| 526 | - | |
| 527 | 378 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 528 | 379 | theorem native_adjusted_eq (P : Patch) (e : ℕ) {q : E → ℝ} (hq : ∀ p, 0 < q p) |
| 529 | 380 | (F : ℝ × E → ℝ) (z : ℝ × E) : |
| @@ -551,30 +402,6 @@ theorem physicalSigma_eq_negative_primitive (P : Patch) (e : ℕ) {q : E → ℝ | ||
| 551 | 402 | · simp [hr] |
| 552 | 403 | · field_simp [hl.ne', hr] |
| 553 | 404 | |
| 554 | -theorem physicalAdjusted_moment_zero (P : Patch) (e : ℕ) {q : E → ℝ} | |
| 555 | - (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : ℝ × E → ℝ} | |
| 556 | - (hF : ContDiff ℝ ∞ F) (hs : PhysicalSupport P q F) (p : E) : | |
| 557 | - mass e (physicalAdjusted P e q F) p = 0 := by | |
| 558 | - have he : nativeSource q (physicalAdjusted P e q F) = adjusted P e (nativeSource q F) := | |
| 559 | - funext fun z => (native_adjusted_eq P e hpos F z).symm | |
| 560 | - have hz := adjusted_moment_zero P e (nativeSource_contDiff hq hpos hF) | |
| 561 | - (nativeSource_supported P hpos hs) p | |
| 562 | - have hh := nativeSource_mass e hpos (physicalAdjusted P e q F) p | |
| 563 | - rw [he, hz] at hh | |
| 564 | - have hm := congrArg (fun t => t * lengthScale q p ^ (e + 1)) hh | |
| 565 | - simpa only [zero_mul, div_mul_cancel₀ _ (pow_ne_zero _ (lengthScale_pos hpos p).ne')] using hm.symm | |
| 566 | - | |
| 567 | -theorem physicalSigma_slice_compact (P : Patch) (e : ℕ) {q : E → ℝ} | |
| 568 | - (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : ℝ × E → ℝ} | |
| 569 | - (hF : ContDiff ℝ ∞ F) (hs : PhysicalSupport P q F) (p : E) : | |
| 570 | - HasCompactSupport (fun r => physicalSigma P e q F (r, p)) := by | |
| 571 | - apply HasCompactSupport.of_support_subset_isCompact | |
| 572 | - (isCompact_Icc (a := lengthScale q p * P.a) (b := lengthScale q p * P.b)) | |
| 573 | - intro r hr | |
| 574 | - have h := physicalSigma_supported P e hq hpos hF hs (r, p) hr | |
| 575 | - exact ⟨by simpa only [mul_comm] using (le_div_iff₀ (lengthScale_pos hpos p)).mp h.1, | |
| 576 | - by simpa only [mul_comm] using (div_le_iff₀ (lengthScale_pos hpos p)).mp h.2⟩ | |
| 577 | - | |
| 578 | 405 | theorem physicalAdjusted_contDiff (P : Patch) (e : ℕ) {q : E → ℝ} |
| 579 | 406 | (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : ℝ × E → ℝ} |
| 580 | 407 | (hF : ContDiff ℝ ∞ F) (hs : PhysicalSupport P q F) : |
| @@ -642,32 +469,10 @@ theorem physical_axial_divergence (P : Patch) {q : E → ℝ} | ||
| 642 | 469 | field_simp ; ring |
| 643 | 470 | _ = _ := by nlinarith [he] |
| 644 | 471 | |
| 645 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] in | |
| 646 | -/-- Taking the torus bar preserves support described by the physical q. -/ | |
| 647 | -theorem physical_torusAverage_supported (P : Patch) {q : E → ℝ} | |
| 648 | - {F : PressureStream.Lift E → ℝ} | |
| 649 | - (hs : PhysicalSupport P (fun p => q p.1) F) : | |
| 650 | - PhysicalSupport P q (PressureStream.torusAverage F) := by | |
| 651 | - intro z hz | |
| 652 | - by_contra hn | |
| 653 | - apply hz | |
| 654 | - apply PressureStream.torusAverage_zero_of_forall | |
| 655 | - intro Y | |
| 656 | - by_contra hF | |
| 657 | - exact hn (hs (z.1, (z.2, Y)) hF) | |
| 658 | - | |
| 659 | 472 | noncomputable def physicalBarSigma (P : Patch) (e : ℕ) (q : E → ℝ) |
| 660 | 473 | (F : PressureStream.Lift E → ℝ) : ℝ × E → ℝ := |
| 661 | 474 | physicalSigma P e q (PressureStream.torusAverage F) |
| 662 | 475 | |
| 663 | -theorem physicalBarSigma_eq_negative_primitive (P : Patch) (e : ℕ) {q : E → ℝ} | |
| 664 | - (hq : ContDiff ℝ ∞ q) (hpos : ∀ p, 0 < q p) {F : PressureStream.Lift E → ℝ} | |
| 665 | - (hF : ContDiff ℝ ∞ F) (hs : PhysicalSupport P (fun p => q p.1) F) (z : ℝ × E) : | |
| 666 | - physicalBarSigma P e q F z = -(∫ r in (0 : ℝ)..z.1, | |
| 667 | - r ^ e * physicalAdjusted P e q (PressureStream.torusAverage F) (r, z.2)) / z.1 ^ e := | |
| 668 | - physicalSigma_eq_negative_primitive P e hq hpos (PressureStream.torusAverage_contDiff hF) | |
| 669 | - (physical_torusAverage_supported P hs) z | |
| 670 | - | |
| 671 | 476 | end Physical |
| 672 | 477 | |
| 673 | 478 | section IntegratedBalances |
+0 −259 NavierStokes/SignedWaveUpdate.lean View file
| @@ -33,12 +33,6 @@ variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | ||
| 33 | 33 | |
| 34 | 34 | /-! ## The requested stress is the negative primitive of the actual state -/ |
| 35 | 35 | |
| 36 | -noncomputable def requestedStress (p : SignedStressPrimitive.Patch) | |
| 37 | - (c : CorrectionState.Context (PressureStream.Lift E)) | |
| 38 | - (u : CorrectionState.State (PressureStream.Lift E)) : ℕ → ℝ × E → Vec2 := | |
| 39 | - fun n z => ![SignedStressPrimitive.barSigma p 2 (u.thetaResidual c n) z, | |
| 40 | - SignedStressPrimitive.barSigma p 1 (u.axialResidual c n) z] | |
| 41 | - | |
| 42 | 36 | /-! ## Inverse jets and the signed quotient -/ |
| 43 | 37 | |
| 44 | 38 | theorem weights_smul (H : Mat2) (T : Vec2) (a : ℝ) (j : Fin 2) : |
| @@ -448,63 +442,6 @@ theorem blockOfCoefficients_represents | ||
| 448 | 442 | |
| 449 | 443 | /-! ## The bar operation preserves the actual flat mean class -/ |
| 450 | 444 | |
| 451 | -theorem meanClass_radialAverage | |
| 452 | - {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 453 | - (ε S : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) | |
| 454 | - (hS : ∀ n, 1 ≤ S n) {α : ℝ} {f : ℕ → ℝ × E → ℝ} | |
| 455 | - (hf : ∀ n, ContDiff ℝ ∞ (f n)) | |
| 456 | - (hglobal : MeanMomentBounds.GlobalBandJets ε S α f) | |
| 457 | - (hclass : MeanClass (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR | |
| 458 | - ε S hε hεone hS) α f) | |
| 459 | - (L : (ℝ × E) →L[ℝ] (ℝ × E)) (hL : ‖L‖ ≤ 1) (v : ℝ × E) | |
| 460 | - (hpreserve : ∀ x (t : ℝ), (L x + t • v).1 = x.1) : | |
| 461 | - MeanClass (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR | |
| 462 | - ε S hε hεone hS) α (fun n => MeanMomentBounds.affineAverage L v 0 1 (f n)) := by | |
| 463 | - let s : StripData (ℝ × E) := | |
| 464 | - WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε S hε hεone hS | |
| 465 | - refine ⟨hclass.weight_nonneg, | |
| 466 | - fun n => (MeanMomentBounds.affineAverage_contDiff L v 0 1 (hf n)).contDiffOn, ?_⟩ | |
| 467 | - intro m | |
| 468 | - obtain ⟨C, hC, p, hb⟩ := hclass.bounds m | |
| 469 | - refine ⟨C, hC, p, ?_⟩ | |
| 470 | - intro n x hx j hj | |
| 471 | - have hall : ∀ k : ℕ, ∃ A : ℝ, ∀ y, ‖iteratedFDeriv ℝ k (f n) y‖ ≤ A := by | |
| 472 | - intro k | |
| 473 | - obtain ⟨A, _, q, hA⟩ := hglobal k | |
| 474 | - exact ⟨A * ε n ^ α * S n ^ q, fun y => hA n y k le_rfl⟩ | |
| 475 | - have hh := MeanMomentBounds.affineAverage_jet_bound L hL v zero_le_one (hf n) hall j x | |
| 476 | - (majorant s (fun _ y => s.zeta y) α C p n x) (fun t _ => by | |
| 477 | - have hx' : L x + t • v ∈ s.domain := by | |
| 478 | - change (L x + t • v).1 ∈ Ioo a b | |
| 479 | - rw [hpreserve] | |
| 480 | - exact hx | |
| 481 | - have hh := hb n (L x + t • v) hx' j hj | |
| 482 | - simpa only [s, majorant, StripData.growth, WeightedRadialPrimitive.logStripData, | |
| 483 | - hpreserve] using hh) | |
| 484 | - simpa only [sub_zero, mul_one] using hh | |
| 485 | - | |
| 486 | -theorem meanClass_liftedTorusAverage | |
| 487 | - {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 488 | - (ε S : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) | |
| 489 | - (hS : ∀ n, 1 ≤ S n) {α : ℝ} {f : ℕ → PressureStream.Lift E → ℝ} | |
| 490 | - (hf : ∀ n, ContDiff ℝ ∞ (f n)) | |
| 491 | - (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) | |
| 492 | - (hclass : MeanClass (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR | |
| 493 | - ε S hε hεone hS) α f) : | |
| 494 | - MeanClass (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR | |
| 495 | - ε S hε hεone hS) α (fun n => MeanMomentBounds.liftedTorusAverage (f n)) := by | |
| 496 | - have hg := MeanMomentBounds.meanClass_globalBandJets ha hcL hcR ε S hε hεone hS hf hs hclass | |
| 497 | - have hi := meanClass_radialAverage ha hcL hcR ε S hε hεone hS hf hg hclass | |
| 498 | - MeanMomentBounds.eraseAuxX MeanMomentBounds.norm_eraseAuxX_le MeanMomentBounds.auxX | |
| 499 | - (fun x t => by simp only [MeanMomentBounds.eraseAuxX_add_smul]) | |
| 500 | - have hgi := hg.affineAverage hf MeanMomentBounds.eraseAuxX MeanMomentBounds.norm_eraseAuxX_le | |
| 501 | - MeanMomentBounds.auxX zero_le_one | |
| 502 | - have ho := meanClass_radialAverage ha hcL hcR ε S hε hεone hS | |
| 503 | - (fun n => MeanMomentBounds.affineAverage_contDiff _ _ _ _ (hf n)) hgi hi | |
| 504 | - MeanMomentBounds.eraseAuxY MeanMomentBounds.norm_eraseAuxY_le MeanMomentBounds.auxY | |
| 505 | - (fun x t => by simp only [MeanMomentBounds.eraseAuxY_add_smul]) | |
| 506 | - simpa only [MeanMomentBounds.liftedTorusAverage_eq_affine] using ho | |
| 507 | - | |
| 508 | 445 | theorem sigma_liftedTorusAverage (p : SignedStressPrimitive.Patch) (e : ℕ) |
| 509 | 446 | (f : PressureStream.Lift E → ℝ) (x : PressureStream.Lift E) : |
| 510 | 447 | SignedStressPrimitive.sigma p e (MeanMomentBounds.liftedTorusAverage f) x = |
| @@ -516,11 +453,6 @@ theorem sigma_liftedTorusAverage (p : SignedStressPrimitive.Patch) (e : ℕ) | ||
| 516 | 453 | SignedStressPrimitive.weightedSource, MeanMomentBounds.liftedTorusAverage, |
| 517 | 454 | TransportPrimitive.shift, zero_mul, zero_smul, Prod.mk_add_mk, add_zero] |
| 518 | 455 | |
| 519 | -noncomputable def normalizedRequest (s : StripData (PressureStream.Lift E)) | |
| 520 | - (p : SignedStressPrimitive.Patch) (c : CorrectionState.Context (PressureStream.Lift E)) | |
| 521 | - (u : CorrectionState.State (PressureStream.Lift E)) : ℕ → PressureStream.Lift E → Vec2 := | |
| 522 | - fun n x => (s.epsilon n)⁻¹ • requestedStress p c u n (x.1,x.2.1) | |
| 523 | - | |
| 524 | 456 | /-! ## Angular independence is proved before taking a zero-angle section -/ |
| 525 | 457 | |
| 526 | 458 | structure AngularInputs (s : StripData D) (d : LinearWaveBounds.GraphDirections D) |
| @@ -575,61 +507,8 @@ theorem pressure (h : AngularInputs s d a H T R mask v Ndot A ψ m) (j : Fin 2) | ||
| 575 | 507 | h.signed_target n x t, h.mask n x t, h.fundamental n x t, h.action n x t, |
| 576 | 508 | h.normal_motion n x t, h.normal n x t] |
| 577 | 509 | |
| 578 | -theorem corrected_amplitude (h : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 579 | - (j : Fin 2) (n : ℕ) : | |
| 580 | - CopyAngularInvariance.Invariant d.angular | |
| 581 | - (((coefficients a s d H T R mask v Ndot A j).corrected s d ψ).amplitude n) := by | |
| 582 | - exact CopyAngularInvariance.corrected_amplitude_invariant | |
| 583 | - (a := coefficients a s d H T R mask v Ndot A j) (s := s) (d := d) ψ h.radius h.radialField | |
| 584 | - (fun _ => CopyAngularInvariance.Invariant.const _) (fun n => ⟨m n, h.phase n⟩) | |
| 585 | - (h.amplitude j) h.cutoff n | |
| 586 | - | |
| 587 | -theorem corrected_pressure (h : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 588 | - (j : Fin 2) (n : ℕ) : | |
| 589 | - CopyAngularInvariance.Invariant d.angular | |
| 590 | - (((coefficients a s d H T R mask v Ndot A j).corrected s d ψ).pressure n) := | |
| 591 | - CopyAngularInvariance.corrected_pressure_invariant | |
| 592 | - (a := coefficients a s d H T R mask v Ndot A j) (s := s) (d := d) ψ (h.pressure j) h.cutoff n | |
| 593 | - | |
| 594 | -theorem exactConditions (h : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 595 | - (hRne : ∀ n x, x ∈ s.domain → a.radius n x ≠ 0) | |
| 596 | - (hDrR : ∀ n x, x ∈ s.domain → along (d.radialField n) (a.radius n) x = 1) | |
| 597 | - (j : Fin 2) : LinearWaveBounds.ExactConditions s d | |
| 598 | - ((coefficients a s d H T R mask v Ndot A j).corrected s d ψ) := by | |
| 599 | - exact CopyAngularInvariance.exactConditions_corrected_of_invariants | |
| 600 | - (a := coefficients a s d H T R mask v Ndot A j) (s := s) (d := d) ψ h.phase_smooth hRne hDrR | |
| 601 | - h.radius h.radial_base h.frequency_base h.axial_base h.radialField | |
| 602 | - (fun _ => CopyAngularInvariance.Invariant.const _) (fun n => ⟨m n, h.phase n⟩) | |
| 603 | - (h.amplitude j) (h.pressure j) h.cutoff | |
| 604 | - | |
| 605 | 510 | end AngularInputs |
| 606 | 511 | |
| 607 | -theorem signedBlock_represents | |
| 608 | - {s : StripData (D × ℝ)} {d : LinearWaveBounds.GraphDirections (D × ℝ)} | |
| 609 | - {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} | |
| 610 | - {H : ℕ → D × ℝ → Mat2} {T R : ℕ → D × ℝ → Vec2} {mask : ℕ → D × ℝ → ℝ} | |
| 611 | - {v Ndot : ℕ → D × ℝ → Space} {A : ℕ → D × ℝ → Space →L[ℝ] Space} | |
| 612 | - {ψ : ℕ → D × ℝ → ℝ} {m : ℕ → ℝ} | |
| 613 | - (h : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 614 | - (hθ : d.angular = (0,1)) (kp : ℕ → ℤ) (hkp : ∀ n, a.frequency n * m n = (kp n : ℝ)) | |
| 615 | - (j : Fin 2) : | |
| 616 | - let z := (coefficients a s d H T R mask v Ndot A j).corrected s d ψ | |
| 617 | - (blockOfCoefficients z kp).oscillation = | |
| 618 | - (fun n x i => (vectorMode (a.frequency n) (a.phase n) (z.amplitude n) x i).re) ∧ | |
| 619 | - (blockOfCoefficients z kp).oscillatoryPressure = | |
| 620 | - (fun n x => (mode (a.frequency n) (a.phase n) (z.pressure n) x).re) := by | |
| 621 | - apply blockOfCoefficients_represents | |
| 622 | - · intro n x t | |
| 623 | - apply CopyAngularInvariance.invariant_eq_zeroSlice | |
| 624 | - simpa only [hθ] using h.corrected_amplitude j n | |
| 625 | - · intro n x t | |
| 626 | - apply CopyAngularInvariance.invariant_eq_zeroSlice | |
| 627 | - simpa only [hθ] using h.corrected_pressure j n | |
| 628 | - · intro n x t | |
| 629 | - change a.frequency n * a.phase n (x,t) = a.frequency n * a.phase n (x,0) + _ | |
| 630 | - have hp := CopyAngularInvariance.affinePhase_eq_zeroSlice (by simpa only [hθ] using h.phase n) x t | |
| 631 | - rw [hp, mul_add, ← mul_assoc, hkp] | |
| 632 | - | |
| 633 | 512 | /-! ## Restriction of actual coefficient jets to the angular section -/ |
| 634 | 513 | |
| 635 | 514 | noncomputable def zeroSection : D →L[ℝ] (D × ℝ) := (ContinuousLinearMap.id ℝ D).prod 0 |
| @@ -842,95 +721,6 @@ theorem coefficients_tangent {s : StripData D} {d : LinearWaveBounds.GraphDirect | ||
| 842 | 721 | rw [normalDot_complexify, inner_smul_right, ht n x hx, mul_zero] |
| 843 | 722 | rfl |
| 844 | 723 | |
| 845 | -theorem signed_curl_realization | |
| 846 | - {s : StripData D} {d : LinearWaveBounds.GraphDirections D} | |
| 847 | - {a : LinearWaveBounds.WaveCoefficients D} {P₀ P : ℕ → D → ℝ} {α₀ β κ : ℝ} | |
| 848 | - (hbase : LinearWaveBounds.InputBounds s P₀ α₀ κ d a) | |
| 849 | - {H : ℕ → D → Mat2} {T R : ℕ → D → Vec2} {mask ψ : ℕ → D → ℝ} | |
| 850 | - {v Ndot : ℕ → D → Space} {A : ℕ → D → Space →L[ℝ] Space} | |
| 851 | - (hcov : CovarianceControl s H T) (hR : ∀ i, MeanClass s β (fun n x => R n x i)) | |
| 852 | - (hm : UnweightedClass s 0 mask) (hv : MemClass s P 0 v) | |
| 853 | - (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) | |
| 854 | - (hNdot : UnweightedClass s 0 Ndot) (hA : UnweightedClass s 0 A) | |
| 855 | - {b M : ℝ} (hb : 0 < b) | |
| 856 | - (hlo : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) | |
| 857 | - (hhi : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) | |
| 858 | - (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) | |
| 859 | - (hψ : UnweightedClass s 0 ψ) (j : Fin 2) (n : ℕ) | |
| 860 | - (G : CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) | |
| 861 | - (fun _ => d.angular) (d.axialField s n)) | |
| 862 | - (hfreq : a.frequency n ≠ 0) (hphase : ContDiffOn ℝ ∞ (a.phase n) s.domain) | |
| 863 | - (ht : ∀ n x, x ∈ s.domain → ⟪a.normal s d n x, v n x⟫_ℝ = 0) : | |
| 864 | - let z := coefficients a s d H T R mask v Ndot A j | |
| 865 | - ∀ x ∈ s.domain, | |
| 866 | - CurlClassBounds.cylindricalCurl (a.radius n) (d.radialField n) (fun _ => d.angular) | |
| 867 | - (d.axialField s n) ((z.withCutoff ψ).curlPotential s d n) x = | |
| 868 | - vectorMode (a.frequency n) (a.phase n) ((z.corrected s d ψ).amplitude n) x ∧ | |
| 869 | - cylindricalDivergence (a.radius n) (d.radialField n) (fun _ => d.angular) (d.axialField s n) | |
| 870 | - (vectorMode (a.frequency n) (a.phase n) ((z.corrected s d ψ).amplitude n)) x = 0 := by | |
| 871 | - dsimp only | |
| 872 | - have hi := coefficients_inputBounds hbase hcov hR hm hv hN hNdot hA hb hlo hhi hK j | |
| 873 | - have hn : ∀ x ∈ s.domain, a.normal s d n x ≠ 0 := by | |
| 874 | - intro x hx hz | |
| 875 | - have h := hlo n x hx | |
| 876 | - rw [hz, norm_zero] at h | |
| 877 | - exact (not_le_of_gt hb) h | |
| 878 | - intro x hx | |
| 879 | - exact ⟨LinearWaveBounds.corrected_realizes_curl hi hψ n G hfreq hphase hn | |
| 880 | - (fun x hx => coefficients_tangent a H T R mask v Ndot A ht j n hx) hx, | |
| 881 | - LinearWaveBounds.corrected_divergence hi hψ n G hfreq hphase hn | |
| 882 | - (fun x hx => coefficients_tangent a H T R mask v Ndot A ht j n hx) hx⟩ | |
| 883 | - | |
| 884 | -/-- Exact residual identity for the signed increment. The slot derivative | |
| 885 | -is kept as a separate nonzero field and is not included in the good bound. -/ | |
| 886 | -theorem signed_linear_identity | |
| 887 | - {s : StripData D} {d : LinearWaveBounds.GraphDirections D} | |
| 888 | - {a : LinearWaveBounds.WaveCoefficients D} {P₀ P : ℕ → D → ℝ} {α₀ β κ : ℝ} | |
| 889 | - (hbase : LinearWaveBounds.InputBounds s P₀ α₀ κ d a) (hκ : κ ≤ 1 / 2) | |
| 890 | - {H : ℕ → D → Mat2} {T R : ℕ → D → Vec2} {mask ψ : ℕ → D → ℝ} | |
| 891 | - {v Ndot : ℕ → D → Space} {A : ℕ → D → Space →L[ℝ] Space} | |
| 892 | - (hcov : CovarianceControl s H T) (hR : ∀ i, MeanClass s β (fun n x => R n x i)) | |
| 893 | - (hm : UnweightedClass s 0 mask) (hv : MemClass s P 0 v) | |
| 894 | - (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) | |
| 895 | - (hNdot : UnweightedClass s 0 Ndot) (hA : UnweightedClass s 0 A) | |
| 896 | - {b M : ℝ} (hb : 0 < b) | |
| 897 | - (hlo : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) | |
| 898 | - (hhi : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) | |
| 899 | - (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) | |
| 900 | - {radius : D → ℝ} (hradius : a.radius = fun _ => radius) | |
| 901 | - (hψ : UnweightedClass s 0 ψ) {m : ℕ → ℝ} | |
| 902 | - (hangle : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 903 | - (hG : ∀ n, CurlClassBounds.CylindricalGeometry s.domain (a.radius n) (d.radialField n) | |
| 904 | - (fun _ => d.angular) (d.axialField s n)) | |
| 905 | - (hHf : FrozenAlong d.fast H) (hTf : FrozenAlong d.fast T) | |
| 906 | - (hRf : FrozenAlong d.fast R) (hmf : FrozenAlong d.fast mask) | |
| 907 | - (hfreq : ∀ n, a.frequency n ≠ 0) | |
| 908 | - (hode : ∀ n x, x ∈ s.domain → along (d.fastField n) (v n) x = | |
| 909 | - TangentProjection.projectedRhs (a.normal s d n x) (Ndot n x) (v n x) | |
| 910 | - (A n x (v n x)) 0 (s.epsilon n * a.frequency n ^ 2 * ‖a.normal s d n x‖ ^ 2)) | |
| 911 | - (haction : ∀ n x, x ∈ s.domain → CurlClassBounds.complexify (A n x (v n x)) = | |
| 912 | - LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) | |
| 913 | - (d.radialField n) (fun y => CurlClassBounds.complexify (v n y)) x) (j : Fin 2) : | |
| 914 | - let z := coefficients a s d H T R mask v Ndot A j | |
| 915 | - ∀ n x, x ∈ s.domain → | |
| 916 | - (z.corrected s d ψ).harmonicResidual s d n x = | |
| 917 | - (fun i => (z.constructedGood s d ψ n x i + | |
| 918 | - LinearWaveBounds.excludedSlotError d ψ z.amplitude 0 n x i) * | |
| 919 | - carrier (a.frequency n) (a.phase n) x) := by | |
| 920 | - have hi := coefficients_inputBounds hbase hcov hR hm hv hN hNdot hA hb hlo hhi hK j | |
| 921 | - have hs := coefficients_principal_zero a hcov hR hm hv hHf hTf hRf hmf hfreq hode haction j | |
| 922 | - have hs' : ∀ n x, x ∈ s.domain → | |
| 923 | - (coefficients a s d H T R mask v Ndot A j).principal s d n x = | |
| 924 | - -(0 : ℕ → D → ComplexVector) n x := by simpa using hs | |
| 925 | - have hg := hangle.exactConditions (fun n => (hG n).radius_ne) (fun n => (hG n).radial_radius) j | |
| 926 | - have hres := (LinearWaveBounds.constructed_linear_wave_with_excluded | |
| 927 | - hi hκ hψ hradius hN hb hlo hhi hK hs' hg).2 | |
| 928 | - dsimp only | |
| 929 | - intro n x hx | |
| 930 | - ext i | |
| 931 | - have hv := congrFun (hres n x hx) i | |
| 932 | - simpa only [Pi.add_apply, Pi.zero_apply, zero_mul, add_zero, coefficients, homogeneousCoefficients] using hv | |
| 933 | - | |
| 934 | 724 | /-! ## The same native pulse blocks in the exact covariance identity -/ |
| 935 | 725 | |
| 936 | 726 | section NativeBlocks |
| @@ -1018,60 +808,11 @@ end NativeBlocks | ||
| 1018 | 808 | |
| 1019 | 809 | /-! ## Exported blocks for the correction state -/ |
| 1020 | 810 | |
| 1021 | -noncomputable def signedBlock (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) | |
| 1022 | - (s : StripData (D × ℝ)) (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 1023 | - (H : ℕ → D × ℝ → Mat2) (T R : ℕ → D × ℝ → Vec2) (mask : ℕ → D × ℝ → ℝ) | |
| 1024 | - (v Ndot : ℕ → D × ℝ → Space) (A : ℕ → D × ℝ → Space →L[ℝ] Space) | |
| 1025 | - (ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) (j : Fin 2) : CorrectionState.HarmonicBlock D := | |
| 1026 | - blockOfCoefficients (exactCoefficients a s d H T R mask v Ndot A ψ j) kp | |
| 1027 | - | |
| 1028 | 811 | noncomputable def gaussianBlock (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) |
| 1029 | 812 | (d : LinearWaveBounds.GraphDirections (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) |
| 1030 | 813 | (kp : ℕ → ℤ) : CorrectionState.HarmonicBlock D := |
| 1031 | 814 | ErrorHarmonics.gaussianBlock d ψ a.amplitude 0 1 a.frequency (fun n x => a.phase n (x,0)) kp |
| 1032 | 815 | |
| 1033 | -/-- The error block is evaluated from the actual cutoff derivative and the | |
| 1034 | -same uncut signed coefficient. It has the original carrier and its conjugate. -/ | |
| 1035 | -theorem gaussianBlock_represents | |
| 1036 | - {s : StripData (D × ℝ)} {d : LinearWaveBounds.GraphDirections (D × ℝ)} | |
| 1037 | - {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} | |
| 1038 | - {H : ℕ → D × ℝ → Mat2} {T R : ℕ → D × ℝ → Vec2} {mask : ℕ → D × ℝ → ℝ} | |
| 1039 | - {v Ndot : ℕ → D × ℝ → Space} {A : ℕ → D × ℝ → Space →L[ℝ] Space} | |
| 1040 | - {ψ : ℕ → D × ℝ → ℝ} {m : ℕ → ℝ} | |
| 1041 | - (h : AngularInputs s d a H T R mask v Ndot A ψ m) | |
| 1042 | - (hθ : d.angular = (0,1)) (hψ : ∀ n, ContDiff ℝ ∞ (ψ n)) | |
| 1043 | - (kp : ℕ → ℤ) (hkp : ∀ n, a.frequency n * m n = (kp n : ℝ)) (j : Fin 2) : | |
| 1044 | - let z := coefficients a s d H T R mask v Ndot A j | |
| 1045 | - (gaussianBlock z d ψ kp).oscillation = fun n x i => | |
| 1046 | - (LinearWaveBounds.excludedSlotError d ψ z.amplitude 0 n x i * | |
| 1047 | - carrier (a.frequency n) (a.phase n) x).re := by | |
| 1048 | - have hψa : ErrorHarmonics.AngleIndependent ψ := by | |
| 1049 | - intro n x t | |
| 1050 | - apply CopyAngularInvariance.invariant_eq_zeroSlice | |
| 1051 | - have hc := h.cutoff n | |
| 1052 | - simp only [hθ] at hc | |
| 1053 | - exact hc | |
| 1054 | - have ha : ErrorHarmonics.AngleIndependent (coefficients a s d H T R mask v Ndot A j).amplitude := by | |
| 1055 | - intro n x t | |
| 1056 | - apply CopyAngularInvariance.invariant_eq_zeroSlice | |
| 1057 | - simpa only [hθ] using h.amplitude j n | |
| 1058 | - have hs : ErrorHarmonics.AngleIndependent (0 : ℕ → D × ℝ → ComplexVector) := by | |
| 1059 | - intro n x t | |
| 1060 | - rfl | |
| 1061 | - have hp : ∀ n x t, a.frequency n * a.phase n (x,t) = | |
| 1062 | - a.frequency n * a.phase n (x,0) + (kp n : ℝ) * t := by | |
| 1063 | - intro n x t | |
| 1064 | - rw [CopyAngularInvariance.affinePhase_eq_zeroSlice (Φ := a.phase n) (m := m n) | |
| 1065 | - (by simpa only [hθ] using h.phase n) x t, | |
| 1066 | - mul_add, ← mul_assoc, hkp] | |
| 1067 | - have he := ErrorHarmonics.gaussianBlock_represents d 1 a.frequency | |
| 1068 | - (fun n x => a.phase n (x,0)) a.phase kp hψ hψa ha hs hp | |
| 1069 | - dsimp only | |
| 1070 | - funext n x i | |
| 1071 | - have hi := congrFun (congrFun (congrFun he n) x) i | |
| 1072 | - simpa only [gaussianBlock, ErrorHarmonics.gaussianField, vectorMode, mode, | |
| 1073 | - Int.cast_one, mul_one, coefficients, homogeneousCoefficients] using hi | |
| 1074 | - | |
| 1075 | 816 | /-! The realization hypothesis below concerns only the already constructed |
| 1076 | 817 | unit pulse and chart. It never identifies or bounds a signed output. The |
| 1077 | 818 | canonical unit pulse and its matrix are identified by the two preceding |
+31 −0 routes/s1-ns-signed-2/README.md added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-signed-2 | |
| 6 | + | |
| 7 | +One declarations unit of #10 (S-1), wave 2: the `NavierStokes/Signed*` family. It deletes 31 declarations | |
| 8 | +from `NavierStokes/SignedStressPrimitive.lean` (19) and `NavierStokes/SignedWaveUpdate.lean` (12): 454 lines, | |
| 9 | +deletions only, no statement or proof that stays changed. The unit was cut from main at `4385cbe`; it is | |
| 10 | +disjoint from the earlier declaration unit `s1-ns-signed-1`, which was merged in pull request #275 and | |
| 11 | +deleted another set of declarations from the same files. | |
| 12 | + | |
| 13 | +How they were found. Treant (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstream `f9e8bc5`) | |
| 14 | +found them unreachable from the four Comparator theorems; `docs/s1-dead-code/README.md` is the plan. The | |
| 15 | +maintainer's keep rule was applied as described in the pull request's description. | |
| 16 | + | |
| 17 | +Checked, as a reviewer would. Every short name of the 31 declarations was searched with `git grep -n -w` | |
| 18 | +over the tree after the deletion. Nothing left names them, except two kinds of hit that are other | |
| 19 | +declarations of the same short name: Euler's own `primitive_hasDerivAt` (`Euler/AngleMeanZeroPrimitive.lean`), | |
| 20 | +the `LocalSignedRequest` lemmas `requestedStress`, `normalizedRequest` and `meanClass_liftedTorusAverage`, | |
| 21 | +`ActualInitialization.gaussianBlock_represents`, the structure fields `corrected_amplitude` and | |
| 22 | +`corrected_pressure` on `chartCoefficients_angular`, the `signedBlock` field of the cycle parameters, and | |
| 23 | +`PhysicalMeanDomain.meanClass_liftedTorusAverage` (the unqualified hit at | |
| 24 | +`NavierStokes/CorrectionInitialization.lean:1610` resolves to one of the latter, not to this unit's | |
| 25 | +`SignedWaveUpdate` lemma; that file does not `open SignedWaveUpdate`). The 454 deleted lines were read for a | |
| 26 | +numbered Lemma, Theorem, Proposition, Corollary, Section or Equation of either paper and for "the manuscript": | |
| 27 | +there is none. | |
| 28 | + | |
| 29 | +## Next | |
| 30 | + | |
| 31 | +Push and open the pull request; the site's `challenge` and `build` checks decide. | |