The areas / V17. Differential calculus in normed spaces
Mathlib.Analysis.Calculus.Gradient.Basic
79 declarations. Mathlib docs Β· Source
Gradient
Main Definitions
Let f be a function from a Hilbert Space F to π (π is β or β), x be a point in F
and f' be a vector in F. Then
HasGradientWithinAt f f' s x
says that f has a gradient f' at x, where the domain of interest
is restricted to s. We also have
HasGradientAt f f' x := HasGradientWithinAt f f' x univ
Main results
This file develops the following aspects of the theory of gradients:
- definitions of gradients, both within a set and on the whole space.
- translating between
HasGradientAtFilterandHasFDerivAtFilter,HasGradientWithinAtandHasFDerivWithinAt,HasGradientAtandHasFDerivAt,gradientandfderiv. - uniqueness of gradients.
- translating between
HasGradientAtFilterandHasDerivAtFilter,HasGradientAtandHasDerivAt,gradientandderivwhenF = π. - the theorems about the inner product of the gradient.
- the congruence of the gradient.
- the gradient of constant functions.
- the continuity of a function admitting a gradient.
Congruence properties of the Gradient
The Gradient of constant functions
Continuity of a function admitting a gradient
theorem HasGradientAt.congr_simp E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (f f_1 : F β π),
f = f_1 β β (f' f'_1 : F), f' = f'_1 β β (x x_1 : F), x = x_1 β HasGradientAt f f' x = HasGradientAt f_1 f'_1 x_1
theorem HasGradientWithinAt.congr_simp E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (f f_1 : F β π),
f = f_1 β
β (f' f'_1 : F),
f' = f'_1 β
β (s s_1 : Set F),
s = s_1 β β (x x_1 : F), x = x_1 β HasGradientWithinAt f f' s x = HasGradientWithinAt f_1 f'_1 s_1 x_1
theorem gradient.congr_simp E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (f f_1 : F β π), f = f_1 β β (x x_1 : F), x = x_1 β gradient f x = gradient f_1 x_1
theorem gradientWithin.congr_simp E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (f f_1 : F β π),
f = f_1 β β (s s_1 : Set F), s = s_1 β β (x x_1 : F), x = x_1 β gradientWithin f s x = gradientWithin f_1 s_1 x_1
def HasGradientAtFilter E3 #
{π : Type u_1} β
{F : Type u_2} β
[inst : RCLike π] β
[inst_1 : NormedAddCommGroup F] β [InnerProductSpace π F] β [CompleteSpace F] β (F β π) β F β F β Filter F β Prop
A function f has the gradient f' as derivative along the filter L if
f x' = f x + β¨f', x' - xβ© + o (x' - x) when x' converges along the filter L.
def HasGradientWithinAt E3 #
{π : Type u_1} β
{F : Type u_2} β
[inst : RCLike π] β
[inst_1 : NormedAddCommGroup F] β [InnerProductSpace π F] β [CompleteSpace F] β (F β π) β F β Set F β F β Prop
f has the gradient f' at the point x within the subset s if
f x' = f x + β¨f', x' - xβ© + o (x' - x) where x' converges to x inside s.
def HasGradientAt E3 #
{π : Type u_1} β
{F : Type u_2} β
[inst : RCLike π] β
[inst_1 : NormedAddCommGroup F] β [InnerProductSpace π F] β [CompleteSpace F] β (F β π) β F β F β Prop
f has the gradient f' at the point x if
f x' = f x + β¨f', x' - xβ© + o (x' - x) where x' converges to x.
def gradientWithin E1 #
{π : Type u_1} β
{F : Type u_2} β
[inst : RCLike π] β
[inst_1 : NormedAddCommGroup F] β [InnerProductSpace π F] β [CompleteSpace F] β (F β π) β Set F β F β F
Gradient of f at the point x within the set s, if it exists. Zero otherwise.
If the derivative exists (i.e., β f', HasGradientWithinAt f f' s x), then
f x' = f x + β¨f', x' - xβ© + o (x' - x) where x' converges to x inside s.
def gradient E3 #
{π : Type u_1} β
{F : Type u_2} β
[inst : RCLike π] β [inst_1 : NormedAddCommGroup F] β [InnerProductSpace π F] β [CompleteSpace F] β (F β π) β F β F
Gradient of f at the point x, if it exists. Zero otherwise.
Denoted as β within the Gradient namespace.
If the derivative exists (i.e., β f', HasGradientAt f f' x), then
f x' = f x + β¨f', x' - xβ© + o (x' - x) where x' converges to x.
def Gradient.Β«termβΒ» E1 #
Lean.ParserDescr
Gradient of f at the point x, if it exists. Zero otherwise.
Denoted as β within the Gradient namespace.
If the derivative exists (i.e., β f', HasGradientAt f f' x), then
f x' = f x + β¨f', x' - xβ© + o (x' - x) where x' converges to x.
theorem hasGradientWithinAt_iff_hasFDerivWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F},
HasGradientWithinAt f f' s x β HasFDerivWithinAt f ((InnerProductSpace.toDual π F) f') s x
theorem hasFDerivWithinAt_iff_hasGradientWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {frechet : StrongDual π F} {s : Set F},
HasFDerivWithinAt f frechet s x β HasGradientWithinAt f ((InnerProductSpace.toDual π F).symm frechet) s x
theorem hasGradientAt_iff_hasFDerivAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F},
HasGradientAt f f' x β HasFDerivAt f ((InnerProductSpace.toDual π F) f') x
theorem hasFDerivAt_iff_hasGradientAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {frechet : StrongDual π F},
HasFDerivAt f frechet x β HasGradientAt f ((InnerProductSpace.toDual π F).symm frechet) x
theorem HasGradientWithinAt.hasFDerivWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F},
HasGradientWithinAt f f' s x β HasFDerivWithinAt f ((InnerProductSpace.toDual π F) f') s x
Alias of the forward direction of hasGradientWithinAt_iff_hasFDerivWithinAt.
theorem HasFDerivWithinAt.hasGradientWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {frechet : StrongDual π F} {s : Set F},
HasFDerivWithinAt f frechet s x β HasGradientWithinAt f ((InnerProductSpace.toDual π F).symm frechet) s x
Alias of the forward direction of hasFDerivWithinAt_iff_hasGradientWithinAt.
theorem HasGradientAt.hasFDerivAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F},
HasGradientAt f f' x β HasFDerivAt f ((InnerProductSpace.toDual π F) f') x
Alias of the forward direction of hasGradientAt_iff_hasFDerivAt.
theorem HasFDerivAt.hasGradientAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {frechet : StrongDual π F},
HasFDerivAt f frechet x β HasGradientAt f ((InnerProductSpace.toDual π F).symm frechet) x
Alias of the forward direction of hasFDerivAt_iff_hasGradientAt.
theorem gradient_eq_zero_of_not_differentiableAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F}, Β¬DifferentiableAt π f x β gradient f x = 0
theorem toDual_gradientWithin E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {s : Set F},
(InnerProductSpace.toDual π F) (gradientWithin f s x) = fderivWithin π f s x
theorem toDual_gradient E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F}, (InnerProductSpace.toDual π F) (gradient f x) = fderiv π f x
theorem toDual_comp_gradientWithin E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {s : Set F},
β(InnerProductSpace.toDual π F) β gradientWithin f s = fderivWithin π f s
theorem toDual_comp_gradient E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π}, β(InnerProductSpace.toDual π F) β gradient f = fderiv π f
theorem HasGradientAt.unique E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x gradf gradg : F},
HasGradientAt f gradf x β HasGradientAt f gradg x β gradf = gradg
theorem DifferentiableAt.hasGradientAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F}, DifferentiableAt π f x β HasGradientAt f (gradient f x) x
theorem HasGradientAt.differentiableAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F}, HasGradientAt f f' x β DifferentiableAt π f x
theorem DifferentiableWithinAt.hasGradientWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {s : Set F},
DifferentiableWithinAt π f s x β HasGradientWithinAt f (gradientWithin f s x) s x
theorem HasGradientWithinAt.differentiableWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F},
HasGradientWithinAt f f' s x β DifferentiableWithinAt π f s x
theorem hasGradientWithinAt_univ E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F}, HasGradientWithinAt f f' Set.univ x β HasGradientAt f f' x
theorem gradientWithin_univ E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π}, gradientWithin f Set.univ = gradient f
theorem DifferentiableOn.hasGradientAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {s : Set F},
DifferentiableOn π f s β s β nhds x β HasGradientAt f (gradient f x) x
theorem HasGradientAt.gradient E3 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F}, HasGradientAt f f' x β gradient f x = f'
theorem gradient_eq E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' : F β F}, (β (x : F), HasGradientAt f (f' x) x) β gradient f = f'
theorem HasGradientAtFilter.hasDerivAtFilter E1 #
β {π : Type u_1} [inst : RCLike π] {g : π β π} {g' u : π} {L' : Filter π},
HasGradientAtFilter g g' u L' β HasDerivAtFilter g ((starRingEnd π) g') (L' ΓΛ’ pure u)
theorem HasDerivAtFilter.hasGradientAtFilter E1 #
β {π : Type u_1} [inst : RCLike π] {g : π β π} {g' u : π} {L' : Filter π},
HasDerivAtFilter g g' (L' ΓΛ’ pure u) β HasGradientAtFilter g ((starRingEnd π) g') u L'
theorem HasGradientAt.hasDerivAt E1 #
β {π : Type u_1} [inst : RCLike π] {g : π β π} {g' u : π}, HasGradientAt g g' u β HasDerivAt g ((starRingEnd π) g') u
theorem HasDerivAt.hasGradientAt E1 #
β {π : Type u_1} [inst : RCLike π] {g : π β π} {g' u : π}, HasDerivAt g g' u β HasGradientAt g ((starRingEnd π) g') u
theorem gradient_eq_deriv E1 #
β {π : Type u_1} [inst : RCLike π] {g : π β π} {u : π}, gradient g u = (starRingEnd π) (deriv g u)
theorem HasGradientAtFilter.hasDerivAtFilter' E1 #
β {g : β β β} {g' u : β} {L' : Filter β}, HasGradientAtFilter g g' u L' β HasDerivAtFilter g g' (L' ΓΛ’ pure u)
theorem HasDerivAtFilter.hasGradientAtFilter' E1 #
β {g : β β β} {g' u : β} {L' : Filter β}, HasDerivAtFilter g g' (L' ΓΛ’ pure u) β HasGradientAtFilter g g' u L'
theorem HasGradientAt.hasDerivAt' E1 #
β {g : β β β} {g' u : β}, HasGradientAt g g' u β HasDerivAt g g' u
theorem HasDerivAt.hasGradientAt' E1 #
β {g : β β β} {g' u : β}, HasDerivAt g g' u β HasGradientAt g g' u
theorem gradient_eq_deriv' E1 #
β {g : β β β} {u : β}, gradient g u = deriv g u
theorem hasGradientAtFilter_iff_isLittleO E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {L : Filter F},
HasGradientAtFilter f f' x L β (fun x' β¦ f x' - f x - inner π f' (x' - x)) =o[L] fun x' β¦ x' - x
theorem hasGradientWithinAt_iff_isLittleO E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F},
HasGradientWithinAt f f' s x β (fun x' β¦ f x' - f x - inner π f' (x' - x)) =o[nhdsWithin x s] fun x' β¦ x' - x
theorem hasGradientWithinAt_iff_tendsto E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F},
HasGradientWithinAt f f' s x β
Filter.Tendsto (fun x' β¦ βx' - xββ»ΒΉ * βf x' - f x - inner π f' (x' - x)β) (nhdsWithin x s) (nhds 0)
theorem hasGradientAt_iff_isLittleO E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F},
HasGradientAt f f' x β (fun x' β¦ f x' - f x - inner π f' (x' - x)) =o[nhds x] fun x' β¦ x' - x
theorem hasGradientAt_iff_tendsto E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F},
HasGradientAt f f' x β Filter.Tendsto (fun x' β¦ βx' - xββ»ΒΉ * βf x' - f x - inner π f' (x' - x)β) (nhds x) (nhds 0)
theorem HasGradientAtFilter.isBigO_sub E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {L : Filter F},
HasGradientAtFilter f f' x L β (fun x' β¦ f x' - f x) =O[L] fun x' β¦ x' - x
theorem hasGradientWithinAt_congr_set' E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s t : Set F} (y : F),
s =αΆ [nhdsWithin x {y}αΆ] t β (HasGradientWithinAt f f' s x β HasGradientWithinAt f f' t x)
theorem hasGradientWithinAt_congr_set E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s t : Set F},
s =αΆ [nhds x] t β (HasGradientWithinAt f f' s x β HasGradientWithinAt f f' t x)
theorem hasGradientAt_iff_isLittleO_nhds_zero E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F},
HasGradientAt f f' x β (fun h β¦ f (x + h) - f x - inner π f' h) =o[nhds 0] fun h β¦ h
theorem HasGradientWithinAt.fderivWithin_apply E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x y : F} {s : Set F},
HasGradientWithinAt f f' s x β UniqueDiffWithinAt π s x β (fderivWithin π f s x) y = inner π f' y
theorem HasGradientAt.fderiv_apply E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x y : F}, HasGradientAt f f' x β (fderiv π f x) y = inner π f' y
theorem inner_gradientWithin_left E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x y : F} {s : Set F},
inner π (gradientWithin f s x) y = (fderivWithin π f s x) y
theorem inner_gradient_left E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x y : F}, inner π (gradient f x) y = (fderiv π f x) y
theorem inner_gradientWithin_right E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x y : F} {s : Set F},
inner π x (gradientWithin f s y) = (starRingEnd π) ((fderivWithin π f s y) x)
theorem inner_gradient_right E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x y : F}, inner π x (gradient f y) = (starRingEnd π) ((fderiv π f y) x)
theorem Filter.EventuallyEq.hasGradientAtFilter_iff E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {x : F} {L : Filter F} {fβ fβ : F β π} {fβ' fβ' : F},
fβ =αΆ [L] fβ β fβ x = fβ x β fβ' = fβ' β (HasGradientAtFilter fβ fβ' x L β HasGradientAtFilter fβ fβ' x L)
theorem HasGradientAtFilter.congr_of_eventuallyEq E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {L : Filter F} {fβ : F β π},
HasGradientAtFilter f f' x L β fβ =αΆ [L] f β fβ x = f x β HasGradientAtFilter fβ f' x L
theorem HasGradientWithinAt.congr_mono E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F} {fβ : F β π} {t : Set F},
HasGradientWithinAt f f' s x β (β x β t, fβ x = f x) β fβ x = f x β t β s β HasGradientWithinAt fβ f' t x
theorem HasGradientWithinAt.congr E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F} {fβ : F β π},
HasGradientWithinAt f f' s x β (β x β s, fβ x = f x) β fβ x = f x β HasGradientWithinAt fβ f' s x
theorem HasGradientWithinAt.congr_of_mem E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F} {fβ : F β π},
HasGradientWithinAt f f' s x β (β x β s, fβ x = f x) β x β s β HasGradientWithinAt fβ f' s x
theorem HasGradientWithinAt.congr_of_eventuallyEq E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F} {fβ : F β π},
HasGradientWithinAt f f' s x β fβ =αΆ [nhdsWithin x s] f β fβ x = f x β HasGradientWithinAt fβ f' s x
theorem HasGradientWithinAt.congr_of_eventuallyEq_of_mem E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F} {fβ : F β π},
HasGradientWithinAt f f' s x β fβ =αΆ [nhdsWithin x s] f β x β s β HasGradientWithinAt fβ f' s x
theorem HasGradientAt.congr_of_eventuallyEq E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {fβ : F β π},
HasGradientAt f f' x β fβ =αΆ [nhds x] f β HasGradientAt fβ f' x
theorem Filter.EventuallyEq.gradient_eq E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {fβ : F β π}, fβ =αΆ [nhds x] f β gradient fβ x = gradient f x
theorem Filter.EventuallyEq.gradient E3 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {x : F} {fβ : F β π}, fβ =αΆ [nhds x] f β gradient fβ =αΆ [nhds x] gradient f
theorem hasGradientAtFilter_const E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (x : F) (L : Filter F) (c : π), HasGradientAtFilter (fun x β¦ c) 0 x L
theorem hasGradientWithinAt_const E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (x : F) (s : Set F) (c : π), HasGradientWithinAt (fun x β¦ c) 0 s x
theorem hasGradientAt_const E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (x : F) (c : π), HasGradientAt (fun x β¦ c) 0 x
theorem gradient_fun_const E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (x : F) (c : π), gradient (fun x β¦ c) x = 0
theorem gradient_const E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (x : F) (c : π), gradient (Function.const F c) x = 0
theorem gradient_fun_const' E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (c : π), (gradient fun x β¦ c) = fun x β¦ 0
theorem gradient_const' E0 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] (c : π), gradient (Function.const F c) = 0
theorem HasGradientAtFilter.tendsto_nhds E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {L : Filter F},
L β€ nhds x β HasGradientAtFilter f f' x L β Filter.Tendsto f L (nhds (f x))
theorem HasGradientWithinAt.continuousWithinAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F} {s : Set F}, HasGradientWithinAt f f' s x β ContinuousWithinAt f s x
theorem HasGradientAt.continuousAt E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {f' x : F}, HasGradientAt f f' x β ContinuousAt f x
theorem HasGradientAt.continuousOn E1 #
β {π : Type u_1} {F : Type u_2} [inst : RCLike π] [inst_1 : NormedAddCommGroup F] [inst_2 : InnerProductSpace π F]
[inst_3 : CompleteSpace F] {f : F β π} {s : Set F} {f' : F β F},
(β x β s, HasGradientAt f (f' x) x) β ContinuousOn f s