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.ActualGaussianCoverage |
| 2 | import NavierStokes.HarmonicWaveInteraction |
| 3 | |
| 4 | /-! |
| 5 | # Preservation of the actual closed carrier of a harmonic label |
| 6 | |
| 7 | The support argument uses the whole native Volterra path. A pointwise |
| 8 | zero of the source is not used as a zero of its particular solution. |
| 9 | The Gaussian clock cutoff supplies the temporal boundary of the carrier; |
| 10 | the source supplies its slow and transverse boundaries. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.LabelSupportPreservation |
| 16 | |
| 17 | open Set Function Filter WeightedClasses |
| 18 | open HarmonicCalculus LinearWaveBounds PeriodizedWaveBounds |
| 19 | open CommonCoverSolve TorusInverse ParticularWaveBounds PrimaryPulseBounds |
| 20 | open scoped Topology ContDiff BigOperators ComplexConjugate |
| 21 | |
| 22 | section CopyGerms |
| 23 | |
| 24 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 25 | |
| 26 | /-- A zero raw amplitude gives a zero corrected amplitude as a germ, |
| 27 | including every derivative in the literal curl correction. -/ |
| 28 | theorem corrected_zero_of_raw (a : CopyData D I) (s : StripData D) |
| 29 | (d : GraphDirections D) {n : ℕ} {i : I} {x : D} |
| 30 | (ha : a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) : |
| 31 | (a.corrected s d i).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 32 | have hl : (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 33 | filter_upwards [ha] with y hy |
| 34 | change a.cutoff n i y • a.amplitude n i y = 0 |
| 35 | rw [hy, smul_zero] |
| 36 | have h := ParticularWaveAssembly.realizedCoefficient_germ hl |
| 37 | (a.background.frequency n) (a.background.radius n) (d.radialField n) |
| 38 | (fun _ => d.angular) (d.axialField s n) (a.background.phase n) |
| 39 | simp only [realizedCoefficient_zero] at h |
| 40 | exact h |
| 41 | |
| 42 | omit [NormedSpace ℝ D] in |
| 43 | theorem localized_pressure_zero_of_raw (a : CopyData D I) |
| 44 | {n : ℕ} {i : I} {x : D} (hp : a.pressure n i =ᶠ[𝓝 x] fun _ => 0) : |
| 45 | (a.localized i).pressure n =ᶠ[𝓝 x] fun _ => 0 := by |
| 46 | filter_upwards [hp] with y hy |
| 47 | change (a.cutoff n i y : ℂ) * a.pressure n i y = 0 |
| 48 | rw [hy, mul_zero] |
| 49 | |
| 50 | /-- The uncovered source is retained. Either a zero cutoff or two zero |
| 51 | raw fields in every covering copy suffices for the three assembled fields. -/ |
| 52 | theorem common_zero_germs_of_native (a : CopyData D I) (K : Cells D I) |
| 53 | (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 54 | (s : StripData D) (d : GraphDirections D) {n : ℕ} {x : D} |
| 55 | (hf : a.source n =ᶠ[𝓝 x] fun _ => 0) |
| 56 | (hnative : ∀ i, x ∈ K.carrier n i → |
| 57 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∨ |
| 58 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 59 | (a.pressure n i =ᶠ[𝓝 x] fun _ => 0))) : |
| 60 | ((a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 61 | (a.common.pressure n =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 62 | (a.globalGaussian d n =ᶠ[𝓝 x] fun _ => 0) := by |
| 63 | classical |
| 64 | by_cases hc : ∃ i, x ∈ K.carrier n i |
| 65 | · obtain ⟨i, hi⟩ := hc |
| 66 | have hu := a.commonCorrected_amplitude_germ K hs s d n hi |
| 67 | have hp := a.common_pressure_germ K hs n hi |
| 68 | have hG := a.globalGaussian_germ K hs d n hi |
| 69 | rcases hnative i hi with hz | ⟨hz, hpz⟩ |
| 70 | · refine ⟨hu.trans (a.corrected_zero_germ s d hz), |
| 71 | hp.trans (a.localized_zero_germs hz).2, hG.trans ?_⟩ |
| 72 | have ht := a.localTail_zero_germ d hz |
| 73 | filter_upwards [ht, hf] with y hty hfy |
| 74 | rw [a.localGaussian_eq, hty, hfy, smul_zero, add_zero] |
| 75 | · exact ⟨hu.trans (corrected_zero_of_raw a s d hz), |
| 76 | hp.trans (localized_pressure_zero_of_raw a hpz), |
| 77 | hG.trans (a.localGaussian_zero_of_fields d hz hf)⟩ |
| 78 | · have hn : ∀ i, x ∉ K.carrier n i := fun i hi => hc ⟨i, hi⟩ |
| 79 | exact ⟨a.commonCorrected_zero_germ K hs s d hn, |
| 80 | (a.common_zero_germs K hs hn).2, |
| 81 | (a.globalGaussian_uncovered_germ K hs d hn).trans hf⟩ |
| 82 | |
| 83 | end CopyGerms |
| 84 | |
| 85 | section NativeGeometry |
| 86 | |
| 87 | /-- Outside the closed Gaussian source window, the actual cutoff is |
| 88 | identically zero on a neighborhood, even inside the padded clock cell. -/ |
| 89 | theorem nativeCutoff_source_time_zero_germ {r L c : ℝ} |
| 90 | (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) {z : Plane} |
| 91 | (hz : z.2 ∉ Icc ((L / c) / 6) (5 * (L / c) / 6)) : |
| 92 | ActualGaussianCoverage.nativeCutoff r L hr hL c =ᶠ[𝓝 z] fun _ => 0 := by |
| 93 | have hlen : 0 < L / c := div_pos hL hc |
| 94 | have hd : 1 / 3 < |z.2 / (L / c) - 1 / 2| := by |
| 95 | by_contra! h |
| 96 | obtain ⟨hlo, hhi⟩ := abs_le.mp h |
| 97 | have hlow : (1 / 6 : ℝ) ≤ z.2 / (L / c) := by linarith |
| 98 | have hhigh : z.2 / (L / c) ≤ (5 / 6 : ℝ) := by linarith |
| 99 | have hl := (le_div_iff₀ hlen).mp hlow |
| 100 | have hh := (div_le_iff₀ hlen).mp hhigh |
| 101 | exact hz ⟨by nlinarith, by nlinarith⟩ |
| 102 | have hd' : 1 / 3 < |c * z.2 / L - 1 / 2| := by |
| 103 | simpa only [ActualGaussianCoverage.normalized_clock hL.ne' hc.ne'] using hd |
| 104 | have ht : Continuous (fun y : Plane => c * y.2 / L) := |
| 105 | (continuous_const.mul continuous_snd).div_const L |
| 106 | have hg := (GaussianTailFlat.profile_eventually_zero hd').comp_tendsto ht.continuousAt |
| 107 | filter_upwards [hg] with y hy |
| 108 | simp only [comp_def] at hy |
| 109 | simp only [ActualGaussianCoverage.nativeCutoff, GaussianTailFlat.slotCutoff, hy, mul_zero] |
| 110 | |
| 111 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 112 | |
| 113 | /-- The actual projected particular pressure also vanishes near a path |
| 114 | of zero source. The time coordinate is in the open integration interval. -/ |
| 115 | theorem complexCopyPressure_zero_germ (t : TangentData P ProblemStatement.Space) |
| 116 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (k : Frequency) (frequency : ℝ) |
| 117 | {f : P × Plane → ComplexVector} {x : P × Plane} |
| 118 | (heta : (g.coordinates k x.2).2 ∈ Ioo a b) |
| 119 | (hf : ∀ v ∈ Icc a b, f =ᶠ[𝓝 (x.1, g.path k x.2 v)] fun _ => 0) : |
| 120 | complexCopyPressure t f g hab k frequency =ᶠ[𝓝 x] fun _ => 0 := by |
| 121 | have hall := ActualGaussianCoverage.whole_path_zero_germ g k hf |
| 122 | have ht : Continuous (fun y : P × Plane => (g.coordinates k y.2).2) := |
| 123 | (g.coordinates_contDiff k).continuous.snd.comp continuous_snd |
| 124 | have htime : ∀ᶠ y in 𝓝 x, (g.coordinates k y.2).2 ∈ Ioo a b := |
| 125 | ht.continuousAt (isOpen_Ioo.mem_nhds heta) |
| 126 | filter_upwards [hall, htime] with y hy hty |
| 127 | exact complexCopyPressure_zero_of_path t f g hab k frequency y.1 y.2 hy ⟨hty.1.le, hty.2.le⟩ |
| 128 | |
| 129 | end NativeGeometry |
| 130 | |
| 131 | section Particular |
| 132 | |
| 133 | open ActualGaussianCoverage |
| 134 | |
| 135 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 136 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 137 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 138 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 139 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 140 | (base : Label → WaveCoefficients ((P × ℝ) × Plane)) |
| 141 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 142 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 143 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 144 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 145 | (s : StripData P) (S : Label → ℕ → Set P) (hS : ∀ l n, IsClosed (S l n)) |
| 146 | (hsupport : ∀ l, HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 147 | (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) |
| 148 | |
| 149 | include hS hsupport |
| 150 | |
| 151 | theorem data_pressure_zero_germ (l : Label) (n : ℕ) (k : Frequency) |
| 152 | {x : (P × ℝ) × Plane} (hx : x.1.1 ∈ s.domain) |
| 153 | (htime : ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2 ∈ |
| 154 | Ioo 0 (ScaledActualParticularControl.length F clock l n)) |
| 155 | (hpath : ∀ v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n), |
| 156 | (x.1.1, (ScaledActualParticularControl.geometry reference gap clock l n).path k x.2 v) ∉ |
| 157 | sourceRegions F clock reference gap r S l n) : |
| 158 | (data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k |
| 159 | =ᶠ[𝓝 x] fun _ => 0 := by |
| 160 | apply complexCopyPressure_zero_germ _ _ _ _ _ htime |
| 161 | intro v hv |
| 162 | exact data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 163 | s S hS hsupport l n (x := (x.1, _)) hx (hpath v hv) |
| 164 | |
| 165 | /-- The exact particular solve retains the smaller source cell, even |
| 166 | though its raw cutoff is supported on a larger padded cell. -/ |
| 167 | theorem data_native_zero_alternative |
| 168 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 169 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 170 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 171 | (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} |
| 172 | (hx : x.1.1 ∈ s.domain) |
| 173 | (hk : x ∈ nativeCell (ScaledActualParticularControl.geometry reference gap clock l n) |
| 174 | (outerFamily F clock r l n) k) |
| 175 | (hn : (x.1.1, x.2) ∉ sourceRegions F clock reference gap r S l n) : |
| 176 | ((data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k |
| 177 | =ᶠ[𝓝 x] fun _ => 0) ∨ |
| 178 | (((data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k |
| 179 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 180 | ((data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k |
| 181 | =ᶠ[𝓝 x] fun _ => 0)) := by |
| 182 | let g := ScaledActualParticularControl.geometry reference gap clock l n |
| 183 | have hi : InjOn TorusAverages.quotientPoint |
| 184 | ((fun z => g.center + g.basis z) '' outerCell (r l n) (F.L (l,n)) (clock.value l n)) := |
| 185 | transported_outer_injective (reference l n) (gap l n) (hr l n) (F.L_pos (l,n)) |
| 186 | (clock.value_pos l n) (hinj l n) |
| 187 | have hk' : g.coordinates k x.2 ∈ outerCell (r l n) (F.L (l,n)) (clock.value l n) := hk |
| 188 | by_cases ht : (g.coordinates k x.2).2 ∈ Ioo 0 (ScaledActualParticularControl.length F clock l n) |
| 189 | · have hzero (hpath : ∀ v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n), |
| 190 | (x.1.1, g.path k x.2 v) ∉ sourceRegions F clock reference gap r S l n) : |
| 191 | ((data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k |
| 192 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 193 | ((data F clock reference gap r hr base tangent ctx u b G A j l).pressure n k |
| 194 | =ᶠ[𝓝 x] fun _ => 0) := |
| 195 | ⟨data_amplitude_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 196 | s S hS hsupport l n k hx hpath, |
| 197 | data_pressure_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 198 | s S hS hsupport l n k hx ht hpath⟩ |
| 199 | by_cases hp : x.1.1 ∈ S l n |
| 200 | · by_cases hxi : (g.coordinates k x.2).1 ∈ Icc (-(r l n)) (r l n) |
| 201 | · left |
| 202 | have htime : (g.coordinates k x.2).2 ∉ |
| 203 | Icc ((F.L (l,n) / clock.value l n) / 6) (5 * (F.L (l,n) / clock.value l n) / 6) := by |
| 204 | intro hv |
| 205 | apply hn |
| 206 | refine ⟨hp, mem_iUnion.mpr ⟨k, ?_⟩⟩ |
| 207 | exact ⟨hxi, hv⟩ |
| 208 | exact (nativeCutoff_source_time_zero_germ (hr l n) (F.L_pos (l,n)) |
| 209 | (clock.value_pos l n) htime).comp_tendsto |
| 210 | ((g.coordinates_contDiff k).continuous.comp continuous_snd).continuousAt |
| 211 | · right |
| 212 | apply hzero |
| 213 | intro v hv hh |
| 214 | obtain ⟨i, hi'⟩ := mem_iUnion.mp hh.2 |
| 215 | exact path_sourceCell_excluded g (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) |
| 216 | hi hk' hxi v hv i hi' |
| 217 | · right |
| 218 | exact hzero (fun _ _ hh => hp hh.1) |
| 219 | · left |
| 220 | exact (nativeCutoff_time_zero_germ (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) ht).comp_tendsto |
| 221 | ((g.coordinates_contDiff k).continuous.comp continuous_snd).continuousAt |
| 222 | |
| 223 | /-- All three literal particular output fields have zero germs off the |
| 224 | incoming label carrier. This is independent of every numerical jet bound. -/ |
| 225 | theorem particular_zero_germs |
| 226 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 227 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 228 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 229 | (outStrip : StripData ((P × ℝ) × Plane)) (d : GraphDirections ((P × ℝ) × Plane)) |
| 230 | (l : Label) (n : ℕ) {x : (P × ℝ) × Plane} (hx : x.1.1 ∈ s.domain) |
| 231 | (hn : (x.1.1, x.2) ∉ sourceRegions F clock reference gap r S l n) : |
| 232 | (((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d).amplitude n |
| 233 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 234 | ((data F clock reference gap r hr base tangent ctx u b G A j l).common.pressure n |
| 235 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 236 | ((data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d n |
| 237 | =ᶠ[𝓝 x] fun _ => 0) := by |
| 238 | apply common_zero_germs_of_native |
| 239 | (data F clock reference gap r hr base tangent ctx u b G A j l) |
| 240 | (cells F clock reference gap r hr hinj l) |
| 241 | (data_cutoff_support F clock reference gap r hr base tangent ctx u b G A j l) outStrip d |
| 242 | (data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 243 | s S hS hsupport l n hx hn) |
| 244 | intro k hk |
| 245 | exact data_native_zero_alternative F clock reference gap r hr base tangent ctx u b G A j |
| 246 | s S hS hsupport hinj l n k hx hk hn |
| 247 | |
| 248 | end Particular |
| 249 | |
| 250 | section Signed |
| 251 | |
| 252 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 253 | |
| 254 | /-- The same copy data as the signed update: the inverse-quotient |
| 255 | amplitude, its projected homogeneous pressure, and zero inhomogeneous source. -/ |
| 256 | noncomputable def signedCopyData (base : WaveCoefficients D) (s : StripData D) |
| 257 | (d : GraphDirections D) (matrix : I → ℕ → D → SignedWaveUpdate.Mat2) |
| 258 | (target : I → ℕ → D → SignedWaveUpdate.Vec2) |
| 259 | (request : ℕ → D → SignedWaveUpdate.Vec2) (mask : I → ℕ → D → ℝ) |
| 260 | (fundamental normalMotion : I → ℕ → D → ProblemStatement.Space) |
| 261 | (action : I → ℕ → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) |
| 262 | (cutoff : I → ℕ → D → ℝ) (column : Fin 2) : CopyData D I where |
| 263 | background := base |
| 264 | amplitude n i := (SignedWaveUpdate.coefficients base s d (matrix i) (target i) request |
| 265 | (mask i) (fundamental i) (normalMotion i) (action i) column).amplitude n |
| 266 | pressure n i := (SignedWaveUpdate.coefficients base s d (matrix i) (target i) request |
| 267 | (mask i) (fundamental i) (normalMotion i) (action i) column).pressure n |
| 268 | cutoff n i := cutoff i n |
| 269 | source := fun _ _ => 0 |
| 270 | |
| 271 | variable (base : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 272 | (matrix : I → ℕ → D → SignedWaveUpdate.Mat2) |
| 273 | (target : I → ℕ → D → SignedWaveUpdate.Vec2) |
| 274 | (request : ℕ → D → SignedWaveUpdate.Vec2) (mask : I → ℕ → D → ℝ) |
| 275 | (fundamental normalMotion : I → ℕ → D → ProblemStatement.Space) |
| 276 | (action : I → ℕ → D → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) |
| 277 | (cutoff : I → ℕ → D → ℝ) (column : Fin 2) |
| 278 | |
| 279 | theorem signed_raw_zero_of_mask (n : ℕ) (i : I) (x : D) (hm : mask i n x = 0) : |
| 280 | (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).amplitude n i x = 0 ∧ |
| 281 | (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).pressure n i x = 0 := by |
| 282 | simp [signedCopyData, SignedWaveUpdate.coefficients, |
| 283 | SignedWaveUpdate.homogeneousCoefficients, SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, |
| 284 | hm, ParticularWaveBounds.projectedPressure, TangentProjection.pressureCoefficient] |
| 285 | |
| 286 | theorem signed_zero_germs_of_mask_germs (K : Cells D I) |
| 287 | (hcutoff : ∀ n i, support (cutoff i n) ⊆ K.carrier n i) |
| 288 | {n : ℕ} {x : D} (hm : ∀ i, mask i n =ᶠ[𝓝 x] fun _ => 0) : |
| 289 | (((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).commonCorrected s d).amplitude n |
| 290 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 291 | ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).common.pressure n |
| 292 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 293 | ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).globalGaussian d n |
| 294 | =ᶠ[𝓝 x] fun _ => 0) := by |
| 295 | apply common_zero_germs_of_native _ K hcutoff s d (Filter.EventuallyEq.refl _ _) |
| 296 | intro i _ |
| 297 | right |
| 298 | constructor |
| 299 | · filter_upwards [hm i] with y hy |
| 300 | exact (signed_raw_zero_of_mask base s d matrix target request mask fundamental normalMotion action cutoff column n i y hy).1 |
| 301 | · filter_upwards [hm i] with y hy |
| 302 | exact (signed_raw_zero_of_mask base s d matrix target request mask fundamental normalMotion action cutoff column n i y hy).2 |
| 303 | |
| 304 | end Signed |
| 305 | |
| 306 | section ClosedSupport |
| 307 | |
| 308 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [Zero E] |
| 309 | |
| 310 | omit [NormedSpace ℝ D] in |
| 311 | /-- Relative support on an open physical domain gives ambient zero germs |
| 312 | outside a closed carrier. No off-domain totalization is constrained. -/ |
| 313 | theorem zero_germ_of_local_support {U K : Set D} (hU : IsOpen U) (hK : IsClosed K) |
| 314 | {f : D → E} (hs : U ∩ support f ⊆ K) {x : D} (hx : x ∈ U) (hn : x ∉ K) : |
| 315 | f =ᶠ[𝓝 x] fun _ => 0 := by |
| 316 | filter_upwards [hU.mem_nhds hx, hK.isOpen_compl.mem_nhds hn] with y hy hny |
| 317 | by_contra hz |
| 318 | exact hny (hs ⟨hy, hz⟩) |
| 319 | |
| 320 | end ClosedSupport |
| 321 | |
| 322 | section CoefficientSupport |
| 323 | |
| 324 | open HarmonicSourceSupport HarmonicResidual HarmonicMeanInteraction |
| 325 | open HarmonicFields ErrorHarmonics |
| 326 | |
| 327 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 328 | |
| 329 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 330 | theorem pair_input_support {U K : Set D} (j : ℤ) {f : D → ℂ} |
| 331 | (hf : ∀ x, x ∈ U → x ∉ K → f x = 0) : |
| 332 | NonzeroSupportedOn U K (realCoefficients (conjugatePair j f)) := by |
| 333 | apply NonzeroSupportedOn.realProjection |
| 334 | intro m hm x hx hn |
| 335 | simp [ParticularWaveAssembly.pair_apply, hf x hx hn] |
| 336 | |
| 337 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 338 | /-- A coefficient assembly needs only the literal amplitude values at |
| 339 | the zero-angle section. It needs no global angular independence premise. -/ |
| 340 | theorem modeBlock_inputSupport {U : Set D} {K : ℕ → Set D} |
| 341 | (j : ℤ) (frequency : ℕ → ℝ) (phase : ℕ → D → ℝ) (angularFrequency : ℕ → ℤ) |
| 342 | {v g : ℕ → D → ComplexVector} {p : ℕ → D → ℂ} |
| 343 | (hv : ∀ n x, x ∈ U → x ∉ K n → v n x = 0) |
| 344 | (hp : ∀ n x, x ∈ U → x ∉ K n → p n x = 0) |
| 345 | (hg : ∀ n x, x ∈ U → x ∉ K n → g n x = 0) : |
| 346 | InputSupportOn U K (ParticularWaveAssembly.modeBlock j frequency phase angularFrequency v p) |
| 347 | (ParticularWaveAssembly.modeBlock j frequency phase angularFrequency g (fun _ _ => 0)).velocity |
| 348 | 0 := by |
| 349 | refine ⟨?_, ?_, ?_, ?_⟩ |
| 350 | · intro n i |
| 351 | apply pair_input_support |
| 352 | intro x hx hn |
| 353 | simp only [hv n x hx hn, Pi.zero_apply] |
| 354 | · intro n |
| 355 | exact pair_input_support j (hp n) |
| 356 | · intro n i |
| 357 | apply pair_input_support |
| 358 | intro x hx hn |
| 359 | simp only [hg n x hx hn, Pi.zero_apply] |
| 360 | · intro n i m hm x hx hn |
| 361 | simp [realCoefficients_apply] |
| 362 | |
| 363 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 364 | /-- The actual carrier-retaining update preserves the very same support |
| 365 | set; in particular, axisymmetric aliases are not added to a label. -/ |
| 366 | theorem inputSupport_addBlock {U : Set D} {K : ℕ → Set D} |
| 367 | {a b : CorrectionState.HarmonicBlock D} {G H A : BlockCoefficients D} |
| 368 | (ha : InputSupportOn U K a G A) (hb : InputSupportOn U K b H 0) : |
| 369 | InputSupportOn U K (HarmonicWaveInteraction.addBlock a b) (G + H) A := by |
| 370 | refine ⟨?_, ?_, ?_, ha.aliasError⟩ |
| 371 | · intro n i |
| 372 | change NonzeroSupportedOn U (K n) (realCoefficients (a.velocity n i + b.velocity n i)) |
| 373 | rw [realCoefficients_add] |
| 374 | exact (ha.velocity n i).add (hb.velocity n i) |
| 375 | · intro n |
| 376 | change NonzeroSupportedOn U (K n) (realCoefficients (a.pressure n + b.pressure n)) |
| 377 | rw [realCoefficients_add] |
| 378 | exact (ha.pressure n).add (hb.pressure n) |
| 379 | · intro n i |
| 380 | change NonzeroSupportedOn U (K n) (realCoefficients (G n i + H n i)) |
| 381 | rw [realCoefficients_add] |
| 382 | exact (ha.gaussian n i).add (hb.gaussian n i) |
| 383 | |
| 384 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 385 | theorem inputSupport_two_updates {U : Set D} {K : ℕ → Set D} |
| 386 | {a b c : CorrectionState.HarmonicBlock D} {G H J A : BlockCoefficients D} |
| 387 | (ha : InputSupportOn U K a G A) (hb : InputSupportOn U K b H 0) |
| 388 | (hc : InputSupportOn U K c J 0) : |
| 389 | InputSupportOn U K (HarmonicWaveInteraction.addBlock (HarmonicWaveInteraction.addBlock a b) c) |
| 390 | (G + H + J) A := |
| 391 | inputSupport_addBlock (inputSupport_addBlock ha hb) hc |
| 392 | |
| 393 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 394 | theorem real_supported_sum {ι : Type} {U K : Set D} (L : Finset ι) |
| 395 | (f : ι → HarmonicFields.Coefficients D) |
| 396 | (hf : ∀ l ∈ L, NonzeroSupportedOn U K (realCoefficients (f l))) : |
| 397 | NonzeroSupportedOn U K (realCoefficients (∑ l ∈ L, f l)) := by |
| 398 | classical |
| 399 | induction L using Finset.induction_on with |
| 400 | | empty => |
| 401 | intro j hj x hx hn |
| 402 | simp [realCoefficients_apply] |
| 403 | | @insert l L hl ih => |
| 404 | rw [Finset.sum_insert hl, realCoefficients_add] |
| 405 | exact (hf l (Finset.mem_insert_self _ _)).add |
| 406 | (ih (fun m hm => hf m (Finset.mem_insert_of_mem hm))) |
| 407 | |
| 408 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 409 | theorem inputSupport_sumBlock {ι : Type} {U : Set D} {K : ℕ → Set D} |
| 410 | (L : Finset ι) (frequency : ℕ → ℝ) (phase : ℕ → D → ℝ) (angularFrequency : ℕ → ℤ) |
| 411 | (blocks : ι → CorrectionState.HarmonicBlock D) (gaussians : ι → BlockCoefficients D) |
| 412 | (hs : ∀ l ∈ L, InputSupportOn U K (blocks l) (gaussians l) 0) : |
| 413 | InputSupportOn U K (sumBlock L frequency phase angularFrequency blocks) |
| 414 | (fun n i => ∑ l ∈ L, gaussians l n i) 0 := by |
| 415 | refine ⟨?_, ?_, ?_, ?_⟩ |
| 416 | · intro n i |
| 417 | exact real_supported_sum L (fun l => (blocks l).velocity n i) (fun l hl => (hs l hl).velocity n i) |
| 418 | · intro n |
| 419 | exact real_supported_sum L (fun l => (blocks l).pressure n) (fun l hl => (hs l hl).pressure n) |
| 420 | · intro n i |
| 421 | exact real_supported_sum L (fun l => gaussians l n i) (fun l hl => (hs l hl).gaussian n i) |
| 422 | · intro n i m hm x hx hn |
| 423 | simp [realCoefficients_apply] |
| 424 | |
| 425 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 426 | theorem assembledBlock_inputSupport {U : Set D} {K : ℕ → Set D} |
| 427 | (N : ℕ) (frequency : ℕ → ℝ) (phase : ℕ → D → ℝ) (angularFrequency : ℕ → ℤ) |
| 428 | {v g : ℤ → ℕ → D → ComplexVector} {p : ℤ → ℕ → D → ℂ} |
| 429 | (hv : ∀ j ∈ ParticularWaveAssembly.modes N, ∀ n x, x ∈ U → x ∉ K n → v j n x = 0) |
| 430 | (hp : ∀ j ∈ ParticularWaveAssembly.modes N, ∀ n x, x ∈ U → x ∉ K n → p j n x = 0) |
| 431 | (hg : ∀ j ∈ ParticularWaveAssembly.modes N, ∀ n x, x ∈ U → x ∉ K n → g j n x = 0) : |
| 432 | InputSupportOn U K (ParticularWaveAssembly.assembledBlock N frequency phase angularFrequency v p) |
| 433 | (ParticularWaveAssembly.assembledBlock N frequency phase angularFrequency g (fun _ _ _ => 0)).velocity |
| 434 | 0 := |
| 435 | inputSupport_sumBlock _ _ _ _ _ _ (fun j hj => |
| 436 | modeBlock_inputSupport j frequency phase angularFrequency (hv j hj) (hp j hj) (hg j hj)) |
| 437 | |
| 438 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 439 | theorem blockOfCoefficients_inputSupport {U : Set D} {K : ℕ → Set D} |
| 440 | (a : WaveCoefficients (D × ℝ)) (angularFrequency : ℕ → ℤ) |
| 441 | {g : ℕ → D × ℝ → ComplexVector} |
| 442 | (hv : ∀ n x, x ∈ U → x ∉ K n → a.amplitude n (x, 0) = 0) |
| 443 | (hp : ∀ n x, x ∈ U → x ∉ K n → a.pressure n (x, 0) = 0) |
| 444 | (hg : ∀ n x, x ∈ U → x ∉ K n → g n (x, 0) = 0) : |
| 445 | InputSupportOn U K (SignedWaveUpdate.blockOfCoefficients a angularFrequency) |
| 446 | (SignedWaveUpdate.coefficientBlock a.frequency (fun n x => a.phase n (x, 0)) angularFrequency |
| 447 | (fun n x => g n (x, 0)) (fun _ _ => 0)).velocity 0 := |
| 448 | modeBlock_inputSupport 1 a.frequency (fun n x => a.phase n (x, 0)) angularFrequency hv hp hg |
| 449 | |
| 450 | end CoefficientSupport |
| 451 | |
| 452 | section ParticularAssembly |
| 453 | |
| 454 | open ActualGaussianCoverage |
| 455 | |
| 456 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 457 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 458 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 459 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 460 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 461 | (base : Label → WaveCoefficients ((P × ℝ) × Plane)) |
| 462 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 463 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 464 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 465 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) |
| 466 | (s : StripData P) (S : Label → ℕ → Set P) (hS : ∀ l n, IsClosed (S l n)) |
| 467 | (hsupport : ∀ l, HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 468 | (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) |
| 469 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 470 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 471 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 472 | (outStrip : StripData ((P × ℝ) × Plane)) (d : GraphDirections ((P × ℝ) × Plane)) |
| 473 | |
| 474 | include hS hsupport hinj |
| 475 | |
| 476 | /-- A single actual particular mode, with its actual Gaussian error, |
| 477 | has the same carrier as its incoming label. -/ |
| 478 | theorem particular_mode_inputSupport (j : ℤ) (l : Label) : |
| 479 | HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) (sourceRegions F clock reference gap r S l) |
| 480 | (ParticularWaveAssembly.nativeModeBlock j (b l) |
| 481 | ((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d)) |
| 482 | (ParticularWaveAssembly.nativeModeBlock j (b l) |
| 483 | { base l with |
| 484 | amplitude := (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d |
| 485 | pressure := fun _ _ => 0 }).velocity 0 := by |
| 486 | apply modeBlock_inputSupport |
| 487 | · intro n x hx hn |
| 488 | exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j |
| 489 | s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).1.self_of_nhds |
| 490 | · intro n x hx hn |
| 491 | exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j |
| 492 | s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).2.1.self_of_nhds |
| 493 | · intro n x hx hn |
| 494 | exact (particular_zero_germs F clock reference gap r hr base tangent ctx u b G A j |
| 495 | s S hS hsupport hinj outStrip d l n (x := ((x.1, 0), x.2)) hx.1 hn).2.2.self_of_nhds |
| 496 | |
| 497 | /-- Finite reassembly of all signed particular modes retains the fixed |
| 498 | label carrier, with no growth or derivative estimate as an input. -/ |
| 499 | theorem particular_assembled_inputSupport (N : ℕ) (l : Label) : |
| 500 | HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) (sourceRegions F clock reference gap r S l) |
| 501 | (ErrorHarmonics.sumBlock (ParticularWaveAssembly.modes N) |
| 502 | (b l).frequency (b l).phase (b l).angularFrequency (fun j => |
| 503 | ParticularWaveAssembly.nativeModeBlock j (b l) |
| 504 | ((data F clock reference gap r hr base tangent ctx u b G A j l).commonCorrected outStrip d))) |
| 505 | (fun n i => ∑ j ∈ ParticularWaveAssembly.modes N, |
| 506 | (ParticularWaveAssembly.nativeModeBlock j (b l) |
| 507 | { base l with |
| 508 | amplitude := (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian d |
| 509 | pressure := fun _ _ => 0 }).velocity n i) 0 := by |
| 510 | apply inputSupport_sumBlock |
| 511 | intro j _ |
| 512 | exact particular_mode_inputSupport F clock reference gap r hr base tangent ctx u b G A |
| 513 | s S hS hsupport hinj outStrip d j l |
| 514 | |
| 515 | end ParticularAssembly |
| 516 | |
| 517 | section SignedAssembly |
| 518 | |
| 519 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 520 | (base : WaveCoefficients (D × ℝ)) (s : StripData (D × ℝ)) (d : GraphDirections (D × ℝ)) |
| 521 | (matrix : I → ℕ → D × ℝ → SignedWaveUpdate.Mat2) |
| 522 | (target : I → ℕ → D × ℝ → SignedWaveUpdate.Vec2) |
| 523 | (request : ℕ → D × ℝ → SignedWaveUpdate.Vec2) (mask : I → ℕ → D × ℝ → ℝ) |
| 524 | (fundamental normalMotion : I → ℕ → D × ℝ → ProblemStatement.Space) |
| 525 | (action : I → ℕ → D × ℝ → ProblemStatement.Space →L[ℝ] ProblemStatement.Space) |
| 526 | (cutoff : I → ℕ → D × ℝ → ℝ) (column : Fin 2) |
| 527 | |
| 528 | /-- Local support of the actual signed masks supplies the new block's |
| 529 | support. Mask support is the only hypothesis on the inverse quotient, |
| 530 | fundamental, and projected pressure; their numerical size is immaterial. -/ |
| 531 | theorem signed_inputSupport (outer : Cells (D × ℝ) I) |
| 532 | (hcutoff : ∀ n i, support (cutoff i n) ⊆ outer.carrier n i) |
| 533 | {U : Set D} {K : ℕ → Set D} (hU : IsOpen U) (hK : ∀ n, IsClosed (K n)) |
| 534 | (hmask : ∀ n i, (U ×ˢ (univ : Set ℝ)) ∩ support (mask i n) ⊆ Prod.fst ⁻¹' K n) |
| 535 | (angularFrequency : ℕ → ℤ) : |
| 536 | HarmonicSourceSupport.InputSupportOn U K |
| 537 | (SignedWaveUpdate.blockOfCoefficients |
| 538 | ((signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).commonCorrected s d) |
| 539 | angularFrequency) |
| 540 | (SignedWaveUpdate.coefficientBlock base.frequency (fun n x => base.phase n (x, 0)) angularFrequency |
| 541 | (fun n x => (signedCopyData base s d matrix target request mask fundamental normalMotion action cutoff column).globalGaussian d n (x, 0)) |
| 542 | (fun _ _ => 0)).velocity 0 := by |
| 543 | have hzero (n : ℕ) (x : D) (hx : x ∈ U) (hn : x ∉ K n) := |
| 544 | signed_zero_germs_of_mask_germs base s d matrix target request mask fundamental normalMotion action cutoff column |
| 545 | outer hcutoff (n := n) (x := (x, 0)) (fun i => |
| 546 | zero_germ_of_local_support (hU.prod isOpen_univ) ((hK n).preimage continuous_fst) |
| 547 | (hmask n i) ⟨hx, mem_univ _⟩ hn) |
| 548 | apply blockOfCoefficients_inputSupport |
| 549 | · intro n x hx hn |
| 550 | exact (hzero n x hx hn).1.self_of_nhds |
| 551 | · intro n x hx hn |
| 552 | exact (hzero n x hx hn).2.1.self_of_nhds |
| 553 | · intro n x hx hn |
| 554 | exact (hzero n x hx hn).2.2.self_of_nhds |
| 555 | |
| 556 | end SignedAssembly |
| 557 | |
| 558 | section TransportedMask |
| 559 | |
| 560 | variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 561 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 562 | |
| 563 | /-- Clock transport of a native mask keeps the actual source window. |
| 564 | The primitive mask may contain all radial and dyadic slow cutoffs. -/ |
| 565 | theorem transported_mask_support (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) |
| 566 | {S : Set Q} {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} |
| 567 | (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) : |
| 568 | support (fun x : P × Plane => mask |
| 569 | (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ |
| 570 | ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c := by |
| 571 | intro x hx |
| 572 | have hs := hm hx |
| 573 | exact ⟨hs.1, mem_iUnion.mpr ⟨k, (ActualGaussianCoverage.mem_sourceCell_clock hc _).mpr hs.2⟩⟩ |
| 574 | |
| 575 | /-- The slow pullback and the locally finite native union form one closed |
| 576 | carrier. This is the closure used by the next residual-source calculation. -/ |
| 577 | theorem transported_carrier_closed (χ : P →L[ℝ] Q) (g : Geometry) |
| 578 | {S : Set Q} (hS : IsClosed S) (r L c : ℝ) : |
| 579 | IsClosed (ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c) := |
| 580 | ActualGaussianCoverage.sourceRegion_closed (hS.preimage χ.continuous) g r L c |
| 581 | |
| 582 | theorem transported_mask_tsupport (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) |
| 583 | {S : Set Q} (hS : IsClosed S) {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} |
| 584 | (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) : |
| 585 | tsupport (fun x : P × Plane => mask |
| 586 | (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ |
| 587 | ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c := |
| 588 | closure_minimal (transported_mask_support χ g k hc hm) (transported_carrier_closed χ g hS r L c) |
| 589 | |
| 590 | theorem transported_mask_zero_germ (χ : P →L[ℝ] Q) (g : Geometry) (k : Frequency) |
| 591 | {S : Set Q} (hS : IsClosed S) {r L c : ℝ} (hc : 0 < c) {mask : Q × Plane → ℝ} |
| 592 | (hm : support mask ⊆ S ×ˢ ActualGaussianCoverage.sourceCell r L 1) |
| 593 | {x : P × Plane} (hx : x ∉ ActualGaussianCoverage.sourceRegion (χ ⁻¹' S) g r L c) : |
| 594 | (fun y : P × Plane => mask |
| 595 | (χ y.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k y.2))) =ᶠ[𝓝 x] fun _ => 0 := |
| 596 | zero_germ_of_support (transported_carrier_closed χ g hS r L c) |
| 597 | (transported_mask_support χ g k hc hm) hx |
| 598 | |
| 599 | end TransportedMask |
| 600 | |
| 601 | end NavierStokes.LabelSupportPreservation |