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

| 1 | import NavierStokes.CopySolveCompatibility |
| 2 | import NavierStokes.LinearWaveBounds |
| 3 | import NavierStokes.HarmonicFields |
| 4 | |
| 5 | /-! |
| 6 | # Angular invariance of constructed stripped copy and curl coefficients |
| 7 | |
| 8 | Only primitive translation identities are assumed. The actual copy solve, |
| 9 | its pressure, and the stripped cylindrical curl inherit those identities. |
| 10 | The oscillatory carrier retains its separate angular character. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.CopyAngularInvariance |
| 16 | |
| 17 | open Set Function Filter |
| 18 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 19 | open CommonCoverSolve TorusInverse |
| 20 | |
| 21 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 22 | |
| 23 | noncomputable def Invariant (θ : D) {E : Type} (f : D → E) : Prop := |
| 24 | ∀ (x : D) (t : ℝ), f (x + t • θ) = f x |
| 25 | |
| 26 | noncomputable def AffinePhase (θ : D) (m : ℝ) (Φ : D → ℝ) : Prop := |
| 27 | ∀ (x : D) (t : ℝ), Φ (x + t • θ) = Φ x + m * t |
| 28 | |
| 29 | namespace Invariant |
| 30 | |
| 31 | variable {θ : D} {E F G : Type} {f : D → E} {g : D → F} |
| 32 | |
| 33 | theorem const (e : E) : Invariant θ (fun _ : D => e) := fun _ _ => rfl |
| 34 | |
| 35 | theorem map (hf : Invariant θ f) (T : E → F) : Invariant θ (fun x => T (f x)) := by |
| 36 | intro x t |
| 37 | exact congrArg T (hf x t) |
| 38 | |
| 39 | theorem map₂ (hf : Invariant θ f) (hg : Invariant θ g) (T : E → F → G) : |
| 40 | Invariant θ (fun x => T (f x) (g x)) := by |
| 41 | intro x t |
| 42 | exact congrArg₂ T (hf x t) (hg x t) |
| 43 | |
| 44 | theorem component {ι : Type} {F : ι → Type} {f : D → ∀ i, F i} |
| 45 | (hf : Invariant θ f) (i : ι) : Invariant θ (fun x => f x i) := hf.map (fun v => v i) |
| 46 | |
| 47 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 48 | |
| 49 | omit [NormedSpace ℝ E] in |
| 50 | theorem tsum_invariant {ι : Type} {f : ι → D → E} (hf : ∀ i, Invariant θ (f i)) : |
| 51 | Invariant θ (fun x => ∑' i, f i x) := by |
| 52 | intro x t |
| 53 | apply tsum_congr |
| 54 | intro i |
| 55 | exact hf i x t |
| 56 | |
| 57 | /-- Translation covariance of the actual Fréchet derivative, including its |
| 58 | canonical zero value when the original function is not differentiable. -/ |
| 59 | theorem fderiv_invariant (hf : Invariant θ f) : Invariant θ (fderiv ℝ f) := by |
| 60 | intro x t |
| 61 | have he : (fun y => f (y + t • θ)) = f := funext (fun y => hf y t) |
| 62 | rw [← fderiv_comp_add_right (t • θ), he] |
| 63 | |
| 64 | theorem along {V : D → D} (hf : Invariant θ f) (hV : Invariant θ V) : |
| 65 | Invariant θ (HarmonicCalculus.along V f) := by |
| 66 | intro x t |
| 67 | simp only [HarmonicCalculus.along, hf.fderiv_invariant x t, hV x t] |
| 68 | |
| 69 | theorem directional_zero (hf : Invariant θ f) (x : D) : fderiv ℝ f x θ = 0 := by |
| 70 | by_cases hd : DifferentiableAt ℝ f x |
| 71 | · have hline : HasDerivAt (fun t : ℝ => f (x + t • θ)) (fderiv ℝ f x θ) 0 := by |
| 72 | apply hd.hasFDerivAt.comp_hasDerivAt_of_eq (0 : ℝ) |
| 73 | · simpa only [one_smul, id_eq] using (((hasDerivAt_id (0 : ℝ)).smul_const θ).const_add x) |
| 74 | · simp |
| 75 | have he : (fun t : ℝ => f (x + t • θ)) = fun _ => f x := funext (hf x) |
| 76 | rw [he] at hline |
| 77 | exact hline.unique (hasDerivAt_const 0 (f x)) |
| 78 | · rw [fderiv_zero_of_not_differentiableAt hd, _root_.zero_apply] |
| 79 | |
| 80 | theorem along_zero (hf : Invariant θ f) (x : D) : |
| 81 | HarmonicCalculus.along (fun _ => θ) f x = 0 := hf.directional_zero x |
| 82 | |
| 83 | end Invariant |
| 84 | |
| 85 | namespace AffinePhase |
| 86 | |
| 87 | variable {θ : D} {m : ℝ} {Φ : D → ℝ} |
| 88 | |
| 89 | theorem fderiv_invariant (hΦ : AffinePhase θ m Φ) : Invariant θ (fderiv ℝ Φ) := by |
| 90 | intro x t |
| 91 | have he : (fun y => Φ (y + t • θ)) = fun y => Φ y + m * t := funext (fun y => hΦ y t) |
| 92 | rw [← fderiv_comp_add_right (t • θ), he, fderiv_add_const] |
| 93 | |
| 94 | theorem along_invariant (hΦ : AffinePhase θ m Φ) {V : D → D} (hV : Invariant θ V) : |
| 95 | Invariant θ (HarmonicCalculus.along V Φ) := by |
| 96 | intro x t |
| 97 | simp only [HarmonicCalculus.along, hΦ.fderiv_invariant x t, hV x t] |
| 98 | |
| 99 | theorem directional_eq (hΦ : AffinePhase θ m Φ) {x : D} (hd : DifferentiableAt ℝ Φ x) : |
| 100 | fderiv ℝ Φ x θ = m := by |
| 101 | have hline : HasDerivAt (fun t : ℝ => Φ (x + t • θ)) (fderiv ℝ Φ x θ) 0 := by |
| 102 | apply hd.hasFDerivAt.comp_hasDerivAt_of_eq (0 : ℝ) |
| 103 | · simpa only [one_smul, id_eq] using (((hasDerivAt_id (0 : ℝ)).smul_const θ).const_add x) |
| 104 | · simp |
| 105 | have he : (fun t : ℝ => Φ (x + t • θ)) = fun t => Φ x + m * t := funext (hΦ x) |
| 106 | rw [he] at hline |
| 107 | have href : HasDerivAt (fun t : ℝ => Φ x + m * t) m 0 := by |
| 108 | simpa only [mul_one, id_eq] using ((hasDerivAt_id (0 : ℝ)).const_mul m).const_add (Φ x) |
| 109 | exact hline.unique href |
| 110 | |
| 111 | end AffinePhase |
| 112 | |
| 113 | /-! ## Actual copy solves under angular translation of the slow parameter -/ |
| 114 | |
| 115 | section CopySolve |
| 116 | |
| 117 | variable {P V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 118 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 119 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 120 | {a b : ℝ} |
| 121 | |
| 122 | theorem slow_shift_apply {F : Type} {f : P × Plane → F} {θ : P} |
| 123 | (hf : Invariant (θ, (0 : Plane)) f) (p : P) (Y : Plane) (t : ℝ) : |
| 124 | f (p + t • θ, Y) = f (p, Y) := by |
| 125 | simpa using hf (p, Y) t |
| 126 | |
| 127 | theorem anchoredSolve_invariant (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 128 | (θ : P) (hA : Invariant (θ, (0 : Plane)) d.coefficient) |
| 129 | (hB : Invariant (θ, (0 : Plane)) d.forcingMap) |
| 130 | (hf : Invariant (θ, (0 : Plane)) d.source) (j : Frequency) (s : ℝ) : |
| 131 | Invariant (θ, (0 : Plane)) (fun x => d.anchoredSolve g hab j x s) := by |
| 132 | rintro ⟨p, Y⟩ t |
| 133 | change d.anchoredSolve g hab j (p + t • θ, Y + t • (0 : Plane)) s = _ |
| 134 | rw [smul_zero, add_zero] |
| 135 | have hAp : d.coefficientPath (a := a) (b := b) g j (p + t • θ, Y) = |
| 136 | d.coefficientPath g j (p, Y) := by |
| 137 | apply CopySolveCompatibility.pathFamily_congr |
| 138 | intro u |
| 139 | exact slow_shift_apply hA p _ t |
| 140 | have hfp : d.forcingPath (a := a) (b := b) g j (p + t • θ, Y) = |
| 141 | d.forcingPath g j (p, Y) := by |
| 142 | apply CopySolveCompatibility.pathFamily_congr |
| 143 | intro u |
| 144 | simp only [LinearData.forcingAlong, slow_shift_apply hB, slow_shift_apply hf] |
| 145 | simp only [LinearData.anchoredSolve, hAp, hfp] |
| 146 | |
| 147 | theorem copySolve_invariant (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 148 | (θ : P) (hA : Invariant (θ, (0 : Plane)) d.coefficient) |
| 149 | (hB : Invariant (θ, (0 : Plane)) d.forcingMap) |
| 150 | (hf : Invariant (θ, (0 : Plane)) d.source) (j : Frequency) : |
| 151 | Invariant (θ, (0 : Plane)) (d.copySolve g hab j) := by |
| 152 | rintro ⟨p, Y⟩ t |
| 153 | change d.copySolve g hab j (p + t • θ, Y + t • (0 : Plane)) = _ |
| 154 | rw [smul_zero, add_zero] |
| 155 | unfold LinearData.copySolve |
| 156 | exact slow_shift_apply (anchoredSolve_invariant d g hab θ hA hB hf j _) p Y t |
| 157 | |
| 158 | end CopySolve |
| 159 | |
| 160 | /-! ## Tangent data and the actual pressure formula -/ |
| 161 | |
| 162 | section Tangent |
| 163 | |
| 164 | variable {P H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 165 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 166 | {a b : ℝ} |
| 167 | |
| 168 | structure TangentInvariant (θ : P) (d : TangentData P H) : Prop where |
| 169 | normal : Invariant (θ, (0 : Plane)) d.normal |
| 170 | normalDot : Invariant (θ, (0 : Plane)) d.normalDot |
| 171 | action : Invariant (θ, (0 : Plane)) d.action |
| 172 | damping : Invariant (θ, (0 : Plane)) d.damping |
| 173 | source : Invariant (θ, (0 : Plane)) d.source |
| 174 | |
| 175 | omit [CompleteSpace H] in |
| 176 | theorem TangentInvariant.coefficient {θ : P} {d : TangentData P H} (h : TangentInvariant θ d) : |
| 177 | Invariant (θ, (0 : Plane)) d.linearData.coefficient := by |
| 178 | intro x t |
| 179 | simp only [TangentData.linearData, h.normal x t, h.normalDot x t, h.action x t, h.damping x t] |
| 180 | |
| 181 | omit [CompleteSpace H] in |
| 182 | theorem TangentInvariant.forcingMap {θ : P} {d : TangentData P H} (h : TangentInvariant θ d) : |
| 183 | Invariant (θ, (0 : Plane)) d.linearData.forcingMap := by |
| 184 | intro x t |
| 185 | simp only [TangentData.linearData, h.normal x t] |
| 186 | |
| 187 | theorem TangentInvariant.copySolve_invariant {θ : P} {d : TangentData P H} (h : TangentInvariant θ d) |
| 188 | (g : Geometry) (hab : a ≤ b) (j : Frequency) : |
| 189 | Invariant (θ, (0 : Plane)) (d.linearData.copySolve g hab j) := |
| 190 | NavierStokes.CopyAngularInvariance.copySolve_invariant d.linearData g hab θ |
| 191 | h.coefficient h.forcingMap h.source j |
| 192 | |
| 193 | noncomputable def copyNativePoint (g : Geometry) (j : Frequency) (x : P × Plane) : P × Plane := |
| 194 | (x.1, g.coordinates j x.2) |
| 195 | |
| 196 | theorem native_invariant {F : Type} {θ : P} {f : P × Plane → F} |
| 197 | (hf : Invariant (θ, (0 : Plane)) f) (g : Geometry) (j : Frequency) : |
| 198 | Invariant (θ, (0 : Plane)) (fun x => f (copyNativePoint g j x)) := by |
| 199 | rintro ⟨p, Y⟩ t |
| 200 | change f (copyNativePoint g j (p + t • θ, Y + t • (0 : Plane))) = _ |
| 201 | rw [smul_zero, add_zero] |
| 202 | unfold copyNativePoint |
| 203 | exact slow_shift_apply hf p _ t |
| 204 | |
| 205 | /-- Same scalar formula as the particular-wave pressure, evaluated on the |
| 206 | constructed copy solve and the actual source at the current common point. -/ |
| 207 | noncomputable def copyPressureReal (d : TangentData P H) (g : Geometry) (hab : a ≤ b) |
| 208 | (j : Frequency) (x : P × Plane) : ℝ := |
| 209 | TangentProjection.pressureCoefficient (d.normal (copyNativePoint g j x)) |
| 210 | (d.normalDot (copyNativePoint g j x)) (d.linearData.copySolve g hab j x) |
| 211 | (d.action (copyNativePoint g j x) (d.linearData.copySolve g hab j x)) (d.source x) |
| 212 | |
| 213 | noncomputable def copyPressure (d : TangentData P H) (g : Geometry) (hab : a ≤ b) |
| 214 | (j : Frequency) (K : ℝ) (x : P × Plane) : ℂ := |
| 215 | Complex.I * (copyPressureReal d g hab j x : ℂ) / (K : ℂ) |
| 216 | |
| 217 | theorem TangentInvariant.copyPressureReal_invariant {θ : P} {d : TangentData P H} |
| 218 | (h : TangentInvariant θ d) (g : Geometry) (hab : a ≤ b) (j : Frequency) : |
| 219 | Invariant (θ, (0 : Plane)) (copyPressureReal d g hab j) := by |
| 220 | intro x t |
| 221 | simp only [copyPressureReal, native_invariant h.normal g j x t, |
| 222 | native_invariant h.normalDot g j x t, native_invariant h.action g j x t, |
| 223 | h.copySolve_invariant g hab j x t, h.source x t] |
| 224 | |
| 225 | theorem TangentInvariant.copyPressure_invariant {θ : P} {d : TangentData P H} |
| 226 | (h : TangentInvariant θ d) (g : Geometry) (hab : a ≤ b) (j : Frequency) (K : ℝ) : |
| 227 | Invariant (θ, (0 : Plane)) (copyPressure d g hab j K) := |
| 228 | (h.copyPressureReal_invariant g hab j).map (fun r : ℝ => Complex.I * (r : ℂ) / (K : ℂ)) |
| 229 | |
| 230 | theorem nativeCutoff_invariant (θ : P) (g : Geometry) (κ : Plane → ℝ) (j : Frequency) : |
| 231 | Invariant (θ, (0 : Plane)) (fun x : P × Plane => κ (g.coordinates j x.2)) := by |
| 232 | have hY : Invariant (θ, (0 : Plane)) (fun x : P × Plane => x.2) := by |
| 233 | intro x t |
| 234 | change x.2 + t • (0 : Plane) = x.2 |
| 235 | simp |
| 236 | exact hY.map (fun Y => κ (g.coordinates j Y)) |
| 237 | |
| 238 | noncomputable def commonPressure (d : TangentData P H) (g : Geometry) (hab : a ≤ b) |
| 239 | (κ : Plane → ℝ) (K : ℝ) (x : P × Plane) : ℂ := |
| 240 | ∑' j : Frequency, (κ (g.coordinates j x.2) : ℂ) * copyPressure d g hab j K x |
| 241 | |
| 242 | theorem TangentInvariant.commonPressure_invariant {θ : P} {d : TangentData P H} |
| 243 | (h : TangentInvariant θ d) (g : Geometry) (hab : a ≤ b) (κ : Plane → ℝ) (K : ℝ) : |
| 244 | Invariant (θ, (0 : Plane)) (commonPressure d g hab κ K) := by |
| 245 | apply Invariant.tsum_invariant |
| 246 | intro j |
| 247 | exact (nativeCutoff_invariant θ g κ j).map₂ (h.copyPressure_invariant g hab j K) |
| 248 | (fun r p => (r : ℂ) * p) |
| 249 | |
| 250 | end Tangent |
| 251 | |
| 252 | /-! ## Invariance of the actual stripped cylindrical curl -/ |
| 253 | |
| 254 | section Curl |
| 255 | |
| 256 | variable {θ : D} {R : D → ℝ} {Vr Vθ Vz : D → D} {Φ : D → ℝ} {m : ℝ} |
| 257 | {a : D → CurlClassBounds.ComplexVector} |
| 258 | |
| 259 | theorem phaseNormal_invariant (hR : Invariant θ R) |
| 260 | (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) |
| 261 | (hΦ : AffinePhase θ m Φ) : |
| 262 | Invariant θ (HarmonicCalculus.phaseNormal R Vr Vθ Vz Φ) := by |
| 263 | intro x t |
| 264 | simp only [HarmonicCalculus.phaseNormal, hΦ.along_invariant hr x t, |
| 265 | hΦ.along_invariant hθ x t, hΦ.along_invariant hz x t, hR x t] |
| 266 | |
| 267 | theorem coefficient_invariant (hR : Invariant θ R) |
| 268 | (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) |
| 269 | (hΦ : AffinePhase θ m Φ) (ha : Invariant θ a) : |
| 270 | Invariant θ (CurlClassBounds.coefficient R Vr Vθ Vz Φ a) := |
| 271 | (phaseNormal_invariant hR hr hθ hz hΦ).map₂ ha CurlClassBounds.normalCoefficient |
| 272 | |
| 273 | theorem cylindricalCurl_invariant (hR : Invariant θ R) |
| 274 | (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) |
| 275 | (ha : Invariant θ a) : Invariant θ (CurlClassBounds.cylindricalCurl R Vr Vθ Vz a) := by |
| 276 | intro x t |
| 277 | simp only [CurlClassBounds.cylindricalCurl, hR x t, |
| 278 | (ha.component 2).along hθ x t, (ha.component 1).along hz x t, |
| 279 | (ha.component 0).along hz x t, (ha.component 2).along hr x t, |
| 280 | (ha.component 1).along hr x t, (ha.component 0).along hθ x t, ha x t] |
| 281 | |
| 282 | theorem curlRemainder_invariant (hR : Invariant θ R) |
| 283 | (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) |
| 284 | (ha : Invariant θ a) (K : ℝ) : |
| 285 | Invariant θ (CurlClassBounds.curlRemainder K R Vr Vθ Vz a) := |
| 286 | (cylindricalCurl_invariant hR hr hθ hz ha).map |
| 287 | (fun v => (1 / K) • (Complex.I • v)) |
| 288 | |
| 289 | theorem realizedCoefficient_invariant (hR : Invariant θ R) |
| 290 | (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) |
| 291 | (hΦ : AffinePhase θ m Φ) (ha : Invariant θ a) (K : ℝ) : |
| 292 | Invariant θ (CurlClassBounds.realizedCoefficient K R Vr Vθ Vz Φ a) := |
| 293 | ha.map₂ (curlRemainder_invariant hR hr hθ hz (coefficient_invariant hR hr hθ hz hΦ ha) K) |
| 294 | (fun u v => u + v) |
| 295 | |
| 296 | end Curl |
| 297 | |
| 298 | section ActualCopyCurl |
| 299 | |
| 300 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 301 | {θ : P} {d : TangentData P CurlClassBounds.RealVector} {a b : ℝ} |
| 302 | |
| 303 | end ActualCopyCurl |
| 304 | |
| 305 | /-! ## The carrier has its angular character; only the coefficient is invariant -/ |
| 306 | |
| 307 | section HarmonicPhase |
| 308 | |
| 309 | variable {θ : D} {Φ : D → ℝ} {m : ℝ} |
| 310 | |
| 311 | theorem carrier_translate (hΦ : AffinePhase θ m Φ) (K : ℝ) (x : D) (t : ℝ) : |
| 312 | HarmonicCalculus.carrier K Φ (x + t • θ) = |
| 313 | Complex.exp (HarmonicCalculus.phaseFactor K * ((m * t : ℝ) : ℂ)) * |
| 314 | HarmonicCalculus.carrier K Φ x := by |
| 315 | simp only [HarmonicCalculus.carrier, hΦ x t, Complex.ofReal_add, mul_add, Complex.exp_add] |
| 316 | ring |
| 317 | |
| 318 | theorem mode_translate {a : D → ℂ} (ha : Invariant θ a) (hΦ : AffinePhase θ m Φ) |
| 319 | (K : ℝ) (x : D) (t : ℝ) : |
| 320 | HarmonicCalculus.mode K Φ a (x + t • θ) = |
| 321 | Complex.exp (HarmonicCalculus.phaseFactor K * ((m * t : ℝ) : ℂ)) * |
| 322 | HarmonicCalculus.mode K Φ a x := by |
| 323 | simp only [HarmonicCalculus.mode, ha x t, carrier_translate hΦ] |
| 324 | ring |
| 325 | |
| 326 | theorem vectorMode_translate {a : D → HarmonicCalculus.ComplexVector} |
| 327 | (ha : Invariant θ a) (hΦ : AffinePhase θ m Φ) (K : ℝ) (x : D) (t : ℝ) : |
| 328 | HarmonicCalculus.vectorMode K Φ a (x + t • θ) = |
| 329 | Complex.exp (HarmonicCalculus.phaseFactor K * ((m * t : ℝ) : ℂ)) • |
| 330 | HarmonicCalculus.vectorMode K Φ a x := by |
| 331 | ext i |
| 332 | exact mode_translate (ha.component i) hΦ K x t |
| 333 | |
| 334 | end HarmonicPhase |
| 335 | |
| 336 | section Slice |
| 337 | |
| 338 | variable {P E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 339 | |
| 340 | theorem invariant_eq_zeroSlice {f : P × ℝ → E} (hf : Invariant ((0 : P), (1 : ℝ)) f) |
| 341 | (p : P) (t : ℝ) : f (p, t) = f (p, 0) := by |
| 342 | simpa using hf (p, 0) t |
| 343 | |
| 344 | theorem affinePhase_eq_zeroSlice {Φ : P × ℝ → ℝ} {m : ℝ} |
| 345 | (hΦ : AffinePhase ((0 : P), (1 : ℝ)) m Φ) (p : P) (t : ℝ) : |
| 346 | Φ (p, t) = Φ (p, 0) + m * t := by |
| 347 | simpa using hΦ (p, 0) t |
| 348 | |
| 349 | end Slice |
| 350 | |
| 351 | /-! ## ExactConditions for the actual corrected coefficient -/ |
| 352 | |
| 353 | section ExactConditions |
| 354 | |
| 355 | open LinearWaveBounds WeightedClasses |
| 356 | |
| 357 | variable {s : StripData D} {d : GraphDirections D} {a : WaveCoefficients D} |
| 358 | |
| 359 | theorem base_invariant {θ : D} {R b F G : D → ℝ} |
| 360 | (hR : Invariant θ R) (hb : Invariant θ b) (hF : Invariant θ F) (hG : Invariant θ G) : |
| 361 | Invariant θ (LinearWaveResidual.base R b F G) := by |
| 362 | intro x t |
| 363 | simp only [LinearWaveResidual.base, hR x t, hb x t, hF x t, hG x t] |
| 364 | |
| 365 | theorem exactConditions_of_invariants |
| 366 | (hΦs : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 367 | (hRne : ∀ n x, x ∈ s.domain → a.radius n x ≠ 0) |
| 368 | (hDrR : ∀ n x, x ∈ s.domain → HarmonicCalculus.along (d.radialField n) (a.radius n) x = 1) |
| 369 | (hR : ∀ n, Invariant d.angular (a.radius n)) |
| 370 | (hb : ∀ n, Invariant d.angular (a.radialBase n)) |
| 371 | (hF : ∀ n, Invariant d.angular (a.frequencyBase n)) |
| 372 | (hG : ∀ n, Invariant d.angular (a.axialBase n)) |
| 373 | (hΦ : ∀ n, ∃ m, AffinePhase d.angular m (a.phase n)) |
| 374 | (ha : ∀ n, Invariant d.angular (a.amplitude n)) |
| 375 | (hp : ∀ n, Invariant d.angular (a.pressure n)) : ExactConditions s d a := by |
| 376 | refine ⟨hΦs, hRne, hDrR, ?_, ?_, ?_, ?_⟩ |
| 377 | · intro n x _ i |
| 378 | exact ((base_invariant (hR n) (hb n) (hF n) (hG n)).component i).along_zero x |
| 379 | · intro n i x _ |
| 380 | exact ((ha n).component i).along_zero x |
| 381 | · intro n |
| 382 | obtain ⟨m, hm⟩ := hΦ n |
| 383 | refine ⟨m, ?_⟩ |
| 384 | intro x hx |
| 385 | exact hm.directional_eq (((hΦs n).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 386 | · intro n x _ |
| 387 | exact (hp n).along_zero x |
| 388 | |
| 389 | theorem corrected_amplitude_invariant (ψ : ℕ → D → ℝ) |
| 390 | (hR : ∀ n, Invariant d.angular (a.radius n)) |
| 391 | (hr : ∀ n, Invariant d.angular (d.radialField n)) |
| 392 | (hz : ∀ n, Invariant d.angular (d.axialField s n)) |
| 393 | (hΦ : ∀ n, ∃ m, AffinePhase d.angular m (a.phase n)) |
| 394 | (ha : ∀ n, Invariant d.angular (a.amplitude n)) |
| 395 | (hψ : ∀ n, Invariant d.angular (ψ n)) (n : ℕ) : |
| 396 | Invariant d.angular ((a.corrected s d ψ).amplitude n) := by |
| 397 | obtain ⟨m, hm⟩ := hΦ n |
| 398 | exact realizedCoefficient_invariant (hR n) (hr n) (Invariant.const _) (hz n) hm |
| 399 | ((hψ n).map₂ (ha n) (fun r v => r • v)) (a.frequency n) |
| 400 | |
| 401 | theorem corrected_pressure_invariant (ψ : ℕ → D → ℝ) |
| 402 | (hp : ∀ n, Invariant d.angular (a.pressure n)) |
| 403 | (hψ : ∀ n, Invariant d.angular (ψ n)) (n : ℕ) : |
| 404 | Invariant d.angular ((a.corrected s d ψ).pressure n) := |
| 405 | (hψ n).map₂ (hp n) (fun r p => (r : ℂ) * p) |
| 406 | |
| 407 | theorem exactConditions_corrected_of_invariants (ψ : ℕ → D → ℝ) |
| 408 | (hΦs : ∀ n, ContDiffOn ℝ ∞ (a.phase n) s.domain) |
| 409 | (hRne : ∀ n x, x ∈ s.domain → a.radius n x ≠ 0) |
| 410 | (hDrR : ∀ n x, x ∈ s.domain → HarmonicCalculus.along (d.radialField n) (a.radius n) x = 1) |
| 411 | (hR : ∀ n, Invariant d.angular (a.radius n)) |
| 412 | (hb : ∀ n, Invariant d.angular (a.radialBase n)) |
| 413 | (hF : ∀ n, Invariant d.angular (a.frequencyBase n)) |
| 414 | (hG : ∀ n, Invariant d.angular (a.axialBase n)) |
| 415 | (hr : ∀ n, Invariant d.angular (d.radialField n)) |
| 416 | (hz : ∀ n, Invariant d.angular (d.axialField s n)) |
| 417 | (hΦ : ∀ n, ∃ m, AffinePhase d.angular m (a.phase n)) |
| 418 | (ha : ∀ n, Invariant d.angular (a.amplitude n)) |
| 419 | (hp : ∀ n, Invariant d.angular (a.pressure n)) |
| 420 | (hψ : ∀ n, Invariant d.angular (ψ n)) : ExactConditions s d (a.corrected s d ψ) := |
| 421 | exactConditions_of_invariants hΦs hRne hDrR hR hb hF hG hΦ |
| 422 | (corrected_amplitude_invariant ψ hR hr hz hΦ ha hψ) |
| 423 | (corrected_pressure_invariant ψ hp hψ) |
| 424 | |
| 425 | end ExactConditions |
| 426 | |
| 427 | end NavierStokes.CopyAngularInvariance |