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 / V15. Real analysis in one variable

Mathlib.Analysis.Calculus.Deriv.Basic

195 declarations and 1 deprecated aliases. Mathlib docs Β· Source

One-dimensional derivatives

This file defines the derivative of a function f : π•œ β†’ F where π•œ is a normed field and F is a normed space over this field. The derivative of such a function f at a point x is given by an element f' : F.

The theory is developed analogously to the FrΓ©chet derivatives. We first introduce predicates defined in terms of the corresponding predicates for FrΓ©chet derivatives:

  • HasDerivAtFilter f f' L states that the function f has the derivative f' along the filter L : Filter (π•œ Γ— π•œ).

  • HasDerivWithinAt f f' s x states that the function f has the derivative f' at the point x within the subset s.

  • HasDerivAt f f' x states that the function f has the derivative f' at the point x.

  • HasStrictDerivAt f f' x states that the function f has the derivative f' at the point x in the sense of strict differentiability, i.e., f y - f z = (y - z) β€’ f' + o (y - z) as y, z β†’ x.

For the last two notions we also define a functional version:

  • derivWithin f s x is a derivative of f at x within s. If the derivative does not exist, then derivWithin f s x equals zero.

  • deriv f x is a derivative of f at x. If the derivative does not exist, then deriv f x equals zero.

The theorems fderivWithin_derivWithin and fderiv_deriv show that the one-dimensional derivatives coincide with the general FrΓ©chet derivatives.

We also show the existence and compute the derivatives of:

  • constants
  • the identity function
  • linear maps (in Linear.lean)
  • addition (in Add.lean)
  • sum of finitely many functions (in Add.lean)
  • negation (in Add.lean)
  • subtraction (in Add.lean)
  • star (in Star.lean)
  • multiplication of two functions in π•œ β†’ π•œ (in Mul.lean)
  • multiplication of a function in π•œ β†’ π•œ and of a function in π•œ β†’ E (in Mul.lean)
  • powers of a function (in Pow.lean and ZPow.lean)
  • inverse x β†’ x⁻¹ (in Inv.lean)
  • division (in Inv.lean)
  • composition of a function in π•œ β†’ F with a function in π•œ β†’ π•œ (in Comp.lean)
  • composition of a function in F β†’ E with a function in π•œ β†’ F (in Comp.lean)
  • inverse function (assuming that it exists; the inverse function theorem is in Inverse.lean)
  • polynomials (in Polynomial.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.

We set up the simplifier so that it can compute the derivative of simple functions. For instance,

example (x : ℝ) :
    deriv (fun x ↦ cos (sin x) * exp x) x = (cos (sin x) - sin (sin x) * cos x) * exp x := by
  simp; ring

The relationship between the derivative of a function and its definition from a standard undergraduate course as the limit of the slope (f y - f x) / (y - x) as y tends to 𝓝[β‰ ] x is developed in the file Mathlib/Analysis/Calculus/Deriv/Slope.lean.

Implementation notes

Most of the theorems are direct restatements of the corresponding theorems for FrΓ©chet derivatives.

The strategy to construct simp lemmas that give the simplifier the possibility to compute derivatives is the same as the one for differentiability statements, as explained in Mathlib/Analysis/Calculus/FDeriv/Basic.lean. See the explanations there.

Congruence properties of derivatives

Derivative of the identity

Derivative of constant functions

This include the constant functions 0, 1, Nat.cast n, Int.cast z, and other numerals.

Continuity of a function admitting a derivative

def HasDerivAtFilter E3 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’
      [inst_1 : AddCommGroup F] β†’
        [inst_2 : Module π•œ F] β†’
          [inst_3 : TopologicalSpace F] β†’ [ContinuousSMul π•œ F] β†’ (π•œ β†’ F) β†’ F β†’ Filter (π•œ Γ— π•œ) β†’ Prop

f has the derivative f' along the filter L.

That is, f x' = f x + (x' - x) β€’ f' + o(x' - x) where (x', x) converges along the filter L.

def HasDerivWithinAt E1 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’
      [inst_1 : AddCommGroup F] β†’
        [inst_2 : Module π•œ F] β†’ [inst_3 : TopologicalSpace F] β†’ [ContinuousSMul π•œ F] β†’ (π•œ β†’ F) β†’ F β†’ Set π•œ β†’ π•œ β†’ Prop

f has the derivative f' at the point x within the subset s.

That is, f x' = f x + (x' - x) β€’ f' + o(x' - x) where x' converges to x inside s.

def HasDerivAt E3 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’
      [inst_1 : AddCommGroup F] β†’
        [inst_2 : Module π•œ F] β†’ [inst_3 : TopologicalSpace F] β†’ [ContinuousSMul π•œ F] β†’ (π•œ β†’ F) β†’ F β†’ π•œ β†’ Prop

f has the derivative f' at the point x.

That is, f x' = f x + (x' - x) β€’ f' + o(x' - x) where x' converges to x.

def HasStrictDerivAt E1 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’
      [inst_1 : AddCommGroup F] β†’
        [inst_2 : Module π•œ F] β†’ [inst_3 : TopologicalSpace F] β†’ [ContinuousSMul π•œ F] β†’ (π•œ β†’ F) β†’ F β†’ π•œ β†’ Prop

f has the derivative f' at the point x in the sense of strict differentiability.

That is, f y - f z = (y - z) β€’ f' + o(y - z) as y, z β†’ x.

def derivWithin E1 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’ [inst_1 : AddCommGroup F] β†’ [Module π•œ F] β†’ [TopologicalSpace F] β†’ (π•œ β†’ F) β†’ Set π•œ β†’ π•œ β†’ F

Derivative of f at the point x within the set s, if it exists. Zero otherwise.

If the derivative exists (i.e., βˆƒ f', HasDerivWithinAt f f' s x), then f x' = f x + (x' - x) β€’ derivWithin f s x + o(x' - x) where x' converges to x inside s.

def deriv E3 #

{π•œ : Type u} β†’
  [inst : NontriviallyNormedField π•œ] β†’
    {F : Type v} β†’ [inst_1 : AddCommGroup F] β†’ [Module π•œ F] β†’ [TopologicalSpace F] β†’ (π•œ β†’ F) β†’ π•œ β†’ F

Derivative of f at the point x, if it exists. Zero otherwise.

If the derivative exists (i.e., βˆƒ f', HasDerivAt f f' x), then f x' = f x + (x' - x) β€’ deriv f x + o(x' - x) where x' converges to x.

theorem hasFDerivAtFilter_iff_hasDerivAtFilter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {L : Filter (π•œ Γ— π•œ)} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivAtFilter f f' L ↔ HasDerivAtFilter f (f' 1) L

Expressing HasFDerivAtFilter f f' x L in terms of HasDerivAtFilter

theorem HasFDerivAtFilter.hasDerivAtFilter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {L : Filter (π•œ Γ— π•œ)} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivAtFilter f f' L β†’ HasDerivAtFilter f (f' 1) L

Alias of the forward direction of hasFDerivAtFilter_iff_hasDerivAtFilter.


Expressing HasFDerivAtFilter f f' x L in terms of HasDerivAtFilter

theorem hasDerivAtFilter_iff_hasFDerivAtFilter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)} [inst_4 : ContinuousSMul π•œ F],
  HasDerivAtFilter f f' L ↔ HasFDerivAtFilter f (ContinuousLinearMap.toSpanSingleton π•œ f') L

theorem HasDerivAtFilter.hasFDerivAtFilter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)} [inst_4 : ContinuousSMul π•œ F],
  HasDerivAtFilter f f' L β†’ HasFDerivAtFilter f (ContinuousLinearMap.toSpanSingleton π•œ f') L

Alias of the forward direction of hasDerivAtFilter_iff_hasFDerivAtFilter.

theorem hasFDerivWithinAt_iff_hasDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivWithinAt f f' s x ↔ HasDerivWithinAt f (f' 1) s x

Expressing HasFDerivWithinAt f f' s x in terms of HasDerivWithinAt

theorem HasFDerivWithinAt.hasDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivWithinAt f f' s x β†’ HasDerivWithinAt f (f' 1) s x

Alias of the forward direction of hasFDerivWithinAt_iff_hasDerivWithinAt.


Expressing HasFDerivWithinAt f f' s x in terms of HasDerivWithinAt

theorem hasDerivWithinAt_iff_hasFDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : F},
  HasDerivWithinAt f f' s x ↔ HasFDerivWithinAt f (ContinuousLinearMap.toSpanSingleton π•œ f') s x

Expressing HasDerivWithinAt f f' s x in terms of HasFDerivWithinAt

theorem HasDerivWithinAt.hasFDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : F},
  HasDerivWithinAt f f' s x β†’ HasFDerivWithinAt f (ContinuousLinearMap.toSpanSingleton π•œ f') s x

Alias of the forward direction of hasDerivWithinAt_iff_hasFDerivWithinAt.


Expressing HasDerivWithinAt f f' s x in terms of HasFDerivWithinAt

theorem hasFDerivAt_iff_hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivAt f f' x ↔ HasDerivAt f (f' 1) x

Expressing HasFDerivAt f f' x in terms of HasDerivAt

theorem HasFDerivAt.hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasFDerivAt f f' x β†’ HasDerivAt f (f' 1) x

Alias of the forward direction of hasFDerivAt_iff_hasDerivAt.


Expressing HasFDerivAt f f' x in terms of HasDerivAt

theorem hasDerivAt_iff_hasFDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : F},
  HasDerivAt f f' x ↔ HasFDerivAt f (ContinuousLinearMap.toSpanSingleton π•œ f') x

Expressing HasDerivAt f f' x in terms of HasFDerivAt

theorem HasDerivAt.hasFDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : F},
  HasDerivAt f f' x β†’ HasFDerivAt f (ContinuousLinearMap.toSpanSingleton π•œ f') x

Alias of the forward direction of hasDerivAt_iff_hasFDerivAt.


Expressing HasDerivAt f f' x in terms of HasFDerivAt

theorem hasStrictFDerivAt_iff_hasStrictDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasStrictFDerivAt f f' x ↔ HasStrictDerivAt f (f' 1) x

theorem HasStrictFDerivAt.hasStrictDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F] {f' : π•œ β†’L[π•œ] F},
  HasStrictFDerivAt f f' x β†’ HasStrictDerivAt f (f' 1) x

Alias of the forward direction of hasStrictFDerivAt_iff_hasStrictDerivAt.

theorem hasStrictDerivAt_iff_hasStrictFDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F],
  HasStrictDerivAt f f' x ↔ HasStrictFDerivAt f (ContinuousLinearMap.toSpanSingleton π•œ f') x

theorem HasStrictDerivAt.hasStrictFDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_4 : ContinuousSMul π•œ F],
  HasStrictDerivAt f f' x β†’ HasStrictFDerivAt f (ContinuousLinearMap.toSpanSingleton π•œ f') x

Alias of the forward direction of hasStrictDerivAt_iff_hasStrictFDerivAt.

theorem derivWithin_zero_of_not_differentiableWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, Β¬DifferentiableWithinAt π•œ f s x β†’ derivWithin f s x = 0

theorem differentiableWithinAt_of_derivWithin_ne_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, derivWithin f s x β‰  0 β†’ DifferentiableWithinAt π•œ f s x

theorem derivWithin_zero_of_not_accPt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, Β¬AccPt x (Filter.principal s) β†’ derivWithin f s x = 0

theorem derivWithin_zero_of_not_uniqueDiffWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, Β¬UniqueDiffWithinAt π•œ s x β†’ derivWithin f s x = 0

theorem derivWithin_zero_of_notMem_closure E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, x βˆ‰ closure s β†’ derivWithin f s x = 0

theorem deriv_zero_of_not_differentiableAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ}, Β¬DifferentiableAt π•œ f x β†’ deriv f x = 0

theorem differentiableAt_of_deriv_ne_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : AddCommGroup F] [inst_2 : Module π•œ F]
  [inst_3 : TopologicalSpace F] {f : π•œ β†’ F} {x : π•œ}, deriv f x β‰  0 β†’ DifferentiableAt π•œ f x

theorem hasDerivAtFilter_iff_isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L ↔ (fun p ↦ f p.1 - f p.2 - (p.1 - p.2) β€’ f') =o[L] fun p ↦ p.1 - p.2

theorem hasDerivAtFilter_iff_tendsto E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L ↔ Filter.Tendsto (fun p ↦ β€–p.1 - p.2‖⁻¹ * β€–f p.1 - f p.2 - (p.1 - p.2) β€’ f'β€–) L (nhds 0)

theorem hasDerivWithinAt_iff_isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x ↔ (fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhdsWithin x s] fun x' ↦ x' - x

theorem HasDerivWithinAt.of_isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  ((fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhdsWithin x s] fun x' ↦ x' - x) β†’ HasDerivWithinAt f f' s x

Alias of the reverse direction of hasDerivWithinAt_iff_isLittleO.

theorem HasDerivWithinAt.isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ (fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhdsWithin x s] fun x' ↦ x' - x

Alias of the forward direction of hasDerivWithinAt_iff_isLittleO.

theorem hasDerivWithinAt_iff_tendsto E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x ↔
    Filter.Tendsto (fun x' ↦ β€–x' - x‖⁻¹ * β€–f x' - f x - (x' - x) β€’ f'β€–) (nhdsWithin x s) (nhds 0)

theorem hasDerivAt_iff_isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  HasDerivAt f f' x ↔ (fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhds x] fun x' ↦ x' - x

theorem HasDerivAt.isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  HasDerivAt f f' x β†’ (fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhds x] fun x' ↦ x' - x

Alias of the forward direction of hasDerivAt_iff_isLittleO.

theorem HasDerivAt.of_isLittleO E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  ((fun x' ↦ f x' - f x - (x' - x) β€’ f') =o[nhds x] fun x' ↦ x' - x) β†’ HasDerivAt f f' x

Alias of the reverse direction of hasDerivAt_iff_isLittleO.

theorem hasDerivAt_iff_tendsto E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  HasDerivAt f f' x ↔ Filter.Tendsto (fun x' ↦ β€–x' - x‖⁻¹ * β€–f x' - f x - (x' - x) β€’ f'β€–) (nhds x) (nhds 0)

theorem HasDerivAtFilter.isBigO_sub E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L β†’ (fun p ↦ f p.1 - f p.2) =O[L] fun p ↦ p.1 - p.2

theorem HasDerivAt.isBigO_sub E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  HasDerivAt f f' x β†’ (fun x_1 ↦ f x_1 - f x) =O[nhds x] fun x_1 ↦ x_1 - x

theorem HasDerivAtFilter.isEquivalent_sub E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L β†’ f' β‰  0 β†’ Asymptotics.IsEquivalent L (fun p ↦ f p.1 - f p.2) fun p ↦ (p.1 - p.2) β€’ f'

theorem HasDerivAtFilter.isTheta_sub E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L β†’ f' β‰  0 β†’ (fun p ↦ f p.1 - f p.2) =Θ[L] fun p ↦ p.1 - p.2

theorem HasStrictDerivAt.hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ}, HasStrictDerivAt f f' x β†’ HasDerivAt f f' x

theorem hasDerivWithinAt_congr_set' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ} (y : π•œ),
  s =αΆ [nhdsWithin x {y}ᢜ] t β†’ (HasDerivWithinAt f f' s x ↔ HasDerivWithinAt f f' t x)

theorem hasDerivWithinAt_congr_set E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  s =αΆ [nhds x] t β†’ (HasDerivWithinAt f f' s x ↔ HasDerivWithinAt f f' t x)

theorem HasDerivWithinAt.congr_set E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  s =αΆ [nhds x] t β†’ HasDerivWithinAt f f' s x β†’ HasDerivWithinAt f f' t x

Alias of the forward direction of hasDerivWithinAt_congr_set.

theorem hasDerivWithinAt_sdiff_singleton E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' (s \ {x}) x ↔ HasDerivWithinAt f f' s x

theorem hasDerivWithinAt_Ioi_iff_Ici E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Ioi x) x ↔ HasDerivWithinAt f f' (Set.Ici x) x

theorem HasDerivWithinAt.Ici_of_Ioi E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Ioi x) x β†’ HasDerivWithinAt f f' (Set.Ici x) x

Alias of the forward direction of hasDerivWithinAt_Ioi_iff_Ici.

theorem HasDerivWithinAt.Ioi_of_Ici E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Ici x) x β†’ HasDerivWithinAt f f' (Set.Ioi x) x

Alias of the reverse direction of hasDerivWithinAt_Ioi_iff_Ici.

theorem hasDerivWithinAt_Iio_iff_Iic E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Iio x) x ↔ HasDerivWithinAt f f' (Set.Iic x) x

theorem HasDerivWithinAt.Iio_of_Iic E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Iic x) x β†’ HasDerivWithinAt f f' (Set.Iio x) x

Alias of the reverse direction of hasDerivWithinAt_Iio_iff_Iic.

theorem HasDerivWithinAt.Iic_of_Iio E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  HasDerivWithinAt f f' (Set.Iio x) x β†’ HasDerivWithinAt f f' (Set.Iic x) x

Alias of the forward direction of hasDerivWithinAt_Iio_iff_Iic.

theorem HasDerivWithinAt.Ioi_iff_Ioo E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} [inst_3 : LinearOrder π•œ] [OrderClosedTopology π•œ] {x y : π•œ},
  x < y β†’ (HasDerivWithinAt f f' (Set.Ioo x y) x ↔ HasDerivWithinAt f f' (Set.Ioi x) x)

theorem HasDerivWithinAt.Ioo_of_Ioi E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} [inst_3 : LinearOrder π•œ] [OrderClosedTopology π•œ] {x y : π•œ},
  x < y β†’ HasDerivWithinAt f f' (Set.Ioi x) x β†’ HasDerivWithinAt f f' (Set.Ioo x y) x

Alias of the reverse direction of HasDerivWithinAt.Ioi_iff_Ioo.

theorem HasDerivWithinAt.Ioi_of_Ioo E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} [inst_3 : LinearOrder π•œ] [OrderClosedTopology π•œ] {x y : π•œ},
  x < y β†’ HasDerivWithinAt f f' (Set.Ioo x y) x β†’ HasDerivWithinAt f f' (Set.Ioi x) x

Alias of the forward direction of HasDerivWithinAt.Ioi_iff_Ioo.

theorem hasDerivAt_iff_isLittleO_nhds_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ},
  HasDerivAt f f' x ↔ (fun h ↦ f (x + h) - f x - h β€’ f') =o[nhds 0] fun h ↦ h

theorem HasDerivAtFilter.mono E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {L₁ Lβ‚‚ : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' Lβ‚‚ β†’ L₁ ≀ Lβ‚‚ β†’ HasDerivAtFilter f f' L₁

theorem HasDerivWithinAt.mono E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  HasDerivWithinAt f f' t x β†’ s βŠ† t β†’ HasDerivWithinAt f f' s x

theorem HasDerivWithinAt.mono_of_mem_nhdsWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  HasDerivWithinAt f f' t x β†’ t ∈ nhdsWithin x s β†’ HasDerivWithinAt f f' s x

theorem HasDerivAt.hasDerivAtFilter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAt f f' x β†’ L ≀ nhds x Γ—Λ’ pure x β†’ HasDerivAtFilter f f' L

theorem HasDerivAt.hasDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ}, HasDerivAt f f' x β†’ HasDerivWithinAt f f' s x

theorem HasDerivWithinAt.differentiableWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ DifferentiableWithinAt π•œ f s x

theorem HasDerivAt.differentiableAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ}, HasDerivAt f f' x β†’ DifferentiableAt π•œ f x

theorem hasDerivWithinAt_univ E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ}, HasDerivWithinAt f f' Set.univ x ↔ HasDerivAt f f' x

theorem HasDerivAt.unique E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {fβ‚€' f₁' : F} {x : π•œ}, HasDerivAt f fβ‚€' x β†’ HasDerivAt f f₁' x β†’ fβ‚€' = f₁'

theorem hasDerivWithinAt_inter' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  t ∈ nhdsWithin x s β†’ (HasDerivWithinAt f f' (s ∩ t) x ↔ HasDerivWithinAt f f' s x)

theorem hasDerivWithinAt_inter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  t ∈ nhds x β†’ (HasDerivWithinAt f f' (s ∩ t) x ↔ HasDerivWithinAt f f' s x)

theorem HasDerivWithinAt.union E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  HasDerivWithinAt f f' s x β†’ HasDerivWithinAt f f' t x β†’ HasDerivWithinAt f f' (s βˆͺ t) x

theorem HasDerivWithinAt.hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ s ∈ nhds x β†’ HasDerivAt f f' x

theorem DifferentiableWithinAt.hasDerivWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  DifferentiableWithinAt π•œ f s x β†’ HasDerivWithinAt f (derivWithin f s x) s x

theorem DifferentiableAt.hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ}, DifferentiableAt π•œ f x β†’ HasDerivAt f (deriv f x) x

theorem hasDerivAt_deriv_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ}, HasDerivAt f (deriv f x) x ↔ DifferentiableAt π•œ f x

theorem hasDerivWithinAt_derivWithin_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f (derivWithin f s x) s x ↔ DifferentiableWithinAt π•œ f s x

theorem DifferentiableOn.hasDerivAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  DifferentiableOn π•œ f s β†’ s ∈ nhds x β†’ HasDerivAt f (deriv f x) x

theorem HasDerivAt.deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ}, HasDerivAt f f' x β†’ deriv f x = f'

theorem deriv_eq E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f' : π•œ β†’ F}, (βˆ€ (x : π•œ), HasDerivAt f (f' x) x) β†’ deriv f = f'

theorem HasDerivWithinAt.derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ UniqueDiffWithinAt π•œ s x β†’ derivWithin f s x = f'

theorem fderivWithin_derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, (fderivWithin π•œ f s x) 1 = derivWithin f s x

theorem toSpanSingleton_derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  ContinuousLinearMap.toSpanSingleton π•œ (derivWithin f s x) = fderivWithin π•œ f s x

theorem norm_derivWithin_eq_norm_fderivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, β€–derivWithin f s xβ€– = β€–fderivWithin π•œ f s xβ€–

theorem fderiv_apply_one_eq_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ}, (fderiv π•œ f x) 1 = deriv f x

theorem fderiv_eq_smul_deriv E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} (y : π•œ), (fderiv π•œ f x) y = y β€’ deriv f x

theorem toSpanSingleton_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ}, ContinuousLinearMap.toSpanSingleton π•œ (deriv f x) = fderiv π•œ f x

theorem fderiv_eq_deriv_mul E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {f : π•œ β†’ π•œ} {x y : π•œ}, (fderiv π•œ f x) y = deriv f x * y

theorem norm_deriv_eq_norm_fderiv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ}, β€–deriv f xβ€– = β€–fderiv π•œ f xβ€–

theorem DifferentiableAt.derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  DifferentiableAt π•œ f x β†’ UniqueDiffWithinAt π•œ s x β†’ derivWithin f s x = deriv f x

theorem HasDerivWithinAt.deriv_eq_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f 0 s x β†’ UniqueDiffWithinAt π•œ s x β†’ deriv f x = 0

theorem derivWithin_of_mem_nhdsWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s t : Set π•œ},
  t ∈ nhdsWithin x s β†’ UniqueDiffWithinAt π•œ s x β†’ DifferentiableWithinAt π•œ f t x β†’ derivWithin f s x = derivWithin f t x

theorem derivWithin_subset E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s t : Set π•œ},
  s βŠ† t β†’ UniqueDiffWithinAt π•œ s x β†’ DifferentiableWithinAt π•œ f t x β†’ derivWithin f s x = derivWithin f t x

theorem derivWithin_congr_set' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s t : Set π•œ} (y : π•œ),
  s =αΆ [nhdsWithin x {y}ᢜ] t β†’ derivWithin f s x = derivWithin f t x

theorem derivWithin_congr_set E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s t : Set π•œ}, s =αΆ [nhds x] t β†’ derivWithin f s x = derivWithin f t x

theorem derivWithin_univ E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F}, derivWithin f Set.univ = deriv f

theorem derivWithin_inter E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s t : Set π•œ}, t ∈ nhds x β†’ derivWithin f (s ∩ t) x = derivWithin f s x

theorem derivWithin_of_mem_nhds E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, s ∈ nhds x β†’ derivWithin f s x = deriv f x

theorem derivWithin_of_isOpen E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {s : Set π•œ}, IsOpen s β†’ x ∈ s β†’ derivWithin f s x = deriv f x

theorem deriv_eqOn E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {s : Set π•œ} {f' : π•œ β†’ F},
  IsOpen s β†’ (βˆ€ x ∈ s, HasDerivWithinAt f (f' x) s x) β†’ Set.EqOn (deriv f) f' s

theorem deriv_mem_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {s : Set F} {x : π•œ},
  deriv f x ∈ s ↔ DifferentiableAt π•œ f x ∧ deriv f x ∈ s ∨ Β¬DifferentiableAt π•œ f x ∧ 0 ∈ s

theorem derivWithin_mem_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {t : Set π•œ} {s : Set F} {x : π•œ},
  derivWithin f t x ∈ s ↔
    DifferentiableWithinAt π•œ f t x ∧ derivWithin f t x ∈ s ∨ Β¬DifferentiableWithinAt π•œ f t x ∧ 0 ∈ s

theorem differentiableWithinAt_Ioi_iff_Ici E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} [inst_3 : PartialOrder π•œ],
  DifferentiableWithinAt π•œ f (Set.Ioi x) x ↔ DifferentiableWithinAt π•œ f (Set.Ici x) x

theorem derivWithin_Ioi_eq_Ici E1 #

βˆ€ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (f : ℝ β†’ E) (x : ℝ),
  derivWithin f (Set.Ioi x) x = derivWithin f (Set.Ici x) x

theorem Filter.EventuallyEq.hasDerivAtFilter_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {fβ‚€ f₁ : π•œ β†’ F} {fβ‚€' f₁' : F} {L : Filter (π•œ Γ— π•œ)},
  Prod.map fβ‚€ fβ‚€ =αΆ [L] Prod.map f₁ f₁ β†’ fβ‚€' = f₁' β†’ (HasDerivAtFilter fβ‚€ fβ‚€' L ↔ HasDerivAtFilter f₁ f₁' L)

theorem HasDerivAtFilter.congr_of_eventuallyEq E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {L : Filter (π•œ Γ— π•œ)},
  HasDerivAtFilter f f' L β†’ Prod.map f₁ f₁ =αΆ [L] Prod.map f f β†’ HasDerivAtFilter f₁ f' L

theorem HasDerivWithinAt.congr_mono E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s t : Set π•œ},
  HasDerivWithinAt f f' s x β†’ (βˆ€ x ∈ t, f₁ x = f x) β†’ f₁ x = f x β†’ t βŠ† s β†’ HasDerivWithinAt f₁ f' t x

theorem HasDerivWithinAt.congr E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ (βˆ€ x ∈ s, f₁ x = f x) β†’ f₁ x = f x β†’ HasDerivWithinAt f₁ f' s x

theorem HasDerivWithinAt.congr_of_mem E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ (βˆ€ x ∈ s, f₁ x = f x) β†’ x ∈ s β†’ HasDerivWithinAt f₁ f' s x

theorem HasDerivWithinAt.congr_of_eventuallyEq E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ f₁ =αΆ [nhdsWithin x s] f β†’ f₁ x = f x β†’ HasDerivWithinAt f₁ f' s x

theorem Filter.EventuallyEq.hasDerivWithinAt_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ f₁ x = f x β†’ (HasDerivWithinAt f₁ f' s x ↔ HasDerivWithinAt f f' s x)

theorem HasDerivWithinAt.congr_of_eventuallyEq_of_mem E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ f₁ =αΆ [nhdsWithin x s] f β†’ x ∈ s β†’ HasDerivWithinAt f₁ f' s x

theorem Filter.EventuallyEq.hasDerivWithinAt_iff_of_mem E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ x ∈ s β†’ (HasDerivWithinAt f₁ f' s x ↔ HasDerivWithinAt f f' s x)

theorem HasStrictDerivAt.congr_of_eventuallyEq E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ},
  HasStrictDerivAt f f' x β†’ f =αΆ [nhds x] f₁ β†’ HasStrictDerivAt f₁ f' x

If f has derivative f' in the strict sense and f x' = f₁ x' near x, then f₁ has the same derivative in the strict sense.

Note that this lemma assumes f =αΆ [𝓝 x] f₁, while other lemmas in this file assume f₁ =αΆ [𝓝 x] f. This is done for backward compatibility, and may change in the future. See Zulip discussion.

theorem HasStrictDerivAt.congr_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' g' : F} {x : π•œ},
  HasStrictDerivAt f f' x β†’ f' = g' β†’ HasStrictDerivAt f g' x

theorem HasDerivAt.congr_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' g' : F} {x : π•œ}, HasDerivAt f f' x β†’ f' = g' β†’ HasDerivAt f g' x

theorem HasDerivWithinAt.congr_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' g' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ f' = g' β†’ HasDerivWithinAt f g' s x

theorem HasDerivAt.congr_of_eventuallyEq E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {f' : F} {x : π•œ}, HasDerivAt f f' x β†’ f₁ =αΆ [nhds x] f β†’ HasDerivAt f₁ f' x

theorem Filter.EventuallyEq.hasDerivAt_iff E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {fβ‚€ f₁ : π•œ β†’ F} {f' : F} {x : π•œ},
  fβ‚€ =αΆ [nhds x] f₁ β†’ (HasDerivAt fβ‚€ f' x ↔ HasDerivAt f₁ f' x)

theorem Filter.EventuallyEq.derivWithin_eq E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ f₁ x = f x β†’ derivWithin f₁ s x = derivWithin f s x

theorem Filter.EventuallyEq.derivWithin_eq_of_mem E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ x ∈ s β†’ derivWithin f₁ s x = derivWithin f s x

theorem Filter.EventuallyEq.derivWithin_eq_of_nhds E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhds x] f β†’ derivWithin f₁ s x = derivWithin f s x

theorem derivWithin_congr E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  Set.EqOn f₁ f s β†’ f₁ x = f x β†’ derivWithin f₁ s x = derivWithin f s x

theorem Set.EqOn.deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f g : π•œ β†’ F} {s : Set π•œ}, Set.EqOn f g s β†’ IsOpen s β†’ Set.EqOn (deriv f) (deriv g) s

theorem Filter.EventuallyEq.deriv_eq E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ}, f₁ =αΆ [nhds x] f β†’ deriv f₁ x = deriv f x

theorem Filter.EventuallyEq.derivWithin' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s t : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ t βŠ† s β†’ derivWithin f₁ t =αΆ [nhdsWithin x s] derivWithin f t

theorem Filter.EventuallyEq.derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ} {s : Set π•œ},
  f₁ =αΆ [nhdsWithin x s] f β†’ derivWithin f₁ s =αΆ [nhdsWithin x s] derivWithin f s

theorem Filter.EventuallyEq.deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ}, f₁ =αΆ [nhds x] f β†’ deriv f₁ =αΆ [nhds x] deriv f

theorem Filter.EventuallyEq.nhdsNE_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {x : π•œ}, f₁ =αΆ [nhdsWithin x {x}ᢜ] f β†’ deriv f₁ =αΆ [nhdsWithin x {x}ᢜ] deriv f

theorem Filter.EventuallyEq.codiscreteWithin_derivWithin' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {s t : Set π•œ},
  f₁ =αΆ [Filter.codiscreteWithin s] f β†’ t βŠ† s β†’ derivWithin f₁ t =αΆ [Filter.codiscreteWithin s] derivWithin f t

If two functions agree on a codiscrete subset of s, then so do their derivatives within any subset t of s.

theorem Filter.EventuallyEq.codiscreteWithin_derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {s : Set π•œ},
  f₁ =αΆ [Filter.codiscreteWithin s] f β†’ derivWithin f₁ s =αΆ [Filter.codiscreteWithin s] derivWithin f s

If two functions agree on a codiscrete subset of s, then so do their derivatives within s.

theorem Filter.EventuallyEq.codiscreteWithin_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {s : Set π•œ},
  f₁ =αΆ [Filter.codiscreteWithin s] f β†’ IsOpen s β†’ deriv f₁ =αΆ [Filter.codiscreteWithin s] deriv f

If two functions agree on a codiscrete subset of an open set s, then so do their derivatives.

theorem Filter.EventuallyEq.codiscrete_derivWithin E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F} {s : Set π•œ},
  f₁ =αΆ [Filter.codiscrete π•œ] f β†’ derivWithin f₁ s =αΆ [Filter.codiscrete π•œ] derivWithin f s

If two functions agree on a codiscrete subset of π•œ, then so do their derivatives within any subset s of π•œ.

theorem Filter.EventuallyEq.codiscrete_deriv E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f f₁ : π•œ β†’ F}, f₁ =αΆ [Filter.codiscrete π•œ] f β†’ deriv f₁ =αΆ [Filter.codiscrete π•œ] deriv f

If two functions agree on a codiscrete subset of π•œ, then so do their derivatives.

theorem hasDerivAtFilter_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (L : Filter (π•œ Γ— π•œ)), HasDerivAtFilter id 1 L

theorem hasDerivWithinAt_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ) (s : Set π•œ), HasDerivWithinAt id 1 s x

theorem hasDerivAt_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ), HasDerivAt id 1 x

theorem hasDerivAt_id' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ), HasDerivAt (fun x ↦ x) 1 x

theorem hasStrictDerivAt_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ), HasStrictDerivAt id 1 x

theorem deriv_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ), deriv id x = 1

theorem deriv_id' E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ], deriv id = fun x ↦ 1

theorem deriv_id'' E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ], (deriv fun x ↦ x) = fun x ↦ 1

Variant with fun x => x rather than id

theorem derivWithin_id E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ) (s : Set π•œ), UniqueDiffWithinAt π•œ s x β†’ derivWithin id s x = 1

theorem derivWithin_id' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] (x : π•œ) (s : Set π•œ),
  UniqueDiffWithinAt π•œ s x β†’ derivWithin (fun x ↦ x) s x = 1

Variant with fun x => x rather than id

theorem hasDerivAtFilter_const E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)) (c : F), HasDerivAtFilter (fun x ↦ c) 0 L

theorem hasDerivAtFilter_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)), HasDerivAtFilter 0 0 L

theorem hasDerivAtFilter_one E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)) [inst_3 : One F], HasDerivAtFilter 1 0 L

theorem hasDerivAtFilter_natCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)) [inst_3 : NatCast F] (n : β„•), HasDerivAtFilter (↑n) 0 L

theorem hasDerivAtFilter_intCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)) [inst_3 : IntCast F] (z : β„€), HasDerivAtFilter (↑z) 0 L

theorem hasDerivAtFilter_ofNat E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (L : Filter (π•œ Γ— π•œ)) (n : β„•) [inst_3 : OfNat F n], HasDerivAtFilter (OfNat.ofNat n) 0 L

theorem hasStrictDerivAt_const E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (c : F), HasStrictDerivAt (fun x ↦ c) 0 x

theorem hasStrictDerivAt_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ), HasStrictDerivAt 0 0 x

theorem hasStrictDerivAt_one E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : One F], HasStrictDerivAt 1 0 x

theorem hasStrictDerivAt_natCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : NatCast F] (n : β„•), HasStrictDerivAt (↑n) 0 x

theorem hasStrictDerivAt_intCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : IntCast F] (z : β„€), HasStrictDerivAt (↑z) 0 x

theorem HasStrictDerivAt_ofNat E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (n : β„•) [inst_3 : OfNat F n], HasStrictDerivAt (OfNat.ofNat n) 0 x

theorem hasDerivWithinAt_const E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ) (c : F), HasDerivWithinAt (fun x ↦ c) 0 s x

theorem hasDerivWithinAt_zero E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ), HasDerivWithinAt 0 0 s x

theorem hasDerivWithinAt_one E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ) [inst_3 : One F], HasDerivWithinAt 1 0 s x

theorem hasDerivWithinAt_natCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ) [inst_3 : NatCast F] (n : β„•), HasDerivWithinAt (↑n) 0 s x

theorem hasDerivWithinAt_intCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ) [inst_3 : IntCast F] (z : β„€), HasDerivWithinAt (↑z) 0 s x

theorem hasDerivWithinAt_ofNat E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (s : Set π•œ) (n : β„•) [inst_3 : OfNat F n], HasDerivWithinAt (OfNat.ofNat n) 0 s x

theorem hasDerivAt_const E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (c : F), HasDerivAt (fun x ↦ c) 0 x

theorem hasDerivAt_zero E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ), HasDerivAt 0 0 x

theorem hasDerivAt_one E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : One F], HasDerivAt 1 0 x

theorem hasDerivAt_natCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : NatCast F] (n : β„•), HasDerivAt (↑n) 0 x

theorem hasDerivAt_intCast E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) [inst_3 : IntCast F] (z : β„€), HasDerivAt (↑z) 0 x

theorem hasDerivAt_ofNat E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (n : β„•) [inst_3 : OfNat F n], HasDerivAt (OfNat.ofNat n) 0 x

theorem deriv_const E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (x : π•œ) (c : F), deriv (fun x ↦ c) x = 0

theorem deriv_const' E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (c : F), (deriv fun x ↦ c) = fun x ↦ 0

theorem deriv_zero E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F], deriv 0 = 0

theorem deriv_one E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] [inst_3 : One F], deriv 1 = 0

theorem deriv_natCast E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] [inst_3 : NatCast F] (n : β„•), deriv ↑n = 0

theorem deriv_intCast E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] [inst_3 : IntCast F] (z : β„€), deriv ↑z = 0

theorem deriv_ofNat E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (n : β„•) [inst_3 : OfNat F n], deriv (OfNat.ofNat n) = 0

theorem derivWithin_fun_const E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) (c : F), derivWithin (fun x ↦ c) s = 0

theorem derivWithin_const E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) (c : F), derivWithin (Function.const π•œ c) s = 0

theorem derivWithin_zero E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ), derivWithin 0 s = 0

theorem derivWithin_one E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) [inst_3 : One F], derivWithin 1 s = 0

theorem derivWithin_natCast E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) [inst_3 : NatCast F] (n : β„•), derivWithin (↑n) s = 0

theorem derivWithin_intCast E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) [inst_3 : IntCast F] (z : β„€), derivWithin (↑z) s = 0

theorem derivWithin_ofNat E0 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] (s : Set π•œ) (n : β„•) [inst_3 : OfNat F n], derivWithin (OfNat.ofNat n) s = 0

theorem HasDerivAtFilter.tendsto_nhds E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {L : Filter π•œ},
  L ≀ nhds x β†’ HasDerivAtFilter f f' (L Γ—Λ’ pure x) β†’ Filter.Tendsto f L (nhds (f x))

theorem HasDerivWithinAt.continuousWithinAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {s : Set π•œ},
  HasDerivWithinAt f f' s x β†’ ContinuousWithinAt f s x

theorem HasDerivAt.continuousAt E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ}, HasDerivAt f f' x β†’ ContinuousAt f x

theorem HasDerivWithinAt.continuousOn E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {s : Set π•œ} {f f' : π•œ β†’ F}, (βˆ€ x ∈ s, HasDerivWithinAt f (f' x) s x) β†’ ContinuousOn f s

theorem HasDerivAt.continuousOn E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {s : Set π•œ} {f f' : π•œ β†’ F}, (βˆ€ x ∈ s, HasDerivAt f (f' x) x) β†’ ContinuousOn f s

theorem HasDerivAt.le_of_lip' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {xβ‚€ : π•œ},
  HasDerivAt f f' xβ‚€ β†’ βˆ€ {C : ℝ}, 0 ≀ C β†’ (βˆ€αΆ  (x : π•œ) 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 HasDerivAt.le_of_lipschitzOn E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {xβ‚€ : π•œ},
  HasDerivAt f f' xβ‚€ β†’ βˆ€ {s : Set π•œ}, 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 HasDerivAt.le_of_lipschitz E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {xβ‚€ : π•œ},
  HasDerivAt 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_deriv_le_of_lip' E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {xβ‚€ : π•œ} {C : ℝ},
  0 ≀ C β†’ (βˆ€αΆ  (x : π•œ) in nhds xβ‚€, β€–f x - f xβ‚€β€– ≀ C * β€–x - xβ‚€β€–) β†’ β€–deriv 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_deriv_le_of_lipschitzOn E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {xβ‚€ : π•œ} {s : Set π•œ},
  s ∈ nhds xβ‚€ β†’ βˆ€ {C : NNReal}, LipschitzOnWith C f s β†’ β€–deriv 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 deriv.

theorem norm_deriv_le_of_lipschitz E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {xβ‚€ : π•œ} {C : NNReal}, LipschitzWith C f β†’ β€–deriv 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 deriv.

theorem HasDerivAt.comp_semilinear E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {f' : F} {x : π•œ} {Οƒ : π•œ β†’+* π•œ} (Οƒ' : π•œ β†’+* π•œ) [RingHomIsometric Οƒ]
  [RingHomInvPair Οƒ Οƒ'] {F' : Type u_1} [inst_5 : NormedAddCommGroup F'] [inst_6 : NormedSpace π•œ F'] (L : F β†’SL[Οƒ] F'),
  HasDerivAt f f' x β†’ HasDerivAt (⇑L ∘ f ∘ ⇑σ') (L f') (Οƒ x)

If L is a Οƒ-semilinear map, and f has FrΓ©chet derivative f' at x, then L ∘ f ∘ σ⁻¹ has FrΓ©chet derivative L ∘ f' at Οƒ x.

theorem DifferentiableAt.comp_semilinear₁ E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace π•œ F] {f : π•œ β†’ F} {x : π•œ} {Οƒ : π•œ β†’+* π•œ} (Οƒ' : π•œ β†’+* π•œ) [RingHomIsometric Οƒ] [RingHomInvPair Οƒ Οƒ']
  {F' : Type u_1} [inst_5 : NormedAddCommGroup F'] [inst_6 : NormedSpace π•œ F'] (L : F β†’SL[Οƒ] F'),
  DifferentiableAt π•œ f x β†’ DifferentiableAt π•œ (⇑L ∘ f ∘ ⇑σ') (Οƒ x)

If f is differentiable at x, and L is Οƒ-semilinear, then L ∘ f ∘ σ⁻¹ is differentiable at Οƒ x.

theorem HasDerivAt.comp_ringHom E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {x : π•œ} (Οƒ Οƒ' : π•œ β†’+* π•œ) [RingHomIsometric Οƒ] [RingHomInvPair Οƒ Οƒ']
  {f : π•œ β†’ π•œ} {f' : π•œ}, HasDerivAt f f' x β†’ HasDerivAt (⇑σ ∘ f ∘ ⇑σ') (Οƒ f') (Οƒ x)

If f has derivative f' at x, and Οƒ, Οƒ' are mutually inverse normed-ring automorphisms, then Οƒ ∘ f ∘ Οƒ' has derivative Οƒ f' at Οƒ x.

theorem DifferentiableAt.comp_ringHom E1 #

βˆ€ {π•œ : Type u} [inst : NontriviallyNormedField π•œ] {x : π•œ} (Οƒ Οƒ' : π•œ β†’+* π•œ) [RingHomIsometric Οƒ] [RingHomInvPair Οƒ Οƒ']
  {f : π•œ β†’ π•œ}, DifferentiableAt π•œ f x β†’ DifferentiableAt π•œ (⇑σ ∘ f ∘ ⇑σ') (Οƒ x)

If f is differentiable at x, and L is Οƒ-semilinear, then L ∘ f ∘ σ⁻¹ is differentiable at Οƒ x.

Deprecated aliases

NameNew nameSince
hasDerivWithinAt_diff_singletonhasDerivWithinAt_sdiff_singleton2026-06-03