/-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Analysis.CStarAlgebra.Basic
public import Mathlib.Analysis.Calculus.FDeriv.Equiv
import Mathlib.Analysis.Calculus.FDeriv.Comp
/-!
# Star operations on derivatives
This file contains the usual formulas (and existence assertions) for the Fréchet derivative of the
star operation. For detailed documentation of the Fréchet derivative, see the module docstring of
`Mathlib/Analysis/Calculus/FDeriv/Basic.lean`.
Most of the results in this file only apply when the field that the derivative is respect to has a
trivial star operation; which as should be expected rules out ` = ℂ`. The exceptions are
`HasFDerivAt.star_star` and `DifferentiableAt.star_star`, showing that `star ∘ f ∘ star` is
differentiable when `f` is (and giving a formula for its derivative).
-/
public section
variable { : Type*} [NontriviallyNormedField ] [StarRing ]
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace E]
variable {F : Type*} [NormedAddCommGroup F] [StarAddMonoid F] [NormedSpace F] [StarModule F]
[ContinuousStar F]
variable {f : E → F} {f' : E →L[] F} {x : E} {s : Set E} {L : Filter (E × E)}
section TrivialStar
variable [TrivialStar ]
protected theorem HasFDerivAtFilter.star (h : HasFDerivAtFilter f f' L) :
HasFDerivAtFilter (fun x => star (f x)) (((starL' : F ≃L[] F) : F →L[] F) ∘L f') L :=
(starL' : F ≃L[] F).toContinuousLinearMap.hasFDerivAtFilter.comp h Filter.tendsto_map
@[fun_prop]
protected theorem HasStrictFDerivAt.star (h : HasStrictFDerivAt f f' x) :
HasStrictFDerivAt (fun x => star (f x)) (((starL' : F ≃L[] F) : F →L[] F) ∘L f') x :=
HasFDerivAtFilter.star h
@[fun_prop]
protected theorem HasFDerivWithinAt.star (h : HasFDerivWithinAt f f' s x) :
HasFDerivWithinAt (fun x => star (f x)) (((starL' : F ≃L[] F) : F →L[] F) ∘L f') s x :=
HasFDerivAtFilter.star h
@[fun_prop]
protected theorem HasFDerivAt.star (h : HasFDerivAt f f' x) :
HasFDerivAt (fun x => star (f x)) (((starL' : F ≃L[] F) : F →L[] F) ∘L f') x :=
HasFDerivAtFilter.star h
@[fun_prop]
protected theorem DifferentiableWithinAt.star (h : DifferentiableWithinAt f s x) :
DifferentiableWithinAt (fun y => star (f y)) s x :=
h.hasFDerivWithinAt.star.differentiableWithinAt
@[simp]
theorem differentiableWithinAt_star_iff :
DifferentiableWithinAt (fun y => star (f y)) s x ↔ DifferentiableWithinAt f s x :=
(starL' : F ≃L[] F).comp_differentiableWithinAt_iff
@[fun_prop]
protected theorem DifferentiableAt.star (h : DifferentiableAt f x) :
DifferentiableAt (fun y => star (f y)) x :=
h.hasFDerivAt.star.differentiableAt
@[simp]
theorem differentiableAt_star_iff :
DifferentiableAt (fun y => star (f y)) x ↔ DifferentiableAt f x :=
(starL' : F ≃L[] F).comp_differentiableAt_iff
@[fun_prop]
protected theorem DifferentiableOn.star (h : DifferentiableOn f s) :
DifferentiableOn (fun y => star (f y)) s := fun x hx => (h x hx).star
@[simp]
theorem differentiableOn_star_iff :
DifferentiableOn (fun y => star (f y)) s ↔ DifferentiableOn f s :=
(starL' : F ≃L[] F).comp_differentiableOn_iff
@[fun_prop]
protected theorem Differentiable.star (h : Differentiable f) :
Differentiable fun y => star (f y) :=
fun x => (h x).star
@[simp]
theorem differentiable_star_iff : (Differentiable fun y => star (f y)) ↔ Differentiable f :=
(starL' : F ≃L[] F).comp_differentiable_iff
theorem fderivWithin_star (hxs : UniqueDiffWithinAt s x) :
fderivWithin (fun y => star (f y)) s x =
((starL' : F ≃L[] F) : F →L[] F) ∘L fderivWithin f s x :=
(starL' : F ≃L[] F).comp_fderivWithin hxs
@[simp]
theorem fderiv_star :
fderiv (fun y => star (f y)) x = ((starL' : F ≃L[] F) : F →L[] F) ∘L fderiv f x :=
(starL' : F ≃L[] F).comp_fderiv
end TrivialStar
section NontrivialStar
/-!
## Composing on the left and right with `star`
-/
variable [StarAddMonoid E] [StarModule E] [ContinuousStar E] [NormedStarGroup ]
/-- If `f` has derivative `f'` at `z`, then `star ∘ f ∘ star` has derivative `starL ∘ f' ∘ starL`
at `star z`. -/
@[fun_prop]
lemma HasFDerivAt.star_star {f : E → F} {z : E} {f' : E →L[] F} (hf : HasFDerivAt f f' z) :
HasFDerivAt (star ∘ f ∘ star)
((starL ).toContinuousLinearMap.comp <| f'.comp (starL ).toContinuousLinearMap) (star z) :=
.comp_semilinear (starL ).toContinuousLinearMap (starL ).toContinuousLinearMap
(by simpa using hf)
/-- If `f` is differentiable at `z`, then `star ∘ f ∘ star` is differentiable at `star z`. -/
@[fun_prop]
lemma DifferentiableAt.star_star {f : E → F} {z : E} (hf : DifferentiableAt f z) :
DifferentiableAt (star ∘ f ∘ star) (star z) :=
hf.hasFDerivAt.star_star.differentiableAt
end NontrivialStar
¤ Dauer der Verarbeitung: 0.5 Sekunden
¤
*© Formatika GbR, Deutschland