cfahlgren1/math / lean /OAI /Dynamics /EntropyCounterexample /TranslationDerivative.lean
cfahlgren1's picture
download
raw
3.3 kB
import Mathlib
namespace OAI
noncomputable section
namespace Problem340.TranslationDerivative
section General
variable {๐•œ E F : Type*} [NontriviallyNormedField ๐•œ]
[NormedAddCommGroup E] [NormedSpace ๐•œ E]
[NormedAddCommGroup F] [NormedSpace ๐•œ F]
theorem fderiv_add_eq (f : E โ†’ F) (p : E) (q : F)
(hf : โˆ€ x, f (x + p) = f x + q) (x : E) :
fderiv ๐•œ f (x + p) = fderiv ๐•œ f x := by
rw [โ† fderiv_comp_add_right p]
simp_rw [hf]
exact fderiv_add_const q
theorem differentiableAt_add_iff (f : E โ†’ F) (p : E) (q : F)
(hf : โˆ€ x, f (x + p) = f x + q) (x : E) :
DifferentiableAt ๐•œ f (x + p) โ†” DifferentiableAt ๐•œ f x := by
rw [โ† differentiableAt_comp_add_right p]
simp_rw [hf]
exact differentiableAt_add_const_iff q
theorem iterate_add_eq (f : E โ†’ E) (p : E)
(hf : โˆ€ x, f (x + p) = f x + p) (n : โ„•) (x : E) :
f^[n] (x + p) = f^[n] x + p := by
induction n with
| zero => rfl
| succ n ih =>
rw [Function.iterate_succ_apply', Function.iterate_succ_apply', ih, hf]
theorem fderiv_iterate_add_eq (f : E โ†’ E) (p : E)
(hf : โˆ€ x, f (x + p) = f x + p) (n : โ„•) (x : E) :
fderiv ๐•œ (f^[n]) (x + p) = fderiv ๐•œ (f^[n]) x :=
fderiv_add_eq (f^[n]) p p (iterate_add_eq f p hf n) x
theorem fderiv_readout_add_eq (f : E โ†’ E) (p : E)
(hf : โˆ€ x, f (x + p) = f x + p) (P : E โ†’L[๐•œ] F)
(n : โ„•) (x : E) :
fderiv ๐•œ (fun y => P (f^[n] y)) (x + p) =
fderiv ๐•œ (fun y => P (f^[n] y)) x := by
apply fderiv_add_eq _ p (P p)
intro y
rw [iterate_add_eq f p hf, map_add]
theorem fderiv_zsmul_add_eq (f : E โ†’ F) (p : E) (q : F)
(hf : โˆ€ x, f (x + p) = f x + q) (k : โ„ค) (x : E) :
fderiv ๐•œ f (x + k โ€ข p) = fderiv ๐•œ f x :=
(show Function.Periodic (fderiv ๐•œ f) p from fderiv_add_eq f p q hf).zsmul k x
end General
section Clock
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E]
def clockSkew (h : โ„ ร— E โ†’ โ„) (g : E โ†’ E) : โ„ ร— E โ†’ โ„ ร— E :=
fun x => (x.1 + h x, g x.2)
omit [NormedSpace โ„ E] in
theorem clockSkew_add_eq (h : โ„ ร— E โ†’ โ„) (g : E โ†’ E) (T : โ„)
(hh : โˆ€ t z, h (t + T, z) = h (t, z)) (x : โ„ ร— E) :
clockSkew h g (x + (T, 0)) = clockSkew h g x + (T, 0) := by
rcases x with โŸจt, zโŸฉ
simp only [clockSkew, Prod.mk_add_mk, add_zero, hh]
congr 1
ring
theorem clockSkew_fderiv_iterate_periodic (h : โ„ ร— E โ†’ โ„) (g : E โ†’ E) (T : โ„)
(hh : โˆ€ t z, h (t + T, z) = h (t, z)) (n : โ„•) (z : E) :
Function.Periodic (fun t => fderiv โ„ ((clockSkew h g)^[n]) (t, z)) T := by
intro t
simpa only [Prod.mk_add_mk, add_zero] using
fderiv_iterate_add_eq (๐•œ := โ„) (clockSkew h g) (T, 0)
(clockSkew_add_eq h g T hh) n (t, z)
theorem clockPrediction_fderiv_periodic (h : โ„ ร— E โ†’ โ„) (g : E โ†’ E) (T : โ„)
(hh : โˆ€ t z, h (t + T, z) = h (t, z)) (n : โ„•) (z : E) :
Function.Periodic
(fun t => fderiv โ„ (fun y => ((clockSkew h g)^[n] y).1) (t, z)) T := by
intro t
simpa only [Prod.mk_add_mk, add_zero, ContinuousLinearMap.coe_fst'] using
fderiv_readout_add_eq (clockSkew h g) (T, 0)
(clockSkew_add_eq h g T hh) (ContinuousLinearMap.fst โ„ โ„ E) n (t, z)
end Clock
end Problem340.TranslationDerivative
end
end OAI

Xet Storage Details

Size:
3.3 kB
ยท
Xet hash:
79bc2119d14f3688908eb3dbbf96cc4f7e0a36edb8bfddcb1ab243c22fd5a801

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.