defcenter (a TSS'σ : ℝ) (k l : ℕ) (t : ℝ) : Coord2:=
body · 3
lines
![(1 - theta a T1 t) * S * k + theta a T1 t * S' * l,
-(1 - theta a T0 t) * S +
(theta a T0 t - theta a T2 t) * privateRow S k + theta a T2 t * σ * S']
theoremseparated {SS' : ℝ} (hS : 0≤S) (hSS : S≤S')
(a Tσ τ t : ℝ) {k l k' l' : ℕ} (hkl : k ≠ l) (hkl' : k' ≠ l') :
∃i : Fin2, S≤ |center a TSS' σ k k' t i - center a TSS' τ l l' t i| :=by
proof · 16
lines
by_cases h1 : 3 * (t - a) / T≤1
· refine ⟨0, ?_⟩
rw [center_first_slot k k' h1, center_first_slot l l' h1]
exact scaled_nat_gap hS hkl
· by_cases h2 : 3 * (t - a) / T≤2
· refine ⟨1, ?_⟩
rw [center_second_slot k k' (by linarith) h2,
center_second_slot l l' (by linarith) h2]
havehrow : privateRow S k - privateRow S l = -(S * k - S * l) :=by
dsimp [privateRow]
ring
rw [hrow, abs_neg]
exact scaled_nat_gap hS hkl
· refine ⟨0, ?_⟩
rw [center_third_slot k k' (by linarith), center_third_slot l l' (by linarith)]
exact hSS.trans (scaled_nat_gap (hS.trans hSS) hkl')
theoremvelocity_source_collar {a TSS'σ t : ℝ} (k l : ℕ)
(ht : 3 * (t - a) / T < 1 / 4) : deriv (center a TSS' σ k l) t = 0:=by
proof · 6
lines
havehev : ∀ᶠ s in 𝓝 t, 3 * (s - a) / T < 1 / 4:=
(isOpen_lt (f :=funs : ℝ=>3 * (s - a) / T) (by fun_prop) continuous_const).mem_nhds ht
haveheq : center a TSS' σ k l =ᶠ[𝓝 t] fun _ => ![S * k, -S] :=
hev.mono (fun s hs => center_source_collar k l hs.le)
rw [heq.deriv_eq]
simp
theoremvelocity_target_collar {a TSS'σ t : ℝ} (k l : ℕ)
(ht : 11 / 4 < 3 * (t - a) / T) : deriv (center a TSS' σ k l) t = 0:=by
proof · 6
lines
havehev : ∀ᶠ s in 𝓝 t, 11 / 4 < 3 * (s - a) / T:=
(isOpen_lt continuous_const (g :=funs : ℝ=>3 * (s - a) / T) (by fun_prop)).mem_nhds ht
haveheq : center a TSS' σ k l =ᶠ[𝓝 t] fun _ => ![S' * l, σ * S'] :=
hev.mono (fun s hs => center_target_collar k l hs.le)
rw [heq.deriv_eq]
simp
theoremcompactSupport_gate {RT : ℝ} (hR : 0 < R) (hT : 0 < T)
(a SS'σ : ℝ) (k l : ℕ) :
HasCompactSupport (uncurry (gate R a TSS' σ k l)) :=by
proof · 22
lines
let c := center a TSS' σ k l
letF : ℝ×Coord2→ℝ×Coord2:=fun q => (q.1, c q.1 + q.2)
havehc : Continuous c := (contDiff_center a TSS' σ k l).continuous
havehF : ContinuousF:= continuous_fst.prodMk ((hc.comp continuous_fst).add continuous_snd)
apply HasCompactSupport.of_support_subset_isCompact
((isCompact_Icc.prod (isCompact_Icc : IsCompact (Icc (fun_ : Fin2=> -3 * R)
(fun_ : Fin2=>3 * R)))).image hF)
intro q hq
haveht : q.1∈Icc a (a + T) :=by
constructor
· exact (lt_of_not_ge (fun h => hq (gate_zero_before hT R a SS' σ k l h q.2))).le
· exact (lt_of_not_ge (fun h => hq (gate_zero_after hT R a SS' σ k l h q.2))).le
have hi (i : Fin2) : |q.2 i - c q.1 i| < 3 * R:=by
apply lt_of_not_ge
intro h
exact hq (TranslationGates.field_zero_outside hR _ _ _ ⟨i, h⟩)
refine ⟨(q.1, q.2 - c q.1), ⟨ht, ?_⟩, ?_⟩
· exact ⟨fun i =>by dsimp; linarith [(abs_lt.mp (hi i)).1],
fun i =>by dsimp; linarith [(abs_lt.mp (hi i)).2]⟩
· dsimp [F]
congr 1
abel
theoremgate_derivatives_bounded {RT : ℝ} (hR : 0 < R) (hT : 0 < T)
(a SS'σ : ℝ) (k l m : ℕ) :
∃C : ℝ, ∀ q, ‖iteratedFDeriv ℝ m (uncurry (gate R a TSS' σ k l)) q‖ ≤C:=by
proof · 2
lines
apply ((compactSupport_gate hR hT a SS' σ k l).iteratedFDeriv m).exists_bound_of_continuous
exact ((contDiff_infty.mp (contDiff_gate R a TSS' σ k l)) m).continuous_iteratedFDeriv le_rfl