The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V17. Differential calculus in normed spaces

Mathlib.Analysis.Calculus.FDeriv.Basic

150 declarations and 6 deprecated aliases. Mathlib docs · Source

The Fréchet derivative: basic properties

Let E and F be normed spaces, f : E → F, and f' : E →L[𝕜] F a continuous 𝕜-linear map, where 𝕜 is a non-discrete normed field. Then

HasFDerivWithinAt f f' s x

says that f has derivative f' at x, where the domain of interest is restricted to s. We also have

HasFDerivAt f f' x := HasFDerivWithinAt f f' x univ

Finally,

HasStrictFDerivAt f f' x

means that f : E → F has derivative f' : E →L[𝕜] F in the sense of strict differentiability, i.e., f y - f z - f'(y - z) = o(y - z) as y, z → x. This notion is used in the inverse function theorem, and is defined here only to avoid proving theorems like IsBoundedBilinearMap.hasFDerivAt twice: first for HasFDerivAt, then for HasStrictFDerivAt.

Main results

This file builds on the bare-bones definition given in Defs.lean by establishing a variety of relatively straightforward properties of the derivative.

Deeper properties are defined in other files in the folder Analysis/Calculus/FDeriv/, which contain the usual formulas (and existence assertions) for the derivative of

  • constants (Const.lean)
  • bounded linear maps (Linear.lean)
  • bounded bilinear maps (Bilinear.lean)
  • sum of two functions (Add.lean)
  • sum of finitely many functions (Add.lean)
  • multiplication of a function by a scalar constant (Add.lean)
  • negative of a function (Add.lean)
  • subtraction of two functions (Add.lean)
  • multiplication of a function by a scalar function (Mul.lean)
  • multiplication of two scalar functions (Mul.lean)
  • composition of functions (the chain rule) (Comp.lean)
  • inverse function (Mul.lean) (assuming that it exists; the inverse function theorem is in ../Inverse.lean)

For most binary operations we also define const_op and op_const theorems for the cases when the first or second argument is a constant. This makes writing chains of HasDerivAt's easier, and they more frequently lead to the desired result.

One can also interpret the derivative of a function f : 𝕜 → E as an element of E (by identifying a linear function from 𝕜 to E with its value at 1). Results on the Fréchet derivative are translated to this more elementary point of view on the derivative in the file Deriv.lean. The derivative of polynomials is handled there, as it is naturally one-dimensional.

The simplifier is set up to prove automatically that some functions are differentiable, or differentiable at a point (but not differentiable on a set or within a set at a point, as checking automatically that the good domains are mapped one to the other when using composition is not something the simplifier can easily do). This means that one can write example (x : ℝ) : Differentiable ℝ (fun x ↦ sin (exp (3 + x^2)) - 5 * cos x) := by simp. If there are divisions, one needs to supply to the simplifier proofs that the denominators do not vanish, as in

example (x : ℝ) (h : 1 + sin x ≠ 0) : DifferentiableAt ℝ (fun x ↦ exp x / (1 + sin x)) x := by
  simp [h]

Of course, these examples only work once exp, cos and sin have been shown to be differentiable, in Mathlib/Analysis/SpecialFunctions/Trigonometric/Deriv.lean.

The simplifier is not set up to compute the Fréchet derivative of maps (as these are in general complicated multidimensional linear maps), but it will compute one-dimensional derivatives, see Deriv.lean.

Implementation notes

For a discussion of the definitions and their rationale, see the file docstring of Mathlib.Analysis.Calculus.FDeriv.Defs.

To make sure that the simplifier can prove automatically that functions are differentiable, we tag many lemmas with the simp attribute, for instance those saying that the sum of differentiable functions is differentiable, as well as their product, their Cartesian product, and so on. A notable exception is the chain rule: we do not mark as a simp lemma the fact that, if f and g are differentiable, then their composition also is: simp would always be able to match this lemma, by taking f or g to be the identity. Instead, for every reasonable function (say, exp), we add a lemma that if f is differentiable then so is (fun x ↦ exp (f x)). This means adding some boilerplate lemmas, but these can also be useful in their own right.

TODO

Generalize more results to topological vector spaces.

Tags

derivative, differentiable, Fréchet, calculus

Uniqueness of the derivative

In this section, we discuss the uniqueness of the derivative. We prove that the definitions UniqueDiffWithinAt and UniqueDiffOn indeed imply the uniqueness of the derivative.

Basic properties of the derivative

Being differentiable on a union of open sets can be tested on each set

Asymptotics, both spaces are TVS

In this section we prove big-O and little-O lemmas about differentiable functions between two topological vector spaces.

Deducing continuity from differentiability

Derivative of the identity

Estimates on the norm of the derivative vs Lipschitz-like estimates on f

Results involving semilinear maps

theorem HasFDerivWithinAt.lim E2 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {F : Type u_3} [inst_6 : AddCommGroup F]
  [inst_7 : Module 𝕜 F] [inst_8 : TopologicalSpace F] [ContinuousAdd F] [ContinuousSMul 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x →
    ∀ {α : Type u_4} {l : Filter α} {c : α → 𝕜} {d : α → E} {v : E},
      Filter.Tendsto d l (nhds 0) →
        (∀ᶠ (n : α) in l, x + d n ∈ s) →
          Filter.Tendsto (fun n ↦ c n • d n) l (nhds v) →
            Filter.Tendsto (fun n ↦ c n • (f (x + d n) - f x)) l (nhds (f' v))

If a function f has a derivative f' at x, a rescaled version of f around x converges to f', i.e., n (f (x + (1/n) v) - f x) converges to f' v. More generally, if d n tends to zero and c n * d n tends to v, then c n * (f (x + d n) - f x) tends to f' v. This lemma expresses this fact, for functions having a derivative within a set. Its specific formulation is useful for tangent cone related discussions.

theorem HasFDerivWithinAt.unique_on E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {F : Type u_3} [inst_6 : AddCommGroup F]
  [inst_7 : Module 𝕜 F] [inst_8 : TopologicalSpace F] [ContinuousAdd F] [ContinuousSMul 𝕜 F] {f : E → F}
  {f' f₁' : E →L[𝕜] F} {x : E} {s : Set E} [T2Space F],
  HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f₁' s x → Set.EqOn (⇑f') (⇑f₁') (tangentConeAt 𝕜 s x)

If f' and f₁' are two derivatives of f within s at x, then they are equal on the tangent cone to s at x

theorem UniqueDiffWithinAt.eq E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {F : Type u_3} [inst_6 : AddCommGroup F]
  [inst_7 : Module 𝕜 F] [inst_8 : TopologicalSpace F] [ContinuousAdd F] [ContinuousSMul 𝕜 F] {f : E → F}
  {f' f₁' : E →L[𝕜] F} {x : E} {s : Set E} [T2Space F],
  UniqueDiffWithinAt 𝕜 s x → HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f₁' s x → f' = f₁'

UniqueDiffWithinAt achieves its goal: it implies the uniqueness of the derivative.

theorem UniqueDiffOn.eq E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {F : Type u_3} [inst_6 : AddCommGroup F]
  [inst_7 : Module 𝕜 F] [inst_8 : TopologicalSpace F] [ContinuousAdd F] [ContinuousSMul 𝕜 F] {f : E → F}
  {f' f₁' : E →L[𝕜] F} {x : E} {s : Set E} [T2Space F],
  UniqueDiffOn 𝕜 s → x ∈ s → HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f₁' s x → f' = f₁'

theorem HasFDerivAt.unique E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {F : Type u_3} [inst_6 : AddCommGroup F]
  [inst_7 : Module 𝕜 F] [inst_8 : TopologicalSpace F] [ContinuousAdd F] [ContinuousSMul 𝕜 F] {f : E → F}
  {f' f₁' : E →L[𝕜] F} {x : E} [T2Space F], HasFDerivAt f f' x → HasFDerivAt f f₁' x → f' = f₁'

theorem HasFDerivAtFilter.mono E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {L₁ L₂ : Filter (E × E)},
  HasFDerivAtFilter f f' L₂ → L₁ ≤ L₂ → HasFDerivAtFilter f f' L₁

theorem HasFDerivWithinAt.mono_of_mem_nhdsWithin E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s t : Set E},
  HasFDerivWithinAt f f' t x → t ∈ nhdsWithin x s → HasFDerivWithinAt f f' s x

theorem HasFDerivWithinAt.mono E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s t : Set E},
  HasFDerivWithinAt f f' t x → s ⊆ t → HasFDerivWithinAt f f' s x

theorem HasFDerivAt.hasFDerivAtFilter E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {L : Filter (E × E)},
  HasFDerivAt f f' x → L ≤ nhds x ×ˢ pure x → HasFDerivAtFilter f f' L

theorem HasFDerivAt.hasFDerivWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivAt f f' x → HasFDerivWithinAt f f' s x

theorem HasFDerivWithinAt.differentiableWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x → DifferentiableWithinAt 𝕜 f s x

theorem HasFDerivAt.differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E}, HasFDerivAt f f' x → DifferentiableAt 𝕜 f x

theorem hasFDerivWithinAt_univ E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E},
  HasFDerivWithinAt f f' Set.univ x ↔ HasFDerivAt f f' x

theorem HasFDerivWithinAt.hasFDerivAt_of_univ E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E},
  HasFDerivWithinAt f f' Set.univ x → HasFDerivAt f f' x

Alias of the forward direction of hasFDerivWithinAt_univ.

theorem differentiableWithinAt_univ E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E}, DifferentiableWithinAt 𝕜 f Set.univ x ↔ DifferentiableAt 𝕜 f x

theorem fderiv_zero_of_not_differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E}, ¬DifferentiableAt 𝕜 f x → fderiv 𝕜 f x = 0

theorem hasFDerivWithinAt_of_mem_nhds E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  s ∈ nhds x → (HasFDerivWithinAt f f' s x ↔ HasFDerivAt f f' x)

theorem hasFDerivWithinAt_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  IsOpen s → x ∈ s → (HasFDerivWithinAt f f' s x ↔ HasFDerivAt f f' x)

theorem hasFDerivWithinAt_insert_self E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' (insert x s) x ↔ HasFDerivWithinAt f f' s x

theorem HasFDerivWithinAt.insert E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f' (insert x s) x

Alias of the reverse direction of hasFDerivWithinAt_insert_self.

theorem HasFDerivWithinAt.of_insert E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} {y : E},
  HasFDerivWithinAt f f' (insert y s) x → HasFDerivWithinAt f f' s x

theorem hasFDerivWithinAt_insert E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [T1Space E] {y : E},
  HasFDerivWithinAt f f' (insert y s) x ↔ HasFDerivWithinAt f f' s x

theorem HasFDerivWithinAt.insert' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [T1Space E] {y : E},
  HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f' (insert y s) x

Alias of the reverse direction of hasFDerivWithinAt_insert.

theorem hasFDerivWithinAt_sdiff_singleton_self E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' (s \ {x}) x ↔ HasFDerivWithinAt f f' s x

theorem hasFDerivWithinAt_sdiff_singleton E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [T1Space E] (y : E),
  HasFDerivWithinAt f f' (s \ {y}) x ↔ HasFDerivWithinAt f f' s x

theorem HasFDerivWithinAt.empty E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E}, HasFDerivWithinAt f f' ∅ x

theorem DifferentiableWithinAt.empty E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E}, DifferentiableWithinAt 𝕜 f ∅ x

theorem differentiableOn_empty E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F}, DifferentiableOn 𝕜 f ∅

theorem HasFDerivWithinAt.of_finite E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [T1Space E],
  s.Finite → HasFDerivWithinAt f f' s x

theorem DifferentiableWithinAt.of_finite E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [T1Space E], s.Finite → DifferentiableWithinAt 𝕜 f s x

theorem HasFDerivWithinAt.singleton E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [T1Space E] {y : E}, HasFDerivWithinAt f f' {x} y

theorem DifferentiableWithinAt.singleton E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} [T1Space E] {y : E}, DifferentiableWithinAt 𝕜 f {x} y

theorem HasFDerivWithinAt.of_subsingleton E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [T1Space E],
  s.Subsingleton → HasFDerivWithinAt f f' s x

theorem DifferentiableWithinAt.of_subsingleton E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [T1Space E],
  s.Subsingleton → DifferentiableWithinAt 𝕜 f s x

theorem HasStrictFDerivAt.hasFDerivAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E}, HasStrictFDerivAt f f' x → HasFDerivAt f f' x

theorem HasStrictFDerivAt.differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E}, HasStrictFDerivAt f f' x → DifferentiableAt 𝕜 f x

theorem HasFDerivAt.lim E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  HasFDerivAt f f' x →
    ∀ (v : E) {α : Type u_4} {c : α → 𝕜} {l : Filter α},
      Filter.Tendsto (fun n ↦ ‖c n‖) l Filter.atTop →
        Filter.Tendsto (fun n ↦ c n • (f (x + (c n)⁻¹ • v) - f x)) l (nhds (f' v))

Directional derivative agrees with HasFDeriv.

theorem hasFDerivWithinAt_inter' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s t : Set E},
  t ∈ nhdsWithin x s → (HasFDerivWithinAt f f' (s ∩ t) x ↔ HasFDerivWithinAt f f' s x)

theorem hasFDerivWithinAt_inter E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s t : Set E},
  t ∈ nhds x → (HasFDerivWithinAt f f' (s ∩ t) x ↔ HasFDerivWithinAt f f' s x)

theorem HasFDerivWithinAt.union E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s t : Set E},
  HasFDerivWithinAt f f' s x → HasFDerivWithinAt f f' t x → HasFDerivWithinAt f f' (s ∪ t) x

theorem HasFDerivWithinAt.hasFDerivAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x → s ∈ nhds x → HasFDerivAt f f' x

theorem DifferentiableWithinAt.differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f s x → s ∈ nhds x → DifferentiableAt 𝕜 f x

theorem HasFDerivWithinAt.of_not_accPt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  ¬AccPt x (Filter.principal s) → HasFDerivWithinAt f f' s x

If x is isolated in s, then f has any derivative at x within s, as this statement is empty.

theorem HasFDerivWithinAt.of_notMem_closure E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E},
  x ∉ closure s → HasFDerivWithinAt f f' s x

If x is not in the closure of s, then f has any derivative at x within s, as this statement is empty.

theorem fderivWithin_zero_of_not_accPt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  ¬AccPt x (Filter.principal s) → fderivWithin 𝕜 f s x = 0

theorem fderivWithin_zero_of_notMem_closure E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E}, x ∉ closure s → fderivWithin 𝕜 f s x = 0

theorem fderivWithin_zero_of_not_uniqueDiffWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {F : Type u_3} [inst_1 : AddCommGroup F] [inst_2 : Module 𝕜 F]
  [inst_3 : TopologicalSpace F] {f : 𝕜 → F} {x : 𝕜} {s : Set 𝕜}, ¬UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 f s x = 0

theorem DifferentiableWithinAt.hasFDerivWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f s x → HasFDerivWithinAt f (fderivWithin 𝕜 f s x) s x

theorem DifferentiableAt.hasFDerivAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E}, DifferentiableAt 𝕜 f x → HasFDerivAt f (fderiv 𝕜 f x) x

theorem DifferentiableOn.hasFDerivAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableOn 𝕜 f s → s ∈ nhds x → HasFDerivAt f (fderiv 𝕜 f x) x

theorem DifferentiableOn.differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableOn 𝕜 f s → s ∈ nhds x → DifferentiableAt 𝕜 f x

theorem DifferentiableOn.eventually_differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableOn 𝕜 f s → s ∈ nhds x → ∀ᶠ (y : E) in nhds x, DifferentiableAt 𝕜 f y

theorem HasFDerivAt.fderiv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F] [T2Space F], HasFDerivAt f f' x → fderiv 𝕜 f x = f'

theorem fderiv_eq E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F] [T2Space F] {f' : E → E →L[𝕜] F}, (∀ (x : E), HasFDerivAt f (f' x) x) → fderiv 𝕜 f = f'

theorem HasFDerivWithinAt.fderivWithin E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F] [T2Space F],
  HasFDerivWithinAt f f' s x → UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 f s x = f'

theorem DifferentiableWithinAt.mono E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  DifferentiableWithinAt 𝕜 f t x → s ⊆ t → DifferentiableWithinAt 𝕜 f s x

theorem DifferentiableWithinAt.mono_of_mem_nhdsWithin E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f s x → ∀ {t : Set E}, s ∈ nhdsWithin x t → DifferentiableWithinAt 𝕜 f t x

theorem DifferentiableWithinAt.congr_nhds E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f s x → ∀ {t : Set E}, nhdsWithin x s = nhdsWithin x t → DifferentiableWithinAt 𝕜 f t x

theorem differentiableWithinAt_congr_nhds E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  nhdsWithin x s = nhdsWithin x t → (DifferentiableWithinAt 𝕜 f s x ↔ DifferentiableWithinAt 𝕜 f t x)

theorem differentiableWithinAt_inter E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  t ∈ nhds x → (DifferentiableWithinAt 𝕜 f (s ∩ t) x ↔ DifferentiableWithinAt 𝕜 f s x)

theorem differentiableWithinAt_inter' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  t ∈ nhdsWithin x s → (DifferentiableWithinAt 𝕜 f (s ∩ t) x ↔ DifferentiableWithinAt 𝕜 f s x)

theorem differentiableWithinAt_insert_self E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f (insert x s) x ↔ DifferentiableWithinAt 𝕜 f s x

theorem DifferentiableWithinAt.insert E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E},
  DifferentiableWithinAt 𝕜 f s x → DifferentiableWithinAt 𝕜 f (insert x s) x

Alias of the reverse direction of differentiableWithinAt_insert_self.

theorem DifferentiableWithinAt.of_insert E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} {y : E},
  DifferentiableWithinAt 𝕜 f (insert y s) x → DifferentiableWithinAt 𝕜 f s x

theorem differentiableWithinAt_insert E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [T1Space E] {y : E},
  DifferentiableWithinAt 𝕜 f (insert y s) x ↔ DifferentiableWithinAt 𝕜 f s x

theorem DifferentiableWithinAt.insert' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [T1Space E] {y : E},
  DifferentiableWithinAt 𝕜 f s x → DifferentiableWithinAt 𝕜 f (insert y s) x

Alias of the reverse direction of differentiableWithinAt_insert.

theorem DifferentiableAt.differentiableWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E}, DifferentiableAt 𝕜 f x → DifferentiableWithinAt 𝕜 f s x

theorem Differentiable.differentiableAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E}, Differentiable 𝕜 f → DifferentiableAt 𝕜 f x

theorem DifferentiableAt.fderivWithin E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F] [T2Space F],
  DifferentiableAt 𝕜 f x → UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 f s x = fderiv 𝕜 f x

theorem DifferentiableOn.mono E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s t : Set E}, DifferentiableOn 𝕜 f t → s ⊆ t → DifferentiableOn 𝕜 f s

theorem differentiableOn_univ E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F}, DifferentiableOn 𝕜 f Set.univ ↔ Differentiable 𝕜 f

theorem Differentiable.differentiableOn E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s : Set E}, Differentiable 𝕜 f → DifferentiableOn 𝕜 f s

theorem differentiableOn_of_locally_differentiableOn E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s : Set E},
  (∀ x ∈ s, ∃ u, IsOpen u ∧ x ∈ u ∧ DifferentiableOn 𝕜 f (s ∩ u)) → DifferentiableOn 𝕜 f s

theorem fderivWithin_of_mem_nhdsWithin E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F] [T2Space F],
  t ∈ nhdsWithin x s →
    UniqueDiffWithinAt 𝕜 s x → DifferentiableWithinAt 𝕜 f t x → fderivWithin 𝕜 f s x = fderivWithin 𝕜 f t x

theorem fderivWithin_subset E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  s ⊆ t →
    UniqueDiffWithinAt 𝕜 s x →
      ∀ [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F] [ContinuousSMul 𝕜 F] [T2Space F],
        DifferentiableWithinAt 𝕜 f t x → fderivWithin 𝕜 f s x = fderivWithin 𝕜 f t x

theorem fderivWithin_inter E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s t : Set E},
  t ∈ nhds x → fderivWithin 𝕜 f (s ∩ t) x = fderivWithin 𝕜 f s x

theorem fderivWithin_of_mem_nhds E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E}, s ∈ nhds x → fderivWithin 𝕜 f s x = fderiv 𝕜 f x

theorem fderivWithin_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E}, IsOpen s → x ∈ s → fderivWithin 𝕜 f s x = fderiv 𝕜 f x

theorem fderivWithin_eq_fderiv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F] [T2Space F],
  UniqueDiffWithinAt 𝕜 s x → DifferentiableAt 𝕜 f x → fderivWithin 𝕜 f s x = fderiv 𝕜 f x

theorem fderiv_mem_iff E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s : Set (E →L[𝕜] F)} {x : E},
  fderiv 𝕜 f x ∈ s ↔ DifferentiableAt 𝕜 f x ∧ fderiv 𝕜 f x ∈ s ∨ ¬DifferentiableAt 𝕜 f x ∧ 0 ∈ s

theorem fderivWithin_mem_iff E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {t : Set E} {s : Set (E →L[𝕜] F)} {x : E},
  fderivWithin 𝕜 f t x ∈ s ↔
    DifferentiableWithinAt 𝕜 f t x ∧ fderivWithin 𝕜 f t x ∈ s ∨ ¬DifferentiableWithinAt 𝕜 f t x ∧ 0 ∈ s

theorem DifferentiableOn.union_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s t : Set E},
  DifferentiableOn 𝕜 f s → DifferentiableOn 𝕜 f t → IsOpen s → IsOpen t → DifferentiableOn 𝕜 f (s ∪ t)

If a function is differentiable on two open sets, it is also differentiable on their union.

theorem differentiableOn_union_iff_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s t : Set E},
  IsOpen s → IsOpen t → (DifferentiableOn 𝕜 f (s ∪ t) ↔ DifferentiableOn 𝕜 f s ∧ DifferentiableOn 𝕜 f t)

A function is differentiable on two open sets iff it is differentiable on their union.

theorem differentiable_of_differentiableOn_union_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s t : Set E},
  DifferentiableOn 𝕜 f s → DifferentiableOn 𝕜 f t → s ∪ t = Set.univ → IsOpen s → IsOpen t → Differentiable 𝕜 f

theorem DifferentiableOn.iUnion_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {ι : Type u_4} {s : ι → Set E},
  (∀ (i : ι), DifferentiableOn 𝕜 f (s i)) → (∀ (i : ι), IsOpen (s i)) → DifferentiableOn 𝕜 f (⋃ i, s i)

If a function is differentiable on open sets s i, it is differentiable on their union.

theorem differentiableOn_iUnion_iff_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {ι : Type u_4} {s : ι → Set E},
  (∀ (i : ι), IsOpen (s i)) → (DifferentiableOn 𝕜 f (⋃ i, s i) ↔ ∀ (i : ι), DifferentiableOn 𝕜 f (s i))

A function is differentiable on a union of open sets s i iff it is differentiable on each s i.

theorem differentiable_of_differentiableOn_iUnion_of_isOpen E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {ι : Type u_4} {s : ι → Set E},
  (∀ (i : ι), DifferentiableOn 𝕜 f (s i)) → (∀ (i : ι), IsOpen (s i)) → ⋃ i, s i = Set.univ → Differentiable 𝕜 f

theorem HasFDerivAtFilter.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {L : Filter (E × E)} [ContinuousAdd F]
  [ContinuousSMul 𝕜 F], HasFDerivAtFilter f f' L → (fun p ↦ f p.1 - f p.2) =O[𝕜; L] fun p ↦ p.1 - p.2

theorem HasStrictFDerivAt.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  HasStrictFDerivAt f f' x → (fun p ↦ f p.1 - f p.2) =O[𝕜; nhds (x, x)] fun p ↦ p.1 - p.2

theorem HasFDerivWithinAt.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  HasFDerivWithinAt f f' s x → (fun x_1 ↦ f x_1 - f x) =O[𝕜; nhdsWithin x s] fun x_1 ↦ x_1 - x

theorem DifferentiableWithinAt.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  DifferentiableWithinAt 𝕜 f s x → (fun x_1 ↦ f x_1 - f x) =O[𝕜; nhdsWithin x s] fun x_1 ↦ x_1 - x

theorem HasFDerivAt.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  HasFDerivAt f f' x → (fun x_1 ↦ f x_1 - f x) =O[𝕜; nhds x] fun x_1 ↦ x_1 - x

theorem DifferentiableAt.isBigOTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} [ContinuousAdd F] [ContinuousSMul 𝕜 F],
  DifferentiableAt 𝕜 f x → (fun x_1 ↦ f x_1 - f x) =O[𝕜; nhds x] fun x_1 ↦ x_1 - x

theorem HasFDerivAtFilter.tendsto_nhds E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F] {L : Filter E},
  L ≤ nhds x → HasFDerivAtFilter f f' (L ×ˢ pure x) → Filter.Tendsto f L (nhds (f x))

theorem HasFDerivWithinAt.continuousWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F], HasFDerivWithinAt f f' s x → ContinuousWithinAt f s x

theorem HasFDerivAt.continuousAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F], HasFDerivAt f f' x → ContinuousAt f x

theorem DifferentiableWithinAt.continuousWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F], DifferentiableWithinAt 𝕜 f s x → ContinuousWithinAt f s x

theorem DifferentiableAt.continuousAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F], DifferentiableAt 𝕜 f x → ContinuousAt f x

theorem DifferentiableOn.continuousOn E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F], DifferentiableOn 𝕜 f s → ContinuousOn f s

theorem Differentiable.continuous E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [ContinuousAdd F]
  [ContinuousSMul 𝕜 F], Differentiable 𝕜 f → Continuous f

theorem HasStrictFDerivAt.continuousAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F]
  [inst_6 : TopologicalSpace F] {f : E → F} {f' : E →L[𝕜] F} {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E]
  [ContinuousAdd F] [ContinuousSMul 𝕜 F], HasStrictFDerivAt f f' x → ContinuousAt f x

theorem hasFDerivAtFilter_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] (L : Filter (E × E)), HasFDerivAtFilter id (ContinuousLinearMap.id 𝕜 E) L

theorem hasStrictFDerivAt_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] (x : E), HasStrictFDerivAt id (ContinuousLinearMap.id 𝕜 E) x

theorem hasFDerivWithinAt_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] (x : E) (s : Set E), HasFDerivWithinAt id (ContinuousLinearMap.id 𝕜 E) s x

theorem hasFDerivAt_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] (x : E), HasFDerivAt id (ContinuousLinearMap.id 𝕜 E) x

theorem differentiableAt_fun_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E}, DifferentiableAt 𝕜 (fun x ↦ x) x

Eta-expanded form of differentiableAt_id

theorem differentiableAt_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E}, DifferentiableAt 𝕜 id x

theorem differentiableWithinAt_fun_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} {s : Set E}, DifferentiableWithinAt 𝕜 (fun x ↦ x) s x

Eta-expanded form of differentiableWithinAt_id

theorem differentiableWithinAt_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} {s : Set E}, DifferentiableWithinAt 𝕜 id s x

theorem differentiable_fun_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E], Differentiable 𝕜 fun x ↦ x

Eta-expanded form of differentiable_id

theorem differentiable_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E], Differentiable 𝕜 id

theorem differentiableOn_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {s : Set E}, DifferentiableOn 𝕜 id s

theorem fderiv_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [T2Space E],
  fderiv 𝕜 id x = ContinuousLinearMap.id 𝕜 E

theorem fderiv_fun_id E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [T2Space E],
  fderiv 𝕜 (fun x ↦ x) x = ContinuousLinearMap.id 𝕜 E

Eta-expanded form of fderiv_id

theorem fderivWithin_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [T2Space E],
  UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 id s x = ContinuousLinearMap.id 𝕜 E

theorem fderivWithin_fun_id E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {x : E} {s : Set E} [ContinuousAdd E] [ContinuousSMul 𝕜 E] [T2Space E],
  UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 (fun x ↦ x) s x = ContinuousLinearMap.id 𝕜 E

Eta-expanded form of fderivWithin_id

theorem HasFDerivAtFilter.isEquivalent_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {L : Filter (E × E)},
  HasFDerivAtFilter f f' L →
    Topology.IsInducing ⇑f' → Asymptotics.IsEquivalent L (fun p ↦ f p.1 - f p.2) fun p ↦ f' (p.1 - p.2)

theorem HasFDerivAtFilter.isThetaTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {L : Filter (E × E)},
  HasFDerivAtFilter f f' L → Topology.IsInducing ⇑f' → (fun p ↦ f p.1 - f p.2) =Θ[𝕜; L] fun p ↦ p.1 - p.2

theorem HasFDerivAt.isEquivalent_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasFDerivAt f f' x →
    Topology.IsInducing ⇑f' → Asymptotics.IsEquivalent (nhds x) (fun x_1 ↦ f x_1 - f x) fun x_1 ↦ f' (x_1 - x)

theorem HasFDerivAt.isThetaTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasFDerivAt f f' x → Topology.IsInducing ⇑f' → (fun x_1 ↦ f x_1 - f x) =Θ[𝕜; nhds x] fun x_1 ↦ x_1 - x

theorem HasFDerivWithinAt.isEquivalent_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x →
    Topology.IsInducing ⇑f' → Asymptotics.IsEquivalent (nhdsWithin x s) (fun x_1 ↦ f x_1 - f x) fun x_1 ↦ f' (x_1 - x)

theorem HasFDerivWithinAt.isThetaTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x → Topology.IsInducing ⇑f' → (fun x_1 ↦ f x_1 - f x) =Θ[𝕜; nhdsWithin x s] fun x_1 ↦ x_1 - x

theorem HasStrictFDerivAt.isEquivalent_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasStrictFDerivAt f f' x →
    Topology.IsInducing ⇑f' → Asymptotics.IsEquivalent (nhds (x, x)) (fun p ↦ f p.1 - f p.2) fun p ↦ f' (p.1 - p.2)

theorem HasStrictFDerivAt.isThetaTVS_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module 𝕜 E]
  [inst_3 : TopologicalSpace E] {F : Type u_3} [inst_4 : NormedAddCommGroup F] [inst_5 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasStrictFDerivAt f f' x → Topology.IsInducing ⇑f' → (fun p ↦ f p.1 - f p.2) =Θ[𝕜; nhds (x, x)] fun p ↦ p.1 - p.2

theorem hasFDerivAtFilter_iff_tendsto E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {L : Filter (E × E)},
  HasFDerivAtFilter f f' L ↔ Filter.Tendsto (fun p ↦ ‖p.1 - p.2‖⁻¹ * ‖f p.1 - f p.2 - f' (p.1 - p.2)‖) L (nhds 0)

theorem hasFDerivWithinAt_iff_tendsto E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x ↔
    Filter.Tendsto (fun x' ↦ ‖x' - x‖⁻¹ * ‖f x' - f x - f' (x' - x)‖) (nhdsWithin x s) (nhds 0)

theorem hasFDerivAt_iff_tendsto E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasFDerivAt f f' x ↔ Filter.Tendsto (fun x' ↦ ‖x' - x‖⁻¹ * ‖f x' - f x - f' (x' - x)‖) (nhds x) (nhds 0)

theorem hasFDerivAt_iff_isLittleO_nhds_zero E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E}, HasFDerivAt f f' x ↔ (fun h ↦ f (x + h) - f x - f' h) =o[nhds 0] fun h ↦ h

theorem HasStrictFDerivAt.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E}, HasStrictFDerivAt f f' x → (fun p ↦ f p.1 - f p.2) =O[nhds (x, x)] fun p ↦ p.1 - p.2

theorem HasFDerivAtFilter.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {L : Filter (E × E)}, HasFDerivAtFilter f f' L → (fun p ↦ f p.1 - f p.2) =O[L] fun p ↦ p.1 - p.2

theorem HasFDerivWithinAt.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x₀ : E} {s : Set E},
  HasFDerivWithinAt f f' s x₀ → (fun x ↦ f x - f x₀) =O[nhdsWithin x₀ s] fun x ↦ x - x₀

theorem DifferentiableWithinAt.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {s : Set E}, DifferentiableWithinAt 𝕜 f s x₀ → (fun x ↦ f x - f x₀) =O[nhdsWithin x₀ s] fun x ↦ x - x₀

theorem HasFDerivAt.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x₀ : E}, HasFDerivAt f f' x₀ → (fun x ↦ f x - f x₀) =O[nhds x₀] fun x ↦ x - x₀

theorem DifferentiableAt.isBigO_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E}, DifferentiableAt 𝕜 f x₀ → (fun x ↦ f x - f x₀) =O[nhds x₀] fun x ↦ x - x₀

theorem Asymptotics.IsBigO.hasFDerivWithinAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {s : Set E} {n : ℕ},
  (f =O[nhdsWithin x₀ s] fun x ↦ ‖x - x₀‖ ^ n) → x₀ ∈ s → 1 < n → HasFDerivWithinAt f 0 s x₀

theorem Asymptotics.IsBigO.hasFDerivAt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {n : ℕ}, (f =O[nhds x₀] fun x ↦ ‖x - x₀‖ ^ n) → 1 < n → HasFDerivAt f 0 x₀

theorem HasStrictFDerivAt.isTheta_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasStrictFDerivAt f f' x → Topology.IsInducing ⇑f' → (fun p ↦ f p.1 - f p.2) =Θ[nhds (x, x)] fun p ↦ p.1 - p.2

theorem HasFDerivAtFilter.isTheta_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {L : Filter (E × E)},
  HasFDerivAtFilter f f' L → Topology.IsInducing ⇑f' → (fun p ↦ f p.1 - f p.2) =Θ[L] fun p ↦ p.1 - p.2

theorem HasFDerivWithinAt.isTheta_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E} {s : Set E},
  HasFDerivWithinAt f f' s x → Topology.IsInducing ⇑f' → (fun x_1 ↦ f x_1 - f x) =Θ[nhdsWithin x s] fun x_1 ↦ x_1 - x

theorem HasFDerivAt.isTheta_sub E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E},
  HasFDerivAt f f' x → Topology.IsInducing ⇑f' → (fun x_1 ↦ f x_1 - f x) =Θ[nhds x] fun x_1 ↦ x_1 - x

theorem HasStrictFDerivAt.exists_lipschitzOnWith_of_nnNorm_lt E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E}, HasStrictFDerivAt f f' x → ∀ (K : NNReal), ‖f'‖₊ < K → ∃ s ∈ nhds x, LipschitzOnWith K f s

If f is strictly differentiable at x with derivative f' and K > ‖f'‖₊, then f is K-Lipschitz in a neighborhood of x.

theorem HasStrictFDerivAt.exists_lipschitzOnWith E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x : E}, HasStrictFDerivAt f f' x → ∃ K, ∃ s ∈ nhds x, LipschitzOnWith K f s

If f is strictly differentiable at x with derivative f', then f is Lipschitz in a neighborhood of x. See also HasStrictFDerivAt.exists_lipschitzOnWith_of_nnNorm_lt for a more precise statement.

theorem HasFDerivAt.le_of_lip' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x₀ : E},
  HasFDerivAt f f' x₀ → ∀ {C : ℝ}, 0 ≤ C → (∀ᶠ (x : E) in nhds x₀, ‖f x - f x₀‖ ≤ C * ‖x - x₀‖) → ‖f'‖ ≤ C

Converse to the mean value inequality: if f is differentiable at x₀ and C-lipschitz on a neighborhood of x₀ then its derivative at x₀ has norm bounded by C. This version only assumes that ‖f x - f x₀‖ ≤ C * ‖x - x₀‖ in a neighborhood of x.

theorem HasFDerivAt.le_of_lipschitzOn E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x₀ : E},
  HasFDerivAt f f' x₀ → ∀ {s : Set E}, s ∈ nhds x₀ → ∀ {C : NNReal}, LipschitzOnWith C f s → ‖f'‖ ≤ ↑C

Converse to the mean value inequality: if f is differentiable at x₀ and C-lipschitz on a neighborhood of x₀ then its derivative at x₀ has norm bounded by C.

theorem HasFDerivAt.le_of_lipschitz E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {f' : E →L[𝕜] F} {x₀ : E}, HasFDerivAt f f' x₀ → ∀ {C : NNReal}, LipschitzWith C f → ‖f'‖ ≤ ↑C

Converse to the mean value inequality: if f is differentiable at x₀ and C-lipschitz then its derivative at x₀ has norm bounded by C.

theorem norm_fderiv_le_of_lip' E1 #

∀ (𝕜 : Type u_1) [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {C : ℝ}, 0 ≤ C → (∀ᶠ (x : E) in nhds x₀, ‖f x - f x₀‖ ≤ C * ‖x - x₀‖) → ‖fderiv 𝕜 f x₀‖ ≤ C

Converse to the mean value inequality: if f is C-lipschitz on a neighborhood of x₀ then its derivative at x₀ has norm bounded by C. This version only assumes that ‖f x - f x₀‖ ≤ C * ‖x - x₀‖ in a neighborhood of x.

theorem norm_fderiv_le_of_lipschitzOn E1 #

∀ (𝕜 : Type u_1) [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {s : Set E}, s ∈ nhds x₀ → ∀ {C : NNReal}, LipschitzOnWith C f s → ‖fderiv 𝕜 f x₀‖ ≤ ↑C

Converse to the mean value inequality: if f is C-lipschitz on a neighborhood of x₀ then its derivative at x₀ has norm bounded by C. Version using fderiv.

theorem norm_fderiv_le_of_lipschitz E1 #

∀ (𝕜 : Type u_1) [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {f : E → F}
  {x₀ : E} {C : NNReal}, LipschitzWith C f → ‖fderiv 𝕜 f x₀‖ ≤ ↑C

Converse to the mean value inequality: if f is C-lipschitz then its derivative at x₀ has norm bounded by C. Version using fderiv.

theorem HasFDerivAt.comp_semilinear E1 #

∀ {𝕜 : Type u_1} {V : Type u_2} {V' : Type u_3} {W : Type u_4} {W' : Type u_5} [inst : NontriviallyNormedField 𝕜]
  {σ σ' : 𝕜 →+* 𝕜} [inst_1 : NormedAddCommGroup V] [inst_2 : NormedSpace 𝕜 V] [inst_3 : NormedAddCommGroup V']
  [inst_4 : NormedSpace 𝕜 V'] [inst_5 : NormedAddCommGroup W] [inst_6 : NormedSpace 𝕜 W]
  [inst_7 : NormedAddCommGroup W'] [inst_8 : NormedSpace 𝕜 W'] [RingHomIsometric σ] [inst_10 : RingHomInvPair σ σ']
  (L : W →SL[σ] W') (R : V' →SL[σ'] V) {f : V → W} {z : V'} {f' : V →L[𝕜] W},
  HasFDerivAt f f' (R z) → HasFDerivAt (⇑L ∘ f ∘ ⇑R) (L ∘SL f' ∘SL R) z

If L and R are semilinear maps whose composite is linear, and f has Fréchet derivative f' at R z, then L ∘ f ∘ R has Fréchet derivative L ∘ f' ∘ R at z.

theorem DifferentiableAt.comp_semilinear₂ E1 #

∀ {𝕜 : Type u_1} {V : Type u_2} {V' : Type u_3} {W : Type u_4} {W' : Type u_5} [inst : NontriviallyNormedField 𝕜]
  {σ σ' : 𝕜 →+* 𝕜} [inst_1 : NormedAddCommGroup V] [inst_2 : NormedSpace 𝕜 V] [inst_3 : NormedAddCommGroup V']
  [inst_4 : NormedSpace 𝕜 V'] [inst_5 : NormedAddCommGroup W] [inst_6 : NormedSpace 𝕜 W]
  [inst_7 : NormedAddCommGroup W'] [inst_8 : NormedSpace 𝕜 W'] [RingHomIsometric σ] [RingHomInvPair σ σ']
  (L : W →SL[σ] W') (R : V' →SL[σ'] V) {f : V → W} {z : V'},
  DifferentiableAt 𝕜 f (R z) → DifferentiableAt 𝕜 (⇑L ∘ f ∘ ⇑R) z

If L and R are semilinear maps whose composite is linear, and f is differentiable at R z, then L ∘ f ∘ R is differentiable at z.

Deprecated aliases

NameNew nameSince
HasStrictFDerivAt.exists_lipschitzOnWith_of_nnnorm_ltHasStrictFDerivAt.exists_lipschitzOnWith_of_nnNorm_lt2026-10-31
differentiableWithinAt_id'differentiableWithinAt_fun_id2026-05-17
fderivWithin_id'fderivWithin_fun_id2026-05-17
fderiv_id'fderiv_fun_id2026-05-17
hasFDerivWithinAt_diff_singletonhasFDerivWithinAt_sdiff_singleton2026-06-03
hasFDerivWithinAt_diff_singleton_selfhasFDerivWithinAt_sdiff_singleton_self2026-06-03