/-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
module
public import Mathlib.Analysis.Calculus.FDeriv.Prod
/-!
# The derivative of bounded bilinear maps
For detailed documentation of the Fréchet derivative,
see the module docstring of `Mathlib/Analysis/Calculus/FDeriv/Basic.lean`.
This file contains the usual formulas (and existence assertions) for the derivative of
bounded bilinear maps.
-/
public section
open Asymptotics
open scoped Topology
section
variable { : Type*} [NontriviallyNormedField ]
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace E]
variable {F : Type*} [NormedAddCommGroup F] [NormedSpace F]
variable {G : Type*} [NormedAddCommGroup G] [NormedSpace G]
variable {G' : Type*} [NormedAddCommGroup G'] [NormedSpace G']
section BilinearMap
/-! ### Derivative of a bounded bilinear map -/
variable {b : E × F → G} {u : Set (E × F)}
open NormedField
-- TODO: rewrite/golf using analytic functions?
@[fun_prop]
theorem IsBoundedBilinearMap.hasStrictFDerivAt (h : IsBoundedBilinearMap b) (p : E × F) :
HasStrictFDerivAt b (h.deriv p) p := by
simp only [hasStrictFDerivAt_iff_isLittleO]
simp only [← map_add_left_nhds_zero (p, p), isLittleO_map]
set T := (E × F) × E × F
calc
_ = fun x ↦ h.deriv (x.1 - x.2) (x.2.1, x.1.2) := by
ext ⟨⟨x₁, y₁⟩, ⟨x₂, y₂⟩⟩
rcases p with ⟨x, y⟩
simp only [map_sub, deriv_apply, Function.comp_apply, Prod.mk_add_mk, h.add_right, h.add_left,
Prod.mk_sub_mk, h.map_sub_left, h.map_sub_right, sub_add_sub_cancel]
abel
-- _ =O[ (0 : T)] fun x ↦ ‖x.1 - x.2‖ * ‖(x.2.1, x.1.2)‖ :=
-- h.toContinuousLinearMap.deriv₂.isBoundedBilinearMap.isBigO_comp
-- _ = o[ 0] fun x ↦ ‖x.1 - x.2‖ * 1 := _
_ =o[ (0 : T)] fun x ↦ x.1 - x.2 := by
-- TODO : add 2 `calc` steps instead of the next 3 lines
refine h.toContinuousLinearMap.deriv₂.isBoundedBilinearMap.isBigO_comp.trans_isLittleO ?_
suffices (fun x : T ↦ ‖x.1 - x.2‖ * ‖(x.2.1, x.1.2)‖) =o[ 0] fun x ↦ ‖x.1 - x.2‖ * 1 by
simpa only [mul_one, isLittleO_norm_right] using this
refine (isBigO_refl _ _).mul_isLittleO ((isLittleO_one_iff _).2 ?_)
-- TODO: `continuity` fails
exact (continuous_snd.fst.prodMk continuous_fst.snd).norm.tendsto' _ _ (by simp)
_ = _ := by simp [T, Function.comp_def]
@[fun_prop]
theorem IsBoundedBilinearMap.hasFDerivAt (h : IsBoundedBilinearMap b) (p : E × F) :
HasFDerivAt b (h.deriv p) p :=
(h.hasStrictFDerivAt p).hasFDerivAt
@[fun_prop]
theorem IsBoundedBilinearMap.hasFDerivWithinAt (h : IsBoundedBilinearMap b) (p : E × F) :
HasFDerivWithinAt b (h.deriv p) u p :=
(h.hasFDerivAt p).hasFDerivWithinAt
@[fun_prop]
theorem IsBoundedBilinearMap.differentiableAt (h : IsBoundedBilinearMap b) (p : E × F) :
DifferentiableAt b p :=
(h.hasFDerivAt p).differentiableAt
@[fun_prop]
theorem IsBoundedBilinearMap.differentiableWithinAt (h : IsBoundedBilinearMap b) (p : E × F) :
DifferentiableWithinAt b u p :=
(h.differentiableAt p).differentiableWithinAt
protected theorem IsBoundedBilinearMap.fderiv (h : IsBoundedBilinearMap b) (p : E × F) :
fderiv b p = h.deriv p :=
HasFDerivAt.fderiv (h.hasFDerivAt p)
protected theorem IsBoundedBilinearMap.fderivWithin (h : IsBoundedBilinearMap b) (p : E × F)
(hxs : UniqueDiffWithinAt u p) : fderivWithin b u p = h.deriv p := by
rw [DifferentiableAt.fderivWithin (h.differentiableAt p) hxs]
exact h.fderiv p
@[fun_prop]
theorem IsBoundedBilinearMap.differentiable (h : IsBoundedBilinearMap b) : Differentiable b :=
fun x => h.differentiableAt x
@[fun_prop]
theorem IsBoundedBilinearMap.differentiableOn (h : IsBoundedBilinearMap b) :
DifferentiableOn b u :=
h.differentiable.differentiableOn
variable (B : E →L[] F →L[] G)
@[fun_prop]
theorem ContinuousLinearMap.hasFDerivWithinAt_of_bilinear {f : G' → E} {g : G' → F}
{f' : G' →L[] E} {g' : G' →L[] F} {x : G'} {s : Set G'} (hf : HasFDerivWithinAt f f' s x)
(hg : HasFDerivWithinAt g g' s x) :
HasFDerivWithinAt (fun y => B (f y) (g y))
(B.precompR G' (f x) g' + B.precompL G' f' (g x)) s x := by
-- need `by exact` to deal with tricky unification
exact (B.isBoundedBilinearMap.hasFDerivAt (f x, g x)).comp_hasFDerivWithinAt x (hf.prodMk hg)
@[fun_prop]
theorem ContinuousLinearMap.hasFDerivAt_of_bilinear {f : G' → E} {g : G' → F} {f' : G' →L[] E}
{g' : G' →L[] F} {x : G'} (hf : HasFDerivAt f f' x) (hg : HasFDerivAt g g' x) :
HasFDerivAt (fun y => B (f y) (g y)) (B.precompR G' (f x) g' + B.precompL G' f' (g x)) x := by
-- need `by exact` to deal with tricky unification
exact (B.isBoundedBilinearMap.hasFDerivAt (f x, g x)).comp x (hf.prodMk hg)
@[fun_prop]
theorem ContinuousLinearMap.hasStrictFDerivAt_of_bilinear
{f : G' → E} {g : G' → F} {f' : G' →L[] E}
{g' : G' →L[] F} {x : G'} (hf : HasStrictFDerivAt f f' x) (hg : HasStrictFDerivAt g g' x) :
HasStrictFDerivAt (fun y => B (f y) (g y))
(B.precompR G' (f x) g' + B.precompL G' f' (g x)) x :=
(B.isBoundedBilinearMap.hasStrictFDerivAt (f x, g x)).comp x (hf.prodMk hg)
theorem ContinuousLinearMap.fderivWithin_of_bilinear {f : G' → E} {g : G' → F} {x : G'} {s : Set G'}
(hf : DifferentiableWithinAt f s x) (hg : DifferentiableWithinAt g s x)
(hs : UniqueDiffWithinAt s x) :
fderivWithin (fun y => B (f y) (g y)) s x =
B.precompR G' (f x) (fderivWithin g s x) + B.precompL G' (fderivWithin f s x) (g x) :=
(B.hasFDerivWithinAt_of_bilinear hf.hasFDerivWithinAt hg.hasFDerivWithinAt).fderivWithin hs
theorem ContinuousLinearMap.fderiv_of_bilinear {f : G' → E} {g : G' → F} {x : G'}
(hf : DifferentiableAt f x) (hg : DifferentiableAt g x) :
fderiv (fun y => B (f y) (g y)) x =
B.precompR G' (f x) (fderiv g x) + B.precompL G' (fderiv f x) (g x) :=
(B.hasFDerivAt_of_bilinear hf.hasFDerivAt hg.hasFDerivAt).fderiv
end BilinearMap
end
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland