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 | theorem angularCarrierTerm_class {s : StripData D} {κ α H : ℝ} {P : ℕ → D → ℝ} |
| 279 | (c : CorrectionState.Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 280 | (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 281 | {h : MeanIncrementBounds.Triple D} (hh : MeanIncrementBounds.IncrementBounds s H h) |
| 282 | {b : CorrectionState.HarmonicBlock D} (hb : b.WaveBounds s P α) |
| 283 | (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 284 | {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 285 | WaveClass s P (α + H - 1 / 2) (fun n x => angularCarrierTerm c b h j n x i) := by |
| 286 | have hm := tripleField_bound hh |
| 287 | have ha := blockAmplitude_class hb hj |
| 288 | have hν : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ) * (j : ℝ)) := |
| 289 | bandBound_frequency hkp (abs_nonneg (j : ℝ)) (fun _ => le_rfl) |
| 290 | have hf := phaseFactor_class (class_div_radius (slowGeometry c ho hR) hm.2.1) hν |
| 291 | have he := mean_wave_cmul hf (ha i) ho.weight_le_one |
| 292 | convert! he using 1 |
| 293 | ring |
| 294 | |
| 295 | theorem meanCross_class {s : StripData D} {κ α H : ℝ} {P : ℕ → D → ℝ} |
| 296 | (c : CorrectionState.Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 297 | (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 298 | {h : MeanIncrementBounds.Triple D} (hh : MeanIncrementBounds.IncrementBounds s H h) |
| 299 | {b : CorrectionState.HarmonicBlock D} (hb : b.WaveBounds s P α) |
| 300 | (hN : ∀ i, UnweightedClass s 0 (fun n x => slowNormal c ho hR b.phase n x i)) |
| 301 | (hk : BandBound s (-(1 / 2)) b.frequency) |
| 302 | (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 303 | (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 304 | WaveClass s P (α + H - 1 / 2) (fun n x => meanCross c h b n i j x) := by |
| 305 | have hν : BandBound s (-(1 / 2)) (fun n => b.frequency n * (j : ℝ)) := |
| 306 | bandBound_frequency hk (abs_nonneg (j : ℝ)) (fun _ => le_rfl) |
| 307 | have hs := wave_mean_bound (slowGeometry c ho hR) ho.kappa_nonneg hκ |
| 308 | (tripleField_bound hh) (blockAmplitude_class hb hj) hN hν ho.weight_le_one hP i |
| 309 | have hθ := angularCarrierTerm_class c ho hR hh hb hkp hj i |
| 310 | apply class_congr (hs.add hθ) |
| 311 | intro n x _ |
| 312 | exact (meanCross_eq c ho hR h b j n x i).symm |
| 313 | |
| 314 | theorem realMeanCross_class {s : StripData D} {κ α H : ℝ} {P : ℕ → D → ℝ} |
| 315 | (c : CorrectionState.Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 316 | (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 317 | {h : MeanIncrementBounds.Triple D} (hh : MeanIncrementBounds.IncrementBounds s H h) |
| 318 | {b : CorrectionState.HarmonicBlock D} (hb : b.WaveBounds s P α) |
| 319 | (hN : ∀ i, UnweightedClass s 0 (fun n x => slowNormal c ho hR b.phase n x i)) |
| 320 | (hk : BandBound s (-(1 / 2)) b.frequency) |
| 321 | (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 322 | (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 323 | WaveClass s P (α + H - 1 / 2) |
| 324 | (fun n x => HarmonicResidual.realCoefficients (meanCross c h b n i) j x) := |
| 325 | realCoefficient_class (fun n => meanCross c h b n i) j |
| 326 | (meanCross_class c ho hκ hR hh hb hN hk hkp hP hj i) |
| 327 | (meanCross_class c ho hκ hR hh hb hN hk hkp hP (neg_ne_zero.mpr hj) i) |
| 328 | |
| 329 | /-! ## The actual output residual blocks -/ |
| 330 | |
| 331 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 332 | theorem nonconstant_apply_of_ne (a : Coefficients D) {j : ℤ} (hj : j ≠ 0) (x : D) : |
| 333 | HarmonicResidual.nonconstant a j x = a j x := by |
| 334 | change a.coeff.erase 0 j x = a.coeff j x |
| 335 | rw [Finsupp.erase_ne hj] |
| 336 | |
| 337 | theorem residualBlock_mean_update (c : CorrectionState.Context D) (s₀ s₁ : CorrectionState.State D) |
| 338 | (h : MeanIncrementBounds.Triple D) (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 339 | (b : CorrectionState.HarmonicBlock D) (G₀ G₁ A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 340 | (n : ℕ) {x : D} |
| 341 | (hB : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.contextBase c n y i) x) |
| 342 | (hM : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.stateMean s₀ n y i) x) |
| 343 | (hh : ∀ i, DifferentiableAt ℝ (fun y => tripleField h n y i) x) (j : ℤ) (i : Fin 3) : |
| 344 | (HarmonicResidual.residualBlock c s₁ b G₁ A₁).velocity n i j x - |
| 345 | (HarmonicResidual.residualBlock c s₀ b G₀ A₀).velocity n i j x = |
| 346 | HarmonicResidual.nonconstant (HarmonicResidual.realCoefficients |
| 347 | (meanCross c h b n i - (G₁ n i - G₀ n i) - (A₁ n i - A₀ n i))) j x := by |
| 348 | by_cases hj : j = 0 |
| 349 | · subst j |
| 350 | simp [HarmonicResidual.residualBlock_zero_mode, HarmonicResidual.nonconstant] |
| 351 | · change HarmonicResidual.nonconstant _ j x - HarmonicResidual.nonconstant _ j x = _ |
| 352 | simp only [nonconstant_apply_of_ne _ hj] |
| 353 | exact residualCoefficients_mean_update c s₀ s₁ h he b G₀ G₁ A₀ A₁ n hB hM hh j i |
| 354 | |
| 355 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 356 | theorem band_zero_coefficient {a : Coefficients D} (ha : BandLimited a 0) |
| 357 | {j : ℤ} (hj : j ≠ 0) : a j = 0 := by |
| 358 | have hnj : j ∉ a.support := by |
| 359 | intro hmem |
| 360 | exact hj (Int.natAbs_eq_zero.mp (Nat.eq_zero_of_le_zero (ha j hmem))) |
| 361 | exact Finsupp.notMem_support_iff.mp hnj |
| 362 | |
| 363 | /-- An axisymmetric alias change has no effect on nonzero harmonics. |
| 364 | The Gaussian field is unchanged, so it cancels without a size assumption. -/ |
| 365 | theorem residualBlock_axisymmetric_alias_update |
| 366 | (c : CorrectionState.Context D) (s₀ s₁ : CorrectionState.State D) |
| 367 | (h : MeanIncrementBounds.Triple D) (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 368 | (b : CorrectionState.HarmonicBlock D) (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 369 | (hA : ∀ n i, BandLimited (A₁ n i - A₀ n i) 0) (n : ℕ) {x : D} |
| 370 | (hB : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.contextBase c n y i) x) |
| 371 | (hM : ∀ i, DifferentiableAt ℝ (fun y => HarmonicResidual.stateMean s₀ n y i) x) |
| 372 | (hh : ∀ i, DifferentiableAt ℝ (fun y => tripleField h n y i) x) |
| 373 | {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 374 | (HarmonicResidual.residualBlock c s₁ b G A₁).velocity n i j x - |
| 375 | (HarmonicResidual.residualBlock c s₀ b G A₀).velocity n i j x = |
| 376 | HarmonicResidual.realCoefficients (meanCross c h b n i) j x := by |
| 377 | have hzj := congrArg (fun f : D → ℂ => f x) (band_zero_coefficient (hA n i) hj) |
| 378 | have hzn := congrArg (fun f : D → ℂ => f x) (band_zero_coefficient (hA n i) (neg_ne_zero.mpr hj)) |
| 379 | change A₁ n i j x - A₀ n i j x = 0 at hzj |
| 380 | change A₁ n i (-j) x - A₀ n i (-j) x = 0 at hzn |
| 381 | rw [residualBlock_mean_update c s₀ s₁ h he b G G A₀ A₁ n hB hM hh j i, |
| 382 | nonconstant_apply_of_ne _ hj] |
| 383 | simp only [sub_self, sub_zero, HarmonicResidual.realCoefficients_apply, coeff_sub, |
| 384 | hzj, hzn] |
| 385 | |
| 386 | theorem tripleField_smooth {U : Set D} {h : MeanIncrementBounds.Triple D} |
| 387 | (hh : MeanIncrementBounds.SmoothTriple U h) (n : ℕ) (i : Fin 3) : |
| 388 | ContDiffOn ℝ ∞ (fun x => tripleField h n x i) U := by |
| 389 | fin_cases i |
| 390 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.radial n) |
| 391 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.angular n) |
| 392 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn (hh.axial n) |
| 393 | |
| 394 | /-- The resulting all-order class is derived for the actual residual-block |
| 395 | coefficient difference, with no estimate assumed for that difference. -/ |
| 396 | theorem residualBlock_mean_update_class {s : StripData D} {κ α H : ℝ} {P : ℕ → D → ℝ} |
| 397 | (c : CorrectionState.Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 398 | (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 399 | (s₀ s₁ : CorrectionState.State D) (h : MeanIncrementBounds.Triple D) |
| 400 | (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 401 | (hbase : MeanIncrementBounds.SmoothTriple s.domain c.base) |
| 402 | (hmean : MeanIncrementBounds.SmoothTriple s.domain s₀.mean) |
| 403 | (hh : MeanIncrementBounds.IncrementBounds s H h) |
| 404 | (b : CorrectionState.HarmonicBlock D) (hb : b.WaveBounds s P α) |
| 405 | (hN : ∀ i, UnweightedClass s 0 (fun n x => slowNormal c ho hR b.phase n x i)) |
| 406 | (hk : BandBound s (-(1 / 2)) b.frequency) |
| 407 | (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 408 | (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 409 | (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 410 | (hA : ∀ n i, BandLimited (A₁ n i - A₀ n i) 0) {j : ℤ} (hj : j ≠ 0) (i : Fin 3) : |
| 411 | WaveClass s P (α + H - 1 / 2) (fun n x => |
| 412 | (HarmonicResidual.residualBlock c s₁ b G A₁).velocity n i j x - |
| 413 | (HarmonicResidual.residualBlock c s₀ b G A₀).velocity n i j x) := by |
| 414 | apply class_congr (realMeanCross_class c ho hκ hR hh hb hN hk hkp hP hj i) |
| 415 | intro n x hx |
| 416 | symm |
| 417 | apply residualBlock_axisymmetric_alias_update c s₀ s₁ h he b G A₀ A₁ hA n |
| 418 | · intro t |
| 419 | exact ((tripleField_smooth hbase n t).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 420 | · intro t |
| 421 | exact ((tripleField_smooth hmean n t).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 422 | · intro t |
| 423 | exact ((tripleField_smooth hh.smooth n t).contDiffAt (s.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 424 | · exact hj |
| 425 | |
| 426 | noncomputable def residualDifferenceBlock (c : CorrectionState.Context D) |
| 427 | (s₀ s₁ : CorrectionState.State D) (b : CorrectionState.HarmonicBlock D) |
| 428 | (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) : CorrectionState.HarmonicBlock D where |
| 429 | velocity := fun n i => (HarmonicResidual.residualBlock c s₁ b G A₁).velocity n i - |
| 430 | (HarmonicResidual.residualBlock c s₀ b G A₀).velocity n i |
| 431 | pressure := fun _ => 0 |
| 432 | frequency := b.frequency |
| 433 | phase := b.phase |
| 434 | angularFrequency := b.angularFrequency |
| 435 | |
| 436 | theorem residualDifferenceBlock_class {s : StripData D} {κ α H : ℝ} {P : ℕ → D → ℝ} |
| 437 | (c : CorrectionState.Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 438 | (hκ : κ ≤ 1 / 2) (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 439 | (s₀ s₁ : CorrectionState.State D) (h : MeanIncrementBounds.Triple D) |
| 440 | (he : s₁.mean = MeanIncrementBounds.updated s₀.mean h) |
| 441 | (hbase : MeanIncrementBounds.SmoothTriple s.domain c.base) |
| 442 | (hmean : MeanIncrementBounds.SmoothTriple s.domain s₀.mean) |
| 443 | (hh : MeanIncrementBounds.IncrementBounds s H h) |
| 444 | (b : CorrectionState.HarmonicBlock D) (hb : b.WaveBounds s P α) |
| 445 | (hN : ∀ i, UnweightedClass s 0 (fun n x => slowNormal c ho hR b.phase n x i)) |
| 446 | (hk : BandBound s (-(1 / 2)) b.frequency) |
| 447 | (hkp : BandBound s (-(1 / 2)) (fun n => (b.angularFrequency n : ℝ))) |
| 448 | (hP : ∀ n x, x ∈ s.domain → 0 ≤ P n x) |
| 449 | (G A₀ A₁ : HarmonicResidual.BlockCoefficients D) |
| 450 | (hA : ∀ n i, BandLimited (A₁ n i - A₀ n i) 0) : |
| 451 | (residualDifferenceBlock c s₀ s₁ b G A₀ A₁).WaveBounds s P (α + H - 1 / 2) := by |
| 452 | intro i j hj |
| 453 | exact residualBlock_mean_update_class c ho hκ hR s₀ s₁ h he hbase hmean hh b hb hN hk hkp hP |
| 454 | G A₀ A₁ hA hj i |
| 455 | |
| 456 | /-! ## Frequency support and physical cross-advection -/ |
| 457 | |
| 458 | end NavierStokes.HarmonicMeanInteraction |