import Euler.SobolevHeatVolterra import Euler.VolterraUniqueness /-! Quantitative bounds for the actual projected linear-plus-quadratic source of the correction equation. -/ noncomputable section namespace EulerQuadraticSource open MeasureTheory Set open scoped Topology variable {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [NormedAddCommGroup Y] [NormedSpace ℝ Y] /-- A pressure-projected source with actual forcing, linear terms, and quadratic terms. -/ def source (P : Y →L[ℝ] Y) (r : Y) (A : X →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (u : X) : Y := -(P (r + A u + B u u)) /-- The actual quadratic source is jointly continuous in every coefficient and its unknown. -/ theorem source_continuous {T : Type*} [TopologicalSpace T] (P : T → Y →L[ℝ] Y) (r : T → Y) (A : T → X →L[ℝ] Y) (B : T → X →L[ℝ] X →L[ℝ] Y) (hP : Continuous P) (hr : Continuous r) (hA : Continuous A) (hB : Continuous B) : Continuous (fun p : T × X => source (P p.1) (r p.1) (A p.1) (B p.1) p.2) := by exact ((hP.comp continuous_fst).clm_apply (((hr.comp continuous_fst).add ((hA.comp continuous_fst).clm_apply continuous_snd)).add (((hB.comp continuous_fst).clm_apply continuous_snd).clm_apply continuous_snd))).neg /-- The exact product difference identity needs no symmetry of the bilinear source. -/ theorem quadratic_sub (B : X →L[ℝ] X →L[ℝ] Y) (u v : X) : B u u - B v v = B (u-v) u + B v (u-v) := by simp only [map_sub, sub_apply] abel /-- The quadratic source has the genuine pointwise bound used for Picard existence. -/ theorem source_bound (P : Y →L[ℝ] Y) (r : Y) (A : X →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (R : ℝ) (hR : 0 ≤ R) (u : X) (hu : ‖u‖ ≤ R) : ‖source P r A B u‖ ≤ ‖P‖ * (‖r‖ + ‖A‖ * R + ‖B‖ * R^2) := by have hA := (A.le_opNorm u).trans (mul_le_mul_of_nonneg_left hu (norm_nonneg A)) have hB := (B.le_opNorm₂ u u).trans (mul_le_mul (mul_le_mul_of_nonneg_left hu (norm_nonneg B)) hu (norm_nonneg u) (mul_nonneg (norm_nonneg B) hR)) have hs : ‖r + A u + B u u‖ ≤ ‖r‖ + ‖A‖ * R + ‖B‖ * R^2 := by calc ‖r + A u + B u u‖ ≤ ‖r‖ + ‖A u‖ + ‖B u u‖ := (norm_add_le _ _).trans (add_le_add (norm_add_le _ _) le_rfl) _ ≤ ‖r‖ + ‖A‖ * R + ‖B‖ * R * R := add_le_add (add_le_add le_rfl hA) hB _ = _ := by ring simpa only [source, norm_neg] using (P.le_opNorm (r + A u + B u u)).trans (mul_le_mul_of_nonneg_left hs (norm_nonneg P)) /-- The quadratic source is Lipschitz on each norm ball, with an explicit finite constant. -/ theorem source_sub_bound (P : Y →L[ℝ] Y) (r : Y) (A : X →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (R : ℝ) (_hR : 0 ≤ R) (u v : X) (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) : ‖source P r A B u - source P r A B v‖ ≤ ‖P‖ * (‖A‖ + 2 * ‖B‖ * R) * ‖u-v‖ := by have he : source P r A B u - source P r A B v = -(P (A (u-v) + B (u-v) u + B v (u-v))) := by simp only [source, map_add, map_sub, sub_apply] abel have h1 : ‖B (u-v) u‖ ≤ ‖B‖ * ‖u-v‖ * R := (B.le_opNorm₂ _ _).trans (mul_le_mul_of_nonneg_left hu (mul_nonneg (norm_nonneg B) (norm_nonneg _))) have h2 : ‖B v (u-v)‖ ≤ ‖B‖ * R * ‖u-v‖ := (B.le_opNorm₂ _ _).trans (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hv (norm_nonneg B)) (norm_nonneg _)) have hs : ‖A (u-v) + B (u-v) u + B v (u-v)‖ ≤ (‖A‖ + 2 * ‖B‖ * R) * ‖u-v‖ := by calc ‖A (u-v) + B (u-v) u + B v (u-v)‖ ≤ ‖A (u-v)‖ + ‖B (u-v) u‖ + ‖B v (u-v)‖ := (norm_add_le _ _).trans (add_le_add (norm_add_le _ _) le_rfl) _ ≤ ‖A‖ * ‖u-v‖ + ‖B‖ * ‖u-v‖ * R + ‖B‖ * R * ‖u-v‖ := add_le_add (add_le_add (A.le_opNorm _) h1) h2 _ = _ := by ring rw [he, norm_neg] exact (P.le_opNorm _).trans ((mul_le_mul_of_nonneg_left hs (norm_nonneg P)).trans_eq (mul_assoc _ _ _).symm) /-- Uniform pointwise coefficient bounds imply the actual source bound on every ball. -/ theorem source_uniform_bound (P : Y →L[ℝ] Y) (r : Y) (A : X →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (p₀ r₀ a₀ b₀ R : ℝ) (hp : ‖P‖ ≤ p₀) (hr : ‖r‖ ≤ r₀) (ha : ‖A‖ ≤ a₀) (hb : ‖B‖ ≤ b₀) (hR : 0 ≤ R) (u : X) (hu : ‖u‖ ≤ R) : ‖source P r A B u‖ ≤ p₀ * (r₀ + a₀*R + b₀*R^2) := by apply (source_bound P r A B R hR u hu).trans apply mul_le_mul hp (add_le_add (add_le_add hr (mul_le_mul_of_nonneg_right ha hR)) (mul_le_mul_of_nonneg_right hb (sq_nonneg R))) · positivity · exact (norm_nonneg P).trans hp /-- Uniform coefficient bounds imply the required local Lipschitz constant. -/ theorem source_uniform_sub_bound (P : Y →L[ℝ] Y) (r : Y) (A : X →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (p₀ a₀ b₀ R : ℝ) (hp : ‖P‖ ≤ p₀) (ha : ‖A‖ ≤ a₀) (hb : ‖B‖ ≤ b₀) (hR : 0 ≤ R) (u v : X) (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) : ‖source P r A B u - source P r A B v‖ ≤ p₀ * (a₀ + 2*b₀*R) * ‖u-v‖ := by apply (source_sub_bound P r A B R hR u v hu hv).trans apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) apply mul_le_mul hp (add_le_add ha (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hb (by norm_num)) hR)) · positivity · exact (norm_nonneg P).trans hp end EulerQuadraticSource