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.HarmonicSourceSupport |
| 2 | import NavierStokes.LocalizedWaveBounds |
| 3 | |
| 4 | /-! |
| 5 | # Gaussian cutoff errors from support-local primitive estimates |
| 6 | |
| 7 | The analytic phase patch may be smaller than the closed periodization |
| 8 | cell. Only primitive amplitude/source/cutoff jets on that patch enter |
| 9 | the Gaussian estimate. On the remainder of the cell, actual input zero |
| 10 | germs imply a zero germ of the two-term cutoff error. The global source |
| 11 | complement is retained once, exactly as in `CopyData.globalGaussian`. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.LocalizedGaussianBounds |
| 17 | |
| 18 | open Set Function Filter WeightedClasses PeriodizedWaveBounds |
| 19 | open HarmonicCalculus LinearWaveBounds GaussianTailFlat |
| 20 | open scoped Topology ContDiff BigOperators |
| 21 | |
| 22 | section LocalGerms |
| 23 | |
| 24 | variable {D E I : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 25 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | |
| 27 | /-- Enlarging the set of estimated points through zero neighborhoods |
| 28 | preserves the actual native derivative constants. -/ |
| 29 | theorem localJets_extend_by_zero {s : StripData D} {w : ℕ → D → ℝ} {α : ℝ} |
| 30 | {C K : ℕ → I → Set D} {f : ℕ → I → D → E} |
| 31 | (hw : ∀ n x, x ∈ s.domain → 0 ≤ w n x) (hf : LocalJets s w α C f) |
| 32 | (hz : ∀ n i x, x ∈ s.domain → x ∈ K n i → x ∉ C n i → |
| 33 | f n i =ᶠ[𝓝 x] fun _ => 0) : LocalJets s w α K f := by |
| 34 | constructor |
| 35 | · intro n i x hx hi |
| 36 | by_cases hc : x ∈ C n i |
| 37 | · exact hf.smooth n i x hx hc |
| 38 | · exact contDiffAt_const.congr_of_eventuallyEq (hz n i x hx hi hc) |
| 39 | · intro m |
| 40 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 41 | refine ⟨A, hA, p, ?_⟩ |
| 42 | intro n i x hx hi j hj |
| 43 | by_cases hc : x ∈ C n i |
| 44 | · exact hb n i x hx hc j hj |
| 45 | · rw [jets_eq_of_germ (hz n i x hx hi hc) j] |
| 46 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using |
| 47 | majorant_nonneg s w α hA p n x (hw n x hx) |
| 48 | |
| 49 | end LocalGerms |
| 50 | |
| 51 | section CopyBounds |
| 52 | |
| 53 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 54 | variable (a : CopyData D I) |
| 55 | |
| 56 | /-- A zero cutoff alone leaves the source. Both zero germs are used. -/ |
| 57 | theorem localGaussian_zero_of_cutoff_source (d : GraphDirections D) |
| 58 | {n : ℕ} {i : I} {x : D} |
| 59 | (hψ : a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) |
| 60 | (hf : a.source n =ᶠ[𝓝 x] fun _ => 0) : |
| 61 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 62 | filter_upwards [a.localTail_zero_germ d hψ, hf] with y hy hfy |
| 63 | rw [a.localGaussian_eq, hy, hfy, smul_zero, add_zero] |
| 64 | |
| 65 | theorem localGaussian_zero_of_inactive (d : GraphDirections D) |
| 66 | {n : ℕ} {i : I} {x : D} |
| 67 | (h : ((a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 68 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) : |
| 69 | a.localGaussian d n i =ᶠ[𝓝 x] fun _ => 0 := by |
| 70 | rcases h with ⟨hψ, hf⟩ | ⟨hu, hf⟩ |
| 71 | · exact localGaussian_zero_of_cutoff_source a d hψ hf |
| 72 | · exact a.localGaussian_zero_of_fields d hu hf |
| 73 | |
| 74 | /-- Gaussian and plateau hypotheses are imposed only on the analytic |
| 75 | patch `C`. No raw-field derivative bound on `K \ C` is assumed. -/ |
| 76 | theorem localGaussian_all_gains_from_supported_native |
| 77 | {s : StripData D} (d : GraphDirections D) (C K : ℕ → I → Set D) |
| 78 | {W : ℕ → D → ℝ} {α c : ℝ} |
| 79 | (hWnonneg : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 80 | (hψ : LocalJets s (fun _ _ => 1) 0 C a.cutoff) |
| 81 | (hfast : BandBound s 0 d.fastScale) |
| 82 | (hu : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α C a.amplitude) |
| 83 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α C (fun n _ => a.source n)) |
| 84 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 85 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 86 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 87 | (hW : ∀ n i x, x ∈ s.domain → x ∈ C n i → |
| 88 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 89 | (hcentral : ∀ n i x, x ∈ s.domain → x ∈ C n i → |θ n i x - 1 / 2| < 1 / 5 → |
| 90 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 91 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 92 | (houtside : ∀ n i x, x ∈ s.domain → x ∈ K n i → x ∉ C n i → |
| 93 | ((a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 94 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 95 | (β : ℝ) : LocalJets s (fun _ _ => 1) β K (a.localGaussian d) := by |
| 96 | apply localJets_extend_by_zero (fun _ _ _ => zero_le_one) |
| 97 | (a.localGaussian_all_gains_from_native d hWnonneg hψ hfast hu hf edges scales θ L hL |
| 98 | ell hell hLell hc hW hcentral β) |
| 99 | intro n i x hx hi hn |
| 100 | exact localGaussian_zero_of_inactive a d (houtside n i x hx hi hn) |
| 101 | |
| 102 | /-- The source on the complement of all cells is kept and estimated |
| 103 | through `hcomplement`; it is not replaced by a copywise sum of sources. -/ |
| 104 | theorem globalGaussian_all_gains_from_supported_native |
| 105 | (K : Cells D I) (hs : ∀ n i, support (a.cutoff n i) ⊆ K.carrier n i) |
| 106 | {s : StripData D} (d : GraphDirections D) (C : ℕ → I → Set D) |
| 107 | {W : ℕ → D → ℝ} {α c : ℝ} |
| 108 | (hWnonneg : ∀ n x, x ∈ s.domain → 0 ≤ W n x) |
| 109 | (hψ : LocalJets s (fun _ _ => 1) 0 C a.cutoff) |
| 110 | (hfast : BandBound s 0 d.fastScale) |
| 111 | (hu : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α C a.amplitude) |
| 112 | (hf : LocalJets s (fun n x => Real.sqrt (s.zeta x) * W n x) α C (fun n _ => a.source n)) |
| 113 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 114 | (θ : ℕ → I → D → ℝ) (L : ℕ → ℝ) (hL : ∀ n, 0 < L n) |
| 115 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n, ell * ChartScales.S n ≤ L n) (hc : 0 < c) |
| 116 | (hW : ∀ n i x, x ∈ s.domain → x ∈ C n i → |
| 117 | W n x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n)) |
| 118 | (hcentral : ∀ n i x, x ∈ s.domain → x ∈ C n i → |θ n i x - 1 / 2| < 1 / 5 → |
| 119 | (a.cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 120 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 121 | (houtside : ∀ n i x, x ∈ s.domain → x ∈ K.carrier n i → x ∉ C n i → |
| 122 | ((a.cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 123 | ((a.amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ (a.source n =ᶠ[𝓝 x] fun _ => 0))) |
| 124 | (β : ℝ) (hcomplement : ComplementJets s (fun _ _ => 1) β K.carrier a.source) : |
| 125 | UnweightedClass s β (a.globalGaussian d) := |
| 126 | a.globalGaussian_class_with_complement K hs d (fun _ _ _ => zero_le_one) |
| 127 | (localGaussian_all_gains_from_supported_native a d C K.carrier hWnonneg hψ hfast hu hf |
| 128 | edges scales θ L hL ell hell hLell hc hW hcentral houtside β) hcomplement |
| 129 | |
| 130 | theorem source_complement_of_zero (s : StripData D) (K : Cells D I) |
| 131 | (hzero : a.source = fun _ _ => 0) (β : ℝ) : |
| 132 | ComplementJets s (fun _ _ => 1) β K.carrier a.source := |
| 133 | HarmonicSourceSupport.zero_complementJets_of_germs s _ β K.carrier a.source |
| 134 | (fun _ _ _ _ => Filter.Eventually.of_forall (fun _ => by simp only [hzero])) |
| 135 | |
| 136 | end CopyBounds |
| 137 | |
| 138 | /-! ## Gaussian absorption with an arbitrary extra index -/ |
| 139 | |
| 140 | section IndexedEstimates |
| 141 | |
| 142 | open LocalizedWaveBounds |
| 143 | |
| 144 | variable {D E J : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 145 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 146 | |
| 147 | /-- The index may be the pair (spatial label, lattice copy). Both the |
| 148 | Gaussian envelope and the native length are allowed to depend on it. -/ |
| 149 | theorem indexed_gaussian_tail_bound {s : StripData D} {K : ℕ → J → Set D} |
| 150 | {W : ℕ → J → D → ℝ} {α c : ℝ} {f : ℕ → J → D → E} |
| 151 | (hf : LocalWave s K W α f) (edges : FlatEdges s) (scales : BandScaleControl s) |
| 152 | (θ : ℕ → J → D → ℝ) (L : ℕ → J → ℝ) (hL : ∀ n i, 0 < L n i) |
| 153 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n i, ell * ChartScales.S n ≤ L n i) (hc : 0 < c) |
| 154 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 155 | W n i x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n i)) |
| 156 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 157 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 158 | (m : ℕ) : ∃ A : ℝ, 0 ≤ A ∧ ∃ p : ℕ, ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 159 | ∀ j ≤ m, ‖iteratedFDeriv ℝ j (f n i) x‖ ≤ |
| 160 | A * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) := by |
| 161 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 162 | obtain ⟨B, hB, hweight⟩ := edges.uniform_weight p |
| 163 | have hconstant := scales.constant_one_le |
| 164 | have hdec : 0 < c * ell / 25 := by positivity |
| 165 | obtain ⟨C, hC, hgauss⟩ := fixed_power_gaussian_bound hdec (scales.power * α) |
| 166 | refine ⟨A * B * scales.constant ^ p * C, by positivity, scales.degree * p, ?_⟩ |
| 167 | intro n i x hx hi j hj |
| 168 | have hQ := ChartScales.Q_pos n |
| 169 | by_cases hmid : |θ n i x - 1 / 2| < 1 / 5 |
| 170 | · rw [jets_eq_of_germ (hzero n i x hx hi hmid) j] |
| 171 | simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 172 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 173 | positivity |
| 174 | have htail : 1 / 5 ≤ |θ n i x - 1 / 2| := le_of_not_gt hmid |
| 175 | have hsq : (1 / 25 : ℝ) ≤ (θ n i x - 1 / 2) ^ 2 := by |
| 176 | have hh := pow_le_pow_left₀ (by norm_num : (0 : ℝ) ≤ 1 / 5) htail 2 |
| 177 | norm_num [sq_abs] at hh ⊢ |
| 178 | exact hh |
| 179 | have hPg : W n i x ≤ Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 180 | apply (hW n i x hx hi).trans |
| 181 | apply (Real.exp_le_exp.2 ?_).trans (gaussian_length_comparison hc.le (hLell n i)) |
| 182 | nlinarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n i).le)] |
| 183 | have hslow0 : 0 ≤ s.slow n := zero_le_one.trans (s.one_le_slow n) |
| 184 | have hK0 : 0 ≤ scales.constant := zero_le_one.trans scales.constant_one_le |
| 185 | have hslowp : s.slow n ^ p ≤ |
| 186 | scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p) := by |
| 187 | simpa only [mul_pow, ← pow_mul] using pow_le_pow_left₀ hslow0 (scales.slow_le n) p |
| 188 | have hmajor : majorant s (fun n x => Real.sqrt (s.zeta x) * W n i x) α A p n x ≤ |
| 189 | (A * B * scales.constant ^ p) * ChartScales.Q n ^ (scales.power * α) * |
| 190 | ((1 + ChartScales.S n) ^ (scales.degree * p) * |
| 191 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by |
| 192 | rw [majorant, StripData.growth, mul_pow, scales.epsilon_eq, ← Real.rpow_mul hQ.le] |
| 193 | calc |
| 194 | _ = (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 195 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * W n i x := by ring |
| 196 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * |
| 197 | (Real.sqrt (s.zeta x) * max 1 (s.delta x)⁻¹ ^ p) * |
| 198 | Real.exp (-(c * ell / 25) * ChartScales.S n) := |
| 199 | mul_le_mul_of_nonneg_left hPg (by positivity) |
| 200 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * s.slow n ^ p) * B * |
| 201 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 202 | gcongr |
| 203 | exact hweight x hx |
| 204 | _ ≤ (A * ChartScales.Q n ^ (scales.power * α) * |
| 205 | (scales.constant ^ p * (1 + ChartScales.S n) ^ (scales.degree * p))) * B * |
| 206 | Real.exp (-(c * ell / 25) * ChartScales.S n) := by gcongr |
| 207 | _ = _ := by ring |
| 208 | calc |
| 209 | _ ≤ majorant s (fun n x => Real.sqrt (s.zeta x) * W n i x) α A p n x := hb n i x hx hi j hj |
| 210 | _ ≤ _ := hmajor |
| 211 | _ = (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 212 | (ChartScales.Q n ^ (scales.power * α) * |
| 213 | Real.exp (-(c * ell / 25) * ChartScales.S n)) := by ring |
| 214 | _ ≤ (A * B * scales.constant ^ p) * (1 + ChartScales.S n) ^ (scales.degree * p) * |
| 215 | (C * Real.exp (-((c * ell / 25) / 2) * ChartScales.S n)) := by |
| 216 | have hS : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 217 | exact mul_le_mul_of_nonneg_left (hgauss n) (by positivity) |
| 218 | _ = _ := by |
| 219 | rw [show c * ell / 25 / 2 = c * ell / 50 by ring] |
| 220 | ring |
| 221 | |
| 222 | theorem indexed_gaussian_all_gains {s : StripData D} {K : ℕ → J → Set D} |
| 223 | {W : ℕ → J → D → ℝ} {α c : ℝ} {f : ℕ → J → D → E} |
| 224 | (hf : LocalWave s K W α f) (edges : FlatEdges s) (scales : BandScaleControl s) |
| 225 | (θ : ℕ → J → D → ℝ) (L : ℕ → J → ℝ) (hL : ∀ n i, 0 < L n i) |
| 226 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n i, ell * ChartScales.S n ≤ L n i) (hc : 0 < c) |
| 227 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 228 | W n i x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n i)) |
| 229 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 230 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 231 | (β : ℝ) : LocalUnweighted s K β f := by |
| 232 | refine ⟨fun _ _ _ _ => zero_le_one, hf.smooth, ?_⟩ |
| 233 | intro m |
| 234 | obtain ⟨A, hA, p, hb⟩ := indexed_gaussian_tail_bound hf edges scales θ L hL |
| 235 | ell hell hLell hc hW hzero m |
| 236 | obtain ⟨B, hB, hflat⟩ := gaussian_beats_Q_power (by positivity : 0 < c * ell / 50) p (scales.power * β) |
| 237 | refine ⟨A * B, mul_nonneg hA hB.le, 0, ?_⟩ |
| 238 | intro n i x hx hi j hj |
| 239 | have ht := (hb n i x hx hi j hj).trans |
| 240 | (show A * (1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n) ≤ |
| 241 | (A * B) * ChartScales.Q n ^ (scales.power * β) by |
| 242 | calc |
| 243 | _ = A * ((1 + ChartScales.S n) ^ p * Real.exp (-(c * ell / 50) * ChartScales.S n)) := by ring |
| 244 | _ ≤ A * (B * ChartScales.Q n ^ (scales.power * β)) := |
| 245 | mul_le_mul_of_nonneg_left (hflat n) hA |
| 246 | _ = _ := by ring) |
| 247 | simpa only [majorant, pow_zero, mul_one, scales.epsilon_eq, |
| 248 | ← Real.rpow_mul (ChartScales.Q_pos n).le] using ht |
| 249 | |
| 250 | end IndexedEstimates |
| 251 | |
| 252 | section UniformGluing |
| 253 | |
| 254 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 255 | {E L I : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 256 | |
| 257 | /-- Actual source jets on the uncovered set, with constants chosen |
| 258 | before the spatial label as well as the band and point. -/ |
| 259 | structure UniformComplementJets (s : StripData D) (w : L → ℕ → D → ℝ) (α : ℝ) |
| 260 | (K : L → ℕ → I → Set D) (f : L → ℕ → D → E) : Prop where |
| 261 | smooth : ∀ l n x, x ∈ s.domain → (∀ i, x ∉ K l n i) → ContDiffAt ℝ ∞ (f l n) x |
| 262 | bounds : ∀ m : ℕ, ∃ A : ℝ, 0 ≤ A ∧ ∃ p : ℕ, |
| 263 | ∀ l n x, x ∈ s.domain → (∀ i, x ∉ K l n i) → ∀ j ≤ m, |
| 264 | ‖iteratedFDeriv ℝ j (f l n) x‖ ≤ majorant s (w l) α A p n x |
| 265 | |
| 266 | namespace UniformComplementJets |
| 267 | |
| 268 | theorem each {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 269 | {K : L → ℕ → I → Set D} {f : L → ℕ → D → E} |
| 270 | (hf : UniformComplementJets s w α K f) (l : L) : ComplementJets s (w l) α (K l) (f l) := by |
| 271 | refine ⟨hf.smooth l, ?_⟩ |
| 272 | intro m |
| 273 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 274 | exact ⟨A, hA, p, hb l⟩ |
| 275 | |
| 276 | theorem of_zero_germs (s : StripData D) (w : L → ℕ → D → ℝ) (α : ℝ) |
| 277 | (K : L → ℕ → I → Set D) (f : L → ℕ → D → E) |
| 278 | (hg : ∀ l n x, x ∈ s.domain → (∀ i, x ∉ K l n i) → f l n =ᶠ[𝓝 x] fun _ => 0) : |
| 279 | UniformComplementJets s w α K f := by |
| 280 | constructor |
| 281 | · intro l n x hx hn |
| 282 | exact contDiffAt_const.congr_of_eventuallyEq (hg l n x hx hn) |
| 283 | · intro m |
| 284 | refine ⟨0, le_rfl, 0, ?_⟩ |
| 285 | intro l n x hx hn j hj |
| 286 | rw [jets_eq_of_germ (hg l n x hx hn) j] |
| 287 | simp [majorant] |
| 288 | |
| 289 | theorem of_germs {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 290 | {K : L → ℕ → I → Set D} {f g : L → ℕ → D → E} |
| 291 | (hg : LabelSumBounds.UniformClass s w α g) |
| 292 | (he : ∀ l n x, x ∈ s.domain → (∀ i, x ∉ K l n i) → f l n =ᶠ[𝓝 x] g l n) : |
| 293 | UniformComplementJets s w α K f := by |
| 294 | constructor |
| 295 | · intro l n x hx hn |
| 296 | exact ((hg.smooth l n).contDiffAt (s.isOpen_domain.mem_nhds hx)).congr_of_eventuallyEq |
| 297 | (he l n x hx hn) |
| 298 | · intro m |
| 299 | obtain ⟨A, hA, p, hb⟩ := hg.bounds m |
| 300 | refine ⟨A, hA, p, ?_⟩ |
| 301 | intro l n x hx hn j hj |
| 302 | rw [jets_eq_of_germ (he l n x hx hn) j] |
| 303 | exact hb l n x hx j hj |
| 304 | |
| 305 | end UniformComplementJets |
| 306 | |
| 307 | theorem uniformClass_of_local_and_complement_germs |
| 308 | {s : StripData D} {w : L → ℕ → D → ℝ} {α : ℝ} |
| 309 | {K : L → ℕ → I → Set D} {f : L → ℕ → I → D → E} {f₀ F : L → ℕ → D → E} |
| 310 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) |
| 311 | (hlocal : UniformLocalJets s w α K f) (houtside : UniformComplementJets s w α K f₀) |
| 312 | (hactive : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → F l n =ᶠ[𝓝 x] f l n i) |
| 313 | (hinactive : ∀ l n x, x ∈ s.domain → (∀ i, x ∉ K l n i) → F l n =ᶠ[𝓝 x] f₀ l n) : |
| 314 | LabelSumBounds.UniformClass s w α F := by |
| 315 | classical |
| 316 | refine ⟨hw, ?_, ?_⟩ |
| 317 | · intro l |
| 318 | exact (memClass_of_local_and_complement_germs (hw l) (hlocal.each l) |
| 319 | (houtside.each l) (hactive l) (hinactive l)).smooth |
| 320 | · intro m |
| 321 | obtain ⟨A, hA, p, hb⟩ := hlocal.bounds m |
| 322 | obtain ⟨B, hB, q, hb₀⟩ := houtside.bounds m |
| 323 | refine ⟨A + B, add_nonneg hA hB, max p q, ?_⟩ |
| 324 | intro l n x hx j hj |
| 325 | by_cases h : ∃ i, x ∈ K l n i |
| 326 | · obtain ⟨i, hi⟩ := h |
| 327 | rw [jets_eq_of_germ (hactive l n i x hx hi) j] |
| 328 | exact (hb l n i x hx hi j hj).trans |
| 329 | ((majorant_mono_degree s (w l) α hA (le_max_left _ _) n x (hw l n x hx)).trans |
| 330 | (majorant_mono_constant s (w l) α (le_add_of_nonneg_right hB) _ n x (hw l n x hx))) |
| 331 | · rw [jets_eq_of_germ (hinactive l n x hx (not_exists.mp h)) j] |
| 332 | exact (hb₀ l n x hx (not_exists.mp h) j hj).trans |
| 333 | ((majorant_mono_degree s (w l) α hB (le_max_right _ _) n x (hw l n x hx)).trans |
| 334 | (majorant_mono_constant s (w l) α (le_add_of_nonneg_left hA) _ n x (hw l n x hx))) |
| 335 | |
| 336 | end UniformGluing |
| 337 | |
| 338 | /-! ## Primitive cutoff errors, uniformly over spatial labels -/ |
| 339 | |
| 340 | section UniformCopyBounds |
| 341 | |
| 342 | open LocalizedWaveBounds |
| 343 | |
| 344 | variable {D I L : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 345 | |
| 346 | noncomputable def indexedCutoffError (d : GraphDirections D) |
| 347 | (ψ : ℕ → I → D → ℝ) (u f : ℕ → I → D → ComplexVector) |
| 348 | (n : ℕ) (i : I) (x : D) : ComplexVector := |
| 349 | d.Dfast (fun n => ψ n i) n x • u n i x + (1 - ψ n i x) • f n i x |
| 350 | |
| 351 | theorem indexedCutoffError_wave_class {s : StripData D} (d : GraphDirections D) |
| 352 | {K : ℕ → I → Set D} {w : ℕ → I → D → ℝ} {α : ℝ} |
| 353 | {ψ : ℕ → I → D → ℝ} {u f : ℕ → I → D → ComplexVector} |
| 354 | (hψ : LocalUnweighted s K 0 ψ) (hfast : BandBound s 0 d.fastScale) |
| 355 | (hu : LocalClass s K w α u) (hf : LocalClass s K w α f) : |
| 356 | LocalClass s K w α (indexedCutoffError d ψ u f) := by |
| 357 | have hD : LocalUnweighted s K 0 (fun n i => d.Dfast (fun n => ψ n i) n) := by |
| 358 | have hh : LocalUnweighted s K 0 |
| 359 | (fun n i x => d.fastScale n * fderiv ℝ (ψ n i) x d.fast) := by |
| 360 | simpa using |
| 361 | (LocalClass.band_const (K := K) hfast).smul (hψ.directional d.fast) |
| 362 | convert! hh using 1 |
| 363 | funext n i x |
| 364 | simp [GraphDirections.Dfast, GraphDirections.fastField, HarmonicCalculus.along] |
| 365 | have hminus : LocalUnweighted s K 0 (fun n i x => 1 - ψ n i x) := |
| 366 | (local_const (s := s) (K := K) (1 : ℝ)).sub hψ |
| 367 | have he := (unweighted_smul hD hu).add (unweighted_smul hminus hf) |
| 368 | simp only [zero_add] at he |
| 369 | exact he |
| 370 | |
| 371 | theorem uniform_localGaussian_all_gains_from_supported_native |
| 372 | (a : L → CopyData D I) {s : StripData D} (d : GraphDirections D) |
| 373 | (C K : L → ℕ → I → Set D) {W : L → ℕ → D → ℝ} {α c : ℝ} |
| 374 | (hWnonneg : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 375 | (hψ : UniformLocalJets s (fun _ _ _ => 1) 0 C (fun l => (a l).cutoff)) |
| 376 | (hfast : BandBound s 0 d.fastScale) |
| 377 | (hu : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 378 | (fun l => (a l).amplitude)) |
| 379 | (hf : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 380 | (fun l n _ => (a l).source n)) |
| 381 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 382 | (θ : L → ℕ → I → D → ℝ) (length : L → ℕ → ℝ) |
| 383 | (hL : ∀ l n, 0 < length l n) (ell : ℝ) (hell : 0 < ell) |
| 384 | (hLell : ∀ l n, ell * ChartScales.S n ≤ length l n) (hc : 0 < c) |
| 385 | (hW : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |
| 386 | W l n x ≤ Real.exp (-c * (θ l n i x - 1 / 2) ^ 2 * length l n)) |
| 387 | (hcentral : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |θ l n i x - 1 / 2| < 1 / 5 → |
| 388 | ((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 389 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 390 | (houtside : ∀ l n i x, x ∈ s.domain → x ∈ K l n i → x ∉ C l n i → |
| 391 | (((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 392 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 393 | (β : ℝ) : UniformLocalJets s (fun _ _ _ => 1) β K (fun l => (a l).localGaussian d) := by |
| 394 | have hw l n x hx := mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hWnonneg l n x hx) |
| 395 | have hψ' := LocalClass.of_uniformLocalJets (fun _ _ _ _ => zero_le_one) hψ |
| 396 | have hu' := LocalClass.of_uniformLocalJets hw hu |
| 397 | have hf' := LocalClass.of_uniformLocalJets hw hf |
| 398 | have he : LocalWave s (fun n (ji : L × I) => C ji.1 n ji.2) |
| 399 | (fun n ji x => W ji.1 n x) α (fun n ji => (a ji.1).localGaussian d n ji.2) := |
| 400 | indexedCutoffError_wave_class d hψ' hfast hu' hf' |
| 401 | have hflat := indexed_gaussian_all_gains he edges scales |
| 402 | (fun n ji => θ ji.1 n ji.2) (fun n ji => length ji.1 n) |
| 403 | (fun n ji => hL ji.1 n) ell hell (fun n ji => hLell ji.1 n) hc |
| 404 | (fun n ji x hx hi => hW ji.1 n ji.2 x hx hi) |
| 405 | (fun n ji x hx hi hm => by |
| 406 | rcases hcentral ji.1 n ji.2 x hx hi hm with hOne | ⟨hU, hF⟩ |
| 407 | · exact (a ji.1).localGaussian_zero_of_cutoff_one d hOne |
| 408 | · exact (a ji.1).localGaussian_zero_of_fields d hU hF) β |
| 409 | apply LocalClass.to_uniformLocalJets |
| 410 | apply hflat.enlarge |
| 411 | intro n ji x hx hi |
| 412 | by_cases hC : x ∈ C ji.1 n ji.2 |
| 413 | · exact Or.inl hC |
| 414 | · exact Or.inr (localGaussian_zero_of_inactive (a ji.1) d |
| 415 | (houtside ji.1 n ji.2 x hx hi hC)) |
| 416 | |
| 417 | theorem uniform_globalGaussian_class_with_complement |
| 418 | (a : L → CopyData D I) (K : L → Cells D I) |
| 419 | (hs : ∀ l n i, support ((a l).cutoff n i) ⊆ (K l).carrier n i) |
| 420 | {s : StripData D} (d : GraphDirections D) {w : L → ℕ → D → ℝ} {α : ℝ} |
| 421 | (hw : ∀ l n x, x ∈ s.domain → 0 ≤ w l n x) |
| 422 | (hg : UniformLocalJets s w α (fun l => (K l).carrier) (fun l => (a l).localGaussian d)) |
| 423 | (hf : UniformComplementJets s w α (fun l => (K l).carrier) (fun l => (a l).source)) : |
| 424 | LabelSumBounds.UniformClass s w α (fun l => (a l).globalGaussian d) := |
| 425 | uniformClass_of_local_and_complement_germs hw hg hf |
| 426 | (fun l n _ _ _ hx => (a l).globalGaussian_germ (K l) (hs l) d n hx) |
| 427 | (fun l _ _ _ hx => (a l).globalGaussian_uncovered_germ (K l) (hs l) d hx) |
| 428 | |
| 429 | /-- The constants precede every spatial label, band and native copy. |
| 430 | The uncovered source is included with its own equally uniform jet bound. -/ |
| 431 | theorem uniform_globalGaussian_all_gains_from_supported_native |
| 432 | (a : L → CopyData D I) (K : L → Cells D I) |
| 433 | (hs : ∀ l n i, support ((a l).cutoff n i) ⊆ (K l).carrier n i) |
| 434 | {s : StripData D} (d : GraphDirections D) (C : L → ℕ → I → Set D) |
| 435 | {W : L → ℕ → D → ℝ} {α c : ℝ} |
| 436 | (hWnonneg : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 437 | (hψ : UniformLocalJets s (fun _ _ _ => 1) 0 C (fun l => (a l).cutoff)) |
| 438 | (hfast : BandBound s 0 d.fastScale) |
| 439 | (hu : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 440 | (fun l => (a l).amplitude)) |
| 441 | (hf : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 442 | (fun l n _ => (a l).source n)) |
| 443 | (edges : FlatEdges s) (scales : BandScaleControl s) |
| 444 | (θ : L → ℕ → I → D → ℝ) (length : L → ℕ → ℝ) |
| 445 | (hL : ∀ l n, 0 < length l n) (ell : ℝ) (hell : 0 < ell) |
| 446 | (hLell : ∀ l n, ell * ChartScales.S n ≤ length l n) (hc : 0 < c) |
| 447 | (hW : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |
| 448 | W l n x ≤ Real.exp (-c * (θ l n i x - 1 / 2) ^ 2 * length l n)) |
| 449 | (hcentral : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |θ l n i x - 1 / 2| < 1 / 5 → |
| 450 | ((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 451 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 452 | (houtside : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → x ∉ C l n i → |
| 453 | (((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 454 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 455 | (β : ℝ) |
| 456 | (hcomplement : UniformComplementJets s (fun _ _ _ => 1) β |
| 457 | (fun l => (K l).carrier) (fun l => (a l).source)) : |
| 458 | LabelSumBounds.UniformClass s (fun _ _ _ => 1) β (fun l => (a l).globalGaussian d) := |
| 459 | uniform_globalGaussian_class_with_complement a K hs d (fun _ _ _ _ => zero_le_one) |
| 460 | (uniform_localGaussian_all_gains_from_supported_native a d C (fun l => (K l).carrier) |
| 461 | hWnonneg hψ hfast hu hf edges scales θ length hL ell hell hLell hc hW hcentral houtside β) |
| 462 | hcomplement |
| 463 | |
| 464 | theorem uniform_source_complement_of_zero |
| 465 | (a : L → CopyData D I) (s : StripData D) (K : L → Cells D I) |
| 466 | (hzero : ∀ l, (a l).source = fun _ _ => 0) (β : ℝ) : |
| 467 | UniformComplementJets s (fun _ _ _ => 1) β (fun l => (K l).carrier) (fun l => (a l).source) := |
| 468 | UniformComplementJets.of_zero_germs s _ β _ _ |
| 469 | (fun l _ _ _ _ => Filter.Eventually.of_forall (fun _ => by simp only [hzero l])) |
| 470 | |
| 471 | theorem uniform_source_patch_jets_of_zero |
| 472 | (a : L → CopyData D I) (s : StripData D) (C : L → ℕ → I → Set D) |
| 473 | (hzero : ∀ l, (a l).source = fun _ _ => 0) (w : L → ℕ → D → ℝ) (α : ℝ) : |
| 474 | UniformLocalJets s w α C (fun l n _ => (a l).source n) := by |
| 475 | constructor |
| 476 | · intro l n i x hx hi |
| 477 | rw [hzero l] |
| 478 | exact contDiffAt_const |
| 479 | · intro m |
| 480 | refine ⟨0, le_rfl, 0, ?_⟩ |
| 481 | intro l n i x hx hi j hj |
| 482 | simp [hzero l, majorant] |
| 483 | |
| 484 | end UniformCopyBounds |
| 485 | |
| 486 | /-! ## The literal harmonic residual supplies the complement -/ |
| 487 | |
| 488 | section HarmonicSource |
| 489 | |
| 490 | open CommonCoverSolve TorusInverse ParticularWaveAssembly HarmonicSourceSupport |
| 491 | |
| 492 | variable {P L : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 493 | |
| 494 | theorem source_complement_of_harmonicSupport |
| 495 | (a : CopyData ((P × ℝ) × Plane) Frequency) |
| 496 | (c : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 497 | (b : CorrectionState.HarmonicBlock (P × Plane)) |
| 498 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) |
| 499 | (g : ℕ → Geometry) (K : ℕ → Set Plane) (hK : ∀ n, IsCompact (K n)) |
| 500 | {U : Set (P × Plane)} (hU : IsOpen U) |
| 501 | (hs : InputSupportOn U (fun n => nativeUnion (g n) (K n)) b G A) |
| 502 | (s : StripData ((P × ℝ) × Plane)) |
| 503 | (hdom : ∀ x, x ∈ s.domain → (x.1.1, x.2) ∈ U) |
| 504 | (j : ℤ) (hsource : a.source = sourceFamily c u b G A j) (β : ℝ) : |
| 505 | ComplementJets s (fun _ _ => 1) β |
| 506 | (fun n => nativeCell (g n) (K n)) a.source := by |
| 507 | rw [hsource] |
| 508 | exact sourceFamily_zero_complementJets c u b G A g K hK hU hs s hdom j _ β |
| 509 | |
| 510 | theorem uniform_source_complement_of_harmonicSupport |
| 511 | (a : L → CopyData ((P × ℝ) × Plane) Frequency) |
| 512 | (c : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 513 | (b : L → CorrectionState.HarmonicBlock (P × Plane)) |
| 514 | (G A : L → HarmonicResidual.BlockCoefficients (P × Plane)) |
| 515 | (g : L → ℕ → Geometry) (K : L → ℕ → Set Plane) (hK : ∀ l n, IsCompact (K l n)) |
| 516 | {U : Set (P × Plane)} (hU : IsOpen U) |
| 517 | (hs : ∀ l, InputSupportOn U (fun n => nativeUnion (g l n) (K l n)) (b l) (G l) (A l)) |
| 518 | (s : StripData ((P × ℝ) × Plane)) |
| 519 | (hdom : ∀ x, x ∈ s.domain → (x.1.1, x.2) ∈ U) |
| 520 | (j : L → ℤ) (hsource : ∀ l, (a l).source = sourceFamily c u (b l) (G l) (A l) (j l)) |
| 521 | (β : ℝ) : UniformComplementJets s (fun _ _ _ => 1) β |
| 522 | (fun l n => nativeCell (g l n) (K l n)) (fun l => (a l).source) := by |
| 523 | apply UniformComplementJets.of_zero_germs |
| 524 | intro l n x hx hn |
| 525 | rw [hsource l] |
| 526 | exact sourceFamily_zero_germ_on c u (b l) (G l) (A l) (g l) (K l) (hK l) hU |
| 527 | (hs l) (j l) n (hdom x hx) hn |
| 528 | |
| 529 | /-- If an excluded harmonic tail remains outside the cells, its actual |
| 530 | uniform class transfers to the literal incoming source. It is kept in |
| 531 | the final global Gaussian, not set to zero. -/ |
| 532 | theorem uniform_source_complement_of_excluded_class |
| 533 | (a : L → CopyData ((P × ℝ) × Plane) Frequency) |
| 534 | (c : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 535 | (b : L → CorrectionState.HarmonicBlock (P × Plane)) |
| 536 | (G A : L → HarmonicResidual.BlockCoefficients (P × Plane)) |
| 537 | (g : L → ℕ → Geometry) (K : L → ℕ → Set Plane) (hK : ∀ l n, IsCompact (K l n)) |
| 538 | {U : Set (P × Plane)} (hU : IsOpen U) |
| 539 | (hv : ∀ l n i, NonzeroSupportedOn U (nativeUnion (g l n) (K l n)) |
| 540 | (HarmonicResidual.realCoefficients ((b l).velocity n i))) |
| 541 | (hp : ∀ l n, NonzeroSupportedOn U (nativeUnion (g l n) (K l n)) |
| 542 | (HarmonicResidual.realCoefficients ((b l).pressure n))) |
| 543 | (s : StripData ((P × ℝ) × Plane)) |
| 544 | (hdom : ∀ x, x ∈ s.domain → (x.1.1, x.2) ∈ U) |
| 545 | (j : L → ℤ) (hsource : ∀ l, (a l).source = sourceFamily c u (b l) (G l) (A l) (j l)) |
| 546 | {w : L → ℕ → (P × ℝ) × Plane → ℝ} {β : ℝ} |
| 547 | (he : LabelSumBounds.UniformClass s w β |
| 548 | (fun l n => angleLift (excludedSource (G l) (A l) (j l) n))) : |
| 549 | UniformComplementJets s w β (fun l n => nativeCell (g l n) (K l n)) |
| 550 | (fun l => (a l).source) := by |
| 551 | apply UniformComplementJets.of_germs he |
| 552 | intro l n x hx hn |
| 553 | rw [hsource l] |
| 554 | have hnot : (x.1.1, x.2) ∉ nativeUnion (g l n) (K l n) := by |
| 555 | simp only [nativeUnion, mem_iUnion, not_exists] |
| 556 | exact hn |
| 557 | have hg := residualSource_complement_germ_on c u (b l) (G l) (A l) hU |
| 558 | (nativeUnion_closed (g l n) (hK l n)) n (hv l n) (hp l n) (j l) (hdom x hx) hnot |
| 559 | have hc : Continuous (fun y : (P × ℝ) × Plane => (y.1.1, y.2)) := |
| 560 | continuous_fst.fst.prodMk continuous_snd |
| 561 | exact hg.comp_tendsto hc.continuousAt |
| 562 | |
| 563 | end HarmonicSource |
| 564 | |
| 565 | end NavierStokes.LocalizedGaussianBounds |