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.HarmonicResidual |
| 2 | import NavierStokes.WaveInteractionBounds |
| 3 | |
| 4 | /-! |
| 5 | # Actual harmonic residual changes under a mean increment |
| 6 | |
| 7 | The wave and its pressure are held fixed. Every coefficient below belongs to |
| 8 | the actual differential residual in `HarmonicResidual`; excluded errors are |
| 9 | kept as separate additive differences. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.HarmonicMeanInteraction |
| 15 | |
| 16 | open Set Filter Function HarmonicCalculus HarmonicFields WeightedClasses |
| 17 | open WaveInteractionBounds |
| 18 | open scoped Topology ContDiff BigOperators ComplexConjugate |
| 19 | |
| 20 | |
| 21 | |
| 22 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | |
| 24 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 25 | @[simp] theorem coeff_add (a b : Coefficients D) (j : ℤ) (x : D) : |
| 26 | (a + b) j x = a j x + b j x := rfl |
| 27 | |
| 28 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 29 | @[simp] theorem coeff_sub (a b : Coefficients D) (j : ℤ) (x : D) : |
| 30 | (a - b) j x = a j x - b j x := rfl |
| 31 | |
| 32 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 33 | @[simp] theorem coeff_neg (a : Coefficients D) (j : ℤ) (x : D) : (-a) j x = -a j x := rfl |
| 34 | |
| 35 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 36 | @[simp] theorem coeff_zero (j : ℤ) (x : D) : (0 : Coefficients D) j x = 0 := rfl |
| 37 | |
| 38 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 39 | @[simp] theorem constant_mul (f : D → ℂ) (a : Coefficients D) (j : ℤ) (x : D) : |
| 40 | (constantCoefficient f * a) j x = f x * a j x := by |
| 41 | rw [constantCoefficient, AddMonoidAlgebra.coeff_single_zero_mul] |
| 42 | rfl |
| 43 | |
| 44 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 45 | @[simp] theorem mul_constant (a : Coefficients D) (f : D → ℂ) (j : ℤ) (x : D) : |
| 46 | (a * constantCoefficient f) j x = a j x * f x := by |
| 47 | rw [constantCoefficient, AddMonoidAlgebra.coeff_mul_single_zero] |
| 48 | rfl |
| 49 | |
| 50 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 51 | theorem constant_mul_constant (f g : D → ℂ) : |
| 52 | constantCoefficient f * constantCoefficient g = constantCoefficient (fun x => f x * g x) := by |
| 53 | ext j x |
| 54 | rw [constant_mul] |
| 55 | by_cases hj : j = 0 |
| 56 | · simp [hj, constantCoefficient] |
| 57 | · simp [constantCoefficient, hj] |
| 58 | |
| 59 | theorem differentiate_constant (V : D → D) (k : ℝ) (Φ : D → ℝ) (f : D → ℂ) : |
| 60 | differentiate V k Φ (constantCoefficient f) = constantCoefficient (along V f) := by |
| 61 | ext j x |
| 62 | by_cases hj : j = 0 |
| 63 | · subst j |
| 64 | simp [differentiate_apply, derivativeCoefficient, constantCoefficient, phaseFactor] |
| 65 | · have hz : (constantCoefficient f : Coefficients D) j = 0 := by |
| 66 | simp [constantCoefficient, hj] |
| 67 | simp [differentiate_apply, derivativeCoefficient_zero, constantCoefficient, hj] |
| 68 | |
| 69 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 70 | theorem angularDifferentiate_constant (kp : ℤ) (f : D → ℂ) : |
| 71 | angularDifferentiate kp (constantCoefficient f) = 0 := by |
| 72 | ext j x |
| 73 | by_cases hj : j = 0 |
| 74 | · subst j |
| 75 | simp [angularDifferentiate_apply] |
| 76 | · simp [angularDifferentiate_apply, constantCoefficient, hj] |
| 77 | |
| 78 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 79 | theorem rotate_constant (m : D → ComplexVector) (i : Fin 3) : |
| 80 | HarmonicResidual.rotate (HarmonicResidual.constantVector m) i = constantCoefficient (fun x => angularGenerator (m x) i) := by |
| 81 | ext j x |
| 82 | fin_cases i <;> |
| 83 | simp [HarmonicResidual.rotate, HarmonicResidual.constantVector, angularGenerator, constantCoefficient] <;> split_ifs <;> simp |
| 84 | |
| 85 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 86 | theorem rotate_apply (a : HarmonicResidual.VectorCoefficients D) (j : ℤ) (x : D) (i : Fin 3) : |
| 87 | HarmonicResidual.rotate a i j x = angularGenerator (fun l => a l j x) i := by |
| 88 | fin_cases i <;> rfl |
| 89 | |
| 90 | theorem transport_constant_left (g : HarmonicResidual.Frame D) (k : ℝ) (Φ : D → ℝ) (kp : ℤ) |
| 91 | (m : D → ComplexVector) (a : HarmonicResidual.VectorCoefficients D) (j : ℤ) (x : D) (i : Fin 3) : |
| 92 | HarmonicResidual.transport g k Φ kp (HarmonicResidual.constantVector m) a i j x = |
| 93 | m x 0 * derivativeCoefficient g.radial k Φ j (a i j) x + |
| 94 | (m x 1 / (g.radius x : ℂ)) * |
| 95 | ((((j * kp : ℤ) : ℂ) * Complex.I) * a i j x + angularGenerator (fun l => a l j x) i) + |
| 96 | m x 2 * derivativeCoefficient g.axial k Φ j (a i j) x := by |
| 97 | simp only [HarmonicResidual.transport, HarmonicResidual.constantVector, coeff_add, constant_mul, |
| 98 | constant_mul_constant, angularDifferentiate_apply, differentiate_apply, rotate_apply, div_eq_mul_inv] |
| 99 | |
| 100 | theorem transport_constant_right (g : HarmonicResidual.Frame D) (k : ℝ) (Φ : D → ℝ) (kp : ℤ) |
| 101 | (a : HarmonicResidual.VectorCoefficients D) (m : D → ComplexVector) (j : ℤ) (x : D) (i : Fin 3) : |
| 102 | HarmonicResidual.transport g k Φ kp a (HarmonicResidual.constantVector m) i j x = |
| 103 | a 0 j x * along g.radial (fun y => m y i) x + |
| 104 | (a 1 j x / (g.radius x : ℂ)) * angularGenerator (m x) i + |
| 105 | a 2 j x * along g.axial (fun y => m y i) x := by |
| 106 | simp only [HarmonicResidual.transport, HarmonicResidual.constantVector, coeff_add, differentiate_constant, mul_constant, |
| 107 | angularDifferentiate_constant, zero_add, rotate_constant, div_eq_mul_inv] |
| 108 | |
| 109 | /-- The two actual cross-advections at coefficient level, before any zero-mode deletion. -/ |
| 110 | noncomputable def crossCoefficients (g : HarmonicResidual.Frame D) (k : ℝ) (Φ : D → ℝ) (kp : ℤ) |
| 111 | (m : D → ComplexVector) (a : HarmonicResidual.VectorCoefficients D) : HarmonicResidual.VectorCoefficients D := fun i => |
| 112 | HarmonicResidual.transport g k Φ kp (HarmonicResidual.constantVector m) a i + |
| 113 | HarmonicResidual.transport g k Φ kp a (HarmonicResidual.constantVector m) i |
| 114 | |
| 115 | theorem nonlinear_mean_difference (g : HarmonicResidual.Frame D) (k : ℝ) (Φ : D → ℝ) (kp : ℤ) |
| 116 | (B m : D → ComplexVector) (a : HarmonicResidual.VectorCoefficients D) (p : Coefficients D) {x : D} |
| 117 | (hB : ∀ i, DifferentiableAt ℝ (fun y => B y i) x) |
| 118 | (hm : ∀ i, DifferentiableAt ℝ (fun y => m y i) x) (j : ℤ) (i : Fin 3) : |
| 119 | HarmonicResidual.nonlinearResidual g k Φ kp (HarmonicResidual.constantVector (B + m)) a p i j x - |
| 120 | HarmonicResidual.nonlinearResidual g k Φ kp (HarmonicResidual.constantVector B) a p i j x = |
| 121 | crossCoefficients g k Φ kp m a i j x := by |
| 122 | simp only [HarmonicResidual.nonlinearResidual, HarmonicResidual.linearResidual, crossCoefficients, coeff_add, coeff_sub, |
| 123 | transport_constant_left, transport_constant_right, Pi.add_apply, |
| 124 | along_add _ (hB i) (hm i), HarmonicResidual.Actual.angularGenerator_add] |
| 125 | ring |
| 126 | |
| 127 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 128 | theorem realCoefficients_sub (a b : Coefficients D) : |
| 129 | HarmonicResidual.realCoefficients (a - b) = HarmonicResidual.realCoefficients a - HarmonicResidual.realCoefficients b := by |
| 130 | ext j x |
| 131 | simp only [HarmonicResidual.realCoefficients_apply, coeff_sub, map_sub] |
| 132 | ring |
| 133 | |
| 134 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 135 | theorem realCoefficients_add (a b : Coefficients D) : |
| 136 | HarmonicResidual.realCoefficients (a + b) = HarmonicResidual.realCoefficients a + HarmonicResidual.realCoefficients b := by |
| 137 | ext j x |
| 138 | simp only [HarmonicResidual.realCoefficients_apply, coeff_add, map_add] |
| 139 | ring |
| 140 | |
| 141 | noncomputable def tripleField (h : MeanIncrementBounds.Triple D) (n : ℕ) (x : D) : ComplexVector := |
| 142 | ![(h.radial n x : ℂ), (h.angular n x : ℂ), (h.axial n x : ℂ)] |
| 143 | |
| 144 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 145 | theorem stateMean_updated (s₀ s₁ : CorrectionState.State D) (h : MeanIncrementBounds.Triple D) |
| 146 | (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) (n : ℕ) : |
| 147 | HarmonicResidual.stateMean s₁ n = HarmonicResidual.stateMean s₀ n + tripleField h n := by |
| 148 | ext x i |
| 149 | fin_cases i <;> simp [HarmonicResidual.stateMean, tripleField, he, MeanIncrementBounds.updated] |
| 150 | |
| 151 | noncomputable def blockAmplitude (b : CorrectionState.HarmonicBlock D) (n : ℕ) : HarmonicResidual.VectorCoefficients D := |
| 152 | fun i => HarmonicResidual.realCoefficients (b.velocity n i) |
| 153 | |
| 154 | noncomputable def meanCross (c : CorrectionState.Context D) (h : MeanIncrementBounds.Triple D) (b : CorrectionState.HarmonicBlock D) |
| 155 | (n : ℕ) : HarmonicResidual.VectorCoefficients D := |
| 156 | crossCoefficients (HarmonicResidual.contextFrame c n) (b.frequency n) (b.phase n) (b.angularFrequency n) |
| 157 | (tripleField h n) (blockAmplitude b n) |
| 158 | |
| 159 | /-- General additive error differences are retained, including their zero modes. -/ |
| 160 | theorem residualCoefficients_mean_update (c : CorrectionState.Context D) (s₀ s₁ : CorrectionState.State D) |
| 161 | (h : MeanIncrementBounds.Triple D) (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) (b : CorrectionState.HarmonicBlock D) |
| 162 | (G₀ G₁ A₀ A₁ : HarmonicResidual.BlockCoefficients D) (n : ℕ) {x : D} |
| 163 | (hB : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.contextBase c n y i) x) |
| 164 | (hM : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.stateMean s₀ n y i) x) |
| 165 | (hh : ∀ i, DifferentiableAt ℝ (fun y => tripleField h n y i) x) (j : ℤ) (i : Fin 3) : |
| 166 | (HarmonicResidual.ofBlock b G₁ A₁ n).residualCoefficients (HarmonicResidual.contextFrame c n) |
| 167 | (HarmonicResidual.contextBase c n) (HarmonicResidual.stateMean s₁ n) i j x - |
| 168 | (HarmonicResidual.ofBlock b G₀ A₀ n).residualCoefficients (HarmonicResidual.contextFrame c n) |
| 169 | (HarmonicResidual.contextBase c n) (HarmonicResidual.stateMean s₀ n) i j x = |
| 170 | HarmonicResidual.realCoefficients (meanCross c h b n i - (G₁ n i - G₀ n i) - (A₁ n i - A₀ n i)) j x := by |
| 171 | have hsum : HarmonicResidual.contextBase c n + HarmonicResidual.stateMean s₁ n = |
| 172 | (HarmonicResidual.contextBase c n + HarmonicResidual.stateMean s₀ n) + tripleField h n := by |
| 173 | rw [stateMean_updated s₀ s₁ h he n] |
| 174 | abel |
| 175 | have hdiff (l : ℤ) := nonlinear_mean_difference (HarmonicResidual.contextFrame c n) |
| 176 | (b.frequency n) (b.phase n) (b.angularFrequency n) |
| 177 | (HarmonicResidual.contextBase c n + HarmonicResidual.stateMean s₀ n) (tripleField h n) (blockAmplitude b n) |
| 178 | (HarmonicResidual.realCoefficients (b.pressure n)) (fun t => (hB t).add (hM t)) hh l i |
| 179 | let N₀ := HarmonicResidual.nonlinearResidual (HarmonicResidual.contextFrame c n) |
| 180 | (b.frequency n) (b.phase n) (b.angularFrequency n) |
| 181 | (HarmonicResidual.constantVector (HarmonicResidual.contextBase c n + HarmonicResidual.stateMean s₀ n)) |
| 182 | (blockAmplitude b n) (HarmonicResidual.realCoefficients (b.pressure n)) i |
| 183 | let N₁ := HarmonicResidual.nonlinearResidual (HarmonicResidual.contextFrame c n) |
| 184 | (b.frequency n) (b.phase n) (b.angularFrequency n) |
| 185 | (HarmonicResidual.constantVector |
| 186 | ((HarmonicResidual.contextBase c n + HarmonicResidual.stateMean s₀ n) + tripleField h n)) |
| 187 | (blockAmplitude b n) (HarmonicResidual.realCoefficients (b.pressure n)) i |
| 188 | simp only [HarmonicResidual.LabelData.residualCoefficients, hsum] |
| 189 | change HarmonicResidual.realCoefficients (N₁ - G₁ n i - A₁ n i) j x - |
| 190 | HarmonicResidual.realCoefficients (N₀ - G₀ n i - A₀ n i) j x = _ |
| 191 | rw [← coeff_sub, ← realCoefficients_sub] |
| 192 | simp only [HarmonicResidual.realCoefficients_apply, coeff_sub] |
| 193 | have hdj := hdiff j |
| 194 | have hdn := hdiff (-j) |
| 195 | change N₁ j x - N₀ j x = meanCross c h b n i j x at hdj |
| 196 | change N₁ (-j) x - N₀ (-j) x = meanCross c h b n i (-j) x at hdn |
| 197 | rw [← hdj, ← hdn] |
| 198 | simp only [map_sub] |
| 199 | ring |
| 200 | |
| 201 | /-! ## Bounds on the original coefficient domain -/ |
| 202 | |
| 203 | /-- The slow coefficient geometry has no artificial angular coordinate. |
| 204 | The actual separate angular carrier is accounted for explicitly below. -/ |
| 205 | noncomputable def slowGeometry {s : StripData D} {κ : ℝ} (c : CorrectionState.Context D) |
| 206 | (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 207 | (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) : Geometry s κ where |
| 208 | radius := fun _ => c.operators.radius |
| 209 | radial := fun n => (HarmonicResidual.contextFrame c n).radial |
| 210 | angular := fun _ _ => 0 |
| 211 | axial := fun n => (HarmonicResidual.contextFrame c n).axial |
| 212 | radius_pos := fun _ x hx => hR x hx |
| 213 | radial_class := by |
| 214 | convert! graph_vector_class ho.kappa_nonneg ho.radialFrequency ho.radialProfile |
| 215 | c.operators.eR c.operators.vR using 1 |
| 216 | ext n x |
| 217 | simp [HarmonicResidual.contextFrame, smul_smul] |
| 218 | axial_class := by |
| 219 | simpa only [HarmonicResidual.contextFrame, ho.epsilon_eq] using |
| 220 | axial_vector_class s c.operators.eZ |
| 221 | inverse_radius_class := ho.invRadius |
| 222 | |
| 223 | noncomputable def slowNormal {s : StripData D} {κ : ℝ} (c : CorrectionState.Context D) |
| 224 | (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 225 | (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) (Φ : ℕ → D → ℝ) (n : ℕ) (x : D) : |
| 226 | EuclideanSpace ℝ (Fin 3) := |
| 227 | phaseNormal ((slowGeometry c ho hR).radius n) ((slowGeometry c ho hR).radial n) |
| 228 | ((slowGeometry c ho hR).angular n) ((slowGeometry c ho hR).axial n) (Φ n) x |
| 229 | |
| 230 | theorem tripleField_bound {s : StripData D} {H : ℝ} {h : MeanIncrementBounds.Triple D} |
| 231 | (hh : MeanIncrementBounds.IncrementBounds s H h) : MeanVector s H (tripleField h) := by |
| 232 | refine ⟨?_, ?_, ?_⟩ |
| 233 | · exact hh.radial.map Complex.ofRealCLM |
| 234 | · exact hh.angular.map Complex.ofRealCLM |
| 235 | · exact hh.axial.map Complex.ofRealCLM |
| 236 | |
| 237 | theorem realCoefficient_class {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} |
| 238 | (a : ℕ → Coefficients D) (j : ℤ) |
| 239 | (ha : WaveClass s P α (fun n x => a n j x)) |
| 240 | (han : WaveClass s P α (fun n x => a n (-j) x)) : |
| 241 | WaveClass s P α (fun n x => HarmonicResidual.realCoefficients (a n) j x) := by |
| 242 | apply class_congr (class_const_cmul (ha.add (class_conj han)) ((2 : ℂ)⁻¹)) |
| 243 | intro n x _ |
| 244 | exact (HarmonicResidual.realCoefficients_apply (a n) j x).symm |
| 245 | |
| 246 | theorem blockAmplitude_class {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} |
| 247 | {b : CorrectionState.HarmonicBlock D} (hb : b.WaveBounds s P α) {j : ℤ} (hj : j ≠ 0) : |
| 248 | WaveVector s P α (fun n x i => blockAmplitude b n i j x) := by |
| 249 | intro i |
| 250 | exact realCoefficient_class (fun n => b.velocity n i) j (hb i j hj) |
| 251 | (hb i (-j) (neg_ne_zero.mpr hj)) |
| 252 | |
| 253 | /-- The separate angular phase term has the same carrier loss as the slow phase term. -/ |
| 254 | noncomputable def angularCarrierTerm (c : CorrectionState.Context D) |
| 255 | (b : CorrectionState.HarmonicBlock D) (h : MeanIncrementBounds.Triple D) (j : ℤ) |
| 256 | (n : ℕ) (x : D) (i : Fin 3) : ℂ := |
| 257 | phaseFactor ((b.angularFrequency n : ℝ) * (j : ℝ)) * |
| 258 | (tripleField h n x 1 / (c.operators.radius x : ℂ)) * blockAmplitude b n i j x |
| 259 | |
| 260 | theorem meanCross_eq {s : StripData D} {κ : ℝ} (c : CorrectionState.Context D) |
| 261 | (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 262 | (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 263 | (h : MeanIncrementBounds.Triple D) (b : CorrectionState.HarmonicBlock D) |
| 264 | (j : ℤ) (n : ℕ) (x : D) (i : Fin 3) : |
| 265 | meanCross c h b n i j x = |
| 266 | waveMeanCoefficient (slowGeometry c ho hR) b.phase (fun n => b.frequency n * (j : ℝ)) |
| 267 | (tripleField h) (fun n x i => blockAmplitude b n i j x) n x i + |
| 268 | angularCarrierTerm c b h j n x i := by |
| 269 | simp only [meanCross, crossCoefficients, coeff_add, transport_constant_left, transport_constant_right, |
| 270 | derivativeCoefficient, waveMeanCoefficient, strippedTransport, normalDot, phaseNormal, |
| 271 | slowGeometry, HarmonicResidual.contextFrame, angularCarrierTerm, phaseFactor, |
| 272 | along, map_zero, zero_mul, |
| 273 | Complex.ofReal_mul, Complex.ofReal_intCast, Int.cast_mul, div_eq_mul_inv] |
| 274 | simp only [ Matrix.cons_val_zero, Matrix.cons_val_one, |
| 275 | Matrix.cons_val_two, Matrix.tail_cons, Matrix.head_cons, Complex.ofReal_zero, zero_mul, add_zero] |
| 276 | ring |
| 277 | |
| 278 | /-! ## The actual output residual blocks -/ |
| 279 | |
| 280 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 281 | theorem nonconstant_apply_of_ne (a : Coefficients D) {j : ℤ} (hj : j ≠ 0) (x : D) : |
| 282 | HarmonicResidual.nonconstant a j x = a j x := by |
| 283 | change a.coeff.erase 0 j x = a.coeff j x |
| 284 | rw [Finsupp.erase_ne hj] |
| 285 | |
| 286 | theorem residualBlock_mean_update (c : CorrectionState.Context D) (s₀ s₁ : CorrectionState.State D) |
| 287 | (h : MeanIncrementBounds.Triple D) (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 288 | (b : CorrectionState.HarmonicBlock D) (G₀ G₁ A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 289 | (n : ℕ) {x : D} |
| 290 | (hB : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.contextBase c n y i) x) |
| 291 | (hM : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.stateMean s₀ n y i) x) |
| 292 | (hh : ∀ i, DifferentiableAt ℝ (fun y => tripleField h n y i) x) (j : ℤ) (i : Fin 3) : |
| 293 | (HarmonicResidual.residualBlock c s₁ b G₁ A₁).velocity n i j x - |
| 294 | (HarmonicResidual.residualBlock c s₀ b G₀ A₀).velocity n i j x = |
| 295 | HarmonicResidual.nonconstant (HarmonicResidual.realCoefficients |
| 296 | (meanCross c h b n i - (G₁ n i - G₀ n i) - (A₁ n i - A₀ n i))) j x := by |
| 297 | by_cases hj : j = 0 |
| 298 | · subst j |
| 299 | simp [HarmonicResidual.residualBlock_zero_mode, HarmonicResidual.nonconstant] |
| 300 | · change HarmonicResidual.nonconstant _ j x - HarmonicResidual.nonconstant _ j x = _ |
| 301 | simp only [nonconstant_apply_of_ne _ hj] |
| 302 | exact residualCoefficients_mean_update c s₀ s₁ h he b G₀ G₁ A₀ A₁ n hB hM hh j i |
| 303 | |
| 304 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 305 | theorem band_zero_coefficient {a : Coefficients D} (ha : BandLimited a 0) |
| 306 | {j : ℤ} (hj : j ≠ 0) : a j = 0 := by |
| 307 | have hnj : j ∉ a.support := by |
| 308 | intro hmem |
| 309 | exact hj (Int.natAbs_eq_zero.mp (Nat.eq_zero_of_le_zero (ha j hmem))) |
| 310 | exact Finsupp.notMem_support_iff.mp hnj |
| 311 | |
| 312 | /-- An axisymmetric alias change has no effect on nonzero harmonics. |
| 313 | The Gaussian field is unchanged, so it cancels without a size assumption. -/ |
| 314 | theorem residualBlock_axisymmetric_alias_update |
| 315 | (c : CorrectionState.Context D) (s₀ s₁ : CorrectionState.State D) |
| 316 | (h : MeanIncrementBounds.Triple D) (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 317 | (b : CorrectionState.HarmonicBlock D) (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 318 | (hA : ∀ n i, BandLimited (A₁ n i - A₀ n i) 0) (n : ℕ) {x : D} |
| 319 | (hB : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.contextBase c n y i) x) |
| 320 | (hM : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.stateMean s₀ n y i) x) |
| 321 | (hh : ∀ i, DifferentiableAt ℝ (fun y => tripleField h n y i) x) |
| 322 | {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 323 | (HarmonicResidual.residualBlock c s₁ b G A₁).velocity n i j x - |
| 324 | (HarmonicResidual.residualBlock c s₀ b G A₀).velocity n i j x = |
| 325 | HarmonicResidual.realCoefficients (meanCross c h b n i) j x := by |
| 326 | have hzj := congrArg (fun f : D → ℂ => f x) (band_zero_coefficient (hA n i) hj) |
| 327 | have hzn := congrArg (fun f : D → ℂ => f x) (band_zero_coefficient (hA n i) (neg_ne_zero.mpr hj)) |
| 328 | change A₁ n i j x - A₀ n i j x = 0 at hzj |
| 329 | change A₁ n i (-j) x - A₀ n i (-j) x = 0 at hzn |
| 330 | rw [residualBlock_mean_update c s₀ s₁ h he b G G A₀ A₁ n hB hM hh j i, |
| 331 | nonconstant_apply_of_ne _ hj] |
| 332 | simp only [sub_self, sub_zero, HarmonicResidual.realCoefficients_apply, coeff_sub, |
| 333 | hzj, hzn] |
| 334 | |
| 335 | theorem tripleField_smooth {U : Set D} {h : MeanIncrementBounds.Triple D} |
| 336 | (hh : MeanIncrementBounds.SmoothTriple U h) (n : ℕ) (i : Fin 3) : |
| 337 | ContDiffOn ℝ ∞ (fun x => tripleField h n x i) U := by |
| 338 | fin_cases i |
| 339 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.radial n) |
| 340 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.angular n) |
| 341 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.axial n) |
| 342 | |
| 343 | /-! ## Frequency support and physical cross-advection -/ |
| 344 | |
| 345 | end NavierStokes.HarmonicMeanInteraction |