/-
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.Calculus.Deriv.Basic
public import Mathlib.Analysis.Calculus.FDeriv.Star
/-!
# Star operations on derivatives
This file contains the usual formulas (and existence assertions) for the derivative of the star
operation.
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
`HasDerivAt.conj_conj` and `DifferentiableAt.conj_conj`, showing that `conj ∘ f ∘ conj` is
differentiable when `f` is (and giving a formula for its derivative).
-/
public section
universe u v w
variable { : Type u} [NontriviallyNormedField ] [StarRing ]
{F : Type v} [NormedAddCommGroup F] [NormedSpace F] [StarAddMonoid F] [StarModule F]
[ContinuousStar F] {f : → F} {f' : F} {x : }
/-! ### Derivative of `x ↦ star x` -/
section TrivialStar
variable [TrivialStar ] {s : Set } {L : Filter ( × )}
protected theorem HasDerivAtFilter.star (h : HasDerivAtFilter f f' L) :
HasDerivAtFilter (fun x => star (f x)) (star f') L := by
simpa using h.hasFDerivAtFilter.star.hasDerivAtFilter
protected theorem HasDerivWithinAt.star (h : HasDerivWithinAt f f' s x) :
HasDerivWithinAt (fun x => star (f x)) (star f') s x :=
HasDerivAtFilter.star h
protected theorem HasDerivAt.star (h : HasDerivAt f f' x) :
HasDerivAt (fun x => star (f x)) (star f') x :=
HasDerivAtFilter.star h
protected nonrec theorem HasStrictDerivAt.star (h : HasStrictDerivAt f f' x) :
HasStrictDerivAt (fun x => star (f x)) (star f') x :=
HasDerivAtFilter.star h
protected theorem derivWithin.star :
derivWithin (fun y => star (f y)) s x = star (derivWithin f s x) := by
by_cases hxs : UniqueDiffWithinAt s x
· congrm $(fderivWithin_star hxs) _
· simp [derivWithin_zero_of_not_uniqueDiffWithinAt hxs]
protected theorem deriv.star : deriv (fun y => star (f y)) x = star (deriv f x) :=
congr($fderiv_star _)
@[simp]
protected theorem deriv.star' : (deriv fun y => star (f y)) = fun x => star (deriv f x) :=
funext fun _ => deriv.star
end TrivialStar
section NontrivialStar
variable [NormedStarGroup ]
open scoped ComplexConjugate
/-- If `f` has derivative `f'` at `z`, then `star ∘ f ∘ conj` has derivative `star f'` at
`conj z`. -/
lemma HasDerivAt.star_conj {f : → F} {f' : F} (hf : HasDerivAt f f' x) :
HasDerivAt (star ∘ f ∘ conj) (star f') (conj x) := by
rw [hasDerivAt_iff_hasFDerivAt]
convert! hf.hasFDerivAt.star_star
ext
simp
/-- A function `f` has derivative `f'` at `z` iff `star ∘ f ∘ conj` has derivative `star f'` at
`conj z`. -/
@[simp]
lemma hasDerivAt_star_conj_iff {f : → F} {x : } {f' : F} :
HasDerivAt (star ∘ f ∘ conj) f' x ↔ HasDerivAt f (star f') (conj x) :=
⟨fun hf ↦ by convert hf.star_conj; simp [Function.comp_def],
fun hf ↦ by convert hf.star_conj <;> simp⟩
/-- If `f` has derivative `f'` at `z`, then `conj ∘ f ∘ conj` has derivative `conj f'` at
`conj z`. -/
lemma HasDerivAt.conj_conj {f : → } {f' : } (hf : HasDerivAt f f' x) :
HasDerivAt (conj ∘ f ∘ conj) (conj f') (conj x) :=
hf.star_conj
/-- A function `f` has derivative `f'` at `z` iff `conj ∘ f ∘ conj` has derivative `conj f'` at
`conj z`. -/
@[simp]
lemma hasDerivAt_conj_conj_iff {f : → } {x f' : } :
HasDerivAt (conj ∘ f ∘ conj) f' x ↔ HasDerivAt f (conj f') (conj x) :=
hasDerivAt_star_conj_iff
/-- If `f` is differentiable at `conj z`, then `star ∘ f ∘ conj` is differentiable at `z`. -/
lemma DifferentiableAt.star_conj {f : → F} (hf : DifferentiableAt f x) :
DifferentiableAt (star ∘ f ∘ conj) (conj x) :=
hf.star_star
/-- A function `f` is differentiable at `conj z` iff `star ∘ f ∘ conj` is differentiable at `z`. -/
@[simp]
lemma differentiableAt_star_conj_iff {f : → F} :
DifferentiableAt (star ∘ f ∘ conj) x ↔ DifferentiableAt f (conj x) :=
⟨fun hf ↦ by convert hf.star_conj; simp [Function.comp_def],
fun hf ↦ by convert hf.star_conj; simp⟩
/-- If `f` is differentiable at `conj z`, then `conj ∘ f ∘ conj` is differentiable at `z`. -/
lemma DifferentiableAt.conj_conj {f : → } (hf : DifferentiableAt f x) :
DifferentiableAt (conj ∘ f ∘ conj) (conj x) :=
hf.star_star
/-- A function `f` is differentiable at `conj z` iff `conj ∘ f ∘ conj` is differentiable at `z`. -/
@[simp]
lemma differentiableAt_conj_conj_iff {f : → } :
DifferentiableAt (conj ∘ f ∘ conj) x ↔ DifferentiableAt f (conj x) :=
differentiableAt_star_conj_iff
/-- The derivative of `star ∘ f ∘ conj` is `star ∘ deriv f ∘ conj`. -/
@[simp]
lemma deriv_star_conj {f : → F} :
deriv (star ∘ f ∘ conj) = star ∘ deriv f ∘ conj := by
ext z
by_cases hf : DifferentiableAt f (conj z)
· convert! hf.hasDerivAt.star_conj.deriv; simp
· have := differentiableAt_star_conj_iff.not.2 hf
simp_all [deriv_zero_of_not_differentiableAt]
/-- The derivative of `conj ∘ f ∘ conj` is `conj ∘ deriv f ∘ conj`. -/
@[simp]
lemma deriv_conj_conj {f : → } :
deriv (conj ∘ f ∘ conj) = conj ∘ deriv f ∘ conj := deriv_star_conj
end NontrivialStar
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland