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

chore(NavierStokes/Wave): delete 1 file nothing imports
Browse filesNavierStokes/WaveStageContinuation.lean (1995 lines): the second cut of the `NavierStokes/Wave*` family for S-1, after pull request #56. Its two importers, CycleContinuationInvariant.lean and InitialHarmonicContinuation.lean, are gone now, so nothing reachable from ComparatorSolution.lean, PaperResults.lean or Euler/Solution.lean imports it. Part of #10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+0 −1995 NavierStokes/WaveStageContinuation.lean deleted
| @@ -1,1995 +0,0 @@ | ||
| 1 | -import NavierStokes.MeanStageContinuation | |
| 2 | -import NavierStokes.LabelSupportPreservation | |
| 3 | -import NavierStokes.NativeBandExtension | |
| 4 | - | |
| 5 | -/-! | |
| 6 | -# Supported continuation of actual wave stages | |
| 7 | - | |
| 8 | -The native geometry, entry and exit clocks, and cutoff are retained. | |
| 9 | -Only primitive coefficient and forcing fields are continued. Agreement | |
| 10 | -is on whole positive slow fibers, as needed by the Volterra solve. | |
| 11 | --/ | |
| 12 | - | |
| 13 | -noncomputable section | |
| 14 | - | |
| 15 | -namespace NavierStokes.WaveStageContinuation | |
| 16 | - | |
| 17 | -open Set Function Filter | |
| 18 | -open HarmonicCalculus CommonCoverSolve TorusInverse WeightedClasses | |
| 19 | -open scoped Topology ContDiff BigOperators ComplexConjugate | |
| 20 | - | |
| 21 | -abbrev Slow := TorusInverse.Plane | |
| 22 | -abbrev Point := LocalSignedRequest.Point | |
| 23 | -abbrev Parameter := ℝ × Slow | |
| 24 | -abbrev Chart := Parameter × Plane | |
| 25 | - | |
| 26 | -noncomputable def toChart (x : Point) : Chart := ((x.1, x.2.1), x.2.2) | |
| 27 | -noncomputable def ofChart (x : Chart) : Point := (x.1.1, (x.1.2, x.2)) | |
| 28 | - | |
| 29 | -theorem toChart_smooth : ContDiff ℝ ∞ toChart := | |
| 30 | - (contDiff_fst.prodMk contDiff_snd.fst).prodMk contDiff_snd.snd | |
| 31 | - | |
| 32 | -theorem ofChart_smooth : ContDiff ℝ ∞ ofChart := | |
| 33 | - contDiff_fst.fst.prodMk (contDiff_fst.snd.prodMk contDiff_snd) | |
| 34 | - | |
| 35 | -def RadialSupport {E : Type*} [Zero E] (a b : ℝ) (ell : Slow → ℝ) | |
| 36 | - (U : Set Slow) (f : Point → E) : Prop := | |
| 37 | - ∀ x, x.2.1 ∈ U → f x ≠ 0 → x.1 ∈ Icc (ell x.2.1 * a) (ell x.2.1 * b) | |
| 38 | - | |
| 39 | -structure FieldContinuation {coord a b : ℝ} | |
| 40 | - (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 41 | - {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : Point → E) where | |
| 42 | - value : Point → E | |
| 43 | - smooth : ContDiffOn ℝ ∞ value (PhysicalMeanDomain.slowDomain W.carrier) | |
| 44 | - supported : RadialSupport a b (OffplaneCorrectionExtensions.stableLength coord) W.carrier value | |
| 45 | - agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier value f | |
| 46 | - | |
| 47 | -namespace FieldContinuation | |
| 48 | - | |
| 49 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 50 | - {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 51 | - [NormedAddCommGroup F] [NormedSpace ℝ F] {f : Point → E} | |
| 52 | - | |
| 53 | -noncomputable def map (e : FieldContinuation W f) (L : E →L[ℝ] F) : | |
| 54 | - FieldContinuation W (fun x => L (f x)) where | |
| 55 | - value x := L (e.value x) | |
| 56 | - smooth := L.contDiff.comp_contDiffOn e.smooth | |
| 57 | - supported := fun x hx hn => e.supported x hx (fun hz => hn (by simp [hz])) | |
| 58 | - agrees := fun _ hx => congrArg L (e.agrees hx) | |
| 59 | - | |
| 60 | -noncomputable def scalar (e : FieldContinuation W f) (L : E →L[ℝ] ℝ) : | |
| 61 | - OffplaneCorrectionExtensions.SupportedContinuation W (fun x => L (f x)) where | |
| 62 | - value := (e.map L).value | |
| 63 | - smooth := (e.map L).smooth | |
| 64 | - supported := (e.map L).supported | |
| 65 | - agrees := (e.map L).agrees | |
| 66 | - | |
| 67 | -theorem zero_below (e : FieldContinuation W f) {x : Point} | |
| 68 | - (hx : x.2.1 ∈ W.carrier) (hr : x.1 < W.lower) : e.value x = 0 := by | |
| 69 | - by_contra hn | |
| 70 | - exact (not_lt_of_ge ((W.left _ hx).trans (e.supported x hx hn).1)) hr | |
| 71 | - | |
| 72 | -end FieldContinuation | |
| 73 | - | |
| 74 | -section ReferenceSolve | |
| 75 | - | |
| 76 | -variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 77 | - [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 78 | - | |
| 79 | -/-- Fiber equality is enough for the exact anchored solution. No | |
| 80 | -agreement of the data at unrelated slow points is required. -/ | |
| 81 | -theorem copySolve_eq_of_fiber (d e : LinearData Parameter V E) (g : Geometry) | |
| 82 | - {entry exit : ℝ} (hle : entry ≤ exit) (k : Frequency) (p : Parameter) (Y : Plane) | |
| 83 | - (hA : ∀ Z, d.coefficient (p, Z) = e.coefficient (p, Z)) | |
| 84 | - (hB : ∀ Z, d.forcingMap (p, Z) = e.forcingMap (p, Z)) | |
| 85 | - (hf : ∀ Z, d.source (p, Z) = e.source (p, Z)) : | |
| 86 | - d.copySolve g hle k (p, Y) = e.copySolve g hle k (p, Y) := by | |
| 87 | - have hcoef : d.coefficientPath (a := entry) (b := exit) g k (p, Y) = | |
| 88 | - e.coefficientPath g k (p, Y) := by | |
| 89 | - apply pathFamily_congr_slice | |
| 90 | - intro s | |
| 91 | - exact hA _ | |
| 92 | - have hforce : d.forcingPath (a := entry) (b := exit) g k (p, Y) = | |
| 93 | - e.forcingPath g k (p, Y) := by | |
| 94 | - apply pathFamily_congr_slice | |
| 95 | - intro s | |
| 96 | - simp only [LinearData.forcingAlong, hB, hf] | |
| 97 | - simp only [LinearData.copySolve, LinearData.anchoredSolve, hcoef, hforce] | |
| 98 | - | |
| 99 | -theorem commonSolve_eq_of_fiber (d e : LinearData Parameter V E) (g : Geometry) | |
| 100 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) (p : Parameter) (Y : Plane) | |
| 101 | - (hA : ∀ Z, d.coefficient (p, Z) = e.coefficient (p, Z)) | |
| 102 | - (hB : ∀ Z, d.forcingMap (p, Z) = e.forcingMap (p, Z)) | |
| 103 | - (hf : ∀ Z, d.source (p, Z) = e.source (p, Z)) : | |
| 104 | - d.commonSolve g hle cutoff (p, Y) = e.commonSolve g hle cutoff (p, Y) := by | |
| 105 | - apply tsum_congr | |
| 106 | - intro k | |
| 107 | - simp only [LinearData.localizedCopy, copySolve_eq_of_fiber d e g hle k p Y hA hB hf] | |
| 108 | - | |
| 109 | -noncomputable def liftedSolve (d : LinearData Parameter V E) (g : Geometry) | |
| 110 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) : Point → E := | |
| 111 | - fun x => d.commonSolve g hle cutoff (toChart x) | |
| 112 | - | |
| 113 | -/-- Radial support is a whole-fiber statement and is preserved by the | |
| 114 | -literal zero-entry reference solve, independently of its coefficients. -/ | |
| 115 | -theorem liftedSolve_supported (d : LinearData Parameter V E) (g : Geometry) | |
| 116 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) | |
| 117 | - {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} | |
| 118 | - (hf : RadialSupport a b ell U (fun x => d.source (toChart x))) : | |
| 119 | - RadialSupport a b ell U (liftedSolve d g hle cutoff) := by | |
| 120 | - intro x hx hn | |
| 121 | - by_contra hr | |
| 122 | - have hsource (Y : Plane) : d.source ((x.1, x.2.1), Y) = 0 := by | |
| 123 | - by_contra hz | |
| 124 | - exact hr (hf (x.1, (x.2.1, Y)) hx hz) | |
| 125 | - have hc (k : Frequency) : d.copySolve g hle k (toChart x) = 0 := | |
| 126 | - d.copySolve_zero_of_source_zero g hle k (x.1, x.2.1) x.2.2 (fun _ _ => hsource _) | |
| 127 | - apply hn | |
| 128 | - simp only [liftedSolve, LinearData.commonSolve, LinearData.localizedCopy, hc, smul_zero, tsum_zero] | |
| 129 | - | |
| 130 | -noncomputable def positiveParameters (U : Set Slow) : Set Parameter := Ioi 0 ×ˢ U | |
| 131 | - | |
| 132 | -theorem positiveParameters_open {U : Set Slow} (hU : IsOpen U) : IsOpen (positiveParameters U) := | |
| 133 | - isOpen_Ioi.prod hU | |
| 134 | - | |
| 135 | -/-- These are primitive continuations, not a continuation of a solved | |
| 136 | -amplitude. The source is the actual incoming source named in the type. -/ | |
| 137 | -structure ReferencePrimitives {coord a b : ℝ} | |
| 138 | - (W : OffplaneCorrectionExtensions.Window coord a b) (original : LinearData Parameter V E) where | |
| 139 | - coefficient : Chart → E →L[ℝ] E | |
| 140 | - forcingMap : Chart → V →L[ℝ] E | |
| 141 | - coefficient_smooth : ContDiffOn ℝ ∞ coefficient (positiveParameters W.carrier ×ˢ univ) | |
| 142 | - forcingMap_smooth : ContDiffOn ℝ ∞ forcingMap (positiveParameters W.carrier ×ˢ univ) | |
| 143 | - source : FieldContinuation W (fun x => original.source (toChart x)) | |
| 144 | - coefficient_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, | |
| 145 | - coefficient (p, Y) = original.coefficient (p, Y) | |
| 146 | - forcingMap_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, | |
| 147 | - forcingMap (p, Y) = original.forcingMap (p, Y) | |
| 148 | - | |
| 149 | -namespace ReferencePrimitives | |
| 150 | - | |
| 151 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 152 | - {original : LinearData Parameter V E} (d : ReferencePrimitives W original) | |
| 153 | - | |
| 154 | -noncomputable def data : LinearData Parameter V E where | |
| 155 | - coefficient := d.coefficient | |
| 156 | - forcingMap := d.forcingMap | |
| 157 | - source x := d.source.value (ofChart x) | |
| 158 | - | |
| 159 | -omit [CompleteSpace E] in | |
| 160 | -theorem source_smooth : ContDiffOn ℝ ∞ d.data.source (positiveParameters W.carrier ×ˢ univ) := | |
| 161 | - d.source.smooth.comp ofChart_smooth.contDiffOn (fun _ hx => hx.1.2) | |
| 162 | - | |
| 163 | -theorem solve_supported (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) : | |
| 164 | - RadialSupport a b (OffplaneCorrectionExtensions.stableLength coord) W.carrier | |
| 165 | - (liftedSolve d.data g hle cutoff) := | |
| 166 | - liftedSolve_supported d.data g hle cutoff d.source.supported | |
| 167 | - | |
| 168 | -theorem solve_smooth (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 169 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 170 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 171 | - ContDiffOn ℝ ∞ (liftedSolve d.data g hle cutoff) (PhysicalMeanDomain.slowDomain W.carrier) := by | |
| 172 | - have hsolve := d.data.commonSolve_contDiffOn g hle (positiveParameters_open W.isOpen) | |
| 173 | - d.coefficient_smooth d.forcingMap_smooth d.source_smooth hcutoff hcompact hinside | |
| 174 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 175 | - intro x hx | |
| 176 | - by_cases hr : 0 < x.1 | |
| 177 | - · exact (hsolve.contDiffAt (((positiveParameters_open W.isOpen).prod isOpen_univ).mem_nhds | |
| 178 | - (show toChart x ∈ positiveParameters W.carrier ×ˢ univ from ⟨⟨hr, hx⟩, mem_univ _⟩))).comp | |
| 179 | - x toChart_smooth.contDiffAt | |
| 180 | - · have hlt : x.1 < W.lower := lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos | |
| 181 | - apply contDiffAt_const.congr_of_eventuallyEq | |
| 182 | - filter_upwards [(PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx, | |
| 183 | - (isOpen_lt continuous_fst continuous_const).mem_nhds hlt] with y hy hyr | |
| 184 | - by_contra hn | |
| 185 | - exact (not_lt_of_ge ((W.left _ hy).trans (d.solve_supported g hle cutoff y hy hn).1)) hyr | |
| 186 | - | |
| 187 | -theorem solve_agrees (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) : | |
| 188 | - OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 189 | - (liftedSolve d.data g hle cutoff) (liftedSolve original g hle cutoff) := by | |
| 190 | - intro x hx | |
| 191 | - by_cases hr : 0 < x.1 | |
| 192 | - · apply commonSolve_eq_of_fiber | |
| 193 | - · exact d.coefficient_agrees _ hr hx.1 hx.2 | |
| 194 | - · exact d.forcingMap_agrees _ hr hx.1 hx.2 | |
| 195 | - · intro Y | |
| 196 | - exact d.source.agrees (x := (x.1, (x.2.1, Y))) hx | |
| 197 | - · have hsource (Y : Plane) : d.source.value (x.1, (x.2.1, Y)) = 0 := | |
| 198 | - d.source.zero_below hx.1 (lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos) | |
| 199 | - have hc (k : Frequency) : d.data.copySolve g hle k (toChart x) = 0 := | |
| 200 | - d.data.copySolve_zero_of_source_zero g hle k _ _ (fun _ _ => hsource _) | |
| 201 | - have ho (k : Frequency) : original.copySolve g hle k (toChart x) = 0 := by | |
| 202 | - apply original.copySolve_zero_of_source_zero g hle k | |
| 203 | - intro t ht | |
| 204 | - exact (d.source.agrees (x := (x.1, (x.2.1, g.path k x.2.2 t))) hx).symm.trans (hsource _) | |
| 205 | - simp only [liftedSolve, LinearData.commonSolve, LinearData.localizedCopy, hc, ho, smul_zero, tsum_zero] | |
| 206 | - | |
| 207 | -noncomputable def continuation (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 208 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 209 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 210 | - FieldContinuation W (liftedSolve original g hle cutoff) where | |
| 211 | - value := liftedSolve d.data g hle cutoff | |
| 212 | - smooth := d.solve_smooth g hle hcutoff hcompact hinside | |
| 213 | - supported := d.solve_supported g hle cutoff | |
| 214 | - agrees := d.solve_agrees g hle cutoff | |
| 215 | - | |
| 216 | -end ReferencePrimitives | |
| 217 | - | |
| 218 | -end ReferenceSolve | |
| 219 | - | |
| 220 | -section CoefficientAgreement | |
| 221 | - | |
| 222 | -open HarmonicFields hiding Coefficients | |
| 223 | -open HarmonicResidual | |
| 224 | - | |
| 225 | -variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 226 | - | |
| 227 | -def CoeffEqOn (U : Set D) (a b : Coefficients D) : Prop := ∀ j, EqOn (a j) (b j) U | |
| 228 | - | |
| 229 | -namespace CoeffEqOn | |
| 230 | - | |
| 231 | -variable {U : Set D} {a b c d : Coefficients D} | |
| 232 | - | |
| 233 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 234 | -theorem refl (a : Coefficients D) : CoeffEqOn U a a := fun _ _ _ => rfl | |
| 235 | - | |
| 236 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 237 | -theorem add (hab : CoeffEqOn U a b) (hcd : CoeffEqOn U c d) : CoeffEqOn U (a + c) (b + d) := by | |
| 238 | - intro j x hx | |
| 239 | - change a j x + c j x = b j x + d j x | |
| 240 | - rw [hab j hx, hcd j hx] | |
| 241 | - | |
| 242 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 243 | -theorem sub (hab : CoeffEqOn U a b) (hcd : CoeffEqOn U c d) : CoeffEqOn U (a - c) (b - d) := by | |
| 244 | - intro j x hx | |
| 245 | - change a j x - c j x = b j x - d j x | |
| 246 | - rw [hab j hx, hcd j hx] | |
| 247 | - | |
| 248 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 249 | -theorem mul (hab : CoeffEqOn U a b) (hcd : CoeffEqOn U c d) : CoeffEqOn U (a * c) (b * d) := by | |
| 250 | - classical | |
| 251 | - intro j x hx | |
| 252 | - have hsum (v w : Coefficients D) (T : Finset ℤ) (hT : v.support ⊆ T) : | |
| 253 | - (v * w) j x = ∑ i ∈ T, v i x * w (j - i) x := by | |
| 254 | - rw [convolution_apply] | |
| 255 | - apply Finset.sum_subset hT | |
| 256 | - intro i _ hi | |
| 257 | - simp only [Finsupp.notMem_support_iff.mp hi, Pi.zero_apply, zero_mul] | |
| 258 | - rw [hsum a c (a.support ∪ b.support) Finset.subset_union_left, | |
| 259 | - hsum b d (a.support ∪ b.support) Finset.subset_union_right] | |
| 260 | - exact Finset.sum_congr rfl (fun i _ => by rw [hab i hx, hcd (j - i) hx]) | |
| 261 | - | |
| 262 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 263 | -theorem constant {f g : D → ℂ} (hfg : EqOn f g U) : | |
| 264 | - CoeffEqOn U (constantCoefficient f) (constantCoefficient g) := by | |
| 265 | - intro j x hx | |
| 266 | - change Finsupp.single 0 f j x = Finsupp.single 0 g j x | |
| 267 | - by_cases hj : j = 0 | |
| 268 | - · subst j | |
| 269 | - simpa only [Finsupp.single_eq_same] using hfg hx | |
| 270 | - · simp only [Finsupp.single_apply, ite_eq_right (Ne.symm hj), Pi.zero_apply] | |
| 271 | - | |
| 272 | -theorem differentiate (hab : CoeffEqOn U a b) (hU : IsOpen U) | |
| 273 | - (V : D → D) (k : ℝ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) : | |
| 274 | - CoeffEqOn U (differentiate V k Φ a) (differentiate V k Ψ b) := by | |
| 275 | - intro j x hx | |
| 276 | - have hc : a j =ᶠ[𝓝 x] b j := eventually_of_mem (hU.mem_nhds hx) (fun _ hy => hab j hy) | |
| 277 | - have hp : Φ =ᶠ[𝓝 x] Ψ := eventually_of_mem (hU.mem_nhds hx) (fun _ hy => hΦ hy) | |
| 278 | - simp only [differentiate_apply, derivativeCoefficient, along, hc.fderiv_eq, hp.fderiv_eq, hc.self_of_nhds] | |
| 279 | - | |
| 280 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 281 | -theorem angular (hab : CoeffEqOn U a b) (kp : ℤ) : | |
| 282 | - CoeffEqOn U (angularDifferentiate kp a) (angularDifferentiate kp b) := by | |
| 283 | - intro j x hx | |
| 284 | - simp only [angularDifferentiate_apply, hab j hx] | |
| 285 | - | |
| 286 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 287 | -theorem realProjection (hab : CoeffEqOn U a b) : CoeffEqOn U (realCoefficients a) (realCoefficients b) := by | |
| 288 | - intro j x hx | |
| 289 | - simp only [realCoefficients_apply, hab j hx, hab (-j) hx] | |
| 290 | - | |
| 291 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 292 | -theorem nonconstant (hab : CoeffEqOn U a b) : CoeffEqOn U (nonconstant a) (nonconstant b) := by | |
| 293 | - intro j x hx | |
| 294 | - by_cases hj : j = 0 | |
| 295 | - · subst j; simp [HarmonicResidual.nonconstant] | |
| 296 | - · change a.coeff.erase 0 j x = b.coeff.erase 0 j x | |
| 297 | - rw [Finsupp.erase_ne hj, Finsupp.erase_ne hj] | |
| 298 | - exact hab j hx | |
| 299 | - | |
| 300 | -end CoeffEqOn | |
| 301 | - | |
| 302 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 303 | -theorem rotate_eqOn {U : Set D} {a b : VectorCoefficients D} | |
| 304 | - (hab : ∀ i, CoeffEqOn U (a i) (b i)) (i : Fin 3) : CoeffEqOn U (rotate a i) (rotate b i) := by | |
| 305 | - fin_cases i | |
| 306 | - · intro j x hx | |
| 307 | - change -(a 1 j x) = -(b 1 j x) | |
| 308 | - rw [hab 1 j hx] | |
| 309 | - · exact hab 0 | |
| 310 | - · exact CoeffEqOn.refl _ | |
| 311 | - | |
| 312 | -theorem scalarLaplacian_eqOn {U : Set D} (hU : IsOpen U) (g : Frame D) | |
| 313 | - (k : ℝ) (kp : ℤ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) | |
| 314 | - {a b : Coefficients D} (hab : CoeffEqOn U a b) : | |
| 315 | - CoeffEqOn U (scalarLaplacian g k Φ kp a) (scalarLaplacian g k Ψ kp b) := by | |
| 316 | - exact ((((hab.differentiate hU g.radial k hΦ).differentiate hU g.radial k hΦ).add | |
| 317 | - ((CoeffEqOn.refl _).mul (hab.differentiate hU g.radial k hΦ))).add | |
| 318 | - ((CoeffEqOn.refl _).mul ((hab.angular kp).angular kp))).add | |
| 319 | - ((hab.differentiate hU g.axial k hΦ).differentiate hU g.axial k hΦ) | |
| 320 | - | |
| 321 | -theorem vectorLaplacian_eqOn {U : Set D} (hU : IsOpen U) (g : Frame D) | |
| 322 | - (k : ℝ) (kp : ℤ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) | |
| 323 | - {a b : VectorCoefficients D} (hab : ∀ i, CoeffEqOn U (a i) (b i)) (i : Fin 3) : | |
| 324 | - CoeffEqOn U (vectorLaplacian g k Φ kp a i) (vectorLaplacian g k Ψ kp b i) := | |
| 325 | - (scalarLaplacian_eqOn hU g k kp hΦ (hab i)).add ((CoeffEqOn.refl _).mul | |
| 326 | - (((CoeffEqOn.refl _).mul (rotate_eqOn (fun j => (hab j).angular kp) i)).add | |
| 327 | - (rotate_eqOn (rotate_eqOn hab) i))) | |
| 328 | - | |
| 329 | -theorem transport_eqOn {U : Set D} (hU : IsOpen U) (g : Frame D) | |
| 330 | - (k : ℝ) (kp : ℤ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) | |
| 331 | - {a b c d : VectorCoefficients D} (hab : ∀ i, CoeffEqOn U (a i) (b i)) | |
| 332 | - (hcd : ∀ i, CoeffEqOn U (c i) (d i)) (i : Fin 3) : | |
| 333 | - CoeffEqOn U (transport g k Φ kp a c i) (transport g k Ψ kp b d i) := | |
| 334 | - (((hab 0).mul ((hcd i).differentiate hU g.radial k hΦ)).add | |
| 335 | - (((hab 1).mul (CoeffEqOn.refl _)).mul (((hcd i).angular kp).add (rotate_eqOn hcd i)))).add | |
| 336 | - ((hab 2).mul ((hcd i).differentiate hU g.axial k hΦ)) | |
| 337 | - | |
| 338 | -theorem gradient_eqOn {U : Set D} (hU : IsOpen U) (g : Frame D) | |
| 339 | - (k : ℝ) (kp : ℤ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) | |
| 340 | - {a b : Coefficients D} (hab : CoeffEqOn U a b) (i : Fin 3) : | |
| 341 | - CoeffEqOn U (gradient g k Φ kp a i) (gradient g k Ψ kp b i) := by | |
| 342 | - fin_cases i | |
| 343 | - · exact hab.differentiate hU g.radial k hΦ | |
| 344 | - · exact (CoeffEqOn.refl _).mul (hab.angular kp) | |
| 345 | - · exact hab.differentiate hU g.axial k hΦ | |
| 346 | - | |
| 347 | -theorem nonlinearResidual_eqOn {U : Set D} (hU : IsOpen U) (g : Frame D) | |
| 348 | - (k : ℝ) (kp : ℤ) {Φ Ψ : D → ℝ} (hΦ : EqOn Φ Ψ U) | |
| 349 | - {B C a b : VectorCoefficients D} (hBC : ∀ i, CoeffEqOn U (B i) (C i)) | |
| 350 | - (hab : ∀ i, CoeffEqOn U (a i) (b i)) {p q : Coefficients D} (hpq : CoeffEqOn U p q) | |
| 351 | - (i : Fin 3) : CoeffEqOn U (nonlinearResidual g k Φ kp B a p i) (nonlinearResidual g k Ψ kp C b q i) := | |
| 352 | - (((((hab i).differentiate hU g.time k hΦ).add (transport_eqOn hU g k kp hΦ hBC hab i)).add | |
| 353 | - (transport_eqOn hU g k kp hΦ hab hBC i)).add (gradient_eqOn hU g k kp hΦ hpq i) |>.sub | |
| 354 | - ((CoeffEqOn.refl _).mul (vectorLaplacian_eqOn hU g k kp hΦ hab i))).add | |
| 355 | - (transport_eqOn hU g k kp hΦ hab hab i) | |
| 356 | - | |
| 357 | -end CoefficientAgreement | |
| 358 | - | |
| 359 | -section PrimitiveCoefficients | |
| 360 | - | |
| 361 | -open HarmonicResidual | |
| 362 | - | |
| 363 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 364 | - | |
| 365 | -/-- Continuing a finite coefficient family keeps its original finite | |
| 366 | -index set. A zero coefficient cannot create a new harmonic off the past. -/ | |
| 367 | -noncomputable def continuedCoefficients (c : Coefficients Point) | |
| 368 | - (e : ∀ j, FieldContinuation W (c j)) : Coefficients Point := by | |
| 369 | - classical | |
| 370 | - exact AddMonoidAlgebra.ofCoeff <| Finsupp.onFinset c.support (fun j => if j ∈ c.support then (e j).value else 0) | |
| 371 | - (by intro j hj; by_contra hn; simp only [ite_eq_right hn, ne_eq, not_true_eq_false] at hj) | |
| 372 | - | |
| 373 | -theorem continuedCoefficients_apply (c : Coefficients Point) | |
| 374 | - (e : ∀ j, FieldContinuation W (c j)) (j : ℤ) : | |
| 375 | - continuedCoefficients c e j = if j ∈ c.support then (e j).value else 0 := rfl | |
| 376 | - | |
| 377 | -theorem continuedCoefficients_smooth (c : Coefficients Point) | |
| 378 | - (e : ∀ j, FieldContinuation W (c j)) : | |
| 379 | - SmoothCoefficients (PhysicalMeanDomain.slowDomain W.carrier) (continuedCoefficients c e) := by | |
| 380 | - intro j | |
| 381 | - rw [continuedCoefficients_apply] | |
| 382 | - split_ifs | |
| 383 | - · exact (e j).smooth | |
| 384 | - · exact contDiffOn_const | |
| 385 | - | |
| 386 | -theorem continuedCoefficients_supported (c : Coefficients Point) | |
| 387 | - (e : ∀ j, FieldContinuation W (c j)) (j : ℤ) : | |
| 388 | - RadialSupport a b (OffplaneCorrectionExtensions.stableLength coord) W.carrier | |
| 389 | - (continuedCoefficients c e j) := by | |
| 390 | - intro x hx hn | |
| 391 | - rw [continuedCoefficients_apply] at hn | |
| 392 | - split_ifs at hn | |
| 393 | - · exact (e j).supported x hx hn | |
| 394 | - · exact (hn rfl).elim | |
| 395 | - | |
| 396 | -theorem continuedCoefficients_agrees (c : Coefficients Point) | |
| 397 | - (e : ∀ j, FieldContinuation W (c j)) : | |
| 398 | - CoeffEqOn (PhysicalMeanDomain.slowDomain (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow)) | |
| 399 | - (continuedCoefficients c e) c := by | |
| 400 | - intro j x hx | |
| 401 | - rw [continuedCoefficients_apply] | |
| 402 | - split_ifs with hj | |
| 403 | - · exact (e j).agrees hx | |
| 404 | - · rw [Finsupp.notMem_support_iff.mp hj] | |
| 405 | - | |
| 406 | -/-- Per-label input data needed in addition to `SRC.Primitives`. | |
| 407 | -The Gaussian and alias coefficients are explicit primitive inputs. -/ | |
| 408 | -structure HarmonicPrimitives (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 409 | - (block : CorrectionState.HarmonicBlock Point) (G A : BlockCoefficients Point) where | |
| 410 | - velocity : ∀ n i j, FieldContinuation W (block.velocity n i j) | |
| 411 | - pressure : ∀ n j, FieldContinuation W (block.pressure n j) | |
| 412 | - gaussian : ∀ n i j, FieldContinuation W (G n i j) | |
| 413 | - aliasError : ∀ n i j, FieldContinuation W (A n i j) | |
| 414 | - phase : ℕ → Point → ℝ | |
| 415 | - phase_smooth : ∀ n, ContDiffOn ℝ ∞ (phase n) (LocalRankDefect.positiveDomain W.carrier) | |
| 416 | - phase_agrees : ∀ n, OffplaneCorrectionExtensions.FiberAgreement W.carrier (phase n) (block.phase n) | |
| 417 | - | |
| 418 | -namespace HarmonicPrimitives | |
| 419 | - | |
| 420 | -variable {block : CorrectionState.HarmonicBlock Point} {G A : BlockCoefficients Point} | |
| 421 | - (p : HarmonicPrimitives W block G A) | |
| 422 | - | |
| 423 | -noncomputable def continuedBlock : CorrectionState.HarmonicBlock Point where | |
| 424 | - velocity n i := continuedCoefficients (block.velocity n i) (p.velocity n i) | |
| 425 | - pressure n := continuedCoefficients (block.pressure n) (p.pressure n) | |
| 426 | - phase := p.phase | |
| 427 | - frequency := block.frequency | |
| 428 | - angularFrequency := block.angularFrequency | |
| 429 | - | |
| 430 | -noncomputable def continuedGaussian : BlockCoefficients Point := | |
| 431 | - fun n i => continuedCoefficients (G n i) (p.gaussian n i) | |
| 432 | - | |
| 433 | -noncomputable def continuedAlias : BlockCoefficients Point := | |
| 434 | - fun n i => continuedCoefficients (A n i) (p.aliasError n i) | |
| 435 | - | |
| 436 | -end HarmonicPrimitives | |
| 437 | - | |
| 438 | -end PrimitiveCoefficients | |
| 439 | - | |
| 440 | -section MovingCarrier | |
| 441 | - | |
| 442 | -variable {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 443 | - | |
| 444 | -/-- The exact moving annulus, enlarged only outside the open continuation | |
| 445 | -domain so that its complement supplies ambient zero germs. -/ | |
| 446 | -noncomputable def movingCarrier : Set Point := | |
| 447 | - {x | x.2.1 ∈ W.carrier → x.1 ∈ Icc | |
| 448 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * a) | |
| 449 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * b)} | |
| 450 | - | |
| 451 | -theorem movingCarrier_closed (hc : 0 < coord) (hc1 : coord < 1) : IsClosed (movingCarrier W) := by | |
| 452 | - apply isOpen_compl_iff.mp | |
| 453 | - apply isOpen_iff_mem_nhds.mpr | |
| 454 | - intro x hx | |
| 455 | - have hxU : x.2.1 ∈ W.carrier := by | |
| 456 | - by_contra hn | |
| 457 | - exact hx (fun h => (hn h).elim) | |
| 458 | - have hxR : x.1 ∉ Icc | |
| 459 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * a) | |
| 460 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * b) := fun h => hx (fun _ => h) | |
| 461 | - have he : ContinuousAt (OffplaneCorrectionExtensions.stableLength coord) x.2.1 := | |
| 462 | - (W.length_smooth hc hc1).continuousOn.continuousAt (W.isOpen.mem_nhds hxU) | |
| 463 | - have hmap : ContinuousAt (fun y : Point => y.2.1) x := continuous_snd.fst.continuousAt | |
| 464 | - have hlen : ContinuousAt (fun y : Point => OffplaneCorrectionExtensions.stableLength coord y.2.1) x := | |
| 465 | - ContinuousAt.comp (f := fun y : Point => y.2.1) (x := x) he hmap | |
| 466 | - have hU := (PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hxU | |
| 467 | - simp only [mem_Icc, not_and_or, not_le] at hxR | |
| 468 | - rcases hxR with hlo | hhi | |
| 469 | - · have hn : ∀ᶠ y : Point in 𝓝 x, | |
| 470 | - y.1 < OffplaneCorrectionExtensions.stableLength coord y.2.1 * a := | |
| 471 | - (continuous_fst.continuousAt.fun_sub (hlen.mul_const a)).eventually_lt_const (by linarith : x.1 - _ < 0) | |
| 472 | - |>.mono (fun y hy => by linarith) | |
| 473 | - filter_upwards [hU, hn] with y hy hyr | |
| 474 | - intro hm | |
| 475 | - exact (not_lt_of_ge (hm hy).1) hyr | |
| 476 | - · have hn : ∀ᶠ y : Point in 𝓝 x, | |
| 477 | - OffplaneCorrectionExtensions.stableLength coord y.2.1 * b < y.1 := | |
| 478 | - ((hlen.mul_const b).fun_sub continuous_fst.continuousAt).eventually_lt_const (by linarith : _ - x.1 < 0) | |
| 479 | - |>.mono (fun y hy => by linarith) | |
| 480 | - filter_upwards [hU, hn] with y hy hyr | |
| 481 | - intro hm | |
| 482 | - exact (not_lt_of_ge (hm hy).2) hyr | |
| 483 | - | |
| 484 | -end MovingCarrier | |
| 485 | - | |
| 486 | -section SourceConstruction | |
| 487 | - | |
| 488 | -open HarmonicResidual | |
| 489 | - | |
| 490 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 491 | - {block : CorrectionState.HarmonicBlock Point} {G A : BlockCoefficients Point} | |
| 492 | - (p : HarmonicPrimitives W block G A) | |
| 493 | - | |
| 494 | -theorem HarmonicPrimitives.inputSupport : | |
| 495 | - HarmonicSourceSupport.InputSupportOn (PhysicalMeanDomain.slowDomain W.carrier) | |
| 496 | - (fun _ => movingCarrier W) p.continuedBlock p.continuedGaussian p.continuedAlias := by | |
| 497 | - have hs (c : Coefficients Point) (e : ∀ j, FieldContinuation W (c j)) : | |
| 498 | - HarmonicSourceSupport.NonzeroSupportedOn (PhysicalMeanDomain.slowDomain W.carrier) | |
| 499 | - (movingCarrier W) (realCoefficients (continuedCoefficients c e)) := by | |
| 500 | - apply HarmonicSourceSupport.NonzeroSupportedOn.realProjection | |
| 501 | - intro j hj x hx hn | |
| 502 | - by_contra hz | |
| 503 | - exact hn (fun _ => continuedCoefficients_supported c e j x hx hz) | |
| 504 | - exact ⟨fun n i => hs _ (p.velocity n i), fun n => hs _ (p.pressure n), | |
| 505 | - fun n i => hs _ (p.gaussian n i), fun n i => hs _ (p.aliasError n i)⟩ | |
| 506 | - | |
| 507 | -theorem HarmonicPrimitives.source_zero_germ (hc : 0 < coord) (hc1 : coord < 1) | |
| 508 | - (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (j : ℤ) (n : ℕ) | |
| 509 | - {x : Point} (hx : x.2.1 ∈ W.carrier) | |
| 510 | - (hr : x.1 ∉ Icc (OffplaneCorrectionExtensions.stableLength coord x.2.1 * a) | |
| 511 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * b)) : | |
| 512 | - ParticularWaveAssembly.residualSource c u p.continuedBlock p.continuedGaussian p.continuedAlias j n | |
| 513 | - =ᶠ[𝓝 x] fun _ => 0 := | |
| 514 | - HarmonicSourceSupport.residualSource_zero_germ_on c u _ _ _ | |
| 515 | - (PhysicalMeanDomain.slowDomain_open W.isOpen) (fun _ => movingCarrier_closed W hc hc1) | |
| 516 | - p.inputSupport j n hx (fun h => hr (h hx)) | |
| 517 | - | |
| 518 | -structure SourceRegular (c : CorrectionState.Context Point) (u : CorrectionState.State Point) | |
| 519 | - (n : ℕ) (W : OffplaneCorrectionExtensions.Window coord a b) : Prop where | |
| 520 | - frame : (contextFrame c n).Regular (LocalRankDefect.positiveDomain W.carrier) | |
| 521 | - base : ∀ i, ContDiffOn ℝ ∞ (fun x => contextBase c n x i) (LocalRankDefect.positiveDomain W.carrier) | |
| 522 | - mean : ∀ i, ContDiffOn ℝ ∞ (fun x => stateMean u n x i) (LocalRankDefect.positiveDomain W.carrier) | |
| 523 | - | |
| 524 | -theorem HarmonicPrimitives.source_smooth (hc : 0 < coord) (hc1 : coord < 1) | |
| 525 | - (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (j : ℤ) (n : ℕ) | |
| 526 | - (h : SourceRegular c u n W) : | |
| 527 | - ContDiffOn ℝ ∞ | |
| 528 | - (ParticularWaveAssembly.residualSource c u p.continuedBlock p.continuedGaussian p.continuedAlias j n) | |
| 529 | - (PhysicalMeanDomain.slowDomain W.carrier) := by | |
| 530 | - have hs (c : Coefficients Point) (e : ∀ j, FieldContinuation W (c j)) : | |
| 531 | - SmoothCoefficients (LocalRankDefect.positiveDomain W.carrier) (continuedCoefficients c e) := | |
| 532 | - fun j => (continuedCoefficients_smooth c e j).mono (fun _ hx => hx.2) | |
| 533 | - have hpos := LabelData.waveResidualCoefficients_smooth | |
| 534 | - (LocalRankDefect.positiveDomain_open W.isOpen) h.frame _ _ h.base h.mean | |
| 535 | - (ofBlock p.continuedBlock p.continuedGaussian p.continuedAlias n) | |
| 536 | - ⟨p.phase_smooth n, fun i => (hs _ (p.velocity n i)).realCoefficients, (hs _ (p.pressure n)).realCoefficients⟩ | |
| 537 | - (fun i => hs _ (p.gaussian n i)) (fun i => hs _ (p.aliasError n i)) | |
| 538 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 539 | - intro x hx | |
| 540 | - by_cases hr : 0 < x.1 | |
| 541 | - · apply contDiffAt_pi.mpr | |
| 542 | - intro i | |
| 543 | - exact (hpos i j).contDiffAt ((LocalRankDefect.positiveDomain_open W.isOpen).mem_nhds ⟨hr, hx⟩) | |
| 544 | - · apply contDiffAt_const.congr_of_eventuallyEq | |
| 545 | - apply p.source_zero_germ hc hc1 c u j n hx | |
| 546 | - intro hh | |
| 547 | - have hlo := (W.left _ hx).trans hh.1 | |
| 548 | - exact hr (lt_of_lt_of_le W.lower_pos hlo) | |
| 549 | - | |
| 550 | -theorem HarmonicPrimitives.source_supported (hc : 0 < coord) (hc1 : coord < 1) | |
| 551 | - (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (j : ℤ) (n : ℕ) : | |
| 552 | - RadialSupport a b (OffplaneCorrectionExtensions.stableLength coord) W.carrier | |
| 553 | - (ParticularWaveAssembly.residualSource c u p.continuedBlock p.continuedGaussian p.continuedAlias j n) := by | |
| 554 | - intro x hx hn | |
| 555 | - by_contra hr | |
| 556 | - exact hn (p.source_zero_germ hc hc1 c u j n hx hr).self_of_nhds | |
| 557 | - | |
| 558 | -theorem HarmonicPrimitives.source_agrees | |
| 559 | - (c c₀ : CorrectionState.Context Point) (u u₀ : CorrectionState.State Point) | |
| 560 | - (hops : c.operators = c₀.operators) | |
| 561 | - (hbase : ∀ n i, OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 562 | - (fun x => contextBase c n x i) (fun x => contextBase c₀ n x i)) | |
| 563 | - (hmean : ∀ n i, OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 564 | - (fun x => stateMean u n x i) (fun x => stateMean u₀ n x i)) | |
| 565 | - (j : ℤ) (n : ℕ) : | |
| 566 | - OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 567 | - (ParticularWaveAssembly.residualSource c u p.continuedBlock p.continuedGaussian p.continuedAlias j n) | |
| 568 | - (ParticularWaveAssembly.residualSource c₀ u₀ block G A j n) := by | |
| 569 | - have hframe : contextFrame c n = contextFrame c₀ n := by simp only [contextFrame, hops] | |
| 570 | - have hb : ∀ i, CoeffEqOn (PhysicalMeanDomain.slowDomain (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow)) | |
| 571 | - (HarmonicFields.constantCoefficient (fun x => contextBase c n x i + stateMean u n x i)) | |
| 572 | - (HarmonicFields.constantCoefficient (fun x => contextBase c₀ n x i + stateMean u₀ n x i)) := by | |
| 573 | - intro i | |
| 574 | - apply CoeffEqOn.constant | |
| 575 | - intro x hx | |
| 576 | - exact congrArg₂ (· + ·) (hbase n i hx) (hmean n i hx) | |
| 577 | - have he (i : Fin 3) := | |
| 578 | - (((nonlinearResidual_eqOn (PhysicalMeanDomain.slowDomain_open (W.isOpen.inter OffplaneCorrectionExtensions.positiveSlow_open)) | |
| 579 | - (contextFrame c₀ n) (block.frequency n) (block.angularFrequency n) (p.phase_agrees n) hb | |
| 580 | - (fun i => (continuedCoefficients_agrees _ (p.velocity n i)).realProjection) | |
| 581 | - (continuedCoefficients_agrees _ (p.pressure n)).realProjection i).sub | |
| 582 | - (continuedCoefficients_agrees _ (p.gaussian n i))).sub | |
| 583 | - (continuedCoefficients_agrees _ (p.aliasError n i))).realProjection.nonconstant | |
| 584 | - intro x hx | |
| 585 | - funext i | |
| 586 | - simp only [ParticularWaveAssembly.residualSource, residualBlock, ofBlock, | |
| 587 | - LabelData.waveResidualCoefficients, LabelData.residualCoefficients, | |
| 588 | - HarmonicPrimitives.continuedBlock, HarmonicPrimitives.continuedGaussian, | |
| 589 | - HarmonicPrimitives.continuedAlias, hframe] | |
| 590 | - exact he i j hx | |
| 591 | - | |
| 592 | -noncomputable def HarmonicPrimitives.sourceContinuation (hc : 0 < coord) (hc1 : coord < 1) | |
| 593 | - (c c₀ : CorrectionState.Context Point) (u u₀ : CorrectionState.State Point) | |
| 594 | - (hops : c.operators = c₀.operators) | |
| 595 | - (hbase : ∀ n i, OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 596 | - (fun x => contextBase c n x i) (fun x => contextBase c₀ n x i)) | |
| 597 | - (hmean : ∀ n i, OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 598 | - (fun x => stateMean u n x i) (fun x => stateMean u₀ n x i)) | |
| 599 | - (j : ℤ) (n : ℕ) (h : SourceRegular c u n W) : | |
| 600 | - FieldContinuation W (ParticularWaveAssembly.residualSource c₀ u₀ block G A j n) where | |
| 601 | - value := ParticularWaveAssembly.residualSource c u p.continuedBlock p.continuedGaussian p.continuedAlias j n | |
| 602 | - smooth := p.source_smooth hc hc1 c u j n h | |
| 603 | - supported := p.source_supported hc hc1 c u j n | |
| 604 | - agrees := p.source_agrees c c₀ u u₀ hops hbase hmean j n | |
| 605 | - | |
| 606 | -end SourceConstruction | |
| 607 | - | |
| 608 | -section ActualSource | |
| 609 | - | |
| 610 | -open HarmonicResidual | |
| 611 | - | |
| 612 | -variable {F : OutgoingProfile.Profile} {W₀ : NominalProfile.Witness F} | |
| 613 | - (H : NominalConeAssembly.Certificate W₀) {ld : ModulatedProfileAssembly.LoopData W₀} | |
| 614 | - (v : ModulatedProfileAssembly.Witness ld) (upper : ℝ) (B : ℕ) (index : ℕ → ℕ) | |
| 615 | - {P : SignedStressPrimitive.Patch} | |
| 616 | - (W : OffplaneCorrectionExtensions.Window (2 * F.data.h) P.a P.b) | |
| 617 | - {u : CorrectionState.State Point} (inputs : SignedRequestContinuation.Primitives P W u) | |
| 618 | - | |
| 619 | -theorem actual_source_regular (n : ℕ) : | |
| 620 | - SourceRegular (SupportedActualContext.context H v upper B index) inputs.state n W := by | |
| 621 | - let c := SupportedActualContext.context H v upper B index | |
| 622 | - have ho := SignedRequestContinuation.actual_operators_local H v upper B index W | |
| 623 | - have hb := SignedRequestContinuation.actual_base_smooth H v upper B index W | |
| 624 | - refine ⟨?_, ?_, ?_⟩ | |
| 625 | - · apply contextFrame_regular | |
| 626 | - · change ContDiffOn ℝ ∞ (ActualCorrectionModels.context H v upper B index).operators.radius _ | |
| 627 | - rw [ho.radius_eq] | |
| 628 | - exact contDiffOn_fst | |
| 629 | - · intro x hx | |
| 630 | - change (ActualCorrectionModels.context H v upper B index).operators.radius x ≠ 0 | |
| 631 | - rw [ho.radius_eq] | |
| 632 | - exact hx.1.ne' | |
| 633 | - · exact ho.radialProfile | |
| 634 | - · intro i | |
| 635 | - fin_cases i | |
| 636 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hb.radial n) | |
| 637 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hb.angular n) | |
| 638 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hb.axial n) | |
| 639 | - · intro i | |
| 640 | - fin_cases i | |
| 641 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((inputs.radial n).smooth.mono (fun _ hx => hx.2)) | |
| 642 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((inputs.angular n).smooth.mono (fun _ hx => hx.2)) | |
| 643 | - · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((inputs.axial n).smooth.mono (fun _ hx => hx.2)) | |
| 644 | - | |
| 645 | -/-- The source continuation is computed from the actual supported context, | |
| 646 | -the incoming continued mean, and the continued per-label coefficients. -/ | |
| 647 | -noncomputable def actualSourceContinuation | |
| 648 | - {block : CorrectionState.HarmonicBlock Point} {G A : BlockCoefficients Point} | |
| 649 | - (p : HarmonicPrimitives W block G A) (j : ℤ) (n : ℕ) : | |
| 650 | - FieldContinuation W (ParticularWaveAssembly.residualSource | |
| 651 | - (CommonBaseContext.context H v upper B index) u block G A j n) := by | |
| 652 | - apply p.sourceContinuation (by linarith [F.data.h_pos]) (by linarith [F.data.h_lt_half]) | |
| 653 | - (SupportedActualContext.context H v upper B index) (CommonBaseContext.context H v upper B index) | |
| 654 | - inputs.state u rfl | |
| 655 | - · intro n i x hx | |
| 656 | - have hb := SupportedActualContext.context_base_agrees H v upper B index W.carrier | |
| 657 | - fin_cases i | |
| 658 | - · exact congrArg Complex.ofReal (hb.radial n hx) | |
| 659 | - · exact congrArg Complex.ofReal (hb.angular n hx) | |
| 660 | - · exact congrArg Complex.ofReal (hb.axial n hx) | |
| 661 | - · intro n i x hx | |
| 662 | - fin_cases i | |
| 663 | - · exact congrArg Complex.ofReal ((inputs.radial n).agrees hx) | |
| 664 | - · exact congrArg Complex.ofReal ((inputs.angular n).agrees hx) | |
| 665 | - · exact congrArg Complex.ofReal ((inputs.axial n).agrees hx) | |
| 666 | - · exact actual_source_regular H v upper B index W inputs n | |
| 667 | - | |
| 668 | -end ActualSource | |
| 669 | - | |
| 670 | -section SupportedSourceSmoothness | |
| 671 | - | |
| 672 | -open HarmonicResidual | |
| 673 | - | |
| 674 | -variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 675 | - | |
| 676 | -/-- A local source-smoothness endpoint for actual iteration inputs. | |
| 677 | -The differential coefficients need only be smooth where the label lives; | |
| 678 | -the exact closed support supplies zero germs at all remaining points. -/ | |
| 679 | -theorem source_contDiffOn_of_support | |
| 680 | - (c : CorrectionState.Context D) (u : CorrectionState.State D) | |
| 681 | - (b : CorrectionState.HarmonicBlock D) (G A : BlockCoefficients D) | |
| 682 | - {U V : Set D} (hU : IsOpen U) (hV : IsOpen V) {K : ℕ → Set D} | |
| 683 | - (hK : ∀ n, IsClosed (K n)) (hKV : ∀ n, K n ∩ U ⊆ V) | |
| 684 | - (hs : HarmonicSourceSupport.InputSupportOn U K b G A) | |
| 685 | - (n : ℕ) (j : ℤ) | |
| 686 | - (hg : (contextFrame c n).Regular V) | |
| 687 | - (hb : ∀ i, ContDiffOn ℝ ∞ (fun x => contextBase c n x i) V) | |
| 688 | - (hm : ∀ i, ContDiffOn ℝ ∞ (fun x => stateMean u n x i) V) | |
| 689 | - (hphase : ContDiffOn ℝ ∞ (b.phase n) V) | |
| 690 | - (hvelocity : ∀ i, SmoothCoefficients V (b.velocity n i)) | |
| 691 | - (hpressure : SmoothCoefficients V (b.pressure n)) | |
| 692 | - (hgaussian : ∀ i, SmoothCoefficients V (G n i)) | |
| 693 | - (halias : ∀ i, SmoothCoefficients V (A n i)) : | |
| 694 | - ContDiffOn ℝ ∞ (ParticularWaveAssembly.residualSource c u b G A j n) U := by | |
| 695 | - have hlocal := LabelData.waveResidualCoefficients_smooth hV hg _ _ hb hm | |
| 696 | - (ofBlock b G A n) ⟨hphase, fun i => (hvelocity i).realCoefficients, hpressure.realCoefficients⟩ | |
| 697 | - hgaussian halias | |
| 698 | - apply hU.contDiffOn_iff.mpr | |
| 699 | - intro x hx | |
| 700 | - by_cases hv : x ∈ V | |
| 701 | - · exact contDiffAt_pi.mpr (fun i => (hlocal i j).contDiffAt (hV.mem_nhds hv)) | |
| 702 | - · exact contDiffAt_const.congr_of_eventuallyEq | |
| 703 | - (HarmonicSourceSupport.residualSource_zero_germ_on c u b G A hU hK hs j n hx | |
| 704 | - (fun hk => hv (hKV n ⟨hk, hx⟩))) | |
| 705 | - | |
| 706 | -end SupportedSourceSmoothness | |
| 707 | - | |
| 708 | -section NativeReadout | |
| 709 | - | |
| 710 | -variable {V E F : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 711 | - [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 712 | - [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 713 | - | |
| 714 | -/-- A linear native readout includes the actual projected pressure: one | |
| 715 | -term acts on the solved vector, and the other on the current source. -/ | |
| 716 | -noncomputable def readoutCopy (d : LinearData Parameter V E) (g : Geometry) | |
| 717 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) | |
| 718 | - (Q : Chart → E →L[ℝ] F) (B : Chart → V →L[ℝ] F) (k : Frequency) (x : Chart) : F := | |
| 719 | - cutoff (g.coordinates k x.2) • | |
| 720 | - (Q (x.1, g.coordinates k x.2) (d.copySolve g hle k x) + | |
| 721 | - B (x.1, g.coordinates k x.2) (d.source x)) | |
| 722 | - | |
| 723 | -noncomputable def readoutCommon (d : LinearData Parameter V E) (g : Geometry) | |
| 724 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) | |
| 725 | - (Q : Chart → E →L[ℝ] F) (B : Chart → V →L[ℝ] F) (x : Chart) : F := | |
| 726 | - ∑' k, readoutCopy d g hle cutoff Q B k x | |
| 727 | - | |
| 728 | -theorem readoutCommon_zero_of_source_zero (d : LinearData Parameter V E) (g : Geometry) | |
| 729 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) | |
| 730 | - (Q : Chart → E →L[ℝ] F) (B : Chart → V →L[ℝ] F) (p : Parameter) | |
| 731 | - (hf : ∀ Y, d.source (p, Y) = 0) (Y : Plane) : | |
| 732 | - readoutCommon d g hle cutoff Q B (p, Y) = 0 := by | |
| 733 | - have hc (k : Frequency) : d.copySolve g hle k (p, Y) = 0 := | |
| 734 | - d.copySolve_zero_of_source_zero g hle k p Y (fun _ _ => hf _) | |
| 735 | - simp only [readoutCommon, readoutCopy, hc, hf, map_zero, add_zero, smul_zero, tsum_zero] | |
| 736 | - | |
| 737 | -theorem readoutCommon_supported (d : LinearData Parameter V E) (g : Geometry) | |
| 738 | - {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) | |
| 739 | - (Q : Chart → E →L[ℝ] F) (B : Chart → V →L[ℝ] F) | |
| 740 | - {a b : ℝ} {ell : Slow → ℝ} {U : Set Slow} | |
| 741 | - (hf : RadialSupport a b ell U (fun x => d.source (toChart x))) : | |
| 742 | - RadialSupport a b ell U (fun x => readoutCommon d g hle cutoff Q B (toChart x)) := by | |
| 743 | - intro x hx hn | |
| 744 | - by_contra hr | |
| 745 | - apply hn | |
| 746 | - apply readoutCommon_zero_of_source_zero | |
| 747 | - intro Y | |
| 748 | - by_contra hz | |
| 749 | - exact hr (hf (x.1, (x.2.1, Y)) hx hz) | |
| 750 | - | |
| 751 | -theorem readoutCopy_smooth (d : LinearData Parameter V E) (g : Geometry) | |
| 752 | - {entry exit : ℝ} (hle : entry ≤ exit) {U : Set Parameter} (hU : IsOpen U) | |
| 753 | - (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) | |
| 754 | - (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) | |
| 755 | - (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) | |
| 756 | - {Q : Chart → E →L[ℝ] F} {B : Chart → V →L[ℝ] F} | |
| 757 | - (hQ : ContDiffOn ℝ ∞ Q (U ×ˢ univ)) (hR : ContDiffOn ℝ ∞ B (U ×ˢ univ)) | |
| 758 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) | |
| 759 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) (k : Frequency) : | |
| 760 | - ContDiffOn ℝ ∞ (readoutCopy d g hle cutoff Q B k) (U ×ˢ univ) := by | |
| 761 | - apply (hU.prod isOpen_univ).contDiffOn_iff.mpr | |
| 762 | - intro x hx | |
| 763 | - have hcoord : ContDiff ℝ ∞ (fun y : Chart => g.coordinates k y.2) := | |
| 764 | - (g.coordinates_contDiff k).comp contDiff_snd | |
| 765 | - by_cases hk : g.coordinates k x.2 ∈ tsupport cutoff | |
| 766 | - · have hnative : ContDiff ℝ ∞ (fun y : Chart => (y.1, g.coordinates k y.2)) := | |
| 767 | - contDiff_fst.prodMk hcoord | |
| 768 | - have hn : (x.1, g.coordinates k x.2) ∈ U ×ˢ (univ : Set Plane) := ⟨hx.1, mem_univ _⟩ | |
| 769 | - have hQs := (hQ.contDiffAt ((hU.prod isOpen_univ).mem_nhds hn)).comp x hnative.contDiffAt | |
| 770 | - have hRs := (hR.contDiffAt ((hU.prod isOpen_univ).mem_nhds hn)).comp x hnative.contDiffAt | |
| 771 | - exact (hcutoff.comp hcoord).contDiffAt.smul | |
| 772 | - ((hQs.clm_apply (d.copySolve_contDiffAt g hle hU k hA hB hf hx.1 (hinside hk).2)).add | |
| 773 | - (hRs.clm_apply (hf.contDiffAt ((hU.prod isOpen_univ).mem_nhds hx)))) | |
| 774 | - · have hzout : readoutCopy d g hle cutoff Q B k =ᶠ[𝓝 x] (fun _ => (0 : F)) := by | |
| 775 | - have hz := (notMem_tsupport_iff_eventuallyEq.mp hk).comp_tendsto hcoord.continuous.continuousAt | |
| 776 | - filter_upwards [hz] with y hy | |
| 777 | - have hy0 : cutoff (g.coordinates k y.2) = 0 := hy | |
| 778 | - simp only [readoutCopy, hy0, zero_smul] | |
| 779 | - exact contDiffAt_const.congr_of_eventuallyEq hzout | |
| 780 | - | |
| 781 | -theorem readoutCommon_smooth (d : LinearData Parameter V E) (g : Geometry) | |
| 782 | - {entry exit : ℝ} (hle : entry ≤ exit) {U : Set Parameter} (hU : IsOpen U) | |
| 783 | - (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) | |
| 784 | - (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) | |
| 785 | - (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) | |
| 786 | - {Q : Chart → E →L[ℝ] F} {B : Chart → V →L[ℝ] F} | |
| 787 | - (hQ : ContDiffOn ℝ ∞ Q (U ×ˢ univ)) (hR : ContDiffOn ℝ ∞ B (U ×ˢ univ)) | |
| 788 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 789 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 790 | - ContDiffOn ℝ ∞ (readoutCommon d g hle cutoff Q B) (U ×ˢ univ) := by | |
| 791 | - apply (hU.prod isOpen_univ).contDiffOn_iff.mpr | |
| 792 | - intro x hx | |
| 793 | - obtain ⟨T, hT⟩ := g.finite_copy_cutoffs hcompact (‖x.2‖ + 1) | |
| 794 | - have he : readoutCommon d g hle cutoff Q B =ᶠ[𝓝 x] | |
| 795 | - fun y => ∑ k ∈ T, readoutCopy d g hle cutoff Q B k y := by | |
| 796 | - filter_upwards [(isOpen_lt continuous_snd.norm continuous_const).mem_nhds | |
| 797 | - (show ‖x.2‖ < ‖x.2‖ + 1 by linarith)] with y hy | |
| 798 | - apply tsum_eq_sum | |
| 799 | - intro k hk | |
| 800 | - simp only [readoutCopy, hT y.2 hy.le k hk, zero_smul] | |
| 801 | - apply (ContDiffAt.sum (fun k (_ : k ∈ T) => | |
| 802 | - (readoutCopy_smooth d g hle hU hA hB hf hQ hR hcutoff hinside k).contDiffAt | |
| 803 | - ((hU.prod isOpen_univ).mem_nhds hx))).congr_of_eventuallyEq he | |
| 804 | - | |
| 805 | -structure ReadoutPrimitives {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 806 | - (Q : Chart → E →L[ℝ] F) (B : Chart → V →L[ℝ] F) where | |
| 807 | - solutionMap : Chart → E →L[ℝ] F | |
| 808 | - sourceMap : Chart → V →L[ℝ] F | |
| 809 | - solutionMap_smooth : ContDiffOn ℝ ∞ solutionMap (positiveParameters W.carrier ×ˢ univ) | |
| 810 | - sourceMap_smooth : ContDiffOn ℝ ∞ sourceMap (positiveParameters W.carrier ×ˢ univ) | |
| 811 | - solutionMap_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, | |
| 812 | - solutionMap (p, Y) = Q (p, Y) | |
| 813 | - sourceMap_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, | |
| 814 | - sourceMap (p, Y) = B (p, Y) | |
| 815 | - | |
| 816 | -namespace ReadoutPrimitives | |
| 817 | - | |
| 818 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 819 | - {original : LinearData Parameter V E} (d : ReferencePrimitives W original) | |
| 820 | - {Q : Chart → E →L[ℝ] F} {B : Chart → V →L[ℝ] F} (r : ReadoutPrimitives W Q B) | |
| 821 | - | |
| 822 | -theorem supported (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) : | |
| 823 | - RadialSupport a b (OffplaneCorrectionExtensions.stableLength coord) W.carrier | |
| 824 | - (fun x => readoutCommon d.data g hle cutoff r.solutionMap r.sourceMap (toChart x)) := | |
| 825 | - readoutCommon_supported d.data g hle cutoff r.solutionMap r.sourceMap d.source.supported | |
| 826 | - | |
| 827 | -theorem smooth (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 828 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 829 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 830 | - ContDiffOn ℝ ∞ (fun x => readoutCommon d.data g hle cutoff r.solutionMap r.sourceMap (toChart x)) | |
| 831 | - (PhysicalMeanDomain.slowDomain W.carrier) := by | |
| 832 | - have hr := readoutCommon_smooth d.data g hle (positiveParameters_open W.isOpen) | |
| 833 | - d.coefficient_smooth d.forcingMap_smooth d.source_smooth r.solutionMap_smooth r.sourceMap_smooth | |
| 834 | - hcutoff hcompact hinside | |
| 835 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 836 | - intro x hx | |
| 837 | - by_cases hpos : 0 < x.1 | |
| 838 | - · exact (hr.contDiffAt (((positiveParameters_open W.isOpen).prod isOpen_univ).mem_nhds | |
| 839 | - (show toChart x ∈ positiveParameters W.carrier ×ˢ univ from ⟨⟨hpos, hx⟩, mem_univ _⟩))).comp | |
| 840 | - x toChart_smooth.contDiffAt | |
| 841 | - · apply contDiffAt_const.congr_of_eventuallyEq | |
| 842 | - filter_upwards [(PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx, | |
| 843 | - (isOpen_lt continuous_fst continuous_const).mem_nhds | |
| 844 | - (show x.1 < W.lower from lt_of_le_of_lt (le_of_not_gt hpos) W.lower_pos)] with y hy hyr | |
| 845 | - by_contra hn | |
| 846 | - exact (not_lt_of_ge ((W.left _ hy).trans (r.supported d g hle cutoff y hy hn).1)) hyr | |
| 847 | - | |
| 848 | -theorem agrees (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) (cutoff : Plane → ℝ) : | |
| 849 | - OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 850 | - (fun x => readoutCommon d.data g hle cutoff r.solutionMap r.sourceMap (toChart x)) | |
| 851 | - (fun x => readoutCommon original g hle cutoff Q B (toChart x)) := by | |
| 852 | - intro x hx | |
| 853 | - by_cases hp : 0 < x.1 | |
| 854 | - · apply tsum_congr | |
| 855 | - intro k | |
| 856 | - have hA := d.coefficient_agrees (x.1, x.2.1) hp hx.1 hx.2 | |
| 857 | - have hB := d.forcingMap_agrees (x.1, x.2.1) hp hx.1 hx.2 | |
| 858 | - have hf (Y : Plane) : d.data.source ((x.1, x.2.1), Y) = original.source ((x.1, x.2.1), Y) := | |
| 859 | - d.source.agrees (x := (x.1, (x.2.1, Y))) hx | |
| 860 | - simp only [readoutCopy, toChart, r.solutionMap_agrees (x.1, x.2.1) hp hx.1 hx.2, | |
| 861 | - r.sourceMap_agrees (x.1, x.2.1) hp hx.1 hx.2, hf, | |
| 862 | - copySolve_eq_of_fiber d.data original g hle k _ _ hA hB hf] | |
| 863 | - · have hf (Y : Plane) : d.source.value (x.1, (x.2.1, Y)) = 0 := | |
| 864 | - d.source.zero_below hx.1 (lt_of_le_of_lt (le_of_not_gt hp) W.lower_pos) | |
| 865 | - have ho (Y : Plane) : original.source ((x.1, x.2.1), Y) = 0 := | |
| 866 | - (d.source.agrees (x := (x.1, (x.2.1, Y))) hx).symm.trans (hf Y) | |
| 867 | - change readoutCommon d.data g hle cutoff r.solutionMap r.sourceMap ((x.1, x.2.1), x.2.2) = | |
| 868 | - readoutCommon original g hle cutoff Q B ((x.1, x.2.1), x.2.2) | |
| 869 | - rw [readoutCommon_zero_of_source_zero d.data g hle cutoff r.solutionMap r.sourceMap (x.1, x.2.1) hf, | |
| 870 | - readoutCommon_zero_of_source_zero original g hle cutoff Q B (x.1, x.2.1) ho] | |
| 871 | - | |
| 872 | -noncomputable def continuation (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 873 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 874 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 875 | - FieldContinuation W (fun x => readoutCommon original g hle cutoff Q B (toChart x)) where | |
| 876 | - value x := readoutCommon d.data g hle cutoff r.solutionMap r.sourceMap (toChart x) | |
| 877 | - smooth := r.smooth d g hle hcutoff hcompact hinside | |
| 878 | - supported := r.supported d g hle cutoff | |
| 879 | - agrees := r.agrees d g hle cutoff | |
| 880 | - | |
| 881 | -end ReadoutPrimitives | |
| 882 | - | |
| 883 | -end NativeReadout | |
| 884 | - | |
| 885 | -section TangentGeometry | |
| 886 | - | |
| 887 | -open scoped InnerProductSpace | |
| 888 | - | |
| 889 | -abbrev Space := ProblemStatement.Space | |
| 890 | - | |
| 891 | -noncomputable def pressureSolutionMap (frequency : ℝ) (N Nd : Space) (A : Space →L[ℝ] Space) : | |
| 892 | - Space →L[ℝ] ℂ := | |
| 893 | - ((Complex.I / (frequency : ℂ)) • Complex.ofRealCLM).comp | |
| 894 | - ((⟪N, N⟫_ℝ)⁻¹ • ((innerSL ℝ N).comp A - innerSL ℝ Nd)) | |
| 895 | - | |
| 896 | -noncomputable def pressureSourceMap (frequency : ℝ) (N : Space) : Space →L[ℝ] ℂ := | |
| 897 | - ((Complex.I / (frequency : ℂ)) • Complex.ofRealCLM).comp ((⟪N, N⟫_ℝ)⁻¹ • innerSL ℝ N) | |
| 898 | - | |
| 899 | -theorem pressure_maps_eq (frequency : ℝ) (N Nd u f : Space) (A : Space →L[ℝ] Space) : | |
| 900 | - pressureSolutionMap frequency N Nd A u + pressureSourceMap frequency N f = | |
| 901 | - Complex.I * (TangentProjection.pressureCoefficient N Nd u (A u) f : ℂ) / (frequency : ℂ) := by | |
| 902 | - simp only [pressureSolutionMap, pressureSourceMap, ContinuousLinearMap.comp_apply, | |
| 903 | - _root_.smul_apply, _root_.sub_apply, innerSL_apply_apply, | |
| 904 | - Complex.ofRealCLM_apply, smul_eq_mul, TangentProjection.pressureCoefficient, Complex.ofReal_mul, Complex.ofReal_sub, | |
| 905 | - Complex.ofReal_add, Complex.ofReal_inv, Complex.ofReal_div] | |
| 906 | - ring | |
| 907 | - | |
| 908 | -theorem pressure_maps_smooth {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 909 | - {U : Set D} (frequency : ℝ) {N Nd : D → Space} {A : D → Space →L[ℝ] Space} | |
| 910 | - (hN : ContDiffOn ℝ ∞ N U) (hNd : ContDiffOn ℝ ∞ Nd U) (hA : ContDiffOn ℝ ∞ A U) | |
| 911 | - (hn : ∀ x ∈ U, N x ≠ 0) : | |
| 912 | - ContDiffOn ℝ ∞ (fun x => pressureSolutionMap frequency (N x) (Nd x) (A x)) U ∧ | |
| 913 | - ContDiffOn ℝ ∞ (fun x => pressureSourceMap frequency (N x)) U := by | |
| 914 | - have hden := (hN.inner ℝ hN).inv (fun x hx => inner_self_ne_zero.mpr (hn x hx)) | |
| 915 | - have hi := (innerSL ℝ).contDiff.comp_contDiffOn hN | |
| 916 | - have hid := (innerSL ℝ).contDiff.comp_contDiffOn hNd | |
| 917 | - exact ⟨contDiffOn_const.clm_comp (hden.smul ((hi.clm_comp hA).sub hid)), | |
| 918 | - contDiffOn_const.clm_comp (hden.smul hi)⟩ | |
| 919 | - | |
| 920 | -theorem projectedOperator_smooth {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 921 | - {U : Set D} {N Nd : D → Space} {A : D → Space →L[ℝ] Space} {damping : D → ℝ} | |
| 922 | - (hN : ContDiffOn ℝ ∞ N U) (hNd : ContDiffOn ℝ ∞ Nd U) (hA : ContDiffOn ℝ ∞ A U) | |
| 923 | - (hd : ContDiffOn ℝ ∞ damping U) (hn : ∀ x ∈ U, N x ≠ 0) : | |
| 924 | - ContDiffOn ℝ ∞ (fun x => TangentODE.projectedOperator (N x) (Nd x) (A x) (damping x)) U ∧ | |
| 925 | - ContDiffOn ℝ ∞ (fun x => negativeTangentProjection (N x)) U := by | |
| 926 | - have hden := (hN.inner ℝ hN).inv (fun x hx => inner_self_ne_zero.mpr (hn x hx)) | |
| 927 | - have hi := (innerSL ℝ).contDiff.comp_contDiffOn hN | |
| 928 | - have hid := (innerSL ℝ).contDiff.comp_contDiffOn hNd | |
| 929 | - constructor | |
| 930 | - · exact ((hA.neg.add (((hi.clm_comp hA).sub hid).smulRight (hden.smul hN))).sub | |
| 931 | - (hd.smul contDiffOn_const)) | |
| 932 | - · exact (contDiffOn_const.sub (hi.smulRight (hden.smul hN))).neg | |
| 933 | - | |
| 934 | -/-- Only the primitive normal, normal motion, base action, and damping | |
| 935 | -are continued. The inhomogeneous source is supplied separately. -/ | |
| 936 | -structure TangentGeometry {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 937 | - (t : TangentData Parameter Space) where | |
| 938 | - normal : Chart → Space | |
| 939 | - normalDot : Chart → Space | |
| 940 | - action : Chart → Space →L[ℝ] Space | |
| 941 | - damping : Chart → ℝ | |
| 942 | - normal_smooth : ContDiffOn ℝ ∞ normal (positiveParameters W.carrier ×ˢ univ) | |
| 943 | - normalDot_smooth : ContDiffOn ℝ ∞ normalDot (positiveParameters W.carrier ×ˢ univ) | |
| 944 | - action_smooth : ContDiffOn ℝ ∞ action (positiveParameters W.carrier ×ˢ univ) | |
| 945 | - damping_smooth : ContDiffOn ℝ ∞ damping (positiveParameters W.carrier ×ˢ univ) | |
| 946 | - normal_ne : ∀ x ∈ positiveParameters W.carrier ×ˢ univ, normal x ≠ 0 | |
| 947 | - normal_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, normal (p,Y) = t.normal (p,Y) | |
| 948 | - normalDot_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, normalDot (p,Y) = t.normalDot (p,Y) | |
| 949 | - action_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, action (p,Y) = t.action (p,Y) | |
| 950 | - damping_agrees : ∀ p, p.1 > 0 → p.2 ∈ W.carrier → p.2.1 > 0 → ∀ Y, damping (p,Y) = t.damping (p,Y) | |
| 951 | - | |
| 952 | -namespace TangentGeometry | |
| 953 | - | |
| 954 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 955 | - {t : TangentData Parameter Space} (v : TangentGeometry W t) | |
| 956 | - (source : FieldContinuation W (fun x => t.source (toChart x))) | |
| 957 | - | |
| 958 | -noncomputable def referencePrimitives : ReferencePrimitives W t.linearData where | |
| 959 | - coefficient x := TangentODE.projectedOperator (v.normal x) (v.normalDot x) (v.action x) (v.damping x) | |
| 960 | - forcingMap x := negativeTangentProjection (v.normal x) | |
| 961 | - coefficient_smooth := (projectedOperator_smooth v.normal_smooth v.normalDot_smooth v.action_smooth | |
| 962 | - v.damping_smooth v.normal_ne).1 | |
| 963 | - forcingMap_smooth := (projectedOperator_smooth v.normal_smooth v.normalDot_smooth v.action_smooth | |
| 964 | - v.damping_smooth v.normal_ne).2 | |
| 965 | - source := source | |
| 966 | - coefficient_agrees p hp hW ht Y := by | |
| 967 | - simp only [v.normal_agrees p hp hW ht, v.normalDot_agrees p hp hW ht, | |
| 968 | - v.action_agrees p hp hW ht, v.damping_agrees p hp hW ht, TangentData.linearData] | |
| 969 | - forcingMap_agrees p hp hW ht Y := by | |
| 970 | - simp only [v.normal_agrees p hp hW ht, TangentData.linearData] | |
| 971 | - | |
| 972 | -noncomputable def pressurePrimitives (frequency : ℝ) : | |
| 973 | - ReadoutPrimitives W (fun x => pressureSolutionMap frequency (t.normal x) (t.normalDot x) (t.action x)) | |
| 974 | - (fun x => pressureSourceMap frequency (t.normal x)) where | |
| 975 | - solutionMap x := pressureSolutionMap frequency (v.normal x) (v.normalDot x) (v.action x) | |
| 976 | - sourceMap x := pressureSourceMap frequency (v.normal x) | |
| 977 | - solutionMap_smooth := (pressure_maps_smooth frequency v.normal_smooth v.normalDot_smooth v.action_smooth v.normal_ne).1 | |
| 978 | - sourceMap_smooth := (pressure_maps_smooth frequency v.normal_smooth v.normalDot_smooth v.action_smooth v.normal_ne).2 | |
| 979 | - solutionMap_agrees p hp hW ht Y := by | |
| 980 | - rw [v.normal_agrees p hp hW ht, v.normalDot_agrees p hp hW ht, v.action_agrees p hp hW ht] | |
| 981 | - sourceMap_agrees p hp hW ht Y := by rw [v.normal_agrees p hp hW ht] | |
| 982 | - | |
| 983 | -theorem readout_eq_pressure (frequency : ℝ) (g : Geometry) {entry exit : ℝ} | |
| 984 | - (hle : entry ≤ exit) (cutoff : Plane → ℝ) (x : Chart) : | |
| 985 | - readoutCommon t.linearData g hle cutoff | |
| 986 | - (fun x => pressureSolutionMap frequency (t.normal x) (t.normalDot x) (t.action x)) | |
| 987 | - (fun x => pressureSourceMap frequency (t.normal x)) x = | |
| 988 | - ∑' k : Frequency, cutoff (g.coordinates k x.2) • ParticularWaveBounds.copyPressure t g hle k frequency x := by | |
| 989 | - apply tsum_congr | |
| 990 | - intro k | |
| 991 | - simp only [readoutCopy, pressure_maps_eq, ParticularWaveBounds.copyPressure, | |
| 992 | - ParticularWaveBounds.copyPressureReal, ParticularWaveBounds.nativePoint, TangentData.linearData] | |
| 993 | - | |
| 994 | -noncomputable def pressureContinuation (frequency : ℝ) (g : Geometry) {entry exit : ℝ} | |
| 995 | - (hle : entry ≤ exit) {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) | |
| 996 | - (hcompact : HasCompactSupport cutoff) (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 997 | - FieldContinuation W (fun x => ∑' k : Frequency, | |
| 998 | - cutoff (g.coordinates k x.2.2) • ParticularWaveBounds.copyPressure t g hle k frequency (toChart x)) := by | |
| 999 | - let e := (v.pressurePrimitives frequency).continuation (v.referencePrimitives source) g hle hcutoff hcompact hinside | |
| 1000 | - refine ⟨e.value, e.smooth, e.supported, ?_⟩ | |
| 1001 | - intro x hx | |
| 1002 | - exact (e.agrees hx).trans (readout_eq_pressure frequency g hle cutoff (toChart x)) | |
| 1003 | - | |
| 1004 | -end TangentGeometry | |
| 1005 | - | |
| 1006 | -end TangentGeometry | |
| 1007 | - | |
| 1008 | -namespace FieldContinuation | |
| 1009 | - | |
| 1010 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 1011 | - {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {f g : Point → E} | |
| 1012 | - | |
| 1013 | -noncomputable def retarget (e : FieldContinuation W f) (h : ∀ x, f x = g x) : | |
| 1014 | - FieldContinuation W g where | |
| 1015 | - value := e.value | |
| 1016 | - smooth := e.smooth | |
| 1017 | - supported := e.supported | |
| 1018 | - agrees := fun x hx => (e.agrees hx).trans (h x) | |
| 1019 | - | |
| 1020 | -noncomputable def add (e : FieldContinuation W f) (d : FieldContinuation W g) : | |
| 1021 | - FieldContinuation W (fun x => f x + g x) where | |
| 1022 | - value x := e.value x + d.value x | |
| 1023 | - smooth := e.smooth.add d.smooth | |
| 1024 | - supported := by | |
| 1025 | - intro x hx hn | |
| 1026 | - by_contra hr | |
| 1027 | - have he : e.value x = 0 := by | |
| 1028 | - by_contra hz | |
| 1029 | - exact hr (e.supported x hx hz) | |
| 1030 | - have hd : d.value x = 0 := by | |
| 1031 | - by_contra hz | |
| 1032 | - exact hr (d.supported x hx hz) | |
| 1033 | - exact hn (by simp [he, hd]) | |
| 1034 | - agrees := fun x hx => congrArg₂ (· + ·) (e.agrees hx) (d.agrees hx) | |
| 1035 | - | |
| 1036 | -noncomputable def ofScalar {f : Point → ℝ} | |
| 1037 | - (e : OffplaneCorrectionExtensions.SupportedContinuation W f) : FieldContinuation W f := | |
| 1038 | - ⟨e.value, e.smooth, e.supported, e.agrees⟩ | |
| 1039 | - | |
| 1040 | -end FieldContinuation | |
| 1041 | - | |
| 1042 | -section ComplexReference | |
| 1043 | - | |
| 1044 | -open ParticularWaveBounds | |
| 1045 | - | |
| 1046 | -theorem commonVelocity_eq_parts (t : TangentData Parameter Space) (f : Chart → ComplexVector) | |
| 1047 | - (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) {cutoff : Plane → ℝ} | |
| 1048 | - (hc : HasCompactSupport cutoff) (x : Chart) : | |
| 1049 | - commonVelocity t f g hle cutoff x = | |
| 1050 | - CurlClassBounds.complexify ((realData t f).linearData.commonSolve g hle cutoff x) + | |
| 1051 | - Complex.I • CurlClassBounds.complexify ((imagData t f).linearData.commonSolve g hle cutoff x) := by | |
| 1052 | - obtain ⟨I, hI⟩ := g.finite_copy_cutoffs hc ‖x.2‖ | |
| 1053 | - have ht (k : Frequency) (hk : k ∉ I) : cutoff (g.coordinates k x.2) = 0 := hI _ le_rfl k hk | |
| 1054 | - simp only [commonVelocity, periodizedCopies, LinearData.commonSolve] | |
| 1055 | - rw [tsum_eq_sum (s := I) (fun k hk => by rw [ht k hk, zero_smul]), | |
| 1056 | - tsum_eq_sum (s := I) (fun k hk => by simp only [LinearData.localizedCopy, ht k hk, zero_smul]), | |
| 1057 | - tsum_eq_sum (s := I) (fun k hk => by simp only [LinearData.localizedCopy, ht k hk, zero_smul])] | |
| 1058 | - simp only [complexCopyVelocity, copyVelocity, LinearData.localizedCopy, | |
| 1059 | - smul_add, map_sum, map_smul, Finset.smul_sum, Finset.sum_add_distrib] | |
| 1060 | - congr 1 | |
| 1061 | - apply Finset.sum_congr rfl | |
| 1062 | - intro k hk | |
| 1063 | - exact smul_comm _ _ _ | |
| 1064 | - | |
| 1065 | -theorem commonPressure_eq_parts (t : TangentData Parameter Space) (f : Chart → ComplexVector) | |
| 1066 | - (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) {cutoff : Plane → ℝ} | |
| 1067 | - (hc : HasCompactSupport cutoff) (frequency : ℝ) (x : Chart) : | |
| 1068 | - commonPressure t f g hle cutoff frequency x = | |
| 1069 | - (∑' k : Frequency, cutoff (g.coordinates k x.2) • copyPressure (realData t f) g hle k frequency x) + | |
| 1070 | - Complex.I * (∑' k : Frequency, cutoff (g.coordinates k x.2) • copyPressure (imagData t f) g hle k frequency x) := by | |
| 1071 | - obtain ⟨I, hI⟩ := g.finite_copy_cutoffs hc ‖x.2‖ | |
| 1072 | - have ht (k : Frequency) (hk : k ∉ I) : cutoff (g.coordinates k x.2) = 0 := hI _ le_rfl k hk | |
| 1073 | - simp only [commonPressure, periodizedCopies] | |
| 1074 | - rw [tsum_eq_sum (s := I) (fun k hk => by rw [ht k hk, zero_smul]), | |
| 1075 | - tsum_eq_sum (s := I) (fun k hk => by rw [ht k hk, zero_smul]), | |
| 1076 | - tsum_eq_sum (s := I) (fun k hk => by rw [ht k hk, zero_smul])] | |
| 1077 | - simp only [complexCopyPressure, smul_add, Finset.sum_add_distrib, Finset.mul_sum] | |
| 1078 | - congr 1 | |
| 1079 | - apply Finset.sum_congr rfl | |
| 1080 | - intro k hk | |
| 1081 | - simp only [Algebra.smul_def] | |
| 1082 | - ring | |
| 1083 | - | |
| 1084 | -namespace TangentGeometry | |
| 1085 | - | |
| 1086 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 1087 | - {t : TangentData Parameter Space} (v : TangentGeometry W t) | |
| 1088 | - | |
| 1089 | -/-- Changing the forcing does not choose another frame or homogeneous ODE. -/ | |
| 1090 | -noncomputable def withSource (f : Chart → Space) : TangentGeometry W {t with source := f} where | |
| 1091 | - normal := v.normal | |
| 1092 | - normalDot := v.normalDot | |
| 1093 | - action := v.action | |
| 1094 | - damping := v.damping | |
| 1095 | - normal_smooth := v.normal_smooth | |
| 1096 | - normalDot_smooth := v.normalDot_smooth | |
| 1097 | - action_smooth := v.action_smooth | |
| 1098 | - damping_smooth := v.damping_smooth | |
| 1099 | - normal_ne := v.normal_ne | |
| 1100 | - normal_agrees := v.normal_agrees | |
| 1101 | - normalDot_agrees := v.normalDot_agrees | |
| 1102 | - action_agrees := v.action_agrees | |
| 1103 | - damping_agrees := v.damping_agrees | |
| 1104 | - | |
| 1105 | -noncomputable def continuedData (f : Chart → Space) : TangentData Parameter Space where | |
| 1106 | - normal := v.normal | |
| 1107 | - normalDot := v.normalDot | |
| 1108 | - action := v.action | |
| 1109 | - damping := v.damping | |
| 1110 | - source := f | |
| 1111 | - | |
| 1112 | -variable {f : Chart → ComplexVector} | |
| 1113 | - (source : FieldContinuation W (fun x => f (toChart x))) | |
| 1114 | - | |
| 1115 | -noncomputable def complexVelocityContinuation (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 1116 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 1117 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 1118 | - FieldContinuation W (fun x => commonVelocity t f g hle cutoff (toChart x)) := by | |
| 1119 | - let er := ((v.withSource (fun x => realPart (f x))).referencePrimitives (source.map realPart)).continuation | |
| 1120 | - g hle hcutoff hcompact hinside | |
| 1121 | - let ei := ((v.withSource (fun x => imagPart (f x))).referencePrimitives (source.map imagPart)).continuation | |
| 1122 | - g hle hcutoff hcompact hinside | |
| 1123 | - exact ((er.map CurlClassBounds.complexify).add | |
| 1124 | - (ei.map ((complexScale Complex.I).comp CurlClassBounds.complexify))).retarget | |
| 1125 | - (fun x => (commonVelocity_eq_parts t f g hle hcompact (toChart x)).symm) | |
| 1126 | - | |
| 1127 | -theorem complexVelocityContinuation_value (g : Geometry) {entry exit : ℝ} (hle : entry ≤ exit) | |
| 1128 | - {cutoff : Plane → ℝ} (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 1129 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) (x : Point) : | |
| 1130 | - (v.complexVelocityContinuation source g hle hcutoff hcompact hinside).value x = | |
| 1131 | - commonVelocity (v.continuedData (fun _ => 0)) (fun y => source.value (ofChart y)) | |
| 1132 | - g hle cutoff (toChart x) := by | |
| 1133 | - symm | |
| 1134 | - exact commonVelocity_eq_parts _ _ g hle hcompact (toChart x) | |
| 1135 | - | |
| 1136 | -noncomputable def complexPressureContinuation (frequency : ℝ) (g : Geometry) | |
| 1137 | - {entry exit : ℝ} (hle : entry ≤ exit) {cutoff : Plane → ℝ} | |
| 1138 | - (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 1139 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) : | |
| 1140 | - FieldContinuation W (fun x => commonPressure t f g hle cutoff frequency (toChart x)) := by | |
| 1141 | - let er := (v.withSource (fun x => realPart (f x))).pressureContinuation (source.map realPart) | |
| 1142 | - frequency g hle hcutoff hcompact hinside | |
| 1143 | - let ei := (v.withSource (fun x => imagPart (f x))).pressureContinuation (source.map imagPart) | |
| 1144 | - frequency g hle hcutoff hcompact hinside | |
| 1145 | - exact (er.add (ei.map ((ContinuousLinearMap.mul ℝ ℂ) Complex.I))).retarget | |
| 1146 | - (fun x => (commonPressure_eq_parts t f g hle hcompact frequency (toChart x)).symm) | |
| 1147 | - | |
| 1148 | -theorem complexPressureContinuation_value (frequency : ℝ) (g : Geometry) | |
| 1149 | - {entry exit : ℝ} (hle : entry ≤ exit) {cutoff : Plane → ℝ} | |
| 1150 | - (hcutoff : ContDiff ℝ ∞ cutoff) (hcompact : HasCompactSupport cutoff) | |
| 1151 | - (hinside : tsupport cutoff ⊆ univ ×ˢ Ioo entry exit) (x : Point) : | |
| 1152 | - (v.complexPressureContinuation source frequency g hle hcutoff hcompact hinside).value x = | |
| 1153 | - commonPressure (v.continuedData (fun _ => 0)) (fun y => source.value (ofChart y)) | |
| 1154 | - g hle cutoff frequency (toChart x) := by | |
| 1155 | - dsimp only [complexPressureContinuation, FieldContinuation.retarget, FieldContinuation.add, | |
| 1156 | - FieldContinuation.map, pressureContinuation, ReadoutPrimitives.continuation] | |
| 1157 | - rw [commonPressure_eq_parts _ _ g hle hcompact frequency (toChart x)] | |
| 1158 | - congr 1 | |
| 1159 | - · exact readout_eq_pressure | |
| 1160 | - (t := realData (v.continuedData (fun _ => 0)) (fun y => source.value (ofChart y))) | |
| 1161 | - frequency g hle cutoff (toChart x) | |
| 1162 | - · exact congrArg (fun z => Complex.I * z) (readout_eq_pressure | |
| 1163 | - (t := imagData (v.continuedData (fun _ => 0)) (fun y => source.value (ofChart y))) | |
| 1164 | - frequency g hle cutoff (toChart x)) | |
| 1165 | - | |
| 1166 | -end TangentGeometry | |
| 1167 | - | |
| 1168 | -end ComplexReference | |
| 1169 | - | |
| 1170 | -namespace FieldContinuation | |
| 1171 | - | |
| 1172 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 1173 | - {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1174 | - [NormedAddCommGroup F] [NormedSpace ℝ F] {f : Point → E} | |
| 1175 | - | |
| 1176 | -theorem zero_germ (e : FieldContinuation W f) (hc : 0 < coord) (hc1 : coord < 1) | |
| 1177 | - {x : Point} (hx : x.2.1 ∈ W.carrier) | |
| 1178 | - (hr : x.1 ∉ Icc (OffplaneCorrectionExtensions.stableLength coord x.2.1 * a) | |
| 1179 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * b)) : | |
| 1180 | - e.value =ᶠ[𝓝 x] fun _ => 0 := by | |
| 1181 | - have hn : x ∉ movingCarrier W := fun h => hr (h hx) | |
| 1182 | - filter_upwards [(movingCarrier_closed W hc hc1).isOpen_compl.mem_nhds hn, | |
| 1183 | - (PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx] with y hy hyU | |
| 1184 | - by_contra hf | |
| 1185 | - exact hy (fun _ => e.supported y hyU hf) | |
| 1186 | - | |
| 1187 | -noncomputable def derivative (e : FieldContinuation W f) (hc : 0 < coord) (hc1 : coord < 1) : | |
| 1188 | - FieldContinuation W (fderiv ℝ f) where | |
| 1189 | - value := fderiv ℝ e.value | |
| 1190 | - smooth := ((contDiffOn_infty_iff_fderiv_of_isOpen | |
| 1191 | - (PhysicalMeanDomain.slowDomain_open W.isOpen)).mp e.smooth).2 | |
| 1192 | - supported := by | |
| 1193 | - intro x hx hn | |
| 1194 | - by_contra hr | |
| 1195 | - apply hn | |
| 1196 | - rw [(e.zero_germ hc hc1 hx hr).fderiv_eq, fderiv_fun_const] | |
| 1197 | - rfl | |
| 1198 | - agrees := fun x hx => (e.agrees.eventuallyEq W.isOpen hx.1 hx.2).fderiv_eq | |
| 1199 | - | |
| 1200 | -/-- A primitive multiplier may be singular on the axis: the source has | |
| 1201 | -an actual zero neighborhood there. Its positive-fiber agreement is the | |
| 1202 | -only identification used below. -/ | |
| 1203 | -noncomputable def linear (e : FieldContinuation W f) | |
| 1204 | - (L L₀ : Point → E →L[ℝ] F) | |
| 1205 | - (hL : ContDiffOn ℝ ∞ L (LocalRankDefect.positiveDomain W.carrier)) | |
| 1206 | - (heq : ∀ x, x.2.1 ∈ W.carrier → 0 < x.2.1.1 → 0 < x.1 → L x = L₀ x) : | |
| 1207 | - FieldContinuation W (fun x => L₀ x (f x)) where | |
| 1208 | - value x := L x (e.value x) | |
| 1209 | - smooth := by | |
| 1210 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 1211 | - intro x hx | |
| 1212 | - by_cases hr : 0 < x.1 | |
| 1213 | - · exact (hL.contDiffAt ((LocalRankDefect.positiveDomain_open W.isOpen).mem_nhds | |
| 1214 | - (show x ∈ LocalRankDefect.positiveDomain W.carrier from ⟨hr, hx⟩))).clm_apply | |
| 1215 | - (e.smooth.contDiffAt ((PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx)) | |
| 1216 | - · have hz : (fun y => L y (e.value y)) =ᶠ[𝓝 x] fun _ => (0 : F) := by | |
| 1217 | - filter_upwards [(PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx, | |
| 1218 | - (isOpen_lt continuous_fst continuous_const).mem_nhds | |
| 1219 | - (show x.1 < W.lower from lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos)] with y hy hyr | |
| 1220 | - rw [e.zero_below hy hyr, map_zero] | |
| 1221 | - exact contDiffAt_const.congr_of_eventuallyEq hz | |
| 1222 | - supported := fun x hx hn => e.supported x hx (fun hz => hn (by simp only [hz, map_zero])) | |
| 1223 | - agrees := by | |
| 1224 | - intro x hx | |
| 1225 | - change L x (e.value x) = L₀ x (f x) | |
| 1226 | - by_cases hr : 0 < x.1 | |
| 1227 | - · rw [heq x hx.1 hx.2 hr, e.agrees hx] | |
| 1228 | - · have hz := e.zero_below hx.1 (lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos) | |
| 1229 | - have hz₀ := (e.agrees hx).symm.trans hz | |
| 1230 | - rw [hz, hz₀, map_zero, map_zero] | |
| 1231 | - | |
| 1232 | -noncomputable def along (e : FieldContinuation W f) (hc : 0 < coord) (hc1 : coord < 1) | |
| 1233 | - (V V₀ : Point → Point) | |
| 1234 | - (hV : ContDiffOn ℝ ∞ V (LocalRankDefect.positiveDomain W.carrier)) | |
| 1235 | - (heq : ∀ x, x.2.1 ∈ W.carrier → 0 < x.2.1.1 → 0 < x.1 → V x = V₀ x) : | |
| 1236 | - FieldContinuation W (HarmonicCalculus.along V₀ f) where | |
| 1237 | - value x := fderiv ℝ e.value x (V x) | |
| 1238 | - smooth := by | |
| 1239 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 1240 | - intro x hx | |
| 1241 | - by_cases hr : 0 < x.1 | |
| 1242 | - · exact ((e.derivative hc hc1).smooth.contDiffAt | |
| 1243 | - ((PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx)).clm_apply | |
| 1244 | - (hV.contDiffAt ((LocalRankDefect.positiveDomain_open W.isOpen).mem_nhds ⟨hr, hx⟩)) | |
| 1245 | - · have hz : (fun y => fderiv ℝ e.value y (V y)) =ᶠ[𝓝 x] fun _ => (0 : E) := by | |
| 1246 | - filter_upwards [(PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds hx, | |
| 1247 | - (isOpen_lt continuous_fst continuous_const).mem_nhds | |
| 1248 | - (show x.1 < W.lower from lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos)] with y hy hyr | |
| 1249 | - have he := (e.derivative hc hc1).zero_below hy hyr | |
| 1250 | - change fderiv ℝ e.value y = 0 at he | |
| 1251 | - rw [he, _root_.zero_apply] | |
| 1252 | - exact contDiffAt_const.congr_of_eventuallyEq hz | |
| 1253 | - supported := by | |
| 1254 | - intro x hx hn | |
| 1255 | - exact (e.derivative hc hc1).supported x hx (fun hz => hn (by | |
| 1256 | - change fderiv ℝ e.value x = 0 at hz | |
| 1257 | - simp only [hz, _root_.zero_apply])) | |
| 1258 | - agrees := by | |
| 1259 | - intro x hx | |
| 1260 | - change fderiv ℝ e.value x (V x) = fderiv ℝ f x (V₀ x) | |
| 1261 | - have hd := (e.derivative hc hc1).agrees hx | |
| 1262 | - change fderiv ℝ e.value x = fderiv ℝ f x at hd | |
| 1263 | - by_cases hr : 0 < x.1 | |
| 1264 | - · rw [hd, heq x hx.1 hx.2 hr] | |
| 1265 | - · have hz := (e.derivative hc hc1).zero_below hx.1 | |
| 1266 | - (lt_of_le_of_lt (le_of_not_gt hr) W.lower_pos) | |
| 1267 | - change fderiv ℝ e.value x = 0 at hz | |
| 1268 | - rw [← hd, hz, _root_.zero_apply, _root_.zero_apply] | |
| 1269 | - | |
| 1270 | -end FieldContinuation | |
| 1271 | - | |
| 1272 | -section PrimitiveCurl | |
| 1273 | - | |
| 1274 | -/-- Primitive geometric fields only; all differential output continuations | |
| 1275 | -are computed from these fields and a supported incoming coefficient. -/ | |
| 1276 | -structure CurlPrimitives {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 1277 | - (R₀ : Point → ℝ) (Vr₀ Vθ₀ Vz₀ : Point → Point) (Φ₀ : Point → ℝ) where | |
| 1278 | - radius : Point → ℝ | |
| 1279 | - radial : Point → Point | |
| 1280 | - angular : Point → Point | |
| 1281 | - axial : Point → Point | |
| 1282 | - phase : Point → ℝ | |
| 1283 | - radius_smooth : ContDiffOn ℝ ∞ radius (LocalRankDefect.positiveDomain W.carrier) | |
| 1284 | - radial_smooth : ContDiffOn ℝ ∞ radial (LocalRankDefect.positiveDomain W.carrier) | |
| 1285 | - angular_smooth : ContDiffOn ℝ ∞ angular (LocalRankDefect.positiveDomain W.carrier) | |
| 1286 | - axial_smooth : ContDiffOn ℝ ∞ axial (LocalRankDefect.positiveDomain W.carrier) | |
| 1287 | - phase_smooth : ContDiffOn ℝ ∞ phase (LocalRankDefect.positiveDomain W.carrier) | |
| 1288 | - radius_ne : ∀ x ∈ LocalRankDefect.positiveDomain W.carrier, radius x ≠ 0 | |
| 1289 | - normal_ne : ∀ x ∈ LocalRankDefect.positiveDomain W.carrier, | |
| 1290 | - phaseNormal radius radial angular axial phase x ≠ 0 | |
| 1291 | - radius_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier radius R₀ | |
| 1292 | - radial_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier radial Vr₀ | |
| 1293 | - angular_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier angular Vθ₀ | |
| 1294 | - axial_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier axial Vz₀ | |
| 1295 | - phase_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier phase Φ₀ | |
| 1296 | - | |
| 1297 | -namespace CurlPrimitives | |
| 1298 | - | |
| 1299 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 1300 | - {R₀ : Point → ℝ} {Vr₀ Vθ₀ Vz₀ : Point → Point} {Φ₀ : Point → ℝ} | |
| 1301 | - (p : CurlPrimitives W R₀ Vr₀ Vθ₀ Vz₀ Φ₀) | |
| 1302 | - | |
| 1303 | -theorem normal_smooth : ContDiffOn ℝ ∞ | |
| 1304 | - (phaseNormal p.radius p.radial p.angular p.axial p.phase) | |
| 1305 | - (LocalRankDefect.positiveDomain W.carrier) := by | |
| 1306 | - apply (contDiffOn_piLp 2).mpr | |
| 1307 | - intro i | |
| 1308 | - fin_cases i | |
| 1309 | - · exact HarmonicCalculus.contDiffOn_along (LocalRankDefect.positiveDomain_open W.isOpen) | |
| 1310 | - p.radial_smooth p.phase_smooth | |
| 1311 | - · exact (HarmonicCalculus.contDiffOn_along (LocalRankDefect.positiveDomain_open W.isOpen) | |
| 1312 | - p.angular_smooth p.phase_smooth).div p.radius_smooth p.radius_ne | |
| 1313 | - · exact HarmonicCalculus.contDiffOn_along (LocalRankDefect.positiveDomain_open W.isOpen) | |
| 1314 | - p.axial_smooth p.phase_smooth | |
| 1315 | - | |
| 1316 | -theorem normal_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier | |
| 1317 | - (phaseNormal p.radius p.radial p.angular p.axial p.phase) | |
| 1318 | - (phaseNormal R₀ Vr₀ Vθ₀ Vz₀ Φ₀) := by | |
| 1319 | - intro x hx | |
| 1320 | - have hd : fderiv ℝ p.phase x = fderiv ℝ Φ₀ x := | |
| 1321 | - (p.phase_agrees.eventuallyEq W.isOpen hx.1 hx.2).fderiv_eq | |
| 1322 | - simp only [phaseNormal, HarmonicCalculus.along, hd, p.radial_agrees hx, | |
| 1323 | - p.angular_agrees hx, p.axial_agrees hx, p.radius_agrees hx] | |
| 1324 | - | |
| 1325 | -noncomputable def normalMap (N : Space) : ComplexVector →L[ℝ] ComplexVector := | |
| 1326 | - (‖N‖ ^ 2)⁻¹ • CurlClassBounds.complexCrossLinear (CurlClassBounds.complexify N) | |
| 1327 | - | |
| 1328 | -theorem normalMap_apply (N : Space) (u : ComplexVector) : | |
| 1329 | - normalMap N u = CurlClassBounds.normalCoefficient N u := rfl | |
| 1330 | - | |
| 1331 | -theorem normalMap_smooth : ContDiffOn ℝ ∞ | |
| 1332 | - (fun x => normalMap (phaseNormal p.radius p.radial p.angular p.axial p.phase x)) | |
| 1333 | - (LocalRankDefect.positiveDomain W.carrier) := by | |
| 1334 | - exact (((contDiff_norm_sq ℝ).comp_contDiffOn p.normal_smooth).inv | |
| 1335 | - (fun x hx => pow_ne_zero 2 (norm_ne_zero_iff.mpr (p.normal_ne x hx)))).smul | |
| 1336 | - (CurlClassBounds.complexCrossLinear.contDiff.comp_contDiffOn | |
| 1337 | - (CurlClassBounds.complexify.contDiff.comp_contDiffOn p.normal_smooth)) | |
| 1338 | - | |
| 1339 | -noncomputable def coefficient {f : Point → ComplexVector} (e : FieldContinuation W f) : | |
| 1340 | - FieldContinuation W (CurlClassBounds.coefficient R₀ Vr₀ Vθ₀ Vz₀ Φ₀ f) := | |
| 1341 | - e.linear | |
| 1342 | - (fun x => normalMap (phaseNormal p.radius p.radial p.angular p.axial p.phase x)) | |
| 1343 | - (fun x => normalMap (phaseNormal R₀ Vr₀ Vθ₀ Vz₀ Φ₀ x)) p.normalMap_smooth | |
| 1344 | - (fun x hx ht _ => congrArg normalMap (p.normal_agrees (show x ∈ | |
| 1345 | - PhysicalMeanDomain.slowDomain (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow) from ⟨hx, ht⟩))) | |
| 1346 | - | |
| 1347 | -theorem complexScale_smooth : ContDiff ℝ ∞ ParticularWaveBounds.complexScale := by | |
| 1348 | - have he (c : ℂ) : ParticularWaveBounds.complexScale c = | |
| 1349 | - c.re • ContinuousLinearMap.id ℝ ComplexVector + | |
| 1350 | - c.im • ParticularWaveBounds.complexScale Complex.I := by | |
| 1351 | - ext u i | |
| 1352 | - simp only [ParticularWaveBounds.complexScale_apply, _root_.add_apply, | |
| 1353 | - _root_.smul_apply, ContinuousLinearMap.id_apply, Pi.add_apply, | |
| 1354 | - Pi.smul_apply, Complex.real_smul, smul_eq_mul] | |
| 1355 | - have hc : (c.re : ℂ) + (c.im : ℂ) * Complex.I = c := Complex.re_add_im c | |
| 1356 | - calc | |
| 1357 | - c * u i = ((c.re : ℂ) + (c.im : ℂ) * Complex.I) * u i := | |
| 1358 | - congrArg (fun z => z * u i) hc.symm | |
| 1359 | - _ = _ := by ring | |
| 1360 | - have hs : ContDiff ℝ ∞ (fun c : ℂ => c.re • ContinuousLinearMap.id ℝ ComplexVector + | |
| 1361 | - c.im • ParticularWaveBounds.complexScale Complex.I) := | |
| 1362 | - (Complex.reCLM.contDiff.smul contDiff_const).add (Complex.imCLM.contDiff.smul contDiff_const) | |
| 1363 | - rw [funext he] | |
| 1364 | - exact hs | |
| 1365 | - | |
| 1366 | -noncomputable def potential {f : Point → ComplexVector} (e : FieldContinuation W f) (K : ℝ) : | |
| 1367 | - FieldContinuation W (CurlClassBounds.vectorPotential K R₀ Vr₀ Vθ₀ Vz₀ Φ₀ f) := by | |
| 1368 | - let d := (p.coefficient e).map (ParticularWaveBounds.complexScale (CurlClassBounds.inverseCarrier K)) | |
| 1369 | - let m := d.linear | |
| 1370 | - (fun x => ParticularWaveBounds.complexScale (carrier K p.phase x)) | |
| 1371 | - (fun x => ParticularWaveBounds.complexScale (carrier K Φ₀ x)) | |
| 1372 | - (complexScale_smooth.comp_contDiffOn | |
| 1373 | - (contDiffOn_carrier K p.phase_smooth)) | |
| 1374 | - (fun x hx ht _ => by simp only [carrier, p.phase_agrees (show x ∈ | |
| 1375 | - PhysicalMeanDomain.slowDomain (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow) from ⟨hx, ht⟩)]) | |
| 1376 | - exact m.retarget (fun x => by | |
| 1377 | - ext i | |
| 1378 | - simp only [ParticularWaveBounds.complexScale_apply, Pi.smul_apply, smul_eq_mul, | |
| 1379 | - CurlClassBounds.vectorPotential, vectorMode, HarmonicCalculus.mode] | |
| 1380 | - ring) | |
| 1381 | - | |
| 1382 | -noncomputable def curl {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1383 | - (hc : 0 < coord) (hc1 : coord < 1) : | |
| 1384 | - FieldContinuation W (CurlClassBounds.cylindricalCurl R₀ Vr₀ Vθ₀ Vz₀ f) where | |
| 1385 | - value := CurlClassBounds.cylindricalCurl p.radius p.radial p.angular p.axial e.value | |
| 1386 | - smooth := by | |
| 1387 | - have hs := CurlClassBounds.cylindricalCurl_contDiffOn | |
| 1388 | - (LocalRankDefect.positiveDomain_open W.isOpen) (p.radius_smooth.inv p.radius_ne) | |
| 1389 | - p.radial_smooth p.angular_smooth p.axial_smooth | |
| 1390 | - (e.smooth.mono (fun _ hx => hx.2)) | |
| 1391 | - apply (PhysicalMeanDomain.slowDomain_open W.isOpen).contDiffOn_iff.mpr | |
| 1392 | - intro x hx | |
| 1393 | - by_cases hr : 0 < x.1 | |
| 1394 | - · exact hs.contDiffAt ((LocalRankDefect.positiveDomain_open W.isOpen).mem_nhds ⟨hr, hx⟩) | |
| 1395 | - · have hxR : x.1 ∉ Icc (OffplaneCorrectionExtensions.stableLength coord x.2.1 * a) | |
| 1396 | - (OffplaneCorrectionExtensions.stableLength coord x.2.1 * b) := by | |
| 1397 | - intro h | |
| 1398 | - exact (not_lt_of_ge (le_of_not_gt hr)) (W.lower_pos.trans_le ((W.left _ hx).trans h.1)) | |
| 1399 | - have he := ParticularWaveAssembly.curl_germ (e.zero_germ hc hc1 hx hxR) | |
| 1400 | - p.radius p.radial p.angular p.axial | |
| 1401 | - rw [PeriodizedWaveBounds.cylindricalCurl_zero] at he | |
| 1402 | - exact contDiffAt_const.congr_of_eventuallyEq he | |
| 1403 | - supported := by | |
| 1404 | - classical | |
| 1405 | - intro x hx hn | |
| 1406 | - by_contra hr | |
| 1407 | - apply hn | |
| 1408 | - have he := ParticularWaveAssembly.curl_germ (e.zero_germ hc hc1 hx hr) | |
| 1409 | - p.radius p.radial p.angular p.axial | |
| 1410 | - simpa only [PeriodizedWaveBounds.cylindricalCurl_zero] using he.self_of_nhds | |
| 1411 | - agrees := by | |
| 1412 | - intro x hx | |
| 1413 | - have he := (ParticularWaveAssembly.curl_germ | |
| 1414 | - (e.agrees.eventuallyEq W.isOpen hx.1 hx.2) p.radius p.radial p.angular p.axial).self_of_nhds | |
| 1415 | - change CurlClassBounds.cylindricalCurl p.radius p.radial p.angular p.axial e.value x = _ | |
| 1416 | - rw [he] | |
| 1417 | - simp only [CurlClassBounds.cylindricalCurl, HarmonicCalculus.along, | |
| 1418 | - p.radius_agrees hx, p.radial_agrees hx, p.angular_agrees hx, p.axial_agrees hx] | |
| 1419 | - | |
| 1420 | -noncomputable def corrected {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1421 | - (hc : 0 < coord) (hc1 : coord < 1) (K : ℝ) : | |
| 1422 | - FieldContinuation W (CurlClassBounds.realizedCoefficient K R₀ Vr₀ Vθ₀ Vz₀ Φ₀ f) := | |
| 1423 | - (e.add ((p.curl (p.coefficient e) hc hc1).map | |
| 1424 | - (ParticularWaveBounds.complexScale (CurlClassBounds.inverseCarrier K)))).retarget | |
| 1425 | - (fun x => by rw [CurlClassBounds.realizedCoefficient, CurlClassBounds.curlRemainder_eq]; rfl) | |
| 1426 | - | |
| 1427 | -end CurlPrimitives | |
| 1428 | - | |
| 1429 | -end PrimitiveCurl | |
| 1430 | - | |
| 1431 | -section LocalPhysical | |
| 1432 | - | |
| 1433 | -open ProblemStatement PhysicalCurlCovariance | |
| 1434 | - | |
| 1435 | -theorem polarCoordinates_slow (delta : ℝ) (j : PolarCharts.Index) (z : SpaceTime) : | |
| 1436 | - OffplaneCorrectionExtensions.physicalSlow (polarCoordinates delta j z) = | |
| 1437 | - OffplaneCorrectionExtensions.physicalSlow z := by | |
| 1438 | - simp only [OffplaneCorrectionExtensions.physicalSlow, polarCoordinates, | |
| 1439 | - AxisymmetricResidual.pack_two] | |
| 1440 | - | |
| 1441 | -/-- Polar gluing on an actual open slow window, rather than on all axial | |
| 1442 | -coordinates. The period is the complete carrier period. -/ | |
| 1443 | -theorem cartesian_smooth_on_slow {delta : ℝ} (hd : 0 < delta) | |
| 1444 | - {U : Set Slow} (hU : IsOpen U) {B : SpaceTime → ComplexVector} | |
| 1445 | - (hB : ContDiffOn ℝ ∞ B {z | OffplaneCorrectionExtensions.physicalSlow z ∈ U ∧ 0 < z.2 0}) | |
| 1446 | - (hper : ∀ t r z : ℝ, Periodic (fun theta => B (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi)) | |
| 1447 | - (hzero : ∀ z : SpaceTime, z.2 0 ≤ delta → B z = 0) : | |
| 1448 | - ContDiffOn ℝ ∞ (globalCartesianPotential delta B) | |
| 1449 | - (OffplaneCorrectionExtensions.physicalDomain U) := by | |
| 1450 | - apply (OffplaneCorrectionExtensions.physicalDomain_open hU).contDiffOn_iff.mpr | |
| 1451 | - intro x hx | |
| 1452 | - by_cases hex : ∃ j : PolarCharts.Index, | |
| 1453 | - PhysicalGraphBounds.radialProjection x ∈ PolarCharts.chartDomain delta j | |
| 1454 | - · obtain ⟨j, hj⟩ := hex | |
| 1455 | - have hrot : 0 < (PolarCharts.rotate j (PhysicalGraphBounds.radialProjection x)).1 := by | |
| 1456 | - have hv : delta / 4 < (PolarCharts.rotate j (PhysicalGraphBounds.radialProjection x)).1 := hj | |
| 1457 | - linarith | |
| 1458 | - have hrad : 0 < PolarCharts.radius (PhysicalGraphBounds.radialProjection x) := by | |
| 1459 | - rw [← PolarCharts.radius_rotate j] | |
| 1460 | - exact PolarCharts.radius_pos_of_fst_pos hrot | |
| 1461 | - have hz : OffplaneCorrectionExtensions.physicalSlow (polarCoordinates delta j x) ∈ U ∧ | |
| 1462 | - 0 < (polarCoordinates delta j x).2 0 := by | |
| 1463 | - rw [polarCoordinates_slow, polarCoordinates_radius hd j hj] | |
| 1464 | - exact ⟨hx, hrad⟩ | |
| 1465 | - have hopen : IsOpen {z : SpaceTime | OffplaneCorrectionExtensions.physicalSlow z ∈ U ∧ 0 < z.2 0} := | |
| 1466 | - (OffplaneCorrectionExtensions.physicalDomain_open hU).inter | |
| 1467 | - (isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous) | |
| 1468 | - exact (cartesianPotential_smoothAt hd j (hB.contDiffAt (hopen.mem_nhds hz))).congr_of_eventuallyEq | |
| 1469 | - (globalCartesianPotential_germ_local hd B hper j hj) | |
| 1470 | - · have hnorm : ‖PhysicalGraphBounds.radialProjection x‖ ≤ delta / 4 := by | |
| 1471 | - obtain ⟨j, hj⟩ := PolarCharts.exists_rotate_fst_ge (p := PhysicalGraphBounds.radialProjection x) le_rfl | |
| 1472 | - by_contra hh | |
| 1473 | - exact hex ⟨j, lt_of_lt_of_le (lt_of_not_ge hh) hj⟩ | |
| 1474 | - have hrad : PolarCharts.radius (PhysicalGraphBounds.radialProjection x) < delta := by | |
| 1475 | - have hb := PolarCharts.radius_le_two_norm (PhysicalGraphBounds.radialProjection x) | |
| 1476 | - linarith | |
| 1477 | - exact contDiffAt_const.congr_of_eventuallyEq (globalCartesianPotential_zero_germ hd hzero hrad) | |
| 1478 | - | |
| 1479 | -theorem cartesian_eq_of_slow_fiber {delta : ℝ} {B C : SpaceTime → ComplexVector} | |
| 1480 | - {x : SpaceTime} | |
| 1481 | - (he : ∀ z : SpaceTime, OffplaneCorrectionExtensions.physicalSlow z = | |
| 1482 | - OffplaneCorrectionExtensions.physicalSlow x → B z = C z) : | |
| 1483 | - globalCartesianPotential delta B x = globalCartesianPotential delta C x := by | |
| 1484 | - unfold globalCartesianPotential | |
| 1485 | - split_ifs with h | |
| 1486 | - · unfold cartesianPotential | |
| 1487 | - rw [he _ (polarCoordinates_slow _ _ _)] | |
| 1488 | - · rfl | |
| 1489 | - | |
| 1490 | -namespace PhysicalNative | |
| 1491 | - | |
| 1492 | -/-- The actual scaled graph with the angular coordinate omitted. The | |
| 1493 | -reference common-cover index remains in `G.fastCoefficient`. -/ | |
| 1494 | -noncomputable def point (G : PhysicalResidualBridge.ScaledGraph) (z : SpaceTime) : Point := | |
| 1495 | - (G.radialScale * z.2 0, | |
| 1496 | - ((G.velocityScale * G.radialScale * G.epsilon * (1 - z.1), G.radialScale * G.epsilon * z.2 2), | |
| 1497 | - (G.frequency * (G.radialScale * z.2 0) ^ G.exponent) • G.radialVector + | |
| 1498 | - (G.velocityScale * G.radialScale * G.fastCoefficient * z.1) • G.temporalVector)) | |
| 1499 | - | |
| 1500 | -noncomputable def slow (G : PhysicalResidualBridge.ScaledGraph) (s : Slow) : Slow := | |
| 1501 | - (G.velocityScale * G.radialScale * G.epsilon * s.1, G.radialScale * G.epsilon * s.2) | |
| 1502 | - | |
| 1503 | -theorem slow_smooth (G : PhysicalResidualBridge.ScaledGraph) : ContDiff ℝ ∞ (slow G) := | |
| 1504 | - (contDiff_const.mul contDiff_fst).prodMk (contDiff_const.mul contDiff_snd) | |
| 1505 | - | |
| 1506 | -theorem point_slow (G : PhysicalResidualBridge.ScaledGraph) (z : SpaceTime) : | |
| 1507 | - (point G z).2.1 = slow G (OffplaneCorrectionExtensions.physicalSlow z) := rfl | |
| 1508 | - | |
| 1509 | -theorem point_eq_native (h Q : ℝ) (i : ℕ) (z : SpaceTime) : | |
| 1510 | - point (PhysicalResidualBridge.commonGraph Q h i) z = | |
| 1511 | - ofChart ((PhysicalParticularWave.nativeMap h Q i z).1.1, | |
| 1512 | - (PhysicalParticularWave.nativeMap h Q i z).2) := rfl | |
| 1513 | - | |
| 1514 | -theorem point_smoothAt (G : PhysicalResidualBridge.ScaledGraph) {z : SpaceTime} | |
| 1515 | - (hr : G.radialScale * z.2 0 ≠ 0) : ContDiffAt ℝ ∞ (point G) z := by | |
| 1516 | - have h := G.map_smoothAt hr | |
| 1517 | - exact h.fst.fst.prodMk ((h.fst.snd.fst.snd.prodMk h.fst.snd.fst.fst).prodMk h.fst.snd.snd) | |
| 1518 | - | |
| 1519 | -theorem point_invariant (G : PhysicalResidualBridge.ScaledGraph) : | |
| 1520 | - CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) (point G) := by | |
| 1521 | - intro z t | |
| 1522 | - simp [point, coordinateVector] | |
| 1523 | - | |
| 1524 | -variable {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 1525 | - (G : PhysicalResidualBridge.ScaledGraph) | |
| 1526 | - | |
| 1527 | -noncomputable def window : Set Slow := slow G ⁻¹' W.carrier | |
| 1528 | - | |
| 1529 | -theorem window_open : IsOpen (window W G) := W.isOpen.preimage (slow_smooth G).continuous | |
| 1530 | - | |
| 1531 | -noncomputable def positiveDomain : Set SpaceTime := | |
| 1532 | - {z | OffplaneCorrectionExtensions.physicalSlow z ∈ window W G ∧ 0 < z.2 0} | |
| 1533 | - | |
| 1534 | -theorem positiveDomain_open : IsOpen (positiveDomain W G) := | |
| 1535 | - (OffplaneCorrectionExtensions.physicalDomain_open (window_open W G)).inter | |
| 1536 | - (isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous) | |
| 1537 | - | |
| 1538 | -noncomputable def amplitude {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1539 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) (z : SpaceTime) : E := by | |
| 1540 | - classical | |
| 1541 | - exact if OffplaneCorrectionExtensions.physicalSlow z ∈ window W G then scale • e.value (point G z) else 0 | |
| 1542 | - | |
| 1543 | -theorem amplitude_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1544 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) (hr : 0 < G.radialScale) : | |
| 1545 | - ContDiffOn ℝ ∞ (amplitude W G e scale) (positiveDomain W G) := by | |
| 1546 | - apply (positiveDomain_open W G).contDiffOn_iff.mpr | |
| 1547 | - intro z hz | |
| 1548 | - have hpoint := point_smoothAt G (mul_pos hr hz.2).ne' | |
| 1549 | - have hf := (e.smooth.contDiffAt ((PhysicalMeanDomain.slowDomain_open W.isOpen).mem_nhds | |
| 1550 | - (show (point G z).2.1 ∈ W.carrier from hz.1))).comp z hpoint | |
| 1551 | - apply (hf.const_smul scale).congr_of_eventuallyEq | |
| 1552 | - filter_upwards [(OffplaneCorrectionExtensions.physicalDomain_open (window_open W G)).mem_nhds hz.1] with y hy | |
| 1553 | - have hy' : OffplaneCorrectionExtensions.physicalSlow y ∈ window W G := hy | |
| 1554 | - simp only [amplitude, ite_eq_left hy', Function.comp_apply] | |
| 1555 | - | |
| 1556 | -theorem amplitude_zero {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1557 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) | |
| 1558 | - {delta : ℝ} (hdelta : G.radialScale * delta < W.lower) (hr : 0 ≤ G.radialScale) | |
| 1559 | - (z : SpaceTime) (hz : z.2 0 ≤ delta) : amplitude W G e scale z = 0 := by | |
| 1560 | - unfold amplitude | |
| 1561 | - split_ifs with hw | |
| 1562 | - · have he := e.zero_below (x := point G z) hw | |
| 1563 | - ((mul_le_mul_of_nonneg_left hz hr).trans_lt hdelta) | |
| 1564 | - rw [he, smul_zero] | |
| 1565 | - · rfl | |
| 1566 | - | |
| 1567 | -theorem amplitude_invariant {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1568 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) : | |
| 1569 | - CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) (amplitude W G e scale) := by | |
| 1570 | - intro z t | |
| 1571 | - have hs : OffplaneCorrectionExtensions.physicalSlow (z + t • ((0 : ℝ), coordinateVector 1)) = | |
| 1572 | - OffplaneCorrectionExtensions.physicalSlow z := by | |
| 1573 | - simp [OffplaneCorrectionExtensions.physicalSlow, coordinateVector] | |
| 1574 | - simp only [amplitude] | |
| 1575 | - rw [hs, point_invariant G z t] | |
| 1576 | - | |
| 1577 | -theorem amplitude_agrees {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1578 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) | |
| 1579 | - (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) {z : SpaceTime} | |
| 1580 | - (hz : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G) (ht : z.1 < 1) : | |
| 1581 | - amplitude W G e scale z = scale • f (point G z) := by | |
| 1582 | - simp only [amplitude, ite_eq_left hz] | |
| 1583 | - exact congrArg (scale • ·) (e.agrees ⟨hz, mul_pos htime (sub_pos.mpr ht)⟩) | |
| 1584 | - | |
| 1585 | -noncomputable def phase (phi : Point → ℝ) (slope : ℝ) (z : SpaceTime) : ℝ := | |
| 1586 | - phi (point G z) + slope * z.2 1 | |
| 1587 | - | |
| 1588 | -theorem phase_affine (phi : Point → ℝ) (slope : ℝ) : | |
| 1589 | - CopyAngularInvariance.AffinePhase ((0 : ℝ), coordinateVector 1) slope (phase G phi slope) := by | |
| 1590 | - intro z t | |
| 1591 | - simp only [phase, point_invariant G z t] | |
| 1592 | - simp only [Prod.snd_add, Prod.smul_snd, PiLp.add_apply, PiLp.smul_apply, | |
| 1593 | - coordinateVector, PiLp.single_apply, ite_true, smul_eq_mul, mul_one] | |
| 1594 | - ring | |
| 1595 | - | |
| 1596 | -theorem phase_smooth {phi : Point → ℝ} | |
| 1597 | - (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1598 | - (slope : ℝ) (hr : 0 < G.radialScale) : | |
| 1599 | - ContDiffOn ℝ ∞ (phase G phi slope) (positiveDomain W G) := by | |
| 1600 | - apply (positiveDomain_open W G).contDiffOn_iff.mpr | |
| 1601 | - intro z hz | |
| 1602 | - have hpos : 0 < (point G z).1 := mul_pos hr hz.2 | |
| 1603 | - have hp : point G z ∈ LocalRankDefect.positiveDomain W.carrier := ⟨hpos, hz.1⟩ | |
| 1604 | - exact ((hphi.contDiffAt ((LocalRankDefect.positiveDomain_open W.isOpen).mem_nhds hp)).comp z | |
| 1605 | - (point_smoothAt G hpos.ne')).add | |
| 1606 | - (contDiffAt_const.mul (PhysicalGraphBounds.coordinateProjection 1).contDiff.contDiffAt) | |
| 1607 | - | |
| 1608 | -theorem phase_agrees {phi phi₀ : Point → ℝ} | |
| 1609 | - (he : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) (slope : ℝ) | |
| 1610 | - (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) {z : SpaceTime} | |
| 1611 | - (hz : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G) (ht : z.1 < 1) : | |
| 1612 | - phase G phi slope z = phase G phi₀ slope z := by | |
| 1613 | - unfold phase | |
| 1614 | - rw [he (show point G z ∈ PhysicalMeanDomain.slowDomain | |
| 1615 | - (W.carrier ∩ OffplaneCorrectionExtensions.positiveSlow) from ⟨hz, mul_pos htime (sub_pos.mpr ht)⟩)] | |
| 1616 | - | |
| 1617 | -theorem phase_germ {phi phi₀ : Point → ℝ} | |
| 1618 | - (he : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) (slope : ℝ) | |
| 1619 | - (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) {z : SpaceTime} | |
| 1620 | - (hz : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G) (ht : z.1 < 1) : | |
| 1621 | - phase G phi slope =ᶠ[𝓝 z] phase G phi₀ slope := by | |
| 1622 | - filter_upwards [(OffplaneCorrectionExtensions.physicalDomain_open (window_open W G)).mem_nhds hz, | |
| 1623 | - (isOpen_lt continuous_fst continuous_const).mem_nhds ht] with y hy hyt | |
| 1624 | - exact phase_agrees W G he slope htime hy hyt | |
| 1625 | - | |
| 1626 | -theorem normal_smooth {phi : Point → ℝ} | |
| 1627 | - (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1628 | - (slope : ℝ) (hr : 0 < G.radialScale) : | |
| 1629 | - ContDiffOn ℝ ∞ (phaseNormal LinearWaveResidual.coordinateRadius | |
| 1630 | - (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) | |
| 1631 | - (LinearWaveResidual.spaceDirection 2) (phase G phi slope)) (positiveDomain W G) := by | |
| 1632 | - have hφ := phase_smooth W G hphi slope hr | |
| 1633 | - apply (contDiffOn_piLp 2).mpr | |
| 1634 | - intro i | |
| 1635 | - fin_cases i | |
| 1636 | - · exact contDiffOn_along (positiveDomain_open W G) contDiffOn_const hφ | |
| 1637 | - · exact (contDiffOn_along (positiveDomain_open W G) contDiffOn_const hφ).div | |
| 1638 | - (PhysicalGraphBounds.coordinateProjection 0).contDiff.contDiffOn (fun _ hz => hz.2.ne') | |
| 1639 | - · exact contDiffOn_along (positiveDomain_open W G) contDiffOn_const hφ | |
| 1640 | - | |
| 1641 | -theorem normal_ne {phi : Point → ℝ} | |
| 1642 | - (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1643 | - {slope : ℝ} (hslope : slope ≠ 0) (hr : 0 < G.radialScale) | |
| 1644 | - {z : SpaceTime} (hz : z ∈ positiveDomain W G) : | |
| 1645 | - phaseNormal LinearWaveResidual.coordinateRadius | |
| 1646 | - (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) | |
| 1647 | - (LinearWaveResidual.spaceDirection 2) (phase G phi slope) z ≠ 0 := by | |
| 1648 | - have hd := ((phase_smooth W G hphi slope hr).contDiffAt | |
| 1649 | - ((positiveDomain_open W G).mem_nhds hz)).differentiableAt (by simp) | |
| 1650 | - have hθ := (phase_affine G phi slope).directional_eq hd | |
| 1651 | - intro hn | |
| 1652 | - have h1 := congrArg (fun v : Space => v 1) hn | |
| 1653 | - change fderiv ℝ (phase G phi slope) z (0, coordinateVector 1) / z.2 0 = 0 at h1 | |
| 1654 | - rw [hθ] at h1 | |
| 1655 | - exact (div_ne_zero hslope hz.2.ne') h1 | |
| 1656 | - | |
| 1657 | -noncomputable def potential {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1658 | - (phi : Point → ℝ) (slope K scale : ℝ) : SpaceTime → ComplexVector := | |
| 1659 | - PhysicalCurlCovariance.referencePotential K (phase G phi slope) (amplitude W G e scale) | |
| 1660 | - | |
| 1661 | -theorem potential_smooth {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1662 | - {phi : Point → ℝ} (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1663 | - {slope : ℝ} (hslope : slope ≠ 0) (K scale : ℝ) (hr : 0 < G.radialScale) : | |
| 1664 | - ContDiffOn ℝ ∞ (potential W G e phi slope K scale) (positiveDomain W G) := by | |
| 1665 | - have hc := CurlClassBounds.normalCoefficient_contDiffOn (normal_smooth W G hphi slope hr) | |
| 1666 | - (amplitude_smooth W G e scale hr) (fun _ hz => normal_ne W G hphi hslope hr hz) | |
| 1667 | - apply contDiffOn_pi.mpr | |
| 1668 | - intro i | |
| 1669 | - exact contDiffOn_mode K (phase_smooth W G hphi slope hr) | |
| 1670 | - ((contDiffOn_pi.mp hc i).const_smul (CurlClassBounds.inverseCarrier K)) | |
| 1671 | - | |
| 1672 | -theorem potential_zero {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1673 | - (phi : Point → ℝ) (slope K scale : ℝ) {delta : ℝ} | |
| 1674 | - (hdelta : G.radialScale * delta < W.lower) (hr : 0 ≤ G.radialScale) | |
| 1675 | - (z : SpaceTime) (hz : z.2 0 ≤ delta) : potential W G e phi slope K scale z = 0 := by | |
| 1676 | - ext i | |
| 1677 | - simp [potential, PhysicalCurlCovariance.referencePotential, CurlClassBounds.vectorPotential, | |
| 1678 | - CurlClassBounds.coefficient, amplitude_zero W G e scale hdelta hr z hz, | |
| 1679 | - vectorMode, HarmonicCalculus.mode] | |
| 1680 | - | |
| 1681 | -theorem potential_periodic {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1682 | - (phi : Point → ℝ) (slope K scale : ℝ) (m : ℤ) (hm : K * slope = (m : ℝ)) | |
| 1683 | - (t r z : ℝ) : Periodic (fun theta => potential W G e phi slope K scale | |
| 1684 | - (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by | |
| 1685 | - intro theta | |
| 1686 | - have hR : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) LinearWaveResidual.coordinateRadius := by | |
| 1687 | - intro x s | |
| 1688 | - simp [LinearWaveResidual.coordinateRadius, coordinateVector] | |
| 1689 | - have he := PhysicalCurlCovariance.vectorPotential_fullTurn | |
| 1690 | - (Vr := LinearWaveResidual.spaceDirection 0) (Vθ := LinearWaveResidual.spaceDirection 1) | |
| 1691 | - (Vz := LinearWaveResidual.spaceDirection 2) m hR | |
| 1692 | - (CopyAngularInvariance.Invariant.const _) (CopyAngularInvariance.Invariant.const _) | |
| 1693 | - (CopyAngularInvariance.Invariant.const _) (phase_affine G phi slope) | |
| 1694 | - (amplitude_invariant W G e scale) hm (t, AxisymmetricResidual.pack r theta z) | |
| 1695 | - simpa only [potential, PhysicalCurlCovariance.referencePotential, | |
| 1696 | - PhysicalParticularWave.angle_translate_pack] using he | |
| 1697 | - | |
| 1698 | -theorem potential_agrees {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1699 | - {phi phi₀ : Point → ℝ} (hphi : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) | |
| 1700 | - (slope K scale : ℝ) (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) | |
| 1701 | - {z : SpaceTime} (hz : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G) (ht : z.1 < 1) : | |
| 1702 | - potential W G e phi slope K scale z = | |
| 1703 | - PhysicalCurlCovariance.referencePotential K (phase G phi₀ slope) | |
| 1704 | - (fun y => scale • f (point G y)) z := | |
| 1705 | - PhysicalCurlCovariance.vectorPotential_congr K _ _ _ _ | |
| 1706 | - (phase_germ W G hphi slope htime hz ht) (amplitude_agrees W G e scale htime hz ht) | |
| 1707 | - | |
| 1708 | -noncomputable def potentialExtension {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1709 | - {phi phi₀ : Point → ℝ} (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1710 | - (he : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) | |
| 1711 | - {slope : ℝ} (hslope : slope ≠ 0) (K scale : ℝ) (m : ℤ) (hm : K * slope = (m : ℝ)) | |
| 1712 | - (hr : 0 < G.radialScale) (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) | |
| 1713 | - {delta : ℝ} (hd : 0 < delta) (hdelta : G.radialScale * delta < W.lower) | |
| 1714 | - {x : Space} (hx : slow G (0, x 2) ∈ W.carrier) : | |
| 1715 | - JointResidualLimits.OneSidedExtension | |
| 1716 | - (globalCartesianPotential delta (PhysicalCurlCovariance.referencePotential K | |
| 1717 | - (phase G phi₀ slope) (fun y => scale • f (point G y)))) x where | |
| 1718 | - value := globalCartesianPotential delta (potential W G e phi slope K scale) | |
| 1719 | - domain := OffplaneCorrectionExtensions.physicalDomain (window W G) | |
| 1720 | - isOpen := OffplaneCorrectionExtensions.physicalDomain_open (window_open W G) | |
| 1721 | - mem := by simpa only [OffplaneCorrectionExtensions.physicalDomain, mem_preimage, | |
| 1722 | - OffplaneCorrectionExtensions.physicalSlow, sub_self, window] using hx | |
| 1723 | - smooth := cartesian_smooth_on_slow hd (window_open W G) | |
| 1724 | - (potential_smooth W G e hphi hslope K scale hr) | |
| 1725 | - (potential_periodic W G e phi slope K scale m hm) | |
| 1726 | - (potential_zero W G e phi slope K scale hdelta hr.le) | |
| 1727 | - agrees := by | |
| 1728 | - intro z hz | |
| 1729 | - apply cartesian_eq_of_slow_fiber | |
| 1730 | - intro y hy | |
| 1731 | - have hyt : y.1 < 1 := by | |
| 1732 | - have heq := congrArg Prod.fst hy | |
| 1733 | - change 1 - y.1 = 1 - z.1 at heq | |
| 1734 | - have hzt : z.1 < 1 := hz.2.1 | |
| 1735 | - linarith | |
| 1736 | - exact potential_agrees W G e he slope K scale htime (hy ▸ hz.1) hyt | |
| 1737 | - | |
| 1738 | -noncomputable def pressure {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1739 | - (phi : Point → ℝ) (slope K scale : ℝ) : SpaceTime → ComplexVector := | |
| 1740 | - PhysicalParticularWave.pressureVector | |
| 1741 | - (HarmonicCalculus.mode K (phase G phi slope) (amplitude W G e scale)) | |
| 1742 | - | |
| 1743 | -theorem pressure_smooth {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1744 | - {phi : Point → ℝ} (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1745 | - (slope K scale : ℝ) (hr : 0 < G.radialScale) : | |
| 1746 | - ContDiffOn ℝ ∞ (pressure W G e phi slope K scale) (positiveDomain W G) := by | |
| 1747 | - apply contDiffOn_pi.mpr | |
| 1748 | - intro i | |
| 1749 | - fin_cases i | |
| 1750 | - · exact contDiffOn_const | |
| 1751 | - · exact contDiffOn_const | |
| 1752 | - · exact contDiffOn_mode K (phase_smooth W G hphi slope hr) (amplitude_smooth W G e scale hr) | |
| 1753 | - | |
| 1754 | -theorem pressure_zero {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1755 | - (phi : Point → ℝ) (slope K scale : ℝ) {delta : ℝ} | |
| 1756 | - (hdelta : G.radialScale * delta < W.lower) (hr : 0 ≤ G.radialScale) | |
| 1757 | - (z : SpaceTime) (hz : z.2 0 ≤ delta) : pressure W G e phi slope K scale z = 0 := by | |
| 1758 | - ext i | |
| 1759 | - fin_cases i <;> simp [pressure, PhysicalParticularWave.pressureVector, HarmonicCalculus.mode, | |
| 1760 | - amplitude_zero W G e scale hdelta hr z hz] | |
| 1761 | - | |
| 1762 | -theorem pressure_periodic {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1763 | - (phi : Point → ℝ) (slope K scale : ℝ) (m : ℤ) (hm : K * slope = (m : ℝ)) | |
| 1764 | - (t r z : ℝ) : Periodic (fun theta => pressure W G e phi slope K scale | |
| 1765 | - (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by | |
| 1766 | - intro theta | |
| 1767 | - have he := PhysicalParticularWave.mode_fullTurn m (phase_affine G phi slope) | |
| 1768 | - (amplitude_invariant W G e scale) hm (t, AxisymmetricResidual.pack r theta z) | |
| 1769 | - rw [PhysicalParticularWave.angle_translate_pack] at he | |
| 1770 | - ext i | |
| 1771 | - fin_cases i | |
| 1772 | - · rfl | |
| 1773 | - · rfl | |
| 1774 | - · exact he | |
| 1775 | - | |
| 1776 | -theorem pressure_agrees {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1777 | - {phi phi₀ : Point → ℝ} (hphi : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) | |
| 1778 | - (slope K scale : ℝ) (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) | |
| 1779 | - {z : SpaceTime} (hz : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G) (ht : z.1 < 1) : | |
| 1780 | - pressure W G e phi slope K scale z = PhysicalParticularWave.pressureVector | |
| 1781 | - (HarmonicCalculus.mode K (phase G phi₀ slope) (fun y => scale • f (point G y))) z := by | |
| 1782 | - ext i | |
| 1783 | - fin_cases i <;> simp only [pressure, PhysicalParticularWave.pressureVector, HarmonicCalculus.mode, | |
| 1784 | - amplitude_agrees W G e scale htime hz ht, carrier, phase_agrees W G hphi slope htime hz ht] | |
| 1785 | - | |
| 1786 | -noncomputable def pressureExtension {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1787 | - {phi phi₀ : Point → ℝ} (hphi : ContDiffOn ℝ ∞ phi (LocalRankDefect.positiveDomain W.carrier)) | |
| 1788 | - (he : OffplaneCorrectionExtensions.FiberAgreement W.carrier phi phi₀) | |
| 1789 | - (slope K scale : ℝ) (m : ℤ) (hm : K * slope = (m : ℝ)) | |
| 1790 | - (hr : 0 < G.radialScale) (htime : 0 < G.velocityScale * G.radialScale * G.epsilon) | |
| 1791 | - {delta : ℝ} (hd : 0 < delta) (hdelta : G.radialScale * delta < W.lower) | |
| 1792 | - {x : Space} (hx : slow G (0, x 2) ∈ W.carrier) : | |
| 1793 | - JointResidualLimits.OneSidedExtension (fun z => globalCartesianPotential delta | |
| 1794 | - (PhysicalParticularWave.pressureVector (HarmonicCalculus.mode K | |
| 1795 | - (phase G phi₀ slope) (fun y => scale • f (point G y)))) z 2) x where | |
| 1796 | - value z := globalCartesianPotential delta (pressure W G e phi slope K scale) z 2 | |
| 1797 | - domain := OffplaneCorrectionExtensions.physicalDomain (window W G) | |
| 1798 | - isOpen := OffplaneCorrectionExtensions.physicalDomain_open (window_open W G) | |
| 1799 | - mem := by simpa only [OffplaneCorrectionExtensions.physicalDomain, mem_preimage, | |
| 1800 | - OffplaneCorrectionExtensions.physicalSlow, sub_self, window] using hx | |
| 1801 | - smooth := (contDiffOn_piLp 2).mp | |
| 1802 | - (cartesian_smooth_on_slow hd (window_open W G) | |
| 1803 | - (pressure_smooth W G e hphi slope K scale hr) | |
| 1804 | - (pressure_periodic W G e phi slope K scale m hm) | |
| 1805 | - (pressure_zero W G e phi slope K scale hdelta hr.le)) 2 | |
| 1806 | - agrees := by | |
| 1807 | - intro z hz | |
| 1808 | - apply congrArg (fun v : Space => v 2) | |
| 1809 | - apply cartesian_eq_of_slow_fiber | |
| 1810 | - intro y hy | |
| 1811 | - have hyt : y.1 < 1 := by | |
| 1812 | - have heq := congrArg Prod.fst hy | |
| 1813 | - change 1 - y.1 = 1 - z.1 at heq | |
| 1814 | - have hzt : z.1 < 1 := hz.2.1 | |
| 1815 | - linarith | |
| 1816 | - exact pressure_agrees W G e he slope K scale htime (hy ▸ hz.1) hyt | |
| 1817 | - | |
| 1818 | -end PhysicalNative | |
| 1819 | - | |
| 1820 | -end LocalPhysical | |
| 1821 | - | |
| 1822 | -section ActualParticular | |
| 1823 | - | |
| 1824 | -open ProblemStatement | |
| 1825 | - | |
| 1826 | -/-- Primitive continuations for the same assembled particular wave. The | |
| 1827 | -source is the actual residual coefficient of `D.state`, not a replacement | |
| 1828 | -forcing. No velocity, pressure, or potential continuation is a field. -/ | |
| 1829 | -structure ParticularPrimitives {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 1830 | - (D : ParticularWaveAssembly.AssemblyData Parameter) (j : ℤ) where | |
| 1831 | - tangent : TangentGeometry W (D.reference.tangent j) | |
| 1832 | - source : FieldContinuation W (fun x => ParticularWaveAssembly.residualSource D.context D.state | |
| 1833 | - D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band (toChart x)) | |
| 1834 | - phase : Point → ℝ | |
| 1835 | - phase_smooth : ContDiffOn ℝ ∞ phase (LocalRankDefect.positiveDomain W.carrier) | |
| 1836 | - phase_agrees : OffplaneCorrectionExtensions.FiberAgreement W.carrier phase | |
| 1837 | - (fun x => D.carrierBlock.phase D.reference.band (toChart x)) | |
| 1838 | - cutoff_smooth : ContDiff ℝ ∞ D.reference.cutoff | |
| 1839 | - cutoff_inside : tsupport D.reference.cutoff ⊆ univ ×ˢ Ioo 0 D.reference.length | |
| 1840 | - | |
| 1841 | -namespace ParticularPrimitives | |
| 1842 | - | |
| 1843 | -variable {coord a b : ℝ} {W : OffplaneCorrectionExtensions.Window coord a b} | |
| 1844 | - {D : ParticularWaveAssembly.AssemblyData Parameter} {j : ℤ} (p : ParticularPrimitives W D j) | |
| 1845 | - | |
| 1846 | -noncomputable def velocity : FieldContinuation W (fun x => | |
| 1847 | - ParticularWaveAssembly.referenceVelocity D.reference D.context D.state D.carrierBlock | |
| 1848 | - D.gaussianInput D.aliasInput j (toChart x)) := | |
| 1849 | - p.tangent.complexVelocityContinuation p.source D.reference.geometry D.reference.length_pos.le | |
| 1850 | - p.cutoff_smooth D.reference.cutoff_compact p.cutoff_inside | |
| 1851 | - | |
| 1852 | -noncomputable def pressure : FieldContinuation W (fun x => | |
| 1853 | - ParticularWaveAssembly.referencePressure D.reference D.context D.state D.carrierBlock | |
| 1854 | - D.gaussianInput D.aliasInput j (toChart x)) := | |
| 1855 | - p.tangent.complexPressureContinuation p.source (PhysicalParticularWave.referenceFrequency D j) | |
| 1856 | - D.reference.geometry D.reference.length_pos.le p.cutoff_smooth D.reference.cutoff_compact p.cutoff_inside | |
| 1857 | - | |
| 1858 | -theorem carrier_integer (hk : D.carrierBlock.frequency D.reference.band ≠ 0) : | |
| 1859 | - PhysicalParticularWave.referenceFrequency D j * | |
| 1860 | - ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / D.carrierBlock.frequency D.reference.band) = | |
| 1861 | - ((j * D.carrierBlock.angularFrequency D.reference.band : ℤ) : ℝ) := by | |
| 1862 | - unfold PhysicalParticularWave.referenceFrequency | |
| 1863 | - push_cast | |
| 1864 | - field_simp [hk] | |
| 1865 | - | |
| 1866 | -noncomputable def potentialExtension (h Q : ℝ) (hQ : 0 < Q) (index : ℕ) | |
| 1867 | - (hk : D.carrierBlock.frequency D.reference.band ≠ 0) | |
| 1868 | - (hm : D.carrierBlock.angularFrequency D.reference.band ≠ 0) | |
| 1869 | - {delta : ℝ} (hd : 0 < delta) (hdelta : Q ^ (-(1 / 2 : ℝ)) * delta < W.lower) | |
| 1870 | - {x : Space} (hx : PhysicalNative.slow (PhysicalResidualBridge.commonGraph Q h index) (0, x 2) ∈ W.carrier) : | |
| 1871 | - JointResidualLimits.OneSidedExtension (PhysicalParticularWave.physicalPotential D h Q index delta j) x := by | |
| 1872 | - have hr : 0 < (PhysicalResidualBridge.commonGraph Q h index).radialScale := Real.rpow_pos_of_pos hQ _ | |
| 1873 | - have ht : 0 < (PhysicalResidualBridge.commonGraph Q h index).velocityScale * | |
| 1874 | - (PhysicalResidualBridge.commonGraph Q h index).radialScale * | |
| 1875 | - (PhysicalResidualBridge.commonGraph Q h index).epsilon := by | |
| 1876 | - rw [PhysicalResidualBridge.commonGraph_slowTimeScale hQ] | |
| 1877 | - exact Real.rpow_pos_of_pos hQ _ | |
| 1878 | - have hs : (D.carrierBlock.angularFrequency D.reference.band : ℝ) / | |
| 1879 | - D.carrierBlock.frequency D.reference.band ≠ 0 := div_ne_zero (by exact_mod_cast hm) hk | |
| 1880 | - exact PhysicalNative.potentialExtension W (PhysicalResidualBridge.commonGraph Q h index) | |
| 1881 | - p.velocity p.phase_smooth p.phase_agrees hs (PhysicalParticularWave.referenceFrequency D j) | |
| 1882 | - (Q ^ (-CoordinateAlgebra.A h)) (j * D.carrierBlock.angularFrequency D.reference.band) | |
| 1883 | - (carrier_integer hk) hr ht hd hdelta hx | |
| 1884 | - | |
| 1885 | -noncomputable def pressureExtension (h Q : ℝ) (hQ : 0 < Q) (index : ℕ) | |
| 1886 | - (hk : D.carrierBlock.frequency D.reference.band ≠ 0) | |
| 1887 | - {delta : ℝ} (hd : 0 < delta) (hdelta : Q ^ (-(1 / 2 : ℝ)) * delta < W.lower) | |
| 1888 | - {x : Space} (hx : PhysicalNative.slow (PhysicalResidualBridge.commonGraph Q h index) (0, x 2) ∈ W.carrier) : | |
| 1889 | - JointResidualLimits.OneSidedExtension (PhysicalParticularWave.physicalPressure D h Q index delta j) x := by | |
| 1890 | - have hr : 0 < (PhysicalResidualBridge.commonGraph Q h index).radialScale := Real.rpow_pos_of_pos hQ _ | |
| 1891 | - have ht : 0 < (PhysicalResidualBridge.commonGraph Q h index).velocityScale * | |
| 1892 | - (PhysicalResidualBridge.commonGraph Q h index).radialScale * | |
| 1893 | - (PhysicalResidualBridge.commonGraph Q h index).epsilon := by | |
| 1894 | - rw [PhysicalResidualBridge.commonGraph_slowTimeScale hQ] | |
| 1895 | - exact Real.rpow_pos_of_pos hQ _ | |
| 1896 | - exact PhysicalNative.pressureExtension W (PhysicalResidualBridge.commonGraph Q h index) | |
| 1897 | - p.pressure p.phase_smooth p.phase_agrees | |
| 1898 | - ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / D.carrierBlock.frequency D.reference.band) | |
| 1899 | - (PhysicalParticularWave.referenceFrequency D j) (Q ^ (-(2 * CoordinateAlgebra.A h))) | |
| 1900 | - (j * D.carrierBlock.angularFrequency D.reference.band) (carrier_integer hk) hr ht hd hdelta hx | |
| 1901 | - | |
| 1902 | -end ParticularPrimitives | |
| 1903 | - | |
| 1904 | -end ActualParticular | |
| 1905 | - | |
| 1906 | -section PhysicalSupport | |
| 1907 | - | |
| 1908 | -open ProblemStatement PhysicalCurlCovariance | |
| 1909 | - | |
| 1910 | -theorem cartesian_radialSupport {delta : ℝ} (hd : 0 < delta) | |
| 1911 | - {B : SpaceTime → ComplexVector} {S : Slow → Set ℝ} | |
| 1912 | - (hB : ∀ z, B z ≠ 0 → z.2 0 ∈ S (OffplaneCorrectionExtensions.physicalSlow z)) | |
| 1913 | - (x : SpaceTime) (hx : globalCartesianPotential delta B x ≠ 0) : | |
| 1914 | - PolarCharts.radius (PhysicalGraphBounds.radialProjection x) ∈ | |
| 1915 | - S (OffplaneCorrectionExtensions.physicalSlow x) := by | |
| 1916 | - classical | |
| 1917 | - unfold globalCartesianPotential at hx | |
| 1918 | - split_ifs at hx with he | |
| 1919 | - · have hb : B (polarCoordinates delta (Classical.choose he) x) ≠ 0 := by | |
| 1920 | - intro hz | |
| 1921 | - apply hx | |
| 1922 | - unfold cartesianPotential | |
| 1923 | - rw [hz] | |
| 1924 | - have hzero : realVector (0 : ComplexVector) = 0 := by ext i; simp | |
| 1925 | - rw [hzero, map_zero] | |
| 1926 | - have hs := hB _ hb | |
| 1927 | - rw [polarCoordinates_radius hd _ (Classical.choose_spec he), polarCoordinates_slow] at hs | |
| 1928 | - exact hs | |
| 1929 | - · exact (hx rfl).elim | |
| 1930 | - | |
| 1931 | -namespace PhysicalNative | |
| 1932 | - | |
| 1933 | -variable {coord a b : ℝ} (W : OffplaneCorrectionExtensions.Window coord a b) | |
| 1934 | - (G : PhysicalResidualBridge.ScaledGraph) | |
| 1935 | - | |
| 1936 | -noncomputable def radialFiber (_W : OffplaneCorrectionExtensions.Window coord a b) | |
| 1937 | - (G : PhysicalResidualBridge.ScaledGraph) (s : Slow) : Set ℝ := | |
| 1938 | - {r | G.radialScale * r ∈ Icc | |
| 1939 | - (OffplaneCorrectionExtensions.stableLength coord (slow G s) * a) | |
| 1940 | - (OffplaneCorrectionExtensions.stableLength coord (slow G s) * b)} | |
| 1941 | - | |
| 1942 | -theorem amplitude_radialSupport {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 1943 | - {f : Point → E} (e : FieldContinuation W f) (scale : ℝ) (z : SpaceTime) | |
| 1944 | - (hz : amplitude W G e scale z ≠ 0) : | |
| 1945 | - z.2 0 ∈ radialFiber W G (OffplaneCorrectionExtensions.physicalSlow z) := by | |
| 1946 | - classical | |
| 1947 | - by_cases hw : OffplaneCorrectionExtensions.physicalSlow z ∈ window W G | |
| 1948 | - · have he : e.value (point G z) ≠ 0 := by | |
| 1949 | - intro h | |
| 1950 | - exact hz (by simp only [amplitude, ite_eq_left hw, h, smul_zero]) | |
| 1951 | - exact e.supported (point G z) hw he | |
| 1952 | - · exact (hz (by simp only [amplitude, ite_eq_right hw])).elim | |
| 1953 | - | |
| 1954 | -theorem potential_radialSupport {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1955 | - (phi : Point → ℝ) (slope K scale : ℝ) (z : SpaceTime) | |
| 1956 | - (hz : potential W G e phi slope K scale z ≠ 0) : | |
| 1957 | - z.2 0 ∈ radialFiber W G (OffplaneCorrectionExtensions.physicalSlow z) := by | |
| 1958 | - apply amplitude_radialSupport W G e scale z | |
| 1959 | - intro ha | |
| 1960 | - apply hz | |
| 1961 | - ext i | |
| 1962 | - simp [potential, PhysicalCurlCovariance.referencePotential, CurlClassBounds.vectorPotential, | |
| 1963 | - CurlClassBounds.coefficient, vectorMode, HarmonicCalculus.mode, ha] | |
| 1964 | - | |
| 1965 | -theorem pressure_radialSupport {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1966 | - (phi : Point → ℝ) (slope K scale : ℝ) (z : SpaceTime) | |
| 1967 | - (hz : pressure W G e phi slope K scale z ≠ 0) : | |
| 1968 | - z.2 0 ∈ radialFiber W G (OffplaneCorrectionExtensions.physicalSlow z) := by | |
| 1969 | - apply amplitude_radialSupport W G e scale z | |
| 1970 | - intro ha | |
| 1971 | - apply hz | |
| 1972 | - ext i | |
| 1973 | - fin_cases i <;> simp [pressure, PhysicalParticularWave.pressureVector, HarmonicCalculus.mode, ha] | |
| 1974 | - | |
| 1975 | -theorem potential_cartesian_radialSupport {f : Point → ComplexVector} (e : FieldContinuation W f) | |
| 1976 | - (phi : Point → ℝ) (slope K scale : ℝ) {delta : ℝ} (hd : 0 < delta) | |
| 1977 | - (z : SpaceTime) (hz : globalCartesianPotential delta (potential W G e phi slope K scale) z ≠ 0) : | |
| 1978 | - PolarCharts.radius (PhysicalGraphBounds.radialProjection z) ∈ | |
| 1979 | - radialFiber W G (OffplaneCorrectionExtensions.physicalSlow z) := | |
| 1980 | - cartesian_radialSupport hd (potential_radialSupport W G e phi slope K scale) z hz | |
| 1981 | - | |
| 1982 | -theorem pressure_cartesian_radialSupport {f : Point → ℂ} (e : FieldContinuation W f) | |
| 1983 | - (phi : Point → ℝ) (slope K scale : ℝ) {delta : ℝ} (hd : 0 < delta) | |
| 1984 | - (z : SpaceTime) (hz : globalCartesianPotential delta (pressure W G e phi slope K scale) z 2 ≠ 0) : | |
| 1985 | - PolarCharts.radius (PhysicalGraphBounds.radialProjection z) ∈ | |
| 1986 | - radialFiber W G (OffplaneCorrectionExtensions.physicalSlow z) := by | |
| 1987 | - apply cartesian_radialSupport hd (pressure_radialSupport W G e phi slope K scale) z | |
| 1988 | - intro h | |
| 1989 | - exact hz (by rw [h]; rfl) | |
| 1990 | - | |
| 1991 | -end PhysicalNative | |
| 1992 | - | |
| 1993 | -end PhysicalSupport | |
| 1994 | - | |
| 1995 | -end NavierStokes.WaveStageContinuation | |
+31 −0 routes/s1-ns-wave-files-2/README.md added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-wave-files-2 | |
| 6 | + | |
| 7 | +One file unit of S-1 (issue #10), family `NavierStokes/Wave*`: the second cut of the family, after the first pass | |
| 8 | +(`s1-ns-wave-files`, pull request #56). It deletes `NavierStokes/WaveStageContinuation.lean` (1995 lines: the | |
| 9 | +supported continuation of actual wave stages — native geometry, entry and exit clocks and cutoff retained, primitive | |
| 10 | +coefficient and forcing fields continued, agreement on whole positive slow fibers as the Volterra solve needs). | |
| 11 | + | |
| 12 | +The first pass could not take this file: two files then in the tree imported it and used its declarations, | |
| 13 | +`NavierStokes/CycleContinuationInvariant.lean` and `NavierStokes/InitialHarmonicContinuation.lean`. Those units | |
| 14 | +(`s1-ns-cycle-files`, `s1-ns-initial-files`) are merged, and neither file is in the tree now, so the file goes too. | |
| 15 | + | |
| 16 | +Nothing in the tree imports the module or names it: `git grep -n '^import NavierStokes\.WaveStageContinuation$'` and | |
| 17 | +`git grep -n 'WaveStageContinuation'` find no Lean file but the deleted one (only route notes mention the name). No | |
| 18 | +statement of `NavierStokes/PaperResults.lean` or `NavierStokes/PeriodicPaperTheorem.lean` changes, and no other file | |
| 19 | +is touched. `python3 checks/challenge.py .` ends with `ok: 4 challenge files and the build configuration as | |
| 20 | +approved; …`. | |
| 21 | + | |
| 22 | +The deletion matches Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, branch `treant/01-dead_modules`), | |
| 23 | +which cut this module as dead; it rests on the graph of `import` lines alone, which shows that nothing reachable from | |
| 24 | +`NavierStokes/ComparatorSolution.lean`, `NavierStokes/PaperResults.lean` or `Euler/Solution.lean` imports the file — | |
| 25 | +not that every file left is needed. | |
| 26 | + | |
| 27 | +## Next | |
| 28 | + | |
| 29 | +The maintainer's review after `challenge` and `build`. The other `Wave*` files still in the tree | |
| 30 | +(`WaveEdgeExtension`, `WaveEnvelopeTransport`, `WaveInteractionBounds`, `WaveStateRegularity`) stay: files in the | |
| 31 | +tree import them. S-1's second half, the declarations nothing uses, needs a build. | |