intro n x
unfold angularPeriodize
calc
_ = ∑ᶠ m : Fin2→ℤ,f (x+angularShift T (m+n)) :=by
congr 1
funext m
rw [angularShift_add]
congr 1
abel
_ = _ := finsum_comp_equiv (Equiv.addRight n) (f :=fun m => f (x+angularShift T m))
lemmaangularPeriodize_local_sum {T : ℝ} (hT : 0<T)
{f : Coord3→E} (hc : HasCompactSupport f) (x : Coord3) :
∃s : Finset (Fin2→ℤ),∀ᶠ y in 𝓝 x,
angularPeriodize T f y=∑ n∈s,f (y+angularShift T n) ∧∀ n,n∉s → f (y+angularShift T n)=0:=by
proof · 11
lines
classical
obtain ⟨N,hN,hfin⟩ := angular_translates_locallyFinite hT hc x
refine ⟨hfin.toFinset,?_⟩
filter_upwards [hN] with y hy
have hz (n) (hn : n∉hfin.toFinset) : f (y+angularShift T n)=0:=by
by_contra h
exact hn (hfin.mem_toFinset.mpr ⟨y,h,hy⟩)
exact ⟨finsum_eq_sum_of_support_subset _ (by
intro n hn
by_contra h
exact hn (hz n h)),hz⟩
classical
obtain ⟨s,hs⟩ := angularPeriodize_local_sum hT hc x
havehe : angularPeriodize T f=ᶠ[𝓝 x] (fun y =>∑ n∈s,f (y+angularShift T n)) :=
hs.mono (fun _ h => h.1)
rw [he.fderiv_eq]
havehn : (fun y =>∑ n∈s,f (y+angularShift T n))=∑ n∈s,(fun y => f (y+angularShift T n)) :=by
funext y; simp only [Finset.sum_apply]
rw [hn,fderiv_sum (A:=fun n y => f (y+angularShift T n)) (fun n _ =>
(hf.comp (contDiff_id.add (contDiff_const (c:=angularShift T n)))).differentiable (by simp) x)]
simp only [fderiv_comp_add_right]
symm
apply finsum_eq_sum_of_support_subset
intro n hn
by_contra hns
havehz : (fun y => f (y+angularShift T n))=ᶠ[𝓝 x] (fun _ =>0) :=
hs.mono (fun _ h => h.2 n hns)
have hh := hz.fderiv_eq (𝕜:=ℝ)
rw [fderiv_comp_add_right] at hh
exact hn (hh.trans (fderiv_const_apply (𝕜:=ℝ) (0:E)))
classical
induction s usingFinset.induction with
| empty => simp [symmetricSource_zero]
| @insert a s ha ih =>
simp only [Finset.sum_insert ha]
havehsum : ContDiffℝ (↑(⊤:ℕ∞)) (∑ i∈s,H i) :=by
convert (ContDiff.sum (fun i hi => hH i (Finset.mem_insert_of_mem hi))) using1
funext y; simp only [Finset.sum_apply]
rw [symmetricSource_add (hH a (Finset.mem_insert_self _ _)) hsum hu j,
ih (fun i hi => hH i (Finset.mem_insert_of_mem hi))]
lemmasymmetricSource_angular_translate {T : ℝ} {u : Coord3→Fin2→ℝ}
(hu : AngularPeriodicT u) (H : Coord3→Mat3) (j : Fin2) (n : Fin2→ℤ) (x : Coord3) :
symmetricSource (fun y =>H (y+angularShift T n)) u j x=
symmetricSource H u j (x+angularShift T n) :=by
proof · 7
lines
havehe : (fun y => (H (y+angularShift T n)*gradientColumns (fderiv ℝ u y)).col j)=
(fun y => (H (y+angularShift T n)*gradientColumns (fderiv ℝ u (y+angularShift T n))).col j) :=by
funext y
rw [hu.fderiv n y]
unfold symmetricSource
rw [he]
exact coordinateDivergence_comp_add (fun y => (H y*gradientColumns (fderiv ℝ u y)).col j) _ _
theoremsymmetricSource_angularPeriodize {T : ℝ} (hT : 0<T)
{H : Coord3→Mat3} (hH : ContDiffℝ (↑(⊤:ℕ∞)) H) (hc : HasCompactSupportH)
{u : Coord3→Fin2→ℝ} (hu : ContDiffℝ (↑(⊤:ℕ∞)) u) (hp : AngularPeriodicT u)
(j : Fin2) (x : Coord3) :
symmetricSource (angularPeriodize TH) u j x=angularPeriodize T (symmetricSource H u j) x :=by
proof · 18
lines
classical
obtain ⟨s,hs⟩ := angularPeriodize_local_sum hT hc x
havehe : angularPeriodize TH=ᶠ[𝓝 x] ∑ n∈s,(fun y =>H (y+angularShift T n)) :=by
filter_upwards [hs] with y hy
simpa only [Finset.sum_apply] using hy.1
rw [symmetricSource_congr_nhds he j,
symmetricSource_finset_sum s (fun n y =>H (y+angularShift T n))
(fun n _ => hH.comp (contDiff_id.add (contDiff_const (c:=angularShift T n)))) hu j]
simp only [Finset.sum_apply,symmetricSource_angular_translate hp]
symm
apply finsum_eq_sum_of_support_subset
intro n hn
by_contra hns
havehz : (fun y =>H (y+angularShift T n))=ᶠ[𝓝 x] (0 : Coord3→Mat3) :=
hs.mono (fun _ h => h.2 n hns)
have hh := symmetricSource_congr_nhds (u:=u) hz j
rw [symmetricSource_angular_translate hp,symmetricSource_zero] at hh
exact hn hh