import Euler.ParameterWordCalculus import Euler.ParameterSobolevBlocks /-! Local equality preserves genuine fixed-Sobolev external derivative blocks. -/ /-! ## From `Euler/ParameterWordLocal.lean` The text of `Euler/ParameterWordLocal.lean`, folded into this file, which was its only importer. -/ section /-! Actual ordered derivative sums depend only on the local function germ. -/ noncomputable section namespace EulerParameterWordGevrey open scoped Topology variable {P E ι : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] omit [Fintype ι] in /-- Equality on a genuine neighborhood identifies every actual ordered word derivative. -/ theorem wordDerivative_eq_of_eventuallyEq (directions : ι → P) {f g : P → E} {x : P} (h : f =ᶠ[𝓝 x] g) {n : ℕ} (w : Fin n → ι) : wordDerivative directions f w x = wordDerivative directions g w x := by unfold wordDerivative rw [(h.iteratedFDeriv ℝ n).eq_of_nhds] /-- The identical external-word sum transfers across local equality, with no radius factor. -/ theorem wordSum_eq_of_eventuallyEq (directions : ι → P) {f g : P → E} {x : P} (h : f =ᶠ[𝓝 x] g) (n : ℕ) : wordSum directions f n x = wordSum directions g n x := by unfold wordSum apply Finset.sum_congr rfl intro w _ rw [wordDerivative_eq_of_eventuallyEq directions h w] end EulerParameterWordGevrey end end noncomputable section namespace EulerParameterWordGevrey open scoped Topology variable {P E ι : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] [Fintype ι] /-- A fixed finite Sobolev sum depends only on the actual function germ. -/ theorem baseSize_eq_of_eventuallyEq (directions : ι → P) (q : ℕ) {f g : P → E} {x : P} (h : f =ᶠ[𝓝 x] g) : baseSize directions q f x = baseSize directions q g x := by unfold baseSize exact Finset.sum_congr rfl (fun k _ => wordSum_eq_of_eventuallyEq directions h k) /-- All inner and external word derivatives agree under equality on a neighborhood. -/ theorem block_eq_of_eventuallyEq (directions : ι → P) (q : ℕ) {f g : P → E} {x : P} (h : f =ᶠ[𝓝 x] g) (n : ℕ) : block directions q f n x = block directions q g n x := by unfold block apply Finset.sum_congr rfl intro w _ apply baseSize_eq_of_eventuallyEq directions q filter_upwards [h.iteratedFDeriv ℝ n] with y hy exact congrArg (fun D : P [×n]→L[ℝ] E => D (fun j => directions (w j))) hy end EulerParameterWordGevrey