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.PhysicalMeanJetBounds |
| 2 | import NavierStokes.PhysicalResidualTZ |
| 3 | import NavierStokes.UniformHarmonicInteraction |
| 4 | import NavierStokes.AnnularEndpoint |
| 5 | import NavierStokes.DiagonalResidual |
| 6 | import NavierStokes.ResidualPolarGraph |
| 7 | |
| 8 | /-! |
| 9 | # Physical jets of the actual finite-state residual |
| 10 | |
| 11 | The estimates are on genuine Fréchet derivatives. Harmonic coefficients, |
| 12 | mean residuals and excluded errors are combined before the physical graph |
| 13 | restriction. Phase regularity is needed only on coefficient support. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.PhysicalResidualJetBounds |
| 19 | |
| 20 | open Set Function Filter ProblemStatement WeightedClasses LabelSumBounds |
| 21 | open LocalPhysicalCopyBounds PhysicalWaveSum |
| 22 | open scoped Topology ContDiff BigOperators |
| 23 | |
| 24 | abbrev Point := PhysicalMeanJetBounds.Point |
| 25 | abbrev Cylinder := Point × ℝ |
| 26 | abbrev Components := Fin 3 → ℝ |
| 27 | |
| 28 | private theorem nat_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 29 | ENat.natCast_le_of_coe_top_le_withTop le_rfl m |
| 30 | |
| 31 | /-! ## Local harmonic calculus -/ |
| 32 | |
| 33 | /-- A constant shift of the phase costs nothing: only positive phase jets |
| 34 | are needed, even when the phase value itself is unbounded. -/ |
| 35 | theorem character_positive_jet_bound {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 36 | [FiniteDimensional ℝ E] |
| 37 | {Φ : E → ℝ} {x : E} (hΦ : SmoothNear Φ x) (m : ℕ) {c B M : ℝ} |
| 38 | (hB : 1 ≤ B) (hM : 1 ≤ M) (hc : |c| ≤ M) |
| 39 | (hΦb : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ x‖ ≤ B) : |
| 40 | ∀ k ≤ m, ‖iteratedFDeriv ℝ k (PhysicalGraphBounds.character c ∘ Φ) x‖ ≤ |
| 41 | (m.factorial : ℝ) * M ^ m * B ^ m := by |
| 42 | obtain ⟨G, hG, he⟩ := hΦ.exists_global_germ |
| 43 | have hec : PhysicalGraphBounds.character c ∘ Φ =ᶠ[𝓝 x] |
| 44 | PhysicalGraphBounds.character c ∘ G := by |
| 45 | filter_upwards [he] with y hy |
| 46 | exact congrArg (PhysicalGraphBounds.character c) hy |
| 47 | intro k hk |
| 48 | rw [iteratedFDeriv_eq_of_eventuallyEq hec k] |
| 49 | have hb := norm_iteratedFDeriv_comp_le (PhysicalGraphBounds.character_smooth c) hG |
| 50 | (nat_le_infty k) x (C := M ^ m) (D := B) |
| 51 | (fun i hi => by |
| 52 | rw [PhysicalGraphBounds.norm_character_jet] |
| 53 | exact (pow_le_pow_left₀ (abs_nonneg _) hc i).trans |
| 54 | (pow_le_pow_right₀ hM (hi.trans hk))) |
| 55 | (fun i hi hik => by |
| 56 | rw [← iteratedFDeriv_eq_of_eventuallyEq he i] |
| 57 | exact (hΦb i hi (hik.trans hk)).trans (by |
| 58 | simpa only [pow_one] using pow_le_pow_right₀ hB hi)) |
| 59 | apply hb.trans |
| 60 | have hfac : (k.factorial : ℝ) ≤ m.factorial := by exact_mod_cast Nat.factorial_le hk |
| 61 | exact mul_le_mul (mul_le_mul_of_nonneg_right hfac (by positivity)) |
| 62 | (pow_le_pow_right₀ hB hk) (by positivity) (by positivity) |
| 63 | |
| 64 | theorem product_jet_bound_local {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 65 | [FiniteDimensional ℝ E] |
| 66 | {a b : E → ℂ} {x : E} (ha : SmoothNear a x) (hb : SmoothNear b x) |
| 67 | {m k : ℕ} (hk : k ≤ m) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 68 | (haB : ∀ i ≤ m, ‖iteratedFDeriv ℝ i a x‖ ≤ A) |
| 69 | (hbB : ∀ i ≤ m, ‖iteratedFDeriv ℝ i b x‖ ≤ B) : |
| 70 | ‖iteratedFDeriv ℝ k (fun y => a y * b y) x‖ ≤ (2 : ℝ) ^ m * A * B := by |
| 71 | obtain ⟨a', ha', hea⟩ := ha.exists_global_germ |
| 72 | obtain ⟨b', hb', heb⟩ := hb.exists_global_germ |
| 73 | have he : (fun y => a y * b y) =ᶠ[𝓝 x] (fun y => a' y * b' y) := hea.mul heb |
| 74 | rw [iteratedFDeriv_eq_of_eventuallyEq he k] |
| 75 | apply PhysicalGraphBounds.pointwise_product_jet_bound ha' hb' x hk hA hB |
| 76 | · intro i hi |
| 77 | rw [← iteratedFDeriv_eq_of_eventuallyEq hea i] |
| 78 | exact haB i hi |
| 79 | · intro i hi |
| 80 | rw [← iteratedFDeriv_eq_of_eventuallyEq heb i] |
| 81 | exact hbB i hi |
| 82 | |
| 83 | theorem mode_jet_bound_local {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 84 | [FiniteDimensional ℝ E] |
| 85 | {a : E → ℂ} {Φ : E → ℝ} {x : E} (ha : SmoothNear a x) (hΦ : SmoothNear Φ x) |
| 86 | (m : ℕ) {c A B M : ℝ} (hA : 0 ≤ A) (hB : 1 ≤ B) (hM : 1 ≤ M) (hc : |c| ≤ M) |
| 87 | (haB : ∀ i ≤ m, ‖iteratedFDeriv ℝ i a x‖ ≤ A) |
| 88 | (hΦb : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ x‖ ≤ B) : |
| 89 | ∀ k ≤ m, ‖iteratedFDeriv ℝ k |
| 90 | (fun y => a y * PhysicalGraphBounds.character c (Φ y)) x‖ ≤ |
| 91 | (2 : ℝ) ^ m * A * ((m.factorial : ℝ) * M ^ m * B ^ m) := by |
| 92 | have hchar : SmoothNear (PhysicalGraphBounds.character c ∘ Φ) x := by |
| 93 | obtain ⟨U, hU, hx, hΦU⟩ := hΦ |
| 94 | exact SmoothNear.of_open hU ((PhysicalGraphBounds.character_smooth c).comp_contDiffOn hΦU) hx |
| 95 | intro k hk |
| 96 | exact product_jet_bound_local ha hchar hk hA (by positivity) haB |
| 97 | (character_positive_jet_bound hΦ m hB hM hc hΦb) |
| 98 | |
| 99 | /-! ## Actual residual reconstruction and Cartesian scaling -/ |
| 100 | |
| 101 | noncomputable def vectorMap : Components →L[ℝ] Space := |
| 102 | (ContinuousLinearMap.proj (0 : Fin 3)).smulRight (coordinateVector 0) + |
| 103 | (ContinuousLinearMap.proj (1 : Fin 3)).smulRight (coordinateVector 1) + |
| 104 | (ContinuousLinearMap.proj (2 : Fin 3)).smulRight (coordinateVector 2) |
| 105 | |
| 106 | @[simp] theorem vectorMap_apply (v : Components) (i : Fin 3) : vectorMap v i = v i := by |
| 107 | fin_cases i <;> simp [vectorMap, coordinateVector] |
| 108 | |
| 109 | noncomputable def residualDegree (h : ℝ) : ℝ := 2 * CoordinateAlgebra.A h + 1 / 2 |
| 110 | |
| 111 | /-- Invert the actual residual scaling and cylindrical frame. -/ |
| 112 | theorem physical_vector_of_components {Q : ℝ} (hQ : 0 < Q) (h θ : ℝ) |
| 113 | (a : Components) (R : Space) |
| 114 | (ha : ∀ i, a i = Q ^ residualDegree h * CylindricalResidual.frame (-θ) R i) : |
| 115 | R = Q ^ (-residualDegree h) • CylindricalResidual.frame θ (vectorMap a) := by |
| 116 | have he : vectorMap a = Q ^ residualDegree h • CylindricalResidual.frame (-θ) R := by |
| 117 | ext i |
| 118 | simpa only [vectorMap_apply, PiLp.smul_apply, smul_eq_mul] using ha i |
| 119 | rw [he, map_smul, CylindricalResidual.frame_inverse', smul_smul, |
| 120 | ← Real.rpow_add hQ] |
| 121 | simp |
| 122 | |
| 123 | theorem state_fullResidual_reconstructed {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 124 | {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 125 | {c : CorrectionState.Context D} {s : CorrectionState.State D} {labels : ℕ → Finset ι} |
| 126 | {b : ι → CorrectionState.HarmonicBlock D} {G A : ι → HarmonicResidual.BlockCoefficients D} |
| 127 | (hrep : HarmonicResidual.BlockRepresentation labels b G A s) |
| 128 | (hmean : LiftedMeanResidual.MeanHypotheses U c s) {n : ℕ} |
| 129 | (hreg : HarmonicResidual.ExtractionRegular U c s labels b G A n) |
| 130 | {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 131 | LiftedMeanResidual.fullResidual c s n x i = |
| 132 | (∑ l ∈ labels n, (HarmonicResidual.residualBlock c s (b l) (G l) (A l)).oscillation n x i) + |
| 133 | s.meanGoodResidual c n x.1 i + s.errors.total n x i := by |
| 134 | change HarmonicResidual.stateFullResidual c s n x i = _ |
| 135 | rw [HarmonicResidual.stateFullResidual_reconstructed hU hrep hreg hx i, |
| 136 | HarmonicResidual.stateMeanCoefficientValue_eq_average hU hrep hreg hx.1 i] |
| 137 | congr 1 |
| 138 | congr 1 |
| 139 | exact LiftedMeanResidual.angularMean_fullGoodResidual hmean n hx.1 i |
| 140 | |
| 141 | /-! ## The actual polar common graph and rotating Cartesian basis -/ |
| 142 | |
| 143 | noncomputable def polarAssoc : |
| 144 | (PhysicalGraphBounds.Plane × ((ℝ × ℝ) × PhysicalGraphBounds.Plane)) ≃ₗᵢ[ℝ] Cylinder where |
| 145 | toFun x := ((x.1.1, x.2), x.1.2) |
| 146 | invFun x := ((x.1.1, x.2), x.1.2) |
| 147 | left_inv _ := rfl |
| 148 | right_inv _ := rfl |
| 149 | map_add' _ _ := rfl |
| 150 | map_smul' _ _ := rfl |
| 151 | norm_map' x := by |
| 152 | change max (max ‖x.1.1‖ ‖x.2‖) ‖x.1.2‖ = max (max ‖x.1.1‖ ‖x.1.2‖) ‖x.2‖ |
| 153 | simp only [Prod.norm_def] |
| 154 | ac_rfl |
| 155 | |
| 156 | noncomputable def polarLift (a : ℝ) (j : PolarCharts.Index) (x : LiftPoint) : Cylinder := |
| 157 | polarAssoc (PolarCharts.chart a j (PhysicalGraphBounds.liftXY x), PhysicalClassBounds.slowFast x) |
| 158 | |
| 159 | noncomputable def polarGraph (a h : ℝ) (j : PolarCharts.Index) (n d : ℕ) : SpaceTime → Cylinder := |
| 160 | polarLift a j ∘ commonLift h n d |
| 161 | |
| 162 | theorem polarLift_smooth {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) : |
| 163 | ContDiff ℝ ∞ (polarLift a j) := |
| 164 | polarAssoc.toContinuousLinearEquiv.contDiff.comp |
| 165 | (((PolarCharts.chart_contDiff ha j).comp PhysicalGraphBounds.liftXY.contDiff).prodMk |
| 166 | PhysicalClassBounds.slowFast.contDiff) |
| 167 | |
| 168 | theorem polarLift_positiveJets {a b : ℝ} (ha : 0 < a) (m : ℕ) : |
| 169 | ∃ B : ℝ, 1 ≤ B ∧ ∀ j : PolarCharts.Index, ∀ x : LiftPoint, |
| 170 | PhysicalGraphBounds.liftXY x ∈ Metric.closedBall 0 b → ∀ k, 1 ≤ k → k ≤ m → |
| 171 | ‖iteratedFDeriv ℝ k (polarLift a j) x‖ ≤ B := by |
| 172 | obtain ⟨B, hB, hb⟩ := PolarCharts.chart_finiteJets_uniform ha b m |
| 173 | refine ⟨B, hB, ?_⟩ |
| 174 | intro j x hx k hk hkm |
| 175 | have hc := PhysicalGraphBounds.jet_comp_linear_bound (PolarCharts.chart_contDiff ha j) |
| 176 | PhysicalGraphBounds.liftXY PhysicalGraphBounds.norm_liftXY_le x (zero_le_one.trans hB) m |
| 177 | (fun i hi => hb j i hi _ hx) k hkm |
| 178 | have hpair : ‖iteratedFDeriv ℝ k |
| 179 | (fun y : LiftPoint => (PolarCharts.chart a j (PhysicalGraphBounds.liftXY y), |
| 180 | PhysicalClassBounds.slowFast y)) x‖ ≤ B := by |
| 181 | change ‖iteratedFDeriv ℝ k (fun y => |
| 182 | ((PolarCharts.chart a j ∘ PhysicalGraphBounds.liftXY) y, PhysicalClassBounds.slowFast y)) x‖ ≤ B |
| 183 | rw [PhysicalGraphBounds.iteratedFDeriv_pair |
| 184 | (((PolarCharts.chart_contDiff ha j).comp PhysicalGraphBounds.liftXY.contDiff).contDiffAt.of_le |
| 185 | (nat_le_infty k)) (PhysicalClassBounds.slowFast.contDiff.contDiffAt.of_le (nat_le_infty k)), |
| 186 | ContinuousMultilinearMap.opNorm_prod] |
| 187 | exact max_le hc ((PhysicalGraphBounds.norm_positive_jet_linear_le |
| 188 | PhysicalClassBounds.slowFast x hk).trans (PhysicalClassBounds.norm_slowFast_le.trans hB)) |
| 189 | have hnorm : ‖polarAssoc.toContinuousLinearEquiv.toContinuousLinearMap‖ ≤ 1 := by |
| 190 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 191 | intro y |
| 192 | change ‖polarAssoc y‖ ≤ 1 * ‖y‖ |
| 193 | rw [polarAssoc.norm_map, one_mul] |
| 194 | have he := norm_jet_linear_comp_at (w := x) |
| 195 | ((((PolarCharts.chart_contDiff ha j).comp PhysicalGraphBounds.liftXY.contDiff).prodMk |
| 196 | PhysicalClassBounds.slowFast.contDiff).contDiffAt.of_le (nat_le_infty k)) |
| 197 | polarAssoc.toContinuousLinearEquiv.toContinuousLinearMap |
| 198 | change ‖iteratedFDeriv ℝ k |
| 199 | (polarAssoc.toContinuousLinearEquiv.toContinuousLinearMap ∘ |
| 200 | (fun y : LiftPoint => (PolarCharts.chart a j (PhysicalGraphBounds.liftXY y), |
| 201 | PhysicalClassBounds.slowFast y))) x‖ ≤ B |
| 202 | exact he.trans ((mul_le_mul hnorm hpair (norm_nonneg _) zero_le_one).trans_eq (one_mul B)) |
| 203 | |
| 204 | noncomputable def rotationBase (a : ℝ) (j : PolarCharts.Index) (x : PhysicalGraphBounds.Plane) : |
| 205 | Components →L[ℝ] Space := |
| 206 | (CylindricalResidual.frame (PolarCharts.chart a j x).2).comp vectorMap |
| 207 | |
| 208 | theorem rotationBase_smooth {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) : |
| 209 | ContDiff ℝ ∞ (rotationBase a j) := |
| 210 | (CylindricalResidual.contDiff_frame.comp (PolarCharts.chart_contDiff ha j).snd).clm_comp contDiff_const |
| 211 | |
| 212 | theorem finite_compact_jet_bound {ι E F : Type*} [Fintype ι] |
| 213 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 214 | {f : ι → E → F} {U K : Set E} (hU : IsOpen U) (hf : ∀ i, ContDiffOn ℝ ∞ (f i) U) |
| 215 | (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : |
| 216 | ∃ C : ℝ, 1 ≤ C ∧ ∀ i k, k ≤ m → ∀ x ∈ K, ‖iteratedFDeriv ℝ k (f i) x‖ ≤ C := by |
| 217 | classical |
| 218 | choose C hC hb using fun i => PhysicalGraphBounds.compact_jet_bound hU (hf i) hK hKU m |
| 219 | refine ⟨1 + ∑ i, |C i|, ?_, ?_⟩ |
| 220 | · have hsum : 0 ≤ ∑ i, |C i| := Finset.sum_nonneg (fun i _ => abs_nonneg (C i)) |
| 221 | linarith |
| 222 | · intro i k hk x hx |
| 223 | have hi : |C i| ≤ ∑ j, |C j| := |
| 224 | Finset.single_le_sum (fun j _ => abs_nonneg (C j)) (Finset.mem_univ i) |
| 225 | exact (hb i k hk x hx).trans ((le_abs_self (C i)).trans (by linarith)) |
| 226 | |
| 227 | theorem rotationLift_jet_bound {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : |
| 228 | ∃ B : ℝ, 1 ≤ B ∧ ∀ j : PolarCharts.Index, ∀ x : LiftPoint, |
| 229 | PhysicalGraphBounds.liftXY x ∈ Metric.closedBall 0 b → ∀ k ≤ m, |
| 230 | ‖iteratedFDeriv ℝ k (rotationBase a j ∘ PhysicalGraphBounds.liftXY) x‖ ≤ B := by |
| 231 | obtain ⟨B, hB, hb⟩ := finite_compact_jet_bound isOpen_univ |
| 232 | (fun j => (rotationBase_smooth ha j).contDiffOn) (isCompact_closedBall 0 b) |
| 233 | (subset_univ _) m |
| 234 | refine ⟨B, hB, ?_⟩ |
| 235 | intro j x hx k hk |
| 236 | exact PhysicalGraphBounds.jet_comp_linear_bound (rotationBase_smooth ha j) |
| 237 | PhysicalGraphBounds.liftXY PhysicalGraphBounds.norm_liftXY_le x (zero_le_one.trans hB) m |
| 238 | (fun i hi => hb j i hi _ hx) k hk |
| 239 | |
| 240 | theorem clm_apply_jet_bound {D E F : Type*} |
| 241 | [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 242 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 243 | {f : D → E →L[ℝ] F} {g : D → E} (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 244 | (x : D) {m k : ℕ} (hk : k ≤ m) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 245 | (hfa : ∀ i ≤ m, ‖iteratedFDeriv ℝ i f x‖ ≤ A) |
| 246 | (hgb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i g x‖ ≤ B) : |
| 247 | ‖iteratedFDeriv ℝ k (fun y => f y (g y)) x‖ ≤ (2 : ℝ) ^ m * A * B := by |
| 248 | apply (norm_iteratedFDeriv_clm_apply hf hg x (nat_le_infty k)).trans |
| 249 | calc |
| 250 | _ ≤ ∑ i ∈ Finset.range (k + 1), (k.choose i : ℝ) * A * B := by |
| 251 | apply Finset.sum_le_sum |
| 252 | intro i hi |
| 253 | exact mul_le_mul |
| 254 | (mul_le_mul_of_nonneg_left (hfa i ((Nat.le_of_lt_succ (Finset.mem_range.mp hi)).trans hk)) |
| 255 | (Nat.cast_nonneg _)) |
| 256 | (hgb (k - i) ((Nat.sub_le _ _).trans hk)) (norm_nonneg _) |
| 257 | (mul_nonneg (Nat.cast_nonneg _) hA) |
| 258 | _ = (2 : ℝ) ^ k * A * B := by |
| 259 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 260 | congr 2 |
| 261 | exact_mod_cast Nat.sum_range_choose k |
| 262 | _ ≤ (2 : ℝ) ^ m * A * B := |
| 263 | mul_le_mul_of_nonneg_right |
| 264 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hk) hA) hB |
| 265 | |
| 266 | /-- The Cartesian reconstruction keeps the exact residual degree and |
| 267 | the actual rotating basis, before any derivative estimate is applied. -/ |
| 268 | noncomputable def cartesianPull (a h : ℝ) (j : PolarCharts.Index) (n d : ℕ) |
| 269 | (degree : ℝ) (F : Cylinder → Components) : SpaceTime → Space := fun w => |
| 270 | ChartScales.Q n ^ (-degree) • |
| 271 | rotationBase a j (PhysicalGraphBounds.scaledRadial n w) (F (polarGraph a h j n d w)) |
| 272 | |
| 273 | /-- The actual angular graph and Cartesian basis add only an order-dependent |
| 274 | constant. The displayed loss retains the exact physical scaling degree. -/ |
| 275 | theorem cartesianPull_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) |
| 276 | (Δ m : ℕ) (gain degree e A : ℝ) (hA : 0 ≤ A) : |
| 277 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → |
| 278 | ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → |
| 279 | |w.1| ≤ 1 → ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → |
| 280 | ∀ j : PolarCharts.Index, ∀ F : Cylinder → Components, SmoothNear F (polarGraph a h j n d w) → |
| 281 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i F (polarGraph a h j n d w)‖ ≤ |
| 282 | A * ChartScales.Q n ^ gain * ChartScales.S n ^ e) → |
| 283 | ‖iteratedFDeriv ℝ m (cartesianPull a h j n d degree F) w‖ ≤ |
| 284 | C * q ^ (gain - PhysicalMeanJetBounds.loss degree m) := by |
| 285 | obtain ⟨B, hB, hBj⟩ := polarLift_positiveJets (b := b) ha m |
| 286 | obtain ⟨V, hV, hVj⟩ := rotationLift_jet_bound ha b m |
| 287 | let A' : ℝ := (2 : ℝ) ^ m * V * ((m.factorial : ℝ) * A * B ^ m) |
| 288 | have hA' : 0 ≤ A' := by dsimp [A']; positivity |
| 289 | obtain ⟨C, hC, hb⟩ := PhysicalMeanJetBounds.common_stripped_physical_bound_local |
| 290 | (E := Space) (b := b) hh hh1 ha Δ m (gain - degree) e A' hA' |
| 291 | refine ⟨C, hC, ?_⟩ |
| 292 | intro n hn d hd w hann ht q hq hlo hhi j F hF hjet |
| 293 | obtain ⟨F', hF', he⟩ := hF.exists_global_germ |
| 294 | have hx : PhysicalGraphBounds.liftXY (commonLift h n d w) ∈ Metric.closedBall 0 b := by |
| 295 | rw [PhysicalClassBounds.liftXY_commonLift] |
| 296 | exact hann.1 |
| 297 | let r := rotationBase a j ∘ PhysicalGraphBounds.liftXY |
| 298 | let f := F' ∘ polarLift a j |
| 299 | have hr : ContDiff ℝ ∞ r := (rotationBase_smooth ha j).comp PhysicalGraphBounds.liftXY.contDiff |
| 300 | have hf : ContDiff ℝ ∞ f := hF'.comp (polarLift_smooth ha j) |
| 301 | let u : LiftPoint → Space := fun y => ChartScales.Q n ^ (-degree) • r y (f y) |
| 302 | have hu : ContDiff ℝ ∞ u := (hr.clm_apply hf).const_smul _ |
| 303 | have haxis := PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hann) |
| 304 | have hgraph : ContinuousAt (polarGraph a h j n d) w := |
| 305 | (polarLift_smooth ha j).continuous.continuousAt.comp (commonLift_smoothAt h n d haxis).continuousAt |
| 306 | have he' : cartesianPull a h j n d degree F =ᶠ[𝓝 w] u ∘ commonLift h n d := by |
| 307 | filter_upwards [he.comp_tendsto hgraph] with z hz |
| 308 | change ChartScales.Q n ^ (-degree) • |
| 309 | rotationBase a j (PhysicalGraphBounds.scaledRadial n z) (F (polarGraph a h j n d z)) = |
| 310 | ChartScales.Q n ^ (-degree) • |
| 311 | rotationBase a j (PhysicalGraphBounds.liftXY (commonLift h n d z)) |
| 312 | (F' (polarGraph a h j n d z)) |
| 313 | rw [PhysicalClassBounds.liftXY_commonLift] |
| 314 | exact congrArg (fun v => ChartScales.Q n ^ (-degree) • |
| 315 | rotationBase a j (PhysicalGraphBounds.scaledRadial n z) v) hz |
| 316 | rw [iteratedFDeriv_eq_of_eventuallyEq he' m] |
| 317 | have hQ := ChartScales.Q_pos n |
| 318 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 319 | have hab : 0 ≤ A * ChartScales.Q n ^ gain * ChartScales.S n ^ e := by positivity |
| 320 | have hFjet : ∀ i ≤ m, ‖iteratedFDeriv ℝ i F' (polarGraph a h j n d w)‖ ≤ |
| 321 | A * ChartScales.Q n ^ gain * ChartScales.S n ^ e := by |
| 322 | intro i hi |
| 323 | rw [← iteratedFDeriv_eq_of_eventuallyEq he i] |
| 324 | exact hjet i hi |
| 325 | have hcomp := PhysicalClassBounds.composition_jet_bound hF' isOpen_univ |
| 326 | (polarLift_smooth ha j).contDiffOn (mem_univ (commonLift h n d w)) m hab hB hFjet |
| 327 | (hBj j _ hx) |
| 328 | have huc : ∀ i ≤ m, ‖iteratedFDeriv ℝ i u (commonLift h n d w)‖ ≤ |
| 329 | A' * ChartScales.Q n ^ (gain - degree) * ChartScales.S n ^ e := by |
| 330 | intro i hi |
| 331 | change ‖iteratedFDeriv ℝ i (fun y => ChartScales.Q n ^ (-degree) • r y (f y)) |
| 332 | (commonLift h n d w)‖ ≤ _ |
| 333 | rw [iteratedFDeriv_const_smul_apply' ((hr.clm_apply hf).contDiffAt.of_le (nat_le_infty i)), |
| 334 | norm_smul (ChartScales.Q n ^ (-degree)) |
| 335 | (iteratedFDeriv ℝ i (fun x => r x (f x)) (commonLift h n d w)), |
| 336 | Real.norm_of_nonneg (Real.rpow_pos_of_pos hQ _).le] |
| 337 | have hp := clm_apply_jet_bound hr hf (commonLift h n d w) hi (zero_le_one.trans hV) |
| 338 | (by positivity : 0 ≤ (m.factorial : ℝ) * |
| 339 | (A * ChartScales.Q n ^ gain * ChartScales.S n ^ e) * B ^ m) |
| 340 | (hVj j _ hx) hcomp |
| 341 | calc |
| 342 | _ ≤ ChartScales.Q n ^ (-degree) * ((2 : ℝ) ^ m * V * ((m.factorial : ℝ) * |
| 343 | (A * ChartScales.Q n ^ gain * ChartScales.S n ^ e) * B ^ m)) := |
| 344 | mul_le_mul_of_nonneg_left hp (Real.rpow_pos_of_pos hQ _).le |
| 345 | _ = _ := by dsimp [A']; rw [Real.rpow_sub hQ, Real.rpow_neg hQ.le]; ring |
| 346 | have hout := hb n hn d hd w hann ht q hq hlo hhi u (SmoothNear.of_open isOpen_univ hu.contDiffOn |
| 347 | (mem_univ _)) huc |
| 348 | convert! hout using 1 |
| 349 | congr 2 |
| 350 | unfold PhysicalMeanJetBounds.loss |
| 351 | ring |
| 352 | |
| 353 | /-! ## Uniform native jets and support-local harmonic synthesis -/ |
| 354 | |
| 355 | theorem finite_pi_iteratedFDeriv_norm_le |
| 356 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] |
| 357 | {f : E → ι → ℝ} {x : E} {m : ℕ} {C : ℝ} |
| 358 | (hf : ContDiffAt ℝ m f x) (hC : 0 ≤ C) |
| 359 | (hb : ∀ i, ‖iteratedFDeriv ℝ m (fun y => f y i) x‖ ≤ C) : |
| 360 | ‖iteratedFDeriv ℝ m f x‖ ≤ C := by |
| 361 | apply ContinuousMultilinearMap.opNorm_le_bound hC |
| 362 | intro v |
| 363 | apply (pi_norm_le_iff_of_nonneg |
| 364 | (mul_nonneg hC (Finset.prod_nonneg (fun i _ => norm_nonneg (v i))))).2 |
| 365 | intro i |
| 366 | have he := (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ).iteratedFDeriv_comp_left hf le_rfl |
| 367 | have hev := congrArg (fun T => T v) he |
| 368 | change (iteratedFDeriv ℝ m (fun y => f y i) x) v = |
| 369 | (iteratedFDeriv ℝ m f x v) i at hev |
| 370 | rw [← hev] |
| 371 | exact ContinuousMultilinearMap.le_of_opNorm_le (hb i) v |
| 372 | |
| 373 | /-- Constants are chosen before the label and band. `loss` is allowed to |
| 374 | depend on the derivative order; it never depends on the correction stage. -/ |
| 375 | structure NativeBounds {D E ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 376 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 377 | (N : ℕ) (U : Set D) (gain : ℝ) (loss : ℕ → ℝ) (f : ι → ℕ → D → E) : Prop where |
| 378 | smooth : ∀ l n, N ≤ n → ContDiffOn ℝ ∞ (f l n) U |
| 379 | bounds : ∀ m, ∃ A : ℝ, 0 ≤ A ∧ ∃ p : ℕ, ∀ l n, N ≤ n → ∀ x ∈ U, ∀ j ≤ m, |
| 380 | ‖iteratedFDeriv ℝ j (f l n) x‖ ≤ A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ p |
| 381 | |
| 382 | namespace NativeBounds |
| 383 | |
| 384 | variable {D : Type} {E F ι κ : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 385 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 386 | {N : ℕ} {U : Set D} {gain : ℝ} {loss : ℕ → ℝ} {f g : ι → ℕ → D → E} |
| 387 | |
| 388 | theorem zero : NativeBounds N U gain loss (fun (_ : ι) _ _ => (0 : E)) := by |
| 389 | refine ⟨fun _ _ _ => contDiffOn_const, fun m => ⟨0, le_rfl, 0, ?_⟩⟩ |
| 390 | intros |
| 391 | simp [iteratedFDeriv_fun_zero] |
| 392 | |
| 393 | theorem reindex (hf : NativeBounds N U gain loss f) (a : κ → ι) : |
| 394 | NativeBounds N U gain loss (fun l => f (a l)) := by |
| 395 | refine ⟨fun l => hf.smooth (a l), ?_⟩ |
| 396 | intro m |
| 397 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 398 | exact ⟨A, hA, p, fun l => hb (a l)⟩ |
| 399 | |
| 400 | theorem map (hf : NativeBounds N U gain loss f) (hU : IsOpen U) (L : E →L[ℝ] F) : |
| 401 | NativeBounds N U gain loss (fun l n x => L (f l n x)) := by |
| 402 | refine ⟨fun l n hn => (hf.smooth l n hn).continuousLinearMap_comp L, ?_⟩ |
| 403 | intro m |
| 404 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 405 | refine ⟨‖L‖ * A, mul_nonneg (norm_nonneg _) hA, p, ?_⟩ |
| 406 | intro l n hn x hx j hj |
| 407 | calc |
| 408 | _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ j (f l n) x‖ := |
| 409 | norm_jet_linear_comp_at (((hf.smooth l n hn).contDiffAt (hU.mem_nhds hx)).of_le |
| 410 | (nat_le_infty j)) L |
| 411 | _ ≤ ‖L‖ * (A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ p) := |
| 412 | mul_le_mul_of_nonneg_left (hb l n hn x hx j hj) (norm_nonneg _) |
| 413 | _ = _ := by ring |
| 414 | |
| 415 | theorem add (hN : 1 ≤ N) (hU : IsOpen U) (hf : NativeBounds N U gain loss f) |
| 416 | (hg : NativeBounds N U gain loss g) : |
| 417 | NativeBounds N U gain loss (fun l n x => f l n x + g l n x) := by |
| 418 | refine ⟨fun l n hn => (hf.smooth l n hn).add (hg.smooth l n hn), ?_⟩ |
| 419 | intro m |
| 420 | obtain ⟨A, hA, p, ha⟩ := hf.bounds m |
| 421 | obtain ⟨B, hB, q, hb⟩ := hg.bounds m |
| 422 | refine ⟨A + B, add_nonneg hA hB, p + q, ?_⟩ |
| 423 | intro l n hn x hx j hj |
| 424 | have hS := PhysicalGraphBounds.S_ge_one (hN.trans hn) |
| 425 | have hQ : 0 ≤ ChartScales.Q n ^ (gain - loss m) := Real.rpow_pos_of_pos (ChartScales.Q_pos n) _ |>.le |
| 426 | rw [fun_iteratedFDeriv_add_apply |
| 427 | (((hf.smooth l n hn).contDiffAt (hU.mem_nhds hx)).of_le (nat_le_infty j)) |
| 428 | (((hg.smooth l n hn).contDiffAt (hU.mem_nhds hx)).of_le (nat_le_infty j))] |
| 429 | calc |
| 430 | _ ≤ ‖iteratedFDeriv ℝ j (f l n) x‖ + ‖iteratedFDeriv ℝ j (g l n) x‖ := norm_add_le _ _ |
| 431 | _ ≤ A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ p + |
| 432 | B * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ q := |
| 433 | add_le_add (ha l n hn x hx j hj) (hb l n hn x hx j hj) |
| 434 | _ ≤ A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ (p + q) + |
| 435 | B * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ (p + q) := by |
| 436 | exact add_le_add |
| 437 | (mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hS (Nat.le_add_right p q)) (mul_nonneg hA hQ)) |
| 438 | (mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hS (Nat.le_add_left q p)) (mul_nonneg hB hQ)) |
| 439 | _ = _ := by ring |
| 440 | |
| 441 | theorem sum (hN : 1 ≤ N) (hU : IsOpen U) (K : Finset κ) (a : κ → ι → ℕ → D → E) |
| 442 | (ha : ∀ k ∈ K, NativeBounds N U gain loss (a k)) : |
| 443 | NativeBounds N U gain loss (fun l n x => ∑ k ∈ K, a k l n x) := by |
| 444 | classical |
| 445 | induction K using Finset.induction_on with |
| 446 | | empty => simpa only [Finset.sum_empty] using (zero : NativeBounds N U gain loss (fun (_ : ι) _ _ => (0 : E))) |
| 447 | | @insert k K hk ih => |
| 448 | simpa only [Finset.sum_insert hk] using |
| 449 | (ha k (Finset.mem_insert_self _ _)).add hN hU |
| 450 | (ih (fun j hj => ha j (Finset.mem_insert_of_mem hj))) |
| 451 | |
| 452 | theorem congr (hU : IsOpen U) (hf : NativeBounds N U gain loss f) |
| 453 | (hfg : ∀ l n, N ≤ n → EqOn (f l n) (g l n) U) : NativeBounds N U gain loss g := by |
| 454 | refine ⟨fun l n hn => (hf.smooth l n hn).congr (fun x hx => (hfg l n hn hx).symm), ?_⟩ |
| 455 | intro m |
| 456 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 457 | refine ⟨A, hA, p, ?_⟩ |
| 458 | intro l n hn x hx j hj |
| 459 | rw [← iteratedFDeriv_eq_of_eventuallyEq |
| 460 | (eventually_of_mem (hU.mem_nhds hx) (hfg l n hn)) j] |
| 461 | exact hb l n hn x hx j hj |
| 462 | |
| 463 | theorem weaken (hN : 1 ≤ N) (hf : NativeBounds N U gain loss f) |
| 464 | {gain' : ℝ} {loss' : ℕ → ℝ} (he : ∀ m, gain' - loss' m ≤ gain - loss m) : |
| 465 | NativeBounds N U gain' loss' f := by |
| 466 | refine ⟨hf.smooth, ?_⟩ |
| 467 | intro m |
| 468 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 469 | refine ⟨A, hA, p, ?_⟩ |
| 470 | intro l n hn x hx j hj |
| 471 | exact (hb l n hn x hx j hj).trans (mul_le_mul_of_nonneg_right |
| 472 | (mul_le_mul_of_nonneg_left |
| 473 | (Real.rpow_le_rpow_of_exponent_ge (ChartScales.Q_pos n) |
| 474 | (ChartScales.Q_le_one n) (he m)) hA) |
| 475 | (pow_nonneg (le_trans zero_le_one (PhysicalGraphBounds.S_ge_one (hN.trans hn))) p)) |
| 476 | |
| 477 | /-- Genuine edge extensions retain the interior weighted estimate on the |
| 478 | closure; outside that closure the actual zero germ is used. -/ |
| 479 | theorem of_localSource {D' E' : Type} [NormedAddCommGroup D'] [NormedSpace ℝ D'] |
| 480 | [NormedAddCommGroup E'] [NormedSpace ℝ E'] |
| 481 | {s : StripData D'} {h α : ℝ} {w : ι → ℕ → D' → ℝ} {a : ι → ℕ → D' → E'} |
| 482 | {V : Set D'} (hN : 4 ≤ N) (hV : IsOpen V) |
| 483 | (ha : LocalSourceBounds (E := E') s h α w a) |
| 484 | (hsm : ∀ l n, N ≤ n → ContDiffOn ℝ ∞ (a l n) V) |
| 485 | (hcover : ∀ l n, N ≤ n → ∀ x ∈ V, x ∈ closure s.domain ∨ x ∉ tsupport (a l n)) : |
| 486 | NativeBounds N V (h * α) (fun _ => 0) a := by |
| 487 | refine ⟨hsm, ?_⟩ |
| 488 | intro m |
| 489 | obtain ⟨A, hA, p, hb⟩ := ha.chart_bound m |
| 490 | refine ⟨A, hA, p, ?_⟩ |
| 491 | intro l n hn x hx j hj |
| 492 | simp only [sub_zero] |
| 493 | rcases hcover l n hn x hx with hc | hz |
| 494 | · exact jet_bound_at_closure ((hsm l n hn).contDiffAt (hV.mem_nhds hx)) hc j |
| 495 | (fun y hy => hb l n (hN.trans hn) y hy j hj) |
| 496 | · rw [jet_zero_off_tsupport _ _ hz, norm_zero] |
| 497 | have hQ := ChartScales.Q_pos n |
| 498 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 499 | positivity |
| 500 | |
| 501 | /-- Closed label windows, not the size of the active finite set, control |
| 502 | the spatial sum. The constant multiplier is the proved overlap `2250`. -/ |
| 503 | theorem window_sum (hU : IsOpen U) (hf : NativeBounds N U gain loss f) |
| 504 | (labels : ℕ → Finset ι) (label : ℕ → ι → SlotColoring.Label) |
| 505 | (hinj : ∀ n, N ≤ n → Set.InjOn (label n) (labels n : Set ι)) |
| 506 | (hlevel : ∀ n, N ≤ n → ∀ l ∈ labels n, 1 ≤ (label n l).1) |
| 507 | (d : ℝ) (χ : ℕ → D → WindowPoint) (hχ : ∀ n, N ≤ n → ContinuousOn (χ n) U) |
| 508 | (hs : ∀ n, N ≤ n → ∀ l ∈ labels n, ∀ x ∈ U, |
| 509 | f l n x ≠ 0 → χ n x ∈ closedWindow d (label n l)) : |
| 510 | NativeBounds N U gain loss (fun (_ : Unit) n x => ∑ l ∈ labels n, f l n x) := by |
| 511 | refine ⟨fun _ n hn => ContDiffOn.sum (fun l _ => hf.smooth l n hn), ?_⟩ |
| 512 | intro m |
| 513 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 514 | refine ⟨2250 * A, by positivity, p, ?_⟩ |
| 515 | intro _ n hn x hx j hj |
| 516 | have hQ := ChartScales.Q_pos n |
| 517 | have hS : 0 ≤ ChartScales.S n := by unfold ChartScales.S; positivity |
| 518 | have h := LabelSumBounds.finite_sum_jet_bound hU hx (labels n) (label n) (hinj n hn) |
| 519 | (hlevel n hn) d (χ n) ((hχ n hn).continuousAt (hU.mem_nhds hx)) (fun l => f l n) j |
| 520 | (fun l _ => ((hf.smooth l n hn).contDiffAt (hU.mem_nhds hx)).of_le (nat_le_infty j)) |
| 521 | (hs n hn) (by positivity : 0 ≤ A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ p) |
| 522 | (fun l _ _ => hb l n hn x hx j hj) |
| 523 | exact h.trans_eq (by ring) |
| 524 | |
| 525 | end NativeBounds |
| 526 | |
| 527 | /-- Only positive derivatives of the literal phase are bounded, only on |
| 528 | the actual coefficient support. Copy-dependent phase germs fit this interface. -/ |
| 529 | structure SupportedPhaseBounds {D ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 530 | (N : ℕ) (U : Set D) (β : ℝ) (a : ι → ℕ → D → ℂ) (Φ : ι → ℕ → D → ℝ) : Prop where |
| 531 | smooth : ∀ l n, N ≤ n → ∀ x ∈ U, x ∈ tsupport (a l n) → SmoothNear (Φ l n) x |
| 532 | bounds : ∀ m, ∃ B : ℝ, 1 ≤ B ∧ ∃ p : ℕ, ∀ l n, N ≤ n → ∀ x ∈ U, |
| 533 | x ∈ tsupport (a l n) → ∀ j, 1 ≤ j → j ≤ m → |
| 534 | ‖iteratedFDeriv ℝ j (Φ l n) x‖ ≤ B * ChartScales.S n ^ p * ChartScales.Q n ^ (-β) |
| 535 | |
| 536 | theorem mode_zero_germ {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 537 | {a : D → ℂ} (Φ : D → ℝ) (c : ℝ) {x : D} (hx : x ∉ tsupport a) : |
| 538 | (fun y => a y * PhysicalGraphBounds.character c (Φ y)) =ᶠ[𝓝 x] fun _ => 0 := by |
| 539 | filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hx] with y hy |
| 540 | change a y = 0 at hy |
| 541 | simp only [hy, zero_mul] |
| 542 | |
| 543 | theorem mode_contDiffOn {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 544 | {U : Set D} (hU : IsOpen U) {a : D → ℂ} {Φ : D → ℝ} (c : ℝ) |
| 545 | (ha : ContDiffOn ℝ ∞ a U) |
| 546 | (hΦ : ∀ x ∈ U, x ∈ tsupport a → SmoothNear Φ x) : |
| 547 | ContDiffOn ℝ ∞ (fun y => a y * PhysicalGraphBounds.character c (Φ y)) U := by |
| 548 | intro x hx |
| 549 | by_cases hs : x ∈ tsupport a |
| 550 | · exact ((ha.contDiffAt (hU.mem_nhds hx)).mul |
| 551 | ((PhysicalGraphBounds.character_smooth c).contDiffAt.comp x |
| 552 | (hΦ x hx hs).contDiffAt)).contDiffWithinAt |
| 553 | · exact (contDiffAt_const.congr_of_eventuallyEq (mode_zero_germ Φ c hs)).contDiffWithinAt |
| 554 | |
| 555 | theorem NativeBounds.mode {D : Type} {ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 556 | [FiniteDimensional ℝ D] {N : ℕ} {U : Set D} {gain β : ℝ} {loss : ℕ → ℝ} |
| 557 | {a : ι → ℕ → D → ℂ} {Φ : ι → ℕ → D → ℝ} |
| 558 | (hN : 1 ≤ N) (hU : IsOpen U) (hβ : 0 ≤ β) |
| 559 | (ha : NativeBounds N U gain loss a) (hΦ : SupportedPhaseBounds N U β a Φ) : |
| 560 | NativeBounds N U gain (fun m => loss m + β * m) |
| 561 | (fun l n x => a l n x * PhysicalGraphBounds.character 1 (Φ l n x)) := by |
| 562 | refine ⟨fun l n hn => mode_contDiffOn hU 1 (ha.smooth l n hn) (hΦ.smooth l n hn), ?_⟩ |
| 563 | intro m |
| 564 | obtain ⟨A, hA, p, haB⟩ := ha.bounds m |
| 565 | obtain ⟨B, hB, q, hΦB⟩ := hΦ.bounds m |
| 566 | refine ⟨(2 : ℝ) ^ m * A * ((m.factorial : ℝ) * B ^ m), by positivity, p + q * m, ?_⟩ |
| 567 | intro l n hn x hx j hj |
| 568 | have hQ := ChartScales.Q_pos n |
| 569 | have hS := PhysicalGraphBounds.S_ge_one (hN.trans hn) |
| 570 | have hphase : 1 ≤ B * ChartScales.S n ^ q * ChartScales.Q n ^ (-β) := by |
| 571 | have hQb : 1 ≤ ChartScales.Q n ^ (-β) := by |
| 572 | simpa only [Real.rpow_zero] using Real.rpow_le_rpow_of_exponent_ge hQ |
| 573 | (ChartScales.Q_le_one n) (neg_nonpos.mpr hβ) |
| 574 | exact one_le_mul_of_one_le_of_one_le |
| 575 | (one_le_mul_of_one_le_of_one_le hB (one_le_pow₀ hS)) hQb |
| 576 | by_cases hs : x ∈ tsupport (a l n) |
| 577 | · have hb := mode_jet_bound_local (a := a l n) (Φ := Φ l n) (x := x) |
| 578 | (SmoothNear.of_open hU (ha.smooth l n hn) hx) |
| 579 | (hΦ.smooth l n hn x hx hs) m |
| 580 | (by positivity : 0 ≤ A * ChartScales.Q n ^ (gain - loss m) * ChartScales.S n ^ p) |
| 581 | hphase (by norm_num : (1 : ℝ) ≤ 1) (by norm_num : |(1 : ℝ)| ≤ 1) |
| 582 | (haB l n hn x hx) (hΦB l n hn x hx hs) j hj |
| 583 | apply hb.trans_eq |
| 584 | simp only [one_pow, mul_one, mul_pow, ← pow_mul] |
| 585 | rw [← Real.rpow_mul_natCast hQ.le (-β) m] |
| 586 | have he : gain - (loss m + β * m) = (gain - loss m) + (-β) * m := by ring |
| 587 | rw [he, Real.rpow_add hQ, pow_add] |
| 588 | ring |
| 589 | · rw [iteratedFDeriv_eq_of_eventuallyEq (mode_zero_germ (Φ l n) 1 hs) j, |
| 590 | iteratedFDeriv_fun_zero] |
| 591 | simp only [Pi.zero_apply, norm_zero] |
| 592 | positivity |
| 593 | |
| 594 | theorem NativeBounds.pi {D ι κ : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 595 | [Fintype κ] {N : ℕ} {U : Set D} {gain : ℝ} {loss : ℕ → ℝ} |
| 596 | {f : ι → ℕ → D → κ → ℝ} (hN : 1 ≤ N) (hU : IsOpen U) |
| 597 | (hf : ∀ i, NativeBounds N U gain loss (fun l n x => f l n x i)) : |
| 598 | NativeBounds N U gain loss f := by |
| 599 | classical |
| 600 | refine ⟨fun l n hn => contDiffOn_pi.mpr (fun i => (hf i).smooth l n hn), ?_⟩ |
| 601 | intro m |
| 602 | choose A hA p hb using fun i => (hf i).bounds m |
| 603 | refine ⟨∑ i, A i, Finset.sum_nonneg (fun i _ => hA i), ∑ i, p i, ?_⟩ |
| 604 | intro l n hn x hx j hj |
| 605 | have hS := PhysicalGraphBounds.S_ge_one (hN.trans hn) |
| 606 | have hQ : 0 ≤ ChartScales.Q n ^ (gain - loss m) := (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _).le |
| 607 | have hSA : 0 ≤ ∑ i, A i := Finset.sum_nonneg (fun i _ => hA i) |
| 608 | have hSp : 0 ≤ ChartScales.S n ^ (∑ i, p i) := pow_nonneg (zero_le_one.trans hS) _ |
| 609 | apply finite_pi_iteratedFDeriv_norm_le |
| 610 | ((contDiffOn_pi.mpr (fun i => (hf i).smooth l n hn)).contDiffAt |
| 611 | (hU.mem_nhds hx) |>.of_le (nat_le_infty j)) (by positivity) |
| 612 | intro i |
| 613 | exact (hb i l n hn x hx j hj).trans (mul_le_mul |
| 614 | (mul_le_mul_of_nonneg_right |
| 615 | (Finset.single_le_sum (fun k _ => hA k) (Finset.mem_univ i)) hQ) |
| 616 | (pow_le_pow_right₀ hS (Finset.single_le_sum (fun k _ => Nat.zero_le (p k)) (Finset.mem_univ i))) |
| 617 | (pow_nonneg (zero_le_one.trans hS) _) (by positivity)) |
| 618 | |
| 619 | /-- Pull a genuine local bound through a fixed contraction, including the |
| 620 | angular projection. No global extension estimate is needed. -/ |
| 621 | theorem NativeBounds.pull_linear {D E F ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 622 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 623 | [FiniteDimensional ℝ E] {N : ℕ} {U : Set E} {gain : ℝ} {loss : ℕ → ℝ} |
| 624 | {f : ι → ℕ → E → F} (hU : IsOpen U) (hf : NativeBounds N U gain loss f) |
| 625 | (L : D →L[ℝ] E) (hL : ‖L‖ ≤ 1) : |
| 626 | NativeBounds N (L ⁻¹' U) gain loss (fun l n => f l n ∘ L) := by |
| 627 | refine ⟨fun l n hn => (hf.smooth l n hn).comp L.contDiff.contDiffOn (fun _ hx => hx), ?_⟩ |
| 628 | intro m |
| 629 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 630 | refine ⟨A, hA, p, ?_⟩ |
| 631 | intro l n hn x hx j hj |
| 632 | have hQ := ChartScales.Q_pos n |
| 633 | have hS : 0 ≤ ChartScales.S n := by unfold ChartScales.S; positivity |
| 634 | obtain ⟨g, hg, he⟩ := (SmoothNear.of_open hU (hf.smooth l n hn) hx).exists_global_germ |
| 635 | rw [iteratedFDeriv_eq_of_eventuallyEq (he.comp_tendsto L.continuous.continuousAt) j] |
| 636 | apply PhysicalGraphBounds.jet_comp_linear_bound hg L hL x (by positivity) m _ j hj |
| 637 | intro i hi |
| 638 | rw [← iteratedFDeriv_eq_of_eventuallyEq he i] |
| 639 | exact hb l n hn (L x) hx i hi |
| 640 | |
| 641 | noncomputable def fullPhase (b : CorrectionState.HarmonicBlock Point) (j : ℤ) |
| 642 | (n : ℕ) (x : Cylinder) : ℝ := |
| 643 | (j : ℝ) * (b.frequency n * b.phase n x.1 + (b.angularFrequency n : ℝ) * x.2) |
| 644 | |
| 645 | theorem character_fullPhase (j : ℤ) (t : ℝ) : |
| 646 | PhysicalGraphBounds.character 1 ((j : ℝ) * t) = HarmonicFields.character j t := by |
| 647 | unfold PhysicalGraphBounds.character PhysicalGraphBounds.phaseFactor HarmonicFields.character |
| 648 | congr 1 |
| 649 | simp only [Complex.ofReal_mul, Complex.ofReal_one, one_mul, Complex.ofReal_intCast] |
| 650 | ring |
| 651 | |
| 652 | theorem block_expansion (b : CorrectionState.HarmonicBlock Point) (J : Finset ℤ) |
| 653 | (n : ℕ) (i : Fin 3) (hs : (b.velocity n i).support ⊆ J) (x : Cylinder) : |
| 654 | b.oscillation n x i = ∑ j ∈ J, |
| 655 | ((b.velocity n i j x.1) * PhysicalGraphBounds.character 1 (fullPhase b j n x)).re := by |
| 656 | unfold CorrectionState.HarmonicBlock.oscillation HarmonicFields.field |
| 657 | rw [HarmonicFields.evaluate_over _ J hs, Complex.re_sum] |
| 658 | apply Finset.sum_congr rfl |
| 659 | intro j _ |
| 660 | rw [fullPhase, character_fullPhase] |
| 661 | |
| 662 | /-- The actual finite group-algebra block, not a separate modeled wave, |
| 663 | inherits the coefficient bounds. The fixed harmonic set affects constants. -/ |
| 664 | theorem block_nativeBounds {ι : Type} {N : ℕ} {U : Set Cylinder} {gain β : ℝ} |
| 665 | (hN : 1 ≤ N) (hU : IsOpen U) (hβ : 0 ≤ β) |
| 666 | (b : ι → CorrectionState.HarmonicBlock Point) (J : Finset ℤ) |
| 667 | (hs : ∀ l n, N ≤ n → ∀ i, ((b l).velocity n i).support ⊆ J) |
| 668 | (ha : ∀ i j, j ∈ J → NativeBounds N U gain (fun _ => 0) |
| 669 | (fun l n (x : Cylinder) => (b l).velocity n i j x.1)) |
| 670 | (hΦ : ∀ i j, j ∈ J → SupportedPhaseBounds N U β |
| 671 | (fun l n (x : Cylinder) => (b l).velocity n i j x.1) (fun l => fullPhase (b l) j)) : |
| 672 | NativeBounds N U gain (fun m => β * m) (fun l => (b l).oscillation) := by |
| 673 | apply NativeBounds.pi hN hU |
| 674 | intro i |
| 675 | have hj : ∀ j ∈ J, NativeBounds N U gain (fun m => β * m) |
| 676 | (fun l n (x : Cylinder) => |
| 677 | ((b l).velocity n i j x.1 * PhysicalGraphBounds.character 1 (fullPhase (b l) j n x)).re) := by |
| 678 | intro j hj |
| 679 | simpa only [zero_add, Complex.reCLM_apply] using |
| 680 | ((ha i j hj).mode hN hU hβ (hΦ i j hj)).map hU Complex.reCLM |
| 681 | apply (NativeBounds.sum hN hU J _ hj).congr hU |
| 682 | intro l n hn x _ |
| 683 | exact (block_expansion (b l) J n i (hs l n hn i) x).symm |
| 684 | |
| 685 | /-- The exact reconstructed state residual is controlled by the true label |
| 686 | overlap, the mean-good residual and the three excluded errors. -/ |
| 687 | theorem state_nativeBounds {ι : Type} {N : ℕ} {V : Set Point} |
| 688 | (hN : 1 ≤ N) (hV : IsOpen V) {gain β : ℝ} |
| 689 | {c : CorrectionState.Context Point} {s : CorrectionState.State Point} |
| 690 | (labels : ℕ → Finset ι) (b : ι → CorrectionState.HarmonicBlock Point) |
| 691 | (G A : ι → HarmonicResidual.BlockCoefficients Point) |
| 692 | (hrep : HarmonicResidual.BlockRepresentation labels b G A s) |
| 693 | (hmean : LiftedMeanResidual.MeanHypotheses V c s) |
| 694 | (hreg : ∀ n, N ≤ n → HarmonicResidual.ExtractionRegular V c s labels b G A n) |
| 695 | (hb : NativeBounds N (HarmonicResidual.liftDomain V) gain (fun m => β * m) |
| 696 | (fun l => (HarmonicResidual.residualBlock c s (b l) (G l) (A l)).oscillation)) |
| 697 | (label : ℕ → ι → SlotColoring.Label) |
| 698 | (hinj : ∀ n, N ≤ n → Set.InjOn (label n) (labels n : Set ι)) |
| 699 | (hlevel : ∀ n, N ≤ n → ∀ l ∈ labels n, 1 ≤ (label n l).1) |
| 700 | (d : ℝ) (χ : ℕ → Cylinder → WindowPoint) |
| 701 | (hχ : ∀ n, N ≤ n → ContinuousOn (χ n) (HarmonicResidual.liftDomain V)) |
| 702 | (hs : ∀ n, N ≤ n → ∀ l ∈ labels n, ∀ x ∈ HarmonicResidual.liftDomain V, |
| 703 | (HarmonicResidual.residualBlock c s (b l) (G l) (A l)).oscillation n x ≠ 0 → |
| 704 | χ n x ∈ closedWindow d (label n l)) |
| 705 | (hm : NativeBounds N (HarmonicResidual.liftDomain V) gain (fun m => β * m) |
| 706 | (fun (_ : Unit) n (x : Cylinder) => s.meanGoodResidual c n x.1)) |
| 707 | (he : NativeBounds N (HarmonicResidual.liftDomain V) gain (fun m => β * m) |
| 708 | (fun (_ : Unit) => s.errors.total)) : |
| 709 | NativeBounds N (HarmonicResidual.liftDomain V) gain (fun m => β * m) |
| 710 | (fun (_ : Unit) => LiftedMeanResidual.fullResidual c s) := by |
| 711 | have hU : IsOpen (HarmonicResidual.liftDomain V) := HarmonicResidual.liftDomain_open hV |
| 712 | have hsum := hb.window_sum hU labels label hinj hlevel d χ hχ hs |
| 713 | apply ((hsum.add hN hU hm).add hN hU he).congr hU |
| 714 | intro _ n hn x hx |
| 715 | ext i |
| 716 | simpa only [Pi.add_apply, Finset.sum_apply] using |
| 717 | (state_fullResidual_reconstructed hV hrep hmean (hreg n hn) hx i).symm |
| 718 | |
| 719 | /-! ## One physical residual, selected comparable bands, and the base patch -/ |
| 720 | |
| 721 | noncomputable def residual (u : VelocityField) (p : PressureField) : SpaceTime → Space := |
| 722 | fun w => navierStokesResidual u p w.1 w.2 |
| 723 | |
| 724 | noncomputable def changedSupport (u u₀ : VelocityField) (p p₀ : PressureField) : Set SpaceTime := |
| 725 | tsupport (fun w => u w - u₀ w) ∪ tsupport (fun w => p w - p₀ w) |
| 726 | |
| 727 | theorem residual_germ_off_changedSupport {u u₀ : VelocityField} {p p₀ : PressureField} |
| 728 | {w : SpaceTime} (hw : w ∉ changedSupport u u₀ p p₀) : |
| 729 | residual u p =ᶠ[𝓝 w] residual u₀ p₀ := by |
| 730 | have hu : u =ᶠ[𝓝 w] u₀ := by |
| 731 | have hz := notMem_tsupport_iff_eventuallyEq.mp (fun h => hw (Or.inl h)) |
| 732 | filter_upwards [hz] with y hy |
| 733 | exact sub_eq_zero.mp hy |
| 734 | have hp : p =ᶠ[𝓝 w] p₀ := by |
| 735 | have hz := notMem_tsupport_iff_eventuallyEq.mp (fun h => hw (Or.inr h)) |
| 736 | filter_upwards [hz] with y hy |
| 737 | exact sub_eq_zero.mp hy |
| 738 | exact ResidualRegularity.residual_eventuallyEq hu hp |
| 739 | |
| 740 | /-- The loss contains the actual physical residual degree, graph derivative |
| 741 | loss, one polynomial-in-band absorption, and the fixed phase loss. -/ |
| 742 | noncomputable def physicalLoss (h β : ℝ) (m : ℕ) : ℝ := |
| 743 | PhysicalMeanJetBounds.loss (residualDegree h) m + β * m |
| 744 | |
| 745 | /-- Exact realization on the true polar charts. This is a value identity, |
| 746 | not a derivative or size estimate; a primitive-state constructor is below. -/ |
| 747 | def ChartIdentity (a h : ℝ) (N : ℕ) (gap : ℕ → ℕ) (U : Set Cylinder) |
| 748 | (F : ℕ → Cylinder → Components) (R : SpaceTime → Space) : Prop := |
| 749 | ∀ n, N ≤ n → ∀ j w, w ∈ preterminal → |
| 750 | PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j → |
| 751 | polarGraph a h j n (gap n) w ∈ U → |
| 752 | R w = cartesianPull a h j n (gap n) (residualDegree h) (F n) w |
| 753 | |
| 754 | theorem ChartIdentity.germ {a b h : ℝ} {N : ℕ} {gap : ℕ → ℕ} {U : Set Cylinder} |
| 755 | {F : ℕ → Cylinder → Components} {R : SpaceTime → Space} |
| 756 | (ha : 0 < a) (hU : IsOpen U) (hreal : ChartIdentity a h N gap U F R) |
| 757 | {n : ℕ} (hn : N ≤ n) (j : PolarCharts.Index) {w : SpaceTime} |
| 758 | (hw : w ∈ preterminal) |
| 759 | (hann : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b) |
| 760 | (hj : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) |
| 761 | (hx : polarGraph a h j n (gap n) w ∈ U) : |
| 762 | R =ᶠ[𝓝 w] cartesianPull a h j n (gap n) (residualDegree h) (F n) := by |
| 763 | have haxis := PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hann) |
| 764 | have hg : ContinuousAt (polarGraph a h j n (gap n)) w := |
| 765 | (polarLift_smooth ha j).continuous.continuousAt.comp |
| 766 | (commonLift_smoothAt h n (gap n) haxis).continuousAt |
| 767 | filter_upwards [preterminal_open.mem_nhds hw, |
| 768 | (PhysicalGraphBounds.scaledRadial n).continuous.continuousAt |
| 769 | ((PolarCharts.chartDomain_open a j).mem_nhds hj), hg (hU.mem_nhds hx)] with y hy hyj hyU |
| 770 | exact hreal n hn j y hy hyj hyU |
| 771 | |
| 772 | /-- Geometric support and exact coherent realization of the same physical |
| 773 | fields. No physical residual bound or global raw smoothness is a field. -/ |
| 774 | structure ResidualChartData (a b h : ℝ) (N Δ : ℕ) (U : Set Cylinder) |
| 775 | (F : ℕ → Cylinder → Components) (u u₀ : VelocityField) (p p₀ : PressureField) where |
| 776 | active : Set SpaceTime |
| 777 | changed_subset : changedSupport u u₀ p p₀ ⊆ active |
| 778 | gap : ℕ → ℕ |
| 779 | gap_le : ∀ n, N ≤ n → gap n ≤ Δ |
| 780 | realization : ChartIdentity a h N gap U F (residual u p) |
| 781 | annulus : ∀ n, N ≤ n → ∀ w, w ∈ preterminal → |
| 782 | physicalQ h w / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * physicalQ h w → |
| 783 | w ∈ active → |
| 784 | PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b |
| 785 | in_domain : ∀ n, N ≤ n → ∀ w, w ∈ preterminal → |
| 786 | physicalQ h w / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * physicalQ h w → |
| 787 | w ∈ active → ∀ j, |
| 788 | PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j → |
| 789 | polarGraph a h j n (gap n) w ∈ U |
| 790 | |
| 791 | /-- A comparable band is proved to exist at each supported point. Outside |
| 792 | the correction support the actual finite residual has the base residual germ. -/ |
| 793 | theorem ResidualChartData.residual_jet_bound {a b h gain β : ℝ} {N Δ : ℕ} {U : Set Cylinder} |
| 794 | {F : ℕ → Cylinder → Components} {u u₀ : VelocityField} {p p₀ : PressureField} |
| 795 | (d : ResidualChartData a b h N Δ U F u u₀ p p₀) |
| 796 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hN : 4 ≤ N) (hU : IsOpen U) |
| 797 | (hF : NativeBounds N U gain (fun m => β * m) (fun (_ : Unit) => F)) (m : ℕ) : |
| 798 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w, w ∈ preterminal → |w.1| ≤ 1 → physicalQ h w ≤ ChartScales.Q N → |
| 799 | w ∈ d.active → ‖iteratedFDeriv ℝ m (residual u p) w‖ ≤ |
| 800 | C * physicalQ h w ^ (gain - physicalLoss h β m) := by |
| 801 | obtain ⟨A, hA, e, hjet⟩ := hF.bounds m |
| 802 | obtain ⟨C, hC, hb⟩ := cartesianPull_jet_bound (b := b) hh.le hh1.le ha Δ m |
| 803 | (gain - β * m) (residualDegree h) e A hA |
| 804 | refine ⟨C, hC, ?_⟩ |
| 805 | intro w hw ht hsmall hs |
| 806 | have hq := physicalQ_pos hh hh1 hw |
| 807 | obtain ⟨n, hn, hlo, hhi⟩ := PhysicalMeanJetBounds.exists_comparable_band N hq hsmall |
| 808 | have hlo' : physicalQ h w / 2 ≤ ChartScales.Q n := by linarith |
| 809 | have hann := d.annulus n hn w hw hlo' hhi.le hs |
| 810 | obtain ⟨j, hj⟩ := PolarCharts.annulus_covered ha hann |
| 811 | have hc := PolarCharts.sector_subset_chartDomain ha j hj |
| 812 | have hdom := d.in_domain n hn w hw hlo' hhi.le hs j hc |
| 813 | rw [iteratedFDeriv_eq_of_eventuallyEq (d.realization.germ ha hU hn j hw hann hc hdom) m] |
| 814 | have he := hb n (hN.trans hn) (d.gap n) (d.gap_le n hn) w hann ht (physicalQ h w) hq |
| 815 | hlo' hhi.le j (F n) (SmoothNear.of_open hU (hF.smooth () n hn) hdom) |
| 816 | (by simpa only [Real.rpow_natCast] using hjet () n hn _ hdom) |
| 817 | have hexp : gain - β * m - PhysicalMeanJetBounds.loss (residualDegree h) m = |
| 818 | gain - physicalLoss h β m := by unfold physicalLoss; ring |
| 819 | simpa only [hexp] using he |
| 820 | |
| 821 | theorem eventually_time_small (x : Space) : |
| 822 | ∀ᶠ w : SpaceTime in 𝓝[SpacetimeEndpoint.openPast 1] (1, x), |w.1| ≤ 1 := by |
| 823 | have ht₀ : ∀ᶠ w : SpaceTime in 𝓝 (1, x), 0 < w.1 := |
| 824 | (isOpen_lt continuous_const continuous_fst).mem_nhds (by norm_num) |
| 825 | have ht : ∀ᶠ w : SpaceTime in 𝓝[SpacetimeEndpoint.openPast 1] (1, x), 0 < w.1 := |
| 826 | Filter.Eventually.filter_mono nhdsWithin_le_nhds ht₀ |
| 827 | filter_upwards [ht, self_mem_nhdsWithin] with w hpos hpast |
| 828 | rw [abs_of_pos hpos] |
| 829 | exact hpast.1.le |
| 830 | |
| 831 | /-- The finite-residual rate consumed by the diagonal assembly. The same |
| 832 | `physicalLoss h β m` works for every stage and every native exponent `gain`. -/ |
| 833 | theorem ResidualChartData.residual_jetRate {a b h gain β : ℝ} {N Δ : ℕ} {U : Set Cylinder} |
| 834 | {F : ℕ → Cylinder → Components} {u u₀ : VelocityField} {p p₀ : PressureField} |
| 835 | (d : ResidualChartData a b h N Δ U F u u₀ p p₀) |
| 836 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hN : 4 ≤ N) (hU : IsOpen U) |
| 837 | (hF : NativeBounds N U gain (fun m => β * m) (fun (_ : Unit) => F)) (m : ℕ) |
| 838 | (hbase : DiagonalResidual.JetRate |
| 839 | ((𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) ⊓ 𝓟 d.activeᶜ) |
| 840 | (physicalQ h) (residual u₀ p₀) m (gain - physicalLoss h β m)) : |
| 841 | DiagonalResidual.JetRate (𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) |
| 842 | (physicalQ h) (residual u p) m (gain - physicalLoss h β m) := by |
| 843 | obtain ⟨C, hC, hb⟩ := d.residual_jet_bound hh hh1 ha hN hU hF m |
| 844 | obtain ⟨B, hB, hbase⟩ := hbase |
| 845 | rw [Filter.eventually_inf_principal] at hbase |
| 846 | have hsmall : ∀ᶠ w : SpaceTime in 𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space)), |
| 847 | physicalQ h w ≤ ChartScales.Q N := |
| 848 | (AnnularEndpoint.physicalQ_tendsto_zero hh hh1 (by simp)).eventually |
| 849 | (eventually_le_nhds (ChartScales.Q_pos N)) |
| 850 | refine ⟨B + C, add_nonneg hB hC, ?_⟩ |
| 851 | filter_upwards [hbase, hsmall, eventually_time_small (0 : Space), self_mem_nhdsWithin] |
| 852 | with w hbw hsw ht hw |
| 853 | have hp : w ∈ preterminal := hw.1 |
| 854 | have hq := physicalQ_pos hh hh1 hp |
| 855 | by_cases hs : w ∈ d.active |
| 856 | · exact (hb w hp ht hsw hs).trans (mul_le_mul_of_nonneg_right |
| 857 | (le_add_of_nonneg_left hB) (Real.rpow_pos_of_pos hq _).le) |
| 858 | · rw [iteratedFDeriv_eq_of_eventuallyEq |
| 859 | (residual_germ_off_changedSupport (fun hc => hs (d.changed_subset hc))) m] |
| 860 | exact (hbw hs).trans (mul_le_mul_of_nonneg_right |
| 861 | (le_add_of_nonneg_right hC) (Real.rpow_pos_of_pos hq _).le) |
| 862 | |
| 863 | /-! ## Primitive physical-state realization -/ |
| 864 | |
| 865 | noncomputable def bandGraph (h : ℝ) (n d : ℕ) : PhysicalResidualBridge.ScaledGraph := |
| 866 | PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d) |
| 867 | |
| 868 | theorem polarGraph_eq_meanGraph {a : ℝ} (ha : 0 < a) (h : ℝ) (j : PolarCharts.Index) |
| 869 | (n d : ℕ) {w : SpaceTime} |
| 870 | (hw : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) : |
| 871 | polarGraph a h j n d w = |
| 872 | (PhysicalMeanJetBounds.graph h n d w, ResidualPolarGraph.angle a j n w) := by |
| 873 | apply Prod.ext |
| 874 | · apply Prod.ext |
| 875 | · change (PolarCharts.chart a j (PhysicalGraphBounds.liftXY (commonLift h n d w))).1 = _ |
| 876 | rw [PhysicalClassBounds.liftXY_commonLift] |
| 877 | exact ResidualPolarGraph.chart_radius_eq_graph ha h j n d hw |
| 878 | · rfl |
| 879 | · change (PolarCharts.chart a j (PhysicalGraphBounds.liftXY (commonLift h n d w))).2 = _ |
| 880 | rw [PhysicalClassBounds.liftXY_commonLift] |
| 881 | rfl |
| 882 | |
| 883 | /-- All assumptions refer to the primitive physical fields or the already |
| 884 | fixed base-pressure equation. No residual equality or estimate is assumed. -/ |
| 885 | structure StateRealization (h : ℝ) (N : ℕ) (gap : ℕ → ℕ) (U : Set Cylinder) |
| 886 | (c : CorrectionState.Context Point) (s : CorrectionState.State Point) |
| 887 | (p₀ : ℕ → Cylinder → ℝ) (u : VelocityField) (P : PressureField) : Prop where |
| 888 | domain_open : IsOpen U |
| 889 | radius_ne : ∀ x ∈ U, x.1.1 ≠ 0 |
| 890 | gap_native : ∀ n, N ≤ n → gap n ≤ ChartScales.nativeIndex h n |
| 891 | matching : ∀ n, N ≤ n → PhysicalResidualTZ.MatchesAtTZ c.operators (bandGraph h n (gap n)) n |
| 892 | base_smooth : ∀ n, N ≤ n → ∀ i, |
| 893 | ContDiffOn ℝ ∞ (fun x => PhysicalResidualBridge.baseComponents c n x i) U |
| 894 | increment_smooth : ∀ n, N ≤ n → ∀ i, |
| 895 | ContDiffOn ℝ ∞ (fun x => PhysicalResidualBridge.incrementComponents s n x i) U |
| 896 | base_pressure_smooth : ∀ n, N ≤ n → ContDiffOn ℝ ∞ (p₀ n) U |
| 897 | pressure_smooth : ∀ n, N ≤ n → ContDiffOn ℝ ∞ (s.totalPressureIncrement n) U |
| 898 | base_equation : ∀ n, N ≤ n → ∀ x ∈ U, ∀ i, |
| 899 | PhysicalResidualBridge.graphResidual (ChartScales.Q n ^ h) |
| 900 | PhysicalResidualBridge.ScaledGraph.radius |
| 901 | (PhysicalResidualTZ.graphRadialTZ (bandGraph h n (gap n))) PhysicalResidualTZ.graphAngularTZ |
| 902 | (PhysicalResidualTZ.graphAxialTZ (bandGraph h n (gap n))) |
| 903 | (PhysicalResidualTZ.graphTemporalTZ (bandGraph h n (gap n))) |
| 904 | (PhysicalResidualBridge.baseComponents c n) (p₀ n) x i = |
| 905 | LiftedMeanResidual.virtualDivergence c n x i + s.errors.base n x i |
| 906 | physical_velocity_smooth : ∀ n, N ≤ n → ∀ z ∈ preterminal, |
| 907 | z ∈ PhysicalResidualTZ.graphSourceTZ (bandGraph h n (gap n)) U → |
| 908 | ContDiffAt ℝ 2 u (z.1, CylindricalResidual.chart z.2) |
| 909 | physical_pressure_differentiable : ∀ n, N ≤ n → ∀ z ∈ preterminal, |
| 910 | z ∈ PhysicalResidualTZ.graphSourceTZ (bandGraph h n (gap n)) U → |
| 911 | DifferentiableAt ℝ P (z.1, CylindricalResidual.chart z.2) |
| 912 | velocity_germ : ∀ n, N ≤ n → ∀ z ∈ preterminal, |
| 913 | z ∈ PhysicalResidualTZ.graphSourceTZ (bandGraph h n (gap n)) U → |
| 914 | (fun y : SpaceTime => u (y.1, CylindricalResidual.chart y.2)) =ᶠ[𝓝 z] |
| 915 | (fun y => CylindricalResidual.frame (y.2 1) |
| 916 | (PhysicalResidualTZ.velocityTZ (bandGraph h n (gap n)) |
| 917 | (fun x i => PhysicalResidualBridge.baseComponents c n x i + |
| 918 | PhysicalResidualBridge.incrementComponents s n x i) y)) |
| 919 | pressure_germ : ∀ n, N ≤ n → ∀ z ∈ preterminal, |
| 920 | z ∈ PhysicalResidualTZ.graphSourceTZ (bandGraph h n (gap n)) U → |
| 921 | CylindricalResidual.pressurePullback P =ᶠ[𝓝 z] |
| 922 | PhysicalResidualTZ.pressureTZ (bandGraph h n (gap n)) |
| 923 | (fun x => p₀ n x + s.totalPressureIncrement n x) |
| 924 | |
| 925 | /-- The exact Cartesian reconstruction follows from the concrete |
| 926 | Navier--Stokes operator identity, after the genuine polar inverse. -/ |
| 927 | theorem StateRealization.chartIdentity {a h : ℝ} {N : ℕ} {gap : ℕ → ℕ} {U : Set Cylinder} |
| 928 | {c : CorrectionState.Context Point} {s : CorrectionState.State Point} |
| 929 | {p₀ : ℕ → Cylinder → ℝ} {u : VelocityField} {P : PressureField} |
| 930 | (ha : 0 < a) (r : StateRealization h N gap U c s p₀ u P) : |
| 931 | ChartIdentity a h N gap U (LiftedMeanResidual.fullResidual c s) (residual u P) := by |
| 932 | intro n hn j w hw hj hU |
| 933 | let z := ResidualPolarGraph.cylindricalPoint a j n w |
| 934 | have hztime : z ∈ preterminal := hw |
| 935 | have hzcart : (z.1, CylindricalResidual.chart z.2) = w := |
| 936 | ResidualPolarGraph.spacetimeChart_cylindricalPoint ha j n hj |
| 937 | have hzangle : z.2 1 = ResidualPolarGraph.angle a j n w := |
| 938 | ResidualPolarGraph.cylindricalPoint_angle a j n w |
| 939 | have hzgraph : PhysicalResidualTZ.graphMapTZ (bandGraph h n (gap n)) z = |
| 940 | polarGraph a h j n (gap n) w := by |
| 941 | rw [polarGraph_eq_meanGraph ha h j n (gap n) hj] |
| 942 | exact ResidualPolarGraph.graphMapTZ_cylindricalPoint ha h j n (gap n) (r.gap_native n hn) hj |
| 943 | have hzU : z ∈ PhysicalResidualTZ.graphSourceTZ (bandGraph h n (gap n)) U := |
| 944 | ⟨ResidualPolarGraph.cylindricalPoint_radius_pos ha j n hj, hzgraph.symm ▸ hU⟩ |
| 945 | have hu : ContDiffAt ℝ 2 u (z.1, CylindricalResidual.chart z.2) := |
| 946 | r.physical_velocity_smooth n hn z hztime hzU |
| 947 | have hP : DifferentiableAt ℝ P (z.1, CylindricalResidual.chart z.2) := |
| 948 | r.physical_pressure_differentiable n hn z hztime hzU |
| 949 | have he : ∀ i, LiftedMeanResidual.fullResidual c s n (polarGraph a h j n (gap n) w) i = |
| 950 | ChartScales.Q n ^ residualDegree h * |
| 951 | CylindricalResidual.frame (-ResidualPolarGraph.angle a j n w) (residual u P w) i := by |
| 952 | intro i |
| 953 | have hi := PhysicalResidualTZ.context_fullResidual_physicalTZ (ChartScales.Q_pos n) h |
| 954 | (ChartScales.nativeIndex h n - gap n) n c s (r.matching n hn) r.domain_open r.radius_ne |
| 955 | (r.base_smooth n hn) (r.increment_smooth n hn) (r.base_pressure_smooth n hn) |
| 956 | (r.pressure_smooth n hn) hzU (r.base_equation n hn _ hzU.2) hu hP |
| 957 | (r.velocity_germ n hn z hztime hzU) (r.pressure_germ n hn z hztime hzU) i |
| 958 | change LiftedMeanResidual.fullResidual c s n (PhysicalResidualTZ.graphMapTZ (bandGraph h n (gap n)) z) i = |
| 959 | ChartScales.Q n ^ residualDegree h * |
| 960 | CylindricalResidual.frame (-(z.2 1)) (residual u P (z.1, CylindricalResidual.chart z.2)) i at hi |
| 961 | rw [hzgraph, hzangle, hzcart] at hi |
| 962 | exact hi |
| 963 | have hout := physical_vector_of_components (ChartScales.Q_pos n) h |
| 964 | (ResidualPolarGraph.angle a j n w) |
| 965 | (LiftedMeanResidual.fullResidual c s n (polarGraph a h j n (gap n) w)) (residual u P w) he |
| 966 | exact hout |
| 967 | |
| 968 | /-! ## Weighted invariant and finite-stage consumers -/ |
| 969 | |
| 970 | /-- The concrete uniform harmonic invariant supplies the uniform part of |
| 971 | each weighted coefficient input; all remaining hypotheses are geometry. -/ |
| 972 | theorem coefficient_source_of_uniformVelocity {ι : Type} {s : StripData Point} |
| 973 | {h α : ℝ} {P : ι → ℕ → Point → ℝ} |
| 974 | {b : ι → CorrectionState.HarmonicBlock Point} |
| 975 | (hb : UniformHarmonicInteraction.UniformVelocity s P α b) |
| 976 | (hflat : ∃ cL cR L : ℝ, ∃ ρ : Point → ℝ, PhysicalClassBounds.FlatGeometry s cL cR L ρ) |
| 977 | (hw : ∃ c : ℝ, 0 < c ∧ ∀ l n x, x ∈ s.domain → Real.sqrt (s.zeta x) * P l n x ≤ s.zeta x ^ c) |
| 978 | (he : ∀ n, s.epsilon n = ChartScales.epsilon h n) |
| 979 | (hslow : ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n, 4 ≤ n → s.slow n ≤ C * ChartScales.S n ^ p) |
| 980 | (i : Fin 3) (j : ℤ) (hj : j ≠ 0) : |
| 981 | LocalSourceBounds s h α (fun l n x => Real.sqrt (s.zeta x) * P l n x) |
| 982 | (fun l n x => (b l).velocity n i j x) := |
| 983 | ⟨hb i j hj, hflat, hw, he, hslow⟩ |
| 984 | |
| 985 | /-- This adapter uses the actual smooth edge extension of each coefficient, |
| 986 | then lifts it to the angular product. The raw totalization need not be smooth. -/ |
| 987 | theorem block_nativeBounds_of_weighted {ι : Type} {N : ℕ} {V : Set Point} |
| 988 | {h α β : ℝ} {s : StripData Point} {w : ι → ℕ → Point → ℝ} |
| 989 | (hN : 4 ≤ N) (hV : IsOpen V) (hβ : 0 ≤ β) |
| 990 | (b : ι → CorrectionState.HarmonicBlock Point) (J : Finset ℤ) |
| 991 | (hs : ∀ l n, N ≤ n → ∀ i, ((b l).velocity n i).support ⊆ J) |
| 992 | (ha : ∀ i j, j ∈ J → LocalSourceBounds s h α w (fun l n x => (b l).velocity n i j x)) |
| 993 | (hsm : ∀ i j, j ∈ J → ∀ l n, N ≤ n → ContDiffOn ℝ ∞ ((b l).velocity n i j) V) |
| 994 | (hcover : ∀ i j, j ∈ J → ∀ l n, N ≤ n → ∀ x ∈ V, |
| 995 | x ∈ closure s.domain ∨ x ∉ tsupport ((b l).velocity n i j)) |
| 996 | (hΦ : ∀ i j, j ∈ J → SupportedPhaseBounds N (HarmonicResidual.liftDomain V) β |
| 997 | (fun l n (x : Cylinder) => (b l).velocity n i j x.1) (fun l => fullPhase (b l) j)) : |
| 998 | NativeBounds N (HarmonicResidual.liftDomain V) (h * α) (fun m => β * m) |
| 999 | (fun l => (b l).oscillation) := by |
| 1000 | apply block_nativeBounds (by omega) (HarmonicResidual.liftDomain_open hV) hβ b J hs _ hΦ |
| 1001 | intro i j hj |
| 1002 | have hc := NativeBounds.of_localSource hN hV (ha i j hj) (hsm i j hj) (hcover i j hj) |
| 1003 | let π : Cylinder →L[ℝ] Point := ContinuousLinearMap.fst ℝ Point ℝ |
| 1004 | have hπ : ‖π‖ ≤ 1 := by |
| 1005 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 1006 | intro x |
| 1007 | simp only [one_mul] |
| 1008 | exact norm_fst_le x |
| 1009 | have hp := hc.pull_linear hV π hπ |
| 1010 | have hdom : π ⁻¹' V = HarmonicResidual.liftDomain V := by |
| 1011 | ext x |
| 1012 | simp [π, HarmonicResidual.liftDomain] |
| 1013 | rw [hdom] at hp |
| 1014 | exact hp |
| 1015 | |
| 1016 | /-- Raising the fixed derivative loss never changes a coefficient field. -/ |
| 1017 | theorem NativeBounds.to_phaseLoss {D E ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 1018 | [NormedAddCommGroup E] [NormedSpace ℝ E] {N : ℕ} {U : Set D} {gain gain' β : ℝ} |
| 1019 | {f : ι → ℕ → D → E} (hf : NativeBounds N U gain (fun _ => 0) f) |
| 1020 | (hN : 1 ≤ N) (hβ : 0 ≤ β) (hg : gain' ≤ gain) : |
| 1021 | NativeBounds N U gain' (fun m => β * m) f := by |
| 1022 | apply hf.weaken hN |
| 1023 | intro m |
| 1024 | have hm := mul_nonneg hβ (Nat.cast_nonneg m : (0 : ℝ) ≤ m) |
| 1025 | linarith |
| 1026 | |
| 1027 | theorem excluded_nativeBounds {N : ℕ} {U : Set Cylinder} {gain : ℝ} {loss : ℕ → ℝ} |
| 1028 | (hN : 1 ≤ N) (hU : IsOpen U) (e : CorrectionState.ExcludedErrors Point) |
| 1029 | (hb : NativeBounds N U gain loss (fun (_ : Unit) => e.base)) |
| 1030 | (hg : NativeBounds N U gain loss (fun (_ : Unit) => e.gaussian)) |
| 1031 | (ha : NativeBounds N U gain loss (fun (_ : Unit) => e.aliasError)) : |
| 1032 | NativeBounds N U gain loss (fun (_ : Unit) => e.total) := by |
| 1033 | have he := (hb.add hN hU hg).add hN hU ha |
| 1034 | simp only [CorrectionState.ExcludedErrors.total] at he ⊢ |
| 1035 | exact he |
| 1036 | |
| 1037 | /-- An actual exterior zero germ proves every exterior residual rate. -/ |
| 1038 | theorem jetRate_of_zero_germs {l : Filter SpaceTime} {q : SpaceTime → ℝ} |
| 1039 | {R : SpaceTime → Space} (hz : ∀ᶠ w in l, R =ᶠ[𝓝 w] fun _ => 0) (m : ℕ) (r : ℝ) : |
| 1040 | DiagonalResidual.JetRate l q R m r := by |
| 1041 | refine ⟨0, le_rfl, ?_⟩ |
| 1042 | filter_upwards [hz] with w hw |
| 1043 | rw [iteratedFDeriv_eq_of_eventuallyEq hw m, iteratedFDeriv_fun_zero] |
| 1044 | simp |
| 1045 | |
| 1046 | /-- One fixed loss function applies to the actual residual after every |
| 1047 | finite correction stage. Constants and the finite harmonic cutoff may vary |
| 1048 | with the stage; the band floor, cover gap and phase loss stay fixed. -/ |
| 1049 | theorem finite_residual_rates {a b h β : ℝ} {N Δ : ℕ} {gain : ℕ → ℝ} |
| 1050 | {U : ℕ → Set Cylinder} {F : ℕ → ℕ → Cylinder → Components} |
| 1051 | {u : ℕ → VelocityField} {p : ℕ → PressureField} {u₀ : VelocityField} {p₀ : PressureField} |
| 1052 | (d : ∀ J, ResidualChartData a b h N Δ (U J) (F J) (u J) u₀ (p J) p₀) |
| 1053 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hN : 4 ≤ N) (hU : ∀ J, IsOpen (U J)) |
| 1054 | (hF : ∀ J, NativeBounds N (U J) (gain J) (fun m => β * m) (fun (_ : Unit) => F J)) |
| 1055 | (hbase : ∀ J m, DiagonalResidual.JetRate |
| 1056 | ((𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) ⊓ 𝓟 (d J).activeᶜ) |
| 1057 | (physicalQ h) (residual u₀ p₀) m (gain J - physicalLoss h β m)) : |
| 1058 | ∀ J m, DiagonalResidual.JetRate (𝓝[SpacetimeEndpoint.openPast 1] (1, (0 : Space))) |
| 1059 | (physicalQ h) (fun z => navierStokesResidual (u J) (p J) z.1 z.2) |
| 1060 | m (gain J - physicalLoss h β m) := |
| 1061 | fun J m => (d J).residual_jetRate hh hh1 ha hN (hU J) (hF J) m (hbase J m) |
| 1062 | |
| 1063 | end NavierStokes.PhysicalResidualJetBounds |