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.CorrectionStep |
| 2 | import NavierStokes.WaveEdgeExtension |
| 3 | |
| 4 | /-! |
| 5 | # Qualitative regularity of the actual finite wave updates |
| 6 | |
| 7 | All regularity statements below use the full open slow domain. The |
| 8 | quantitative strip is used only for its fixed differential operators. |
| 9 | Native smoothness and genuine zero germs, rather than estimates on a |
| 10 | smaller strip, supply the continuation away from the active phase patches. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ActualWaveRegularity |
| 16 | |
| 17 | open Set Function Filter WeightedClasses HarmonicCalculus LinearWaveBounds |
| 18 | open PeriodizedWaveBounds CorrectionState |
| 19 | open CurlClassBounds hiding ComplexVector |
| 20 | open scoped Topology ContDiff BigOperators |
| 21 | |
| 22 | |
| 23 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 24 | |
| 25 | /-- A qualitative domain for the same operators. No quantitative bound is |
| 26 | extended from the original strip. -/ |
| 27 | noncomputable def onDomain (s : StripData D) (Ω : Set D) (hΩ : IsOpen Ω) : StripData D where |
| 28 | domain := Ω |
| 29 | isOpen_domain := hΩ |
| 30 | epsilon := s.epsilon |
| 31 | epsilon_pos := s.epsilon_pos |
| 32 | epsilon_le_one := s.epsilon_le_one |
| 33 | slow := s.slow |
| 34 | one_le_slow := s.one_le_slow |
| 35 | delta := fun _ => 1 |
| 36 | delta_pos := fun _ _ => zero_lt_one |
| 37 | zeta := fun _ => 0 |
| 38 | zeta_smooth := contDiffOn_const |
| 39 | zeta_nonneg := fun _ _ => le_rfl |
| 40 | |
| 41 | /-- These are native, uncorrected data. In particular the smoothness of |
| 42 | the common corrected velocity is a conclusion, not a field of this record. -/ |
| 43 | structure NativeData (a : CopyData D I) (s : StripData D) (d : GraphDirections D) |
| 44 | (Ω : Set D) (hΩ : IsOpen Ω) where |
| 45 | cells : Cells D I |
| 46 | patch : ℕ → I → Set D |
| 47 | raw : LocalizedCurlRealization.RawData a (onDomain s Ω hΩ) d patch |
| 48 | cutoff_support : ∀ n i, support (a.cutoff n i) ⊆ cells.carrier n i |
| 49 | cover : ∀ n i x, x ∈ Ω → x ∈ cells.carrier n i → x ∈ patch n i ∨ |
| 50 | (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0 |
| 51 | |
| 52 | namespace NativeData |
| 53 | |
| 54 | variable {a : CopyData D I} {s : StripData D} {d : GraphDirections D} |
| 55 | {Ω : Set D} {hΩ : IsOpen Ω} (h : NativeData a s d Ω hΩ) |
| 56 | |
| 57 | include h |
| 58 | |
| 59 | theorem common_velocity_smooth (n : ℕ) : |
| 60 | ContDiffOn ℝ ∞ (vectorMode (a.background.frequency n) (a.background.phase n) |
| 61 | ((a.commonCorrected s d).amplitude n)) Ω := |
| 62 | LocalizedCurlRealization.RawData.common_velocity_smooth h.raw h.cells h.cutoff_support h.cover n |
| 63 | |
| 64 | /-- Locally finite native zero germs give a zero germ for the common |
| 65 | corrected amplitude, even if the phase or normal is singular at this point. -/ |
| 66 | theorem common_zero_germ {n : ℕ} {x : D} |
| 67 | (hz : ∀ i, x ∈ h.cells.carrier n i → |
| 68 | (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) : |
| 69 | (a.commonCorrected s d).amplitude n =ᶠ[𝓝 x] fun _ => 0 := by |
| 70 | classical |
| 71 | by_cases hi : ∃ i, x ∈ h.cells.carrier n i |
| 72 | · obtain ⟨i, hi⟩ := hi |
| 73 | exact (a.commonCorrected_amplitude_germ h.cells h.cutoff_support s d n hi).trans |
| 74 | (LocalizedCurlRealization.native_zero_germs a s d (hz i hi)).2.1 |
| 75 | · exact a.commonCorrected_zero_germ h.cells h.cutoff_support s d (not_exists.mp hi) |
| 76 | |
| 77 | theorem common_velocity_zero_germ {n : ℕ} {x : D} |
| 78 | (hz : ∀ i, x ∈ h.cells.carrier n i → |
| 79 | (a.localized i).amplitude n =ᶠ[𝓝 x] fun _ => 0) : |
| 80 | vectorMode (a.background.frequency n) (a.background.phase n) |
| 81 | ((a.commonCorrected s d).amplitude n) =ᶠ[𝓝 x] fun _ => 0 := by |
| 82 | filter_upwards [h.common_zero_germ hz] with y hy |
| 83 | ext j |
| 84 | simp only [vectorMode, mode, hy, Pi.zero_apply, zero_mul] |
| 85 | |
| 86 | end NativeData |
| 87 | |
| 88 | /-! ## Discrete translations on an open domain |
| 89 | |
| 90 | Unlike global translation identities, these statements only require the |
| 91 | actual fields on the physical slow domain. Derivatives are genuine |
| 92 | Fréchet derivatives, transferred through an open neighborhood. |
| 93 | -/ |
| 94 | |
| 95 | noncomputable def TranslationOn {E : Type} (Ω : Set D) (z : D) (f : D → E) : Prop := |
| 96 | ∀ x ∈ Ω, f (x + z) = f x |
| 97 | |
| 98 | namespace TranslationOn |
| 99 | |
| 100 | variable {E F G : Type} {Ω : Set D} {z : D} {f : D → E} {g : D → F} |
| 101 | |
| 102 | omit [NormedSpace ℝ D] in |
| 103 | theorem const (c : E) : TranslationOn Ω z (fun _ : D => c) := fun _ _ => rfl |
| 104 | |
| 105 | omit [NormedSpace ℝ D] in |
| 106 | theorem map (hf : TranslationOn Ω z f) (T : E → F) : |
| 107 | TranslationOn Ω z (fun x => T (f x)) := |
| 108 | fun x hx => congrArg T (hf x hx) |
| 109 | |
| 110 | omit [NormedSpace ℝ D] in |
| 111 | theorem map₂ (hf : TranslationOn Ω z f) (hg : TranslationOn Ω z g) (T : E → F → G) : |
| 112 | TranslationOn Ω z (fun x => T (f x) (g x)) := |
| 113 | fun x hx => congrArg₂ T (hf x hx) (hg x hx) |
| 114 | |
| 115 | omit [NormedSpace ℝ D] in |
| 116 | theorem component {ι : Type} {F : ι → Type} {f : D → ∀ i, F i} |
| 117 | (hf : TranslationOn Ω z f) (i : ι) : TranslationOn Ω z (fun x => f x i) := |
| 118 | hf.map (fun v => v i) |
| 119 | |
| 120 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 121 | |
| 122 | theorem fderiv (hf : TranslationOn Ω z f) (hΩ : IsOpen Ω) : |
| 123 | TranslationOn Ω z (fderiv ℝ f) := by |
| 124 | intro x hx |
| 125 | have he : (fun y => f (y + z)) =ᶠ[𝓝 x] f := by |
| 126 | filter_upwards [hΩ.mem_nhds hx] with y hy |
| 127 | exact hf y hy |
| 128 | simpa only [fderiv_comp_add_right] using he.fderiv_eq (𝕜 := ℝ) |
| 129 | |
| 130 | theorem along {V : D → D} (hf : TranslationOn Ω z f) |
| 131 | (hV : TranslationOn Ω z V) (hΩ : IsOpen Ω) : |
| 132 | TranslationOn Ω z (HarmonicCalculus.along V f) := by |
| 133 | intro x hx |
| 134 | simp only [HarmonicCalculus.along, hf.fderiv hΩ x hx, hV x hx] |
| 135 | |
| 136 | end TranslationOn |
| 137 | |
| 138 | theorem phaseNormal_translation {Ω : Set D} {z : D} (hΩ : IsOpen Ω) |
| 139 | {R Φ : D → ℝ} {Vr Vθ Vz : D → D} |
| 140 | (hR : TranslationOn Ω z R) (hr : TranslationOn Ω z Vr) |
| 141 | (hθ : TranslationOn Ω z Vθ) (hz : TranslationOn Ω z Vz) |
| 142 | (hΦ : TranslationOn Ω z Φ) : |
| 143 | TranslationOn Ω z (phaseNormal R Vr Vθ Vz Φ) := by |
| 144 | intro x hx |
| 145 | simp only [phaseNormal, hΦ.along hr hΩ x hx, hΦ.along hθ hΩ x hx, |
| 146 | hΦ.along hz hΩ x hx, hR x hx] |
| 147 | |
| 148 | theorem cylindricalCurl_translation {Ω : Set D} {z : D} (hΩ : IsOpen Ω) |
| 149 | {R : D → ℝ} {Vr Vθ Vz : D → D} {a : D → ComplexVector} |
| 150 | (hR : TranslationOn Ω z R) (hr : TranslationOn Ω z Vr) |
| 151 | (hθ : TranslationOn Ω z Vθ) (hz : TranslationOn Ω z Vz) |
| 152 | (ha : TranslationOn Ω z a) : |
| 153 | TranslationOn Ω z (cylindricalCurl R Vr Vθ Vz a) := by |
| 154 | intro x hx |
| 155 | simp only [cylindricalCurl, hR x hx, |
| 156 | (ha.component 2).along hθ hΩ x hx, (ha.component 1).along hz hΩ x hx, |
| 157 | (ha.component 0).along hz hΩ x hx, (ha.component 2).along hr hΩ x hx, |
| 158 | (ha.component 1).along hr hΩ x hx, (ha.component 0).along hθ hΩ x hx, ha x hx] |
| 159 | |
| 160 | omit [NormedSpace ℝ D] in |
| 161 | theorem common_amplitude_translation (a : CopyData D I) {Ω : Set D} {z : D} |
| 162 | (n : ℕ) (e : I ≃ I) |
| 163 | (hψ : ∀ i x, x ∈ Ω → a.cutoff n (e i) (x + z) = a.cutoff n i x) |
| 164 | (ha : ∀ i x, x ∈ Ω → a.amplitude n (e i) (x + z) = a.amplitude n i x) : |
| 165 | TranslationOn Ω z (a.common.amplitude n) := by |
| 166 | intro x hx |
| 167 | change (∑' i, a.cutoff n i (x + z) • a.amplitude n i (x + z)) = |
| 168 | ∑' i, a.cutoff n i x • a.amplitude n i x |
| 169 | rw [← e.tsum_eq] |
| 170 | apply tsum_congr |
| 171 | intro i |
| 172 | rw [hψ i x hx, ha i x hx] |
| 173 | |
| 174 | theorem commonCorrected_translation (a : CopyData D I) (s : StripData D) |
| 175 | (d : GraphDirections D) {Ω : Set D} {z : D} (hΩ : IsOpen Ω) (n : ℕ) |
| 176 | (hR : TranslationOn Ω z (a.background.radius n)) |
| 177 | (hr : TranslationOn Ω z (d.radialField n)) |
| 178 | (hΦ : TranslationOn Ω z (a.background.phase n)) |
| 179 | (ha : TranslationOn Ω z (a.common.amplitude n)) : |
| 180 | TranslationOn Ω z ((a.commonCorrected s d).amplitude n) := by |
| 181 | have hn := phaseNormal_translation hΩ hR hr (TranslationOn.const d.angular) |
| 182 | (TranslationOn.const (s.epsilon n • d.axial)) hΦ |
| 183 | have hB := hn.map₂ ha normalCoefficient |
| 184 | have hc := cylindricalCurl_translation hΩ hR hr (TranslationOn.const d.angular) |
| 185 | (TranslationOn.const (s.epsilon n • d.axial)) hB |
| 186 | exact ha.map₂ (hc.map (fun v => (1 / a.background.frequency n) • (Complex.I • v))) |
| 187 | (fun u v => u + v) |
| 188 | |
| 189 | theorem common_velocity_translation (a : CopyData D I) (s : StripData D) |
| 190 | (d : GraphDirections D) {Ω : Set D} {z : D} (hΩ : IsOpen Ω) (n : ℕ) |
| 191 | (hR : TranslationOn Ω z (a.background.radius n)) |
| 192 | (hr : TranslationOn Ω z (d.radialField n)) |
| 193 | (hΦ : TranslationOn Ω z (a.background.phase n)) |
| 194 | (ha : TranslationOn Ω z (a.common.amplitude n)) : |
| 195 | TranslationOn Ω z (vectorMode (a.background.frequency n) (a.background.phase n) |
| 196 | ((a.commonCorrected s d).amplitude n)) := by |
| 197 | intro x hx |
| 198 | have hv := commonCorrected_translation a s d hΩ n hR hr hΦ ha x hx |
| 199 | ext i |
| 200 | simp only [vectorMode, mode, carrier, hΦ x hx, hv] |
| 201 | |
| 202 | /-! ## Qualitative regularity of the literal native solves -/ |
| 203 | |
| 204 | section Modal |
| 205 | |
| 206 | open CommonCoverSolve TorusInverse ParticularWaveBounds |
| 207 | open PrimaryCopyBridge hiding Plane Frequency |
| 208 | open PrimaryPulseBounds |
| 209 | |
| 210 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 211 | |
| 212 | /-- Primitive smooth coefficient, forcing, and synthesis columns on a |
| 213 | neighborhood of each entire Volterra path. No solved field occurs here. -/ |
| 214 | structure ModalSmooth (t : ℕ → TangentData P ProblemStatement.Space) |
| 215 | (harmonic : ℤ) (g : ℕ → Geometry) (L : ℕ → ℝ) |
| 216 | (Ω : Set (P × Plane)) (C : ℕ → Frequency → Set (P × Plane)) where |
| 217 | frame : ℕ → PrimaryODE.FrameData (P × ℝ) |
| 218 | neighborhood : ℕ → Frequency → Set (P × Plane) |
| 219 | open_neighborhood : ∀ n k, IsOpen (neighborhood n k) |
| 220 | contains : ∀ n k, Ω ∩ C n k ⊆ neighborhood n k |
| 221 | interval : ℕ → Set ℝ |
| 222 | open_interval : ∀ n, IsOpen (interval n) |
| 223 | contains_interval : ∀ n, Icc 0 (L n) ⊆ interval n |
| 224 | bridge : ∀ n k, Inputs (frame n) (t n) harmonic (g n) k (neighborhood n k) 0 (L n) |
| 225 | coefficient : ∀ n k, ContDiffOn ℝ ∞ |
| 226 | ((copyFrame (frame n) (g n) k).coefficient harmonic) (neighborhood n k ×ˢ interval n) |
| 227 | forcing : ∀ n k, ContDiffOn ℝ ∞ |
| 228 | ((copyFrame (frame n) (g n) k).forcing (copySource (t n).source (g n) k)) |
| 229 | (neighborhood n k ×ˢ interval n) |
| 230 | columns : ∀ n k (i : Fin 2), ContDiffOn ℝ ∞ |
| 231 | (synthesisColumn (copyFrame (frame n) (g n) k) i) (neighborhood n k ×ˢ interval n) |
| 232 | current_slot : ∀ n k x, x ∈ neighborhood n k → ((g n).coordinates k x.2).2 ∈ Ioo 0 (L n) |
| 233 | |
| 234 | end Modal |
| 235 | |
| 236 | /-! ## One actual mode on the full physical slow domain -/ |
| 237 | |
| 238 | abbrev Point := CorrectionStep.CyclePoint |
| 239 | abbrev Cylinder := Point × ℝ |
| 240 | |
| 241 | noncomputable def fullDomain {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) : Set Cylinder := |
| 242 | HarmonicResidual.liftDomain (PhysicalMeanDomain.slowDomain U.carrier) |
| 243 | |
| 244 | theorem fullDomain_open {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) : |
| 245 | IsOpen (fullDomain U) := |
| 246 | (PhysicalMeanDomain.slowDomain_open U.isOpen).prod isOpen_univ |
| 247 | |
| 248 | noncomputable def nativeDomain {coord : ℝ} (e : Cylinder ≃ₗᵢ[ℝ] D) |
| 249 | (U : LocalSignedRequest.SlowRegion coord) : Set D := e.symm ⁻¹' fullDomain U |
| 250 | |
| 251 | theorem nativeDomain_open {coord : ℝ} (e : Cylinder ≃ₗᵢ[ℝ] D) |
| 252 | (U : LocalSignedRequest.SlowRegion coord) : IsOpen (nativeDomain e U) := |
| 253 | (fullDomain_open U).preimage e.symm.continuous |
| 254 | |
| 255 | noncomputable def deckShift (k : TorusInverse.Frequency) : Cylinder := |
| 256 | ((0, (0, ((k.1 : ℝ), (k.2 : ℝ)))), 0) |
| 257 | |
| 258 | noncomputable def modeOscillation (a : CopyData D I) (s : StripData D) |
| 259 | (d : GraphDirections D) (e : Cylinder ≃ₗᵢ[ℝ] D) : Oscillation Point := |
| 260 | fun n x i => (vectorMode (a.background.frequency n) (a.background.phase n) |
| 261 | ((a.commonCorrected s d).amplitude n) (e x) i).re |
| 262 | |
| 263 | /-- Primitive continuation and deck identities for one mode. All spatial |
| 264 | smoothness is confined to the genuine native patches. Radial support is |
| 265 | proved using localized raw-amplitude zero germs. -/ |
| 266 | structure ModeData (a : CopyData D I) (s : StripData D) (d : GraphDirections D) |
| 267 | (e : Cylinder ≃ₗᵢ[ℝ] D) {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 268 | (r₀ r₁ : ℝ) where |
| 269 | native : NativeData a s d (nativeDomain e U) (nativeDomain_open e U) |
| 270 | reindex : ℕ → TorusInverse.Frequency → I ≃ I |
| 271 | cutoff_deck : ∀ n k i x, x ∈ nativeDomain e U → |
| 272 | a.cutoff n (reindex n k i) (x + e (deckShift k)) = a.cutoff n i x |
| 273 | amplitude_deck : ∀ n k i x, x ∈ nativeDomain e U → |
| 274 | a.amplitude n (reindex n k i) (x + e (deckShift k)) = a.amplitude n i x |
| 275 | radius_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (a.background.radius n) |
| 276 | radial_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (d.radialField n) |
| 277 | phase_deck : ∀ n k, TranslationOn (nativeDomain e U) (e (deckShift k)) (a.background.phase n) |
| 278 | radial_zero : ∀ n (x : Cylinder), x.1.2.1 ∈ U.carrier → |
| 279 | x.1.1 ∉ Icc (VariableGaugeMean.qLength coord x.1.2.1 * r₀) |
| 280 | (VariableGaugeMean.qLength coord x.1.2.1 * r₁) → |
| 281 | ∀ i, e x ∈ native.cells.carrier n i → |
| 282 | (a.localized i).amplitude n =ᶠ[𝓝 (e x)] fun _ => 0 |
| 283 | |
| 284 | namespace ModeData |
| 285 | |
| 286 | variable {a : CopyData D I} {s : StripData D} {d : GraphDirections D} |
| 287 | {e : Cylinder ≃ₗᵢ[ℝ] D} {coord r₀ r₁ : ℝ} |
| 288 | {U : LocalSignedRequest.SlowRegion coord} (h : ModeData a s d e U r₀ r₁) |
| 289 | |
| 290 | include h |
| 291 | |
| 292 | theorem smooth : WaveStateRegularity.AngularSmooth |
| 293 | (PhysicalMeanDomain.slowDomain U.carrier) (modeOscillation a s d e) := by |
| 294 | intro n i |
| 295 | have hs := (h.native.common_velocity_smooth n).comp e.contDiff.contDiffOn |
| 296 | (show MapsTo e (fullDomain U) (nativeDomain e U) from fun x hx => by |
| 297 | simpa only [nativeDomain, mem_preimage, e.symm_apply_apply] using hx) |
| 298 | exact Complex.reCLM.contDiff.comp_contDiffOn |
| 299 | ((ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn hs) |
| 300 | |
| 301 | theorem periodic : CorrectionStep.OscillationPeriodic U.carrier (modeOscillation a s d e) := by |
| 302 | intro n R t ht θ Y k |
| 303 | have hx : e ((R, (t, Y)), θ) ∈ nativeDomain e U := by |
| 304 | simpa only [nativeDomain, mem_preimage, e.symm_apply_apply, fullDomain, |
| 305 | HarmonicResidual.liftDomain, mem_prod, mem_univ, and_true, |
| 306 | PhysicalMeanDomain.slowDomain, Set.mem_ofPred_eq] using ht |
| 307 | have hp := common_velocity_translation a s d (nativeDomain_open e U) n |
| 308 | (h.radius_deck n k) (h.radial_deck n k) (h.phase_deck n k) |
| 309 | (common_amplitude_translation a n (h.reindex n k) |
| 310 | (h.cutoff_deck n k) (h.amplitude_deck n k)) (e ((R, (t, Y)), θ)) hx |
| 311 | have he : e ((R, (t, Y + ((k.1 : ℝ), (k.2 : ℝ)))), θ) = |
| 312 | e ((R, (t, Y)), θ) + e (deckShift k) := by |
| 313 | rw [← map_add] |
| 314 | congr 1 |
| 315 | simp only [deckShift, Prod.add_def, add_zero] |
| 316 | funext i |
| 317 | change (vectorMode _ _ _ (e ((R, (t, Y + ((k.1 : ℝ), (k.2 : ℝ)))), θ)) i).re = _ |
| 318 | rw [he, hp] |
| 319 | rfl |
| 320 | |
| 321 | theorem support : WaveStateRegularity.WaveSupport U r₀ r₁ (modeOscillation a s d e) := by |
| 322 | intro n θ i x hx hn |
| 323 | by_contra hout |
| 324 | have hz := (h.native.common_velocity_zero_germ (h.radial_zero n (x, θ) hx hout)).self_of_nhds |
| 325 | apply hn |
| 326 | change (vectorMode _ _ _ (e (x, θ)) i).re = 0 |
| 327 | rw [hz] |
| 328 | rfl |
| 329 | |
| 330 | end ModeData |
| 331 | |
| 332 | /-! ## Finite sums retain the whole-domain conclusions -/ |
| 333 | |
| 334 | theorem finite_smooth {ι : Type} {Ω : Set Point} (labels : ℕ → Finset ι) |
| 335 | (u : ι → Oscillation Point) (hs : ∀ l, WaveStateRegularity.AngularSmooth Ω (u l)) : |
| 336 | WaveStateRegularity.AngularSmooth Ω (LabelSumBounds.fieldSum labels u) := by |
| 337 | intro n i |
| 338 | exact ContDiffOn.sum (fun l _ => hs l n i) |
| 339 | |
| 340 | theorem finite_periodic {ι : Type} {U : Set TorusInverse.Plane} (labels : ℕ → Finset ι) |
| 341 | (u : ι → Oscillation Point) (hp : ∀ l, CorrectionStep.OscillationPeriodic U (u l)) : |
| 342 | CorrectionStep.OscillationPeriodic U (LabelSumBounds.fieldSum labels u) := by |
| 343 | intro n R t ht θ Y k |
| 344 | funext i |
| 345 | apply Finset.sum_congr rfl |
| 346 | intro l _ |
| 347 | exact congrFun (hp l n R t ht θ Y k) i |
| 348 | |
| 349 | theorem finite_support {ι : Type} {coord r₀ r₁ : ℝ} |
| 350 | {U : LocalSignedRequest.SlowRegion coord} (labels : ℕ → Finset ι) |
| 351 | (u : ι → Oscillation Point) (hs : ∀ l, WaveStateRegularity.WaveSupport U r₀ r₁ (u l)) : |
| 352 | WaveStateRegularity.WaveSupport U r₀ r₁ (LabelSumBounds.fieldSum labels u) := |
| 353 | WaveStateRegularity.fieldSum_support (fun n l _ θ i => hs l n θ i) |
| 354 | |
| 355 | theorem finset_regular {ι : Type} {coord r₀ r₁ : ℝ} |
| 356 | {U : LocalSignedRequest.SlowRegion coord} (t : Finset ι) (u : ι → Oscillation Point) |
| 357 | (h : ∀ l ∈ t, |
| 358 | WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) (u l) ∧ |
| 359 | CorrectionStep.OscillationPeriodic U.carrier (u l) ∧ |
| 360 | WaveStateRegularity.WaveSupport U r₀ r₁ (u l)) : |
| 361 | WaveStateRegularity.AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) |
| 362 | (LabelSumBounds.fieldSum (fun _ => t) u) ∧ |
| 363 | CorrectionStep.OscillationPeriodic U.carrier (LabelSumBounds.fieldSum (fun _ => t) u) ∧ |
| 364 | WaveStateRegularity.WaveSupport U r₀ r₁ (LabelSumBounds.fieldSum (fun _ => t) u) := by |
| 365 | refine ⟨?_, ?_, ?_⟩ |
| 366 | · intro n i |
| 367 | exact ContDiffOn.sum (fun l hl => (h l hl).1 n i) |
| 368 | · intro n R q hq θ Y k |
| 369 | funext i |
| 370 | exact Finset.sum_congr rfl (fun l hl => congrFun ((h l hl).2.1 n R q hq θ Y k) i) |
| 371 | · exact WaveStateRegularity.fieldSum_support (fun n l hl θ i => (h l hl).2.2 n θ i) |
| 372 | |
| 373 | /-! ## The literal particular update of the cycle -/ |
| 374 | |
| 375 | section ParticularCycle |
| 376 | |
| 377 | open CorrectionStep ParticularWaveAssembly ParticularWaveBounds CopyAngularInvariance |
| 378 | |
| 379 | abbrev ParticularSpace := (CycleSlow × ℝ) × TorusInverse.Plane |
| 380 | |
| 381 | noncomputable def particularChart : Cylinder ≃ₗᵢ[ℝ] ParticularSpace := |
| 382 | (StateReindex.cylinder cycleAssoc).trans angleShuffle |
| 383 | |
| 384 | noncomputable def particularStrip {ι : Type} (p : CycleParameters ι) : StripData ParticularSpace := |
| 385 | ParticularParameters.nativeStrip (reindexStrip cycleAssoc.symm p.strip) |
| 386 | |
| 387 | noncomputable def particularCopyData {ι : Type} (p : CycleParameters ι) |
| 388 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (l : ι) (j : ℤ) : |
| 389 | CopyData ParticularSpace TorusInverse.Frequency := |
| 390 | (p.particular l).copyData (StateReindex.context cycleAssoc.symm c) |
| 391 | (StateReindex.state cycleAssoc.symm u) (StateReindex.block cycleAssoc.symm (v.blocks l)) |
| 392 | (StateReindex.blockCoefficients cycleAssoc.symm (v.gaussian l)) |
| 393 | (StateReindex.blockCoefficients cycleAssoc.symm (v.aliasCoefficients l)) j |
| 394 | |
| 395 | /-- This representation is derived from the actual angle-lifted Volterra |
| 396 | solve and the original carrier. No equality of completed output fields is |
| 397 | an assumption. -/ |
| 398 | theorem particularBlock_eq_modes {ι : Type} (p : CycleParameters ι) |
| 399 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (l : ι) |
| 400 | (hR : ∀ n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 401 | ((p.particular l).background.radius n)) |
| 402 | (hr : ∀ n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 403 | ((p.particular l).directions.radialField n)) |
| 404 | (hf : ∀ n, (v.blocks l).frequency n ≠ 0) : |
| 405 | (p.particularBlock v c u l).oscillation = |
| 406 | LabelSumBounds.fieldSum (fun _ => modes v.residualBand) |
| 407 | (fun j => modeOscillation (particularCopyData p v c u l j) |
| 408 | (particularStrip p) (p.particular l).directions particularChart) := by |
| 409 | have ha (j : ℤ) (n : ℕ) : |
| 410 | Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 411 | (((particularCopyData p v c u l j).commonCorrected (particularStrip p) |
| 412 | (p.particular l).directions).amplitude n) := by |
| 413 | apply CopyData.commonCorrected_invariant |
| 414 | · intro m k |
| 415 | exact nativeCutoff_invariant ((0 : CycleSlow), (1 : ℝ)) _ _ k |
| 416 | · intro m k |
| 417 | exact complexCopyVelocity_invariant (angleTangent_invariant _) (angleLift_invariant _) |
| 418 | _ ((p.particular l).length_pos m).le k |
| 419 | · exact hR |
| 420 | · exact hr |
| 421 | · intro m |
| 422 | exact Invariant.const _ |
| 423 | · intro m |
| 424 | exact ⟨_, actualCarrier_affine _ _ j m⟩ |
| 425 | funext n x i |
| 426 | unfold CycleParameters.particularBlock |
| 427 | rw [StateReindex.block_oscillation] |
| 428 | change ((p.particular l).updateBlock _ _ _ _ _ _ _).oscillation n |
| 429 | (cycleAssoc x.1, x.2) i = _ |
| 430 | rw [ParticularParameters.updateBlock, assembledBlock_value] |
| 431 | apply Finset.sum_congr rfl |
| 432 | intro j _hj |
| 433 | have hi := invariant_angleShuffle (ha j n) (cycleAssoc x.1) x.2 |
| 434 | have hc := actualCarrier_character (p.particular l).background |
| 435 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j hf n (cycleAssoc x.1, x.2) |
| 436 | change Complex.re (_ * _) = Complex.re |
| 437 | ((((particularCopyData p v c u l j).commonCorrected (particularStrip p) |
| 438 | (p.particular l).directions).amplitude n (angleShuffle (cycleAssoc x.1, x.2)) i) * |
| 439 | carrier ((actualCarrier (p.particular l).background |
| 440 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j).frequency n) |
| 441 | ((actualCarrier (p.particular l).background |
| 442 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j).phase n) |
| 443 | (angleShuffle (cycleAssoc x.1, x.2))) |
| 444 | rw [hc, hi] |
| 445 | rfl |
| 446 | |
| 447 | /-- Full-domain native inputs for the same particular copies and the same |
| 448 | incoming residual data used by `CycleParameters.particularBlock`. -/ |
| 449 | structure ParticularData {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) |
| 450 | (c : Context Point) (u : State Point) {coord : ℝ} |
| 451 | (U : LocalSignedRequest.SlowRegion coord) (r₀ r₁ : ℝ) where |
| 452 | mode : ∀ l j, j ∈ modes v.residualBand → |
| 453 | ModeData (particularCopyData p v c u l j) (particularStrip p) |
| 454 | (p.particular l).directions particularChart U r₀ r₁ |
| 455 | radius_angular : ∀ l n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 456 | ((p.particular l).background.radius n) |
| 457 | radial_angular : ∀ l n, Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 458 | ((p.particular l).directions.radialField n) |
| 459 | frequency : ∀ l n, (v.blocks l).frequency n ≠ 0 |
| 460 | |
| 461 | end ParticularCycle |
| 462 | |
| 463 | /-! ## The literal signed update, using the post-particular request -/ |
| 464 | |
| 465 | section SignedCycle |
| 466 | |
| 467 | open CorrectionStep CopyAngularInvariance |
| 468 | |
| 469 | /-- The native signed coefficient inherits a deck identity from the |
| 470 | literal matrix, targets, mask, and homogeneous fundamental. -/ |
| 471 | theorem signed_amplitude_deck (p : PeriodizedSignedParameters Point I) (s : StripData Point) |
| 472 | (request : ℕ → Cylinder → SignedWaveUpdate.Vec2) (n : ℕ) (i j : I) (x z : Cylinder) |
| 473 | (hH : p.matrix j n (x + z) = p.matrix i n x) |
| 474 | (hT : p.target j n (x + z) = p.target i n x) |
| 475 | (hR : request n (x + z) = request n x) |
| 476 | (hm : p.mask j n (x + z) = p.mask i n x) |
| 477 | (hv : p.fundamental j n (x + z) = p.fundamental i n x) : |
| 478 | (p.copyData s request).amplitude n j (x + z) = (p.copyData s request).amplitude n i x := by |
| 479 | change complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) |
| 480 | (p.matrix j) (p.target j) request (p.mask j) (p.fundamental j) p.column n (x + z)) = |
| 481 | complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) |
| 482 | (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n x) |
| 483 | simp only [SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, hH, hT, hR, hm, hv] |
| 484 | |
| 485 | /-- Angular identities of the primitive signed inputs. No identity of the |
| 486 | corrected field, and no regularity away from the native support, is assumed. -/ |
| 487 | structure SignedAngles (p : PeriodizedSignedParameters Point I) (s : StripData Point) |
| 488 | (request : ℕ → Cylinder → SignedWaveUpdate.Vec2) where |
| 489 | slope : ℕ → ℝ |
| 490 | radius : ∀ n, Invariant ((0 : Point), 1) (p.base.radius n) |
| 491 | radial : ∀ n, Invariant ((0 : Point), 1) (p.directions.radialField n) |
| 492 | phase : ∀ n, AffinePhase ((0 : Point), 1) (slope n) (p.base.phase n) |
| 493 | frequency_slope : ∀ n, p.base.frequency n * slope n = (p.angularFrequency n : ℝ) |
| 494 | matrix : ∀ i n, Invariant ((0 : Point), 1) (p.matrix i n) |
| 495 | target : ∀ i n, Invariant ((0 : Point), 1) (p.target i n) |
| 496 | request : ∀ n, Invariant ((0 : Point), 1) (request n) |
| 497 | mask : ∀ i n, Invariant ((0 : Point), 1) (p.mask i n) |
| 498 | fundamental : ∀ i n, Invariant ((0 : Point), 1) (p.fundamental i n) |
| 499 | cutoff : ∀ i n, Invariant ((0 : Point), 1) (p.cutoff i n) |
| 500 | |
| 501 | namespace SignedAngles |
| 502 | |
| 503 | variable {p : PeriodizedSignedParameters Point I} {s : StripData Point} |
| 504 | {request : ℕ → Cylinder → SignedWaveUpdate.Vec2} (h : SignedAngles p s request) |
| 505 | |
| 506 | include h |
| 507 | |
| 508 | theorem raw_invariant (n : ℕ) (i : I) : |
| 509 | Invariant ((0 : Point), 1) ((p.copyData s request).amplitude n i) := by |
| 510 | intro x t |
| 511 | change complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) |
| 512 | (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n |
| 513 | (x + t • ((0 : Point), 1))) = |
| 514 | complexify (SignedWaveUpdate.signedVector (HarmonicWaveInteraction.productStrip s) |
| 515 | (p.matrix i) (p.target i) request (p.mask i) (p.fundamental i) p.column n x) |
| 516 | simp only [SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, |
| 517 | h.matrix i n x t, h.target i n x t, h.request n x t, h.mask i n x t, |
| 518 | h.fundamental i n x t] |
| 519 | |
| 520 | theorem corrected_invariant (n : ℕ) : |
| 521 | Invariant ((0 : Point), 1) |
| 522 | (((p.copyData s request).commonCorrected (HarmonicWaveInteraction.productStrip s) |
| 523 | p.directions).amplitude n) := |
| 524 | (p.copyData s request).commonCorrected_invariant _ _ _ |
| 525 | (fun n i => h.cutoff i n) h.raw_invariant h.radius h.radial |
| 526 | (fun _ => Invariant.const _) (fun n => ⟨h.slope n, h.phase n⟩) n |
| 527 | |
| 528 | theorem block_eq_mode : |
| 529 | (p.exactBlock s request).oscillation = |
| 530 | modeOscillation (p.copyData s request) (HarmonicWaveInteraction.productStrip s) |
| 531 | p.directions (LinearIsometryEquiv.refl ℝ Cylinder) := by |
| 532 | funext n x i |
| 533 | rw [PeriodizedSignedParameters.exactBlock, SignedWaveUpdate.blockOfCoefficients, |
| 534 | SignedWaveUpdate.coefficientBlock_velocity] |
| 535 | have hphase : p.base.frequency n * p.base.phase n x = |
| 536 | p.base.frequency n * p.base.phase n (x.1, 0) + (p.angularFrequency n : ℝ) * x.2 := by |
| 537 | rw [affinePhase_eq_zeroSlice (h.phase n) x.1 x.2, mul_add, ← mul_assoc, h.frequency_slope] |
| 538 | have hc := HarmonicFields.character_eq_carrier 1 (p.base.frequency n) (p.base.phase n) x |
| 539 | simp only [Int.cast_one, mul_one] at hc |
| 540 | change Complex.re (_ * HarmonicFields.character 1 |
| 541 | (p.base.frequency n * p.base.phase n (x.1, 0) + (p.angularFrequency n : ℝ) * x.2)) = |
| 542 | Complex.re (_ * carrier (p.base.frequency n) (p.base.phase n) x) |
| 543 | rw [← hphase, hc] |
| 544 | have hi := invariant_eq_zeroSlice (h.corrected_invariant n) x.1 x.2 |
| 545 | have he := congrArg (fun v : ComplexVector => |
| 546 | (v i * carrier (p.base.frequency n) (p.base.phase n) x).re) hi.symm |
| 547 | simp only [Prod.mk.eta] at he |
| 548 | exact he |
| 549 | |
| 550 | end SignedAngles |
| 551 | |
| 552 | /-- All fields use the literal post-particular request. The old state, |
| 553 | profile, and native data are not reselected. -/ |
| 554 | structure SignedData {ι : Type} (p : CycleParameters ι) (v : CycleCoefficients ι) |
| 555 | (c : Context Point) (u : State Point) {coord : ℝ} |
| 556 | (U : LocalSignedRequest.SlowRegion coord) (r₀ r₁ : ℝ) where |
| 557 | mode : ∀ l, ModeData ((p.signed l).copyData p.strip (p.signedRequest v c u)) |
| 558 | (HarmonicWaveInteraction.productStrip p.strip) (p.signed l).directions |
| 559 | (LinearIsometryEquiv.refl ℝ Cylinder) U r₀ r₁ |
| 560 | angles : ∀ l, SignedAngles (p.signed l) p.strip (p.signedRequest v c u) |
| 561 | |
| 562 | end SignedCycle |
| 563 | |
| 564 | /-! ## Moving radial edges of the literal coefficients |
| 565 | |
| 566 | At a flat radial boundary the coefficient need not have a zero germ. |
| 567 | Instead, its actual interior tensor bounds prove smoothness across that |
| 568 | boundary. The conclusions concern the original coefficient, whose exterior |
| 569 | zero values identify it with the constructed extension. |
| 570 | -/ |
| 571 | |
| 572 | section RadialEdges |
| 573 | |
| 574 | open WaveEdgeExtension |
| 575 | |
| 576 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 577 | |
| 578 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 579 | theorem literal_extension_eqOn {Ω : Set D} {ρ : D → ℝ} {a b : ℝ} {f : D → E} |
| 580 | (hz : ∀ x ∈ Ω, x ∉ window ρ a b → f x = 0) : |
| 581 | EqOn (extension ρ a b f) f Ω := by |
| 582 | intro x hx |
| 583 | by_cases hi : x ∈ window ρ a b |
| 584 | · exact extension_inside ρ a b f hi |
| 585 | · rw [extension_outside ρ a b f hi, hz x hx hi] |
| 586 | |
| 587 | /-- The original, totalized coefficient has all zero edge tensors, from |
| 588 | its actual interior derivatives and its actual exterior values. -/ |
| 589 | theorem literal_moving_regular {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 590 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 591 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 592 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 593 | (hB : BoundaryControls Ω ρ a b cL cR f) |
| 594 | (hz : ∀ x ∈ Ω, x ∉ window ρ a b → f x = 0) : |
| 595 | ContDiffOn ℝ ∞ f Ω ∧ |
| 596 | ∀ n x, x ∈ Ω → (ρ x = a ∨ ρ x = b) → iteratedFDeriv ℝ n f x = 0 := by |
| 597 | have he := literal_extension_eqOn hz |
| 598 | refine ⟨(extension_contDiffOn hΩ hρ ha hab hcL hcR hf hB).congr (fun x hx => (he hx).symm), ?_⟩ |
| 599 | intro n x hx hedge |
| 600 | have hg : extension ρ a b f =ᶠ[𝓝 x] f := by |
| 601 | filter_upwards [hΩ.mem_nhds hx] with y hy |
| 602 | exact he hy |
| 603 | rw [← jets_eq_of_germ hg n] |
| 604 | exact iteratedFDeriv_extension_edge hΩ hρ ha hab hcL hcR hf hB n hx hedge |
| 605 | |
| 606 | end RadialEdges |
| 607 | |
| 608 | end NavierStokes.ActualWaveRegularity |