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.Mul

130 declarations. Mathlib docs · Source

Multiplicative operations on derivatives

For detailed documentation of the Fréchet derivative, see the module docstring of Mathlib/Analysis/Calculus/FDeriv/Basic.lean.

This file contains the usual formulas (and existence assertions) for the derivative of

  • multiplication of a function by a scalar function
  • product of finitely many scalar functions
  • taking the pointwise multiplicative inverse (i.e. Inv.inv or Ring.inverse) of a function

Derivative of the product of a scalar-valued function and a vector-valued function

If c is a differentiable scalar-valued function and f is a differentiable vector-valued function, then fun x ↦ c x • f x is differentiable as well. Lemmas in this section work for functions c taking values in the base field, as well as in a normed algebra over the base field: e.g., they work for c : E → ℂ and f : E → F provided that F is a complex normed vector space.

Derivative of the product of two functions

Derivative of a finite product of functions

Derivative of the inverse in a division ring

Note that some lemmas are primed as they are expressed without commutativity, whereas their counterparts in commutative fields involve simpler expressions, and are given in Mathlib/Analysis/Calculus/Deriv/Inv.lean.

theorem ContinuousLinearMap.mulLeftRight.congr_simp E1 #

∀ (𝕜 : Type u_1) [inst : NontriviallyNormedField 𝕜] (R : Type u_3) [inst_1 : NonUnitalSeminormedRing R]
  [inst_2 : NormedSpace 𝕜 R] [inst_3 : IsScalarTower 𝕜 R R] [inst_4 : SMulCommClass 𝕜 R R],
  ContinuousLinearMap.mulLeftRight 𝕜 R = ContinuousLinearMap.mulLeftRight 𝕜 R

theorem HasStrictFDerivAt.fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasStrictFDerivAt c c' x →
    HasStrictFDerivAt f f' x → HasStrictFDerivAt (fun i ↦ c i • f i) (c x • f' + c'.smulRight (f x)) x

Eta-expanded form of HasStrictFDerivAt.smul

theorem HasStrictFDerivAt.smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasStrictFDerivAt c c' x → HasStrictFDerivAt f f' x → HasStrictFDerivAt (c • f) (c x • f' + c'.smulRight (f x)) x

theorem HasFDerivWithinAt.fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜']
  [inst_7 : Module 𝕜' F] [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivWithinAt c c' s x →
    HasFDerivWithinAt f f' s x → HasFDerivWithinAt (fun i ↦ c i • f i) (c x • f' + c'.smulRight (f x)) s x

Eta-expanded form of HasFDerivWithinAt.smul

theorem HasFDerivWithinAt.smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜']
  [inst_7 : Module 𝕜' F] [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivWithinAt c c' s x →
    HasFDerivWithinAt f f' s x → HasFDerivWithinAt (c • f) (c x • f' + c'.smulRight (f x)) s x

theorem HasFDerivAt.fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivAt c c' x → HasFDerivAt f f' x → HasFDerivAt (fun i ↦ c i • f i) (c x • f' + c'.smulRight (f x)) x

Eta-expanded form of HasFDerivAt.smul

theorem HasFDerivAt.smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivAt c c' x → HasFDerivAt f f' x → HasFDerivAt (c • f) (c x • f' + c'.smulRight (f x)) x

theorem DifferentiableWithinAt.fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → DifferentiableWithinAt 𝕜 f s x → DifferentiableWithinAt 𝕜 (fun i ↦ c i • f i) s x

Eta-expanded form of DifferentiableWithinAt.smul

theorem DifferentiableWithinAt.smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → DifferentiableWithinAt 𝕜 f s x → DifferentiableWithinAt 𝕜 (c • f) s x

theorem DifferentiableAt.smul E0 #

∀ {𝕜 : 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableAt 𝕜 c x → DifferentiableAt 𝕜 f x → DifferentiableAt 𝕜 (c • f) x

theorem DifferentiableAt.fun_smul E0 #

∀ {𝕜 : 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableAt 𝕜 c x → DifferentiableAt 𝕜 f x → DifferentiableAt 𝕜 (fun i ↦ c i • f i) x

Eta-expanded form of DifferentiableAt.smul

theorem DifferentiableOn.smul 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}
  {s : Set E} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableOn 𝕜 c s → DifferentiableOn 𝕜 f s → DifferentiableOn 𝕜 (c • f) s

theorem DifferentiableOn.fun_smul 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}
  {s : Set E} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableOn 𝕜 c s → DifferentiableOn 𝕜 f s → DifferentiableOn 𝕜 (fun i ↦ c i • f i) s

Eta-expanded form of DifferentiableOn.smul

theorem Differentiable.fun_smul E0 #

∀ {𝕜 : 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}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F] [IsBoundedSMul 𝕜' F]
  [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'}, Differentiable 𝕜 c → Differentiable 𝕜 f → Differentiable 𝕜 fun i ↦ c i • f i

Eta-expanded form of Differentiable.smul

theorem Differentiable.smul E0 #

∀ {𝕜 : 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}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F] [IsBoundedSMul 𝕜' F]
  [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'}, Differentiable 𝕜 c → Differentiable 𝕜 f → Differentiable 𝕜 (c • f)

theorem fderivWithin_fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x →
      DifferentiableWithinAt 𝕜 f s x →
        fderivWithin 𝕜 (fun y ↦ c y • f y) s x = c x • fderivWithin 𝕜 f s x + (fderivWithin 𝕜 c s x).smulRight (f x)

theorem fderivWithin_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x →
      DifferentiableWithinAt 𝕜 f s x →
        fderivWithin 𝕜 (c • f) s x = c x • fderivWithin 𝕜 f s x + (fderivWithin 𝕜 c s x).smulRight (f x)

theorem fderiv_fun_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableAt 𝕜 c x →
    DifferentiableAt 𝕜 f x → fderiv 𝕜 (fun y ↦ c y • f y) x = c x • fderiv 𝕜 f x + (fderiv 𝕜 c x).smulRight (f x)

theorem fderiv_smul 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} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableAt 𝕜 c x →
    DifferentiableAt 𝕜 f x → fderiv 𝕜 (c • f) x = c x • fderiv 𝕜 f x + (fderiv 𝕜 c x).smulRight (f x)

theorem HasStrictFDerivAt.smul_const 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] {x : E}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasStrictFDerivAt c c' x → ∀ (f : F), HasStrictFDerivAt (fun y ↦ c y • f) (c'.smulRight f) x

theorem HasFDerivWithinAt.smul_const 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] {x : E}
  {s : Set E} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivWithinAt c c' s x → ∀ (f : F), HasFDerivWithinAt (fun y ↦ c y • f) (c'.smulRight f) s x

theorem HasFDerivAt.smul_const 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] {x : E}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'} {c' : E →L[𝕜] 𝕜'},
  HasFDerivAt c c' x → ∀ (f : F), HasFDerivAt (fun y ↦ c y • f) (c'.smulRight f) x

theorem DifferentiableWithinAt.smul_const 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] {x : E}
  {s : Set E} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [IsBoundedSMul 𝕜' F] [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → ∀ (f : F), DifferentiableWithinAt 𝕜 (fun y ↦ c y • f) s x

theorem DifferentiableAt.smul_const 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] {x : E}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F] [IsBoundedSMul 𝕜' F]
  [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'}, DifferentiableAt 𝕜 c x → ∀ (f : F), DifferentiableAt 𝕜 (fun y ↦ c y • f) x

theorem DifferentiableOn.smul_const 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] {s : Set E}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F] [IsBoundedSMul 𝕜' F]
  [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'}, DifferentiableOn 𝕜 c s → ∀ (f : F), DifferentiableOn 𝕜 (fun y ↦ c y • f) s

theorem Differentiable.smul_const 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] {𝕜' : Type u_4}
  [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F] [IsBoundedSMul 𝕜' F]
  [IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'}, Differentiable 𝕜 c → ∀ (f : F), Differentiable 𝕜 fun y ↦ c y • f

theorem fderivWithin_smul_const 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] {x : E}
  {s : Set E} {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x →
      ∀ (f : F), fderivWithin 𝕜 (fun y ↦ c y • f) s x = (fderivWithin 𝕜 c s x).smulRight f

theorem fderiv_smul_const 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] {x : E}
  {𝕜' : Type u_4} [inst_5 : NormedRing 𝕜'] [inst_6 : NormedAlgebra 𝕜 𝕜'] [inst_7 : Module 𝕜' F]
  [inst_8 : IsBoundedSMul 𝕜' F] [inst_9 : IsScalarTower 𝕜 𝕜' F] {c : E → 𝕜'},
  DifferentiableAt 𝕜 c x → ∀ (f : F), fderiv 𝕜 (fun y ↦ c y • f) x = (fderiv 𝕜 c x).smulRight f

theorem HasStrictFDerivAt.fun_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸}
  {a' b' : E →L[𝕜] 𝔸} {x : E},
  HasStrictFDerivAt a a' x →
    HasStrictFDerivAt b b' x → HasStrictFDerivAt (fun i ↦ a i * b i) (a x • b' + MulOpposite.op (b x) • a') x

Eta-expanded form of HasStrictFDerivAt.mul'

theorem HasStrictFDerivAt.mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸}
  {a' b' : E →L[𝕜] 𝔸} {x : E},
  HasStrictFDerivAt a a' x →
    HasStrictFDerivAt b b' x → HasStrictFDerivAt (a * b) (a x • b' + MulOpposite.op (b x) • a') x

theorem HasStrictFDerivAt.mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasStrictFDerivAt c c' x → HasStrictFDerivAt d d' x → HasStrictFDerivAt (c * d) (c x • d' + d x • c') x

theorem HasStrictFDerivAt.fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasStrictFDerivAt c c' x → HasStrictFDerivAt d d' x → HasStrictFDerivAt (fun i ↦ c i * d i) (c x • d' + d x • c') x

Eta-expanded form of HasStrictFDerivAt.mul

theorem HasFDerivWithinAt.fun_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸} {a' b' : E →L[𝕜] 𝔸},
  HasFDerivWithinAt a a' s x →
    HasFDerivWithinAt b b' s x → HasFDerivWithinAt (fun i ↦ a i * b i) (a x • b' + MulOpposite.op (b x) • a') s x

Eta-expanded form of HasFDerivWithinAt.mul'

theorem HasFDerivWithinAt.mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸} {a' b' : E →L[𝕜] 𝔸},
  HasFDerivWithinAt a a' s x →
    HasFDerivWithinAt b b' s x → HasFDerivWithinAt (a * b) (a x • b' + MulOpposite.op (b x) • a') s x

theorem HasFDerivWithinAt.mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasFDerivWithinAt c c' s x → HasFDerivWithinAt d d' s x → HasFDerivWithinAt (c * d) (c x • d' + d x • c') s x

theorem HasFDerivWithinAt.fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasFDerivWithinAt c c' s x →
    HasFDerivWithinAt d d' s x → HasFDerivWithinAt (fun i ↦ c i * d i) (c x • d' + d x • c') s x

Eta-expanded form of HasFDerivWithinAt.mul

theorem HasFDerivAt.fun_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸}
  {a' b' : E →L[𝕜] 𝔸},
  HasFDerivAt a a' x → HasFDerivAt b b' x → HasFDerivAt (fun i ↦ a i * b i) (a x • b' + MulOpposite.op (b x) • a') x

Eta-expanded form of HasFDerivAt.mul'

theorem HasFDerivAt.mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸}
  {a' b' : E →L[𝕜] 𝔸},
  HasFDerivAt a a' x → HasFDerivAt b b' x → HasFDerivAt (a * b) (a x • b' + MulOpposite.op (b x) • a') x

theorem HasFDerivAt.fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasFDerivAt c c' x → HasFDerivAt d d' x → HasFDerivAt (fun i ↦ c i * d i) (c x • d' + d x • c') x

Eta-expanded form of HasFDerivAt.mul

theorem HasFDerivAt.mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'} {c' d' : E →L[𝕜] 𝔸'},
  HasFDerivAt c c' x → HasFDerivAt d d' x → HasFDerivAt (c * d) (c x • d' + d x • c') x

theorem DifferentiableWithinAt.mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸}, DifferentiableWithinAt 𝕜 a s x → DifferentiableWithinAt 𝕜 b s x → DifferentiableWithinAt 𝕜 (a * b) s x

theorem DifferentiableWithinAt.fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸},
  DifferentiableWithinAt 𝕜 a s x → DifferentiableWithinAt 𝕜 b s x → DifferentiableWithinAt 𝕜 (fun i ↦ a i * b i) s x

Eta-expanded form of DifferentiableWithinAt.mul

theorem DifferentiableAt.mul E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  DifferentiableAt 𝕜 a x → DifferentiableAt 𝕜 b x → DifferentiableAt 𝕜 (a * b) x

theorem DifferentiableAt.fun_mul E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  DifferentiableAt 𝕜 a x → DifferentiableAt 𝕜 b x → DifferentiableAt 𝕜 (fun i ↦ a i * b i) x

Eta-expanded form of DifferentiableAt.mul

theorem DifferentiableOn.fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸}, DifferentiableOn 𝕜 a s → DifferentiableOn 𝕜 b s → DifferentiableOn 𝕜 (fun i ↦ a i * b i) s

Eta-expanded form of DifferentiableOn.mul

theorem DifferentiableOn.mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸}, DifferentiableOn 𝕜 a s → DifferentiableOn 𝕜 b s → DifferentiableOn 𝕜 (a * b) s

theorem Differentiable.fun_mul E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  Differentiable 𝕜 a → Differentiable 𝕜 b → Differentiable 𝕜 fun i ↦ a i * b i

Eta-expanded form of Differentiable.mul

theorem Differentiable.mul E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  Differentiable 𝕜 a → Differentiable 𝕜 b → Differentiable 𝕜 (a * b)

theorem fderivWithin_fun_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 a s x →
      DifferentiableWithinAt 𝕜 b s x →
        fderivWithin 𝕜 (fun y ↦ a y * b y) s x =
          a x • fderivWithin 𝕜 b s x + MulOpposite.op (b x) • fderivWithin 𝕜 a s x

theorem fderivWithin_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a b : E → 𝔸},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 a s x →
      DifferentiableWithinAt 𝕜 b s x →
        fderivWithin 𝕜 (a * b) s x = a x • fderivWithin 𝕜 b s x + MulOpposite.op (b x) • fderivWithin 𝕜 a s x

theorem fderivWithin_fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c d : E → 𝔸'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x →
      DifferentiableWithinAt 𝕜 d s x →
        fderivWithin 𝕜 (fun y ↦ c y * d y) s x = c x • fderivWithin 𝕜 d s x + d x • fderivWithin 𝕜 c s x

theorem fderivWithin_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c d : E → 𝔸'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x →
      DifferentiableWithinAt 𝕜 d s x →
        fderivWithin 𝕜 (c * d) s x = c x • fderivWithin 𝕜 d s x + d x • fderivWithin 𝕜 c s x

theorem fderiv_fun_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  DifferentiableAt 𝕜 a x →
    DifferentiableAt 𝕜 b x → fderiv 𝕜 (fun y ↦ a y * b y) x = a x • fderiv 𝕜 b x + MulOpposite.op (b x) • fderiv 𝕜 a x

theorem fderiv_mul' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a b : E → 𝔸},
  DifferentiableAt 𝕜 a x →
    DifferentiableAt 𝕜 b x → fderiv 𝕜 (a * b) x = a x • fderiv 𝕜 b x + MulOpposite.op (b x) • fderiv 𝕜 a x

theorem fderiv_fun_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'},
  DifferentiableAt 𝕜 c x →
    DifferentiableAt 𝕜 d x → fderiv 𝕜 (fun y ↦ c y * d y) x = c x • fderiv 𝕜 d x + d x • fderiv 𝕜 c x

theorem fderiv_mul E3 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c d : E → 𝔸'},
  DifferentiableAt 𝕜 c x → DifferentiableAt 𝕜 d x → fderiv 𝕜 (c * d) x = c x • fderiv 𝕜 d x + d x • fderiv 𝕜 c x

theorem HasStrictFDerivAt.mul_const' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸}
  {a' : E →L[𝕜] 𝔸}, HasStrictFDerivAt a a' x → ∀ (b : 𝔸), HasStrictFDerivAt (fun y ↦ a y * b) (MulOpposite.op b • a') x

theorem HasStrictFDerivAt.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c : E → 𝔸'} {c' : E →L[𝕜] 𝔸'}, HasStrictFDerivAt c c' x → ∀ (d : 𝔸'), HasStrictFDerivAt (fun y ↦ c y * d) (d • c') x

theorem HasFDerivWithinAt.mul_const' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸} {a' : E →L[𝕜] 𝔸},
  HasFDerivWithinAt a a' s x → ∀ (b : 𝔸), HasFDerivWithinAt (fun y ↦ a y * b) (MulOpposite.op b • a') s x

theorem HasFDerivWithinAt.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c : E → 𝔸'} {c' : E →L[𝕜] 𝔸'},
  HasFDerivWithinAt c c' s x → ∀ (d : 𝔸'), HasFDerivWithinAt (fun y ↦ c y * d) (d • c') s x

theorem HasFDerivAt.mul_const' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸}
  {a' : E →L[𝕜] 𝔸}, HasFDerivAt a a' x → ∀ (b : 𝔸), HasFDerivAt (fun y ↦ a y * b) (MulOpposite.op b • a') x

theorem HasFDerivAt.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c : E → 𝔸'} {c' : E →L[𝕜] 𝔸'}, HasFDerivAt c c' x → ∀ (d : 𝔸'), HasFDerivAt (fun y ↦ c y * d) (d • c') x

theorem DifferentiableWithinAt.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸}, DifferentiableWithinAt 𝕜 a s x → ∀ (b : 𝔸), DifferentiableWithinAt 𝕜 (fun y ↦ a y * b) s x

theorem DifferentiableAt.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  DifferentiableAt 𝕜 a x → ∀ (b : 𝔸), DifferentiableAt 𝕜 (fun y ↦ a y * b) x

theorem DifferentiableOn.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸}, DifferentiableOn 𝕜 a s → ∀ (b : 𝔸), DifferentiableOn 𝕜 (fun y ↦ a y * b) s

theorem Differentiable.mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  Differentiable 𝕜 a → ∀ (b : 𝔸), Differentiable 𝕜 fun y ↦ a y * b

theorem fderivWithin_mul_const' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 a s x →
      ∀ (b : 𝔸), fderivWithin 𝕜 (fun y ↦ a y * b) s x = MulOpposite.op b • fderivWithin 𝕜 a s x

theorem fderivWithin_mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {c : E → 𝔸'},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 c s x → ∀ (d : 𝔸'), fderivWithin 𝕜 (fun y ↦ c y * d) s x = d • fderivWithin 𝕜 c s x

theorem fderiv_mul_const' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  DifferentiableAt 𝕜 a x → ∀ (b : 𝔸), fderiv 𝕜 (fun y ↦ a y * b) x = MulOpposite.op b • fderiv 𝕜 a x

theorem fderiv_mul_const E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸' : Type u_5} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {c : E → 𝔸'}, DifferentiableAt 𝕜 c x → ∀ (d : 𝔸'), fderiv 𝕜 (fun y ↦ c y * d) x = d • fderiv 𝕜 c x

theorem HasStrictFDerivAt.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸}
  {a' : E →L[𝕜] 𝔸}, HasStrictFDerivAt a a' x → ∀ (b : 𝔸), HasStrictFDerivAt (fun y ↦ b * a y) (b • a') x

theorem HasFDerivWithinAt.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸} {a' : E →L[𝕜] 𝔸}, HasFDerivWithinAt a a' s x → ∀ (b : 𝔸), HasFDerivWithinAt (fun y ↦ b * a y) (b • a') s x

theorem HasFDerivAt.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸}
  {a' : E →L[𝕜] 𝔸}, HasFDerivAt a a' x → ∀ (b : 𝔸), HasFDerivAt (fun y ↦ b * a y) (b • a') x

theorem DifferentiableWithinAt.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸}, DifferentiableWithinAt 𝕜 a s x → ∀ (b : 𝔸), DifferentiableWithinAt 𝕜 (fun y ↦ b * a y) s x

theorem DifferentiableAt.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  DifferentiableAt 𝕜 a x → ∀ (b : 𝔸), DifferentiableAt 𝕜 (fun y ↦ b * a y) x

theorem DifferentiableOn.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸}, DifferentiableOn 𝕜 a s → ∀ (b : 𝔸), DifferentiableOn 𝕜 (fun y ↦ b * a y) s

theorem Differentiable.const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  Differentiable 𝕜 a → ∀ (b : 𝔸), Differentiable 𝕜 fun y ↦ b * a y

theorem fderivWithin_const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {s : Set E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {a : E → 𝔸},
  UniqueDiffWithinAt 𝕜 s x →
    DifferentiableWithinAt 𝕜 a s x → ∀ (b : 𝔸), fderivWithin 𝕜 (fun y ↦ b * a y) s x = b • fderivWithin 𝕜 a s x

theorem fderiv_const_mul E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {x : E} {𝔸 : Type u_4} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸] {a : E → 𝔸},
  DifferentiableAt 𝕜 a x → ∀ (b : 𝔸), fderiv 𝕜 (fun y ↦ b * a y) x = b • fderiv 𝕜 a x

theorem hasStrictFDerivAt_list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸 : Type u_5} [inst_1 : NormedRing 𝔸]
  [inst_2 : NormedAlgebra 𝕜 𝔸] [Finite ι] {l : List ι} {x : ι → 𝔸},
  HasStrictFDerivAt (fun x ↦ (List.map x l).prod)
    (∑ i,
      (List.map x (List.take (↑i) l)).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ l)).prod • ContinuousLinearMap.proj l[i])
    x

theorem hasStrictFDerivAt_list_prod_finRange' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {𝔸 : Type u_5} [inst_1 : NormedRing 𝔸] [inst_2 : NormedAlgebra 𝕜 𝔸]
  {n : ℕ} {x : Fin n → 𝔸},
  HasStrictFDerivAt (fun x ↦ (List.map x (List.finRange n)).prod)
    (∑ i,
      (List.map x (List.take (↑i) (List.finRange n))).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ (List.finRange n))).prod • ContinuousLinearMap.proj i)
    x

theorem hasStrictFDerivAt_list_prod_attach' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸 : Type u_5} [inst_1 : NormedRing 𝔸]
  [inst_2 : NormedAlgebra 𝕜 𝔸] {l : List ι} {x : { i // i ∈ l } → 𝔸},
  HasStrictFDerivAt (fun x ↦ (List.map x l.attach).prod)
    (∑ i,
      (List.map x (List.take (↑i) l.attach)).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ l.attach)).prod •
          ContinuousLinearMap.proj l.attach[Fin.cast ⋯ i])
    x

theorem hasFDerivAt_list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] [Finite ι] {l : List ι} {x : ι → 𝔸'},
  HasFDerivAt (fun x ↦ (List.map x l).prod)
    (∑ i,
      (List.map x (List.take (↑i) l)).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ l)).prod • ContinuousLinearMap.proj l[i])
    x

theorem hasFDerivAt_list_prod_finRange' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {𝔸 : Type u_5} [inst_1 : NormedRing 𝔸] [inst_2 : NormedAlgebra 𝕜 𝔸]
  {n : ℕ} {x : Fin n → 𝔸},
  HasFDerivAt (fun x ↦ (List.map x (List.finRange n)).prod)
    (∑ i,
      (List.map x (List.take (↑i) (List.finRange n))).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ (List.finRange n))).prod • ContinuousLinearMap.proj i)
    x

theorem hasFDerivAt_list_prod_attach' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸 : Type u_5} [inst_1 : NormedRing 𝔸]
  [inst_2 : NormedAlgebra 𝕜 𝔸] {l : List ι} {x : { i // i ∈ l } → 𝔸},
  HasFDerivAt (fun x ↦ (List.map x l.attach).prod)
    (∑ i,
      (List.map x (List.take (↑i) l.attach)).prod •
        MulOpposite.op (List.map x (List.drop (↑i).succ l.attach)).prod •
          ContinuousLinearMap.proj l.attach[Fin.cast ⋯ i])
    x

theorem hasStrictFDerivAt_list_prod E2 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] [inst_3 : DecidableEq ι] [Finite ι] {l : List ι} {x : ι → 𝔸'},
  HasStrictFDerivAt (fun x ↦ (List.map x l).prod)
    (List.map (fun i ↦ (List.map x (l.erase i)).prod • ContinuousLinearMap.proj i) l).sum x

Auxiliary lemma for hasStrictFDerivAt_multiset_prod.

For NormedCommRing 𝔸', can rewrite as Multiset using Multiset.prod_coe.

theorem hasStrictFDerivAt_multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] [inst_3 : DecidableEq ι] [Finite ι] {u : Multiset ι} {x : ι → 𝔸'},
  HasStrictFDerivAt (fun x ↦ (Multiset.map x u).prod)
    (Multiset.map (fun i ↦ (Multiset.map x (u.erase i)).prod • ContinuousLinearMap.proj i) u).sum x

theorem hasFDerivAt_multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] [inst_3 : DecidableEq ι] [Finite ι] {u : Multiset ι} {x : ι → 𝔸'},
  HasFDerivAt (fun x ↦ (Multiset.map x u).prod)
    (Multiset.map (fun i ↦ (Multiset.map x (u.erase i)).prod • ContinuousLinearMap.proj i) u).sum x

theorem hasStrictFDerivAt_finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] {u : Finset ι} [inst_3 : DecidableEq ι] [Finite ι] {x : ι → 𝔸'},
  HasStrictFDerivAt (fun x ↦ ∏ i ∈ u, x i) (∑ i ∈ u, (∏ j ∈ u.erase i, x j) • ContinuousLinearMap.proj i) x

theorem hasFDerivAt_finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {ι : Type u_4} {𝔸' : Type u_6} [inst_1 : NormedCommRing 𝔸']
  [inst_2 : NormedAlgebra 𝕜 𝔸'] {u : Finset ι} [inst_3 : DecidableEq ι] [Finite ι] {x : ι → 𝔸'},
  HasFDerivAt (fun x ↦ ∏ i ∈ u, x i) (∑ i ∈ u, (∏ j ∈ u.erase i, x j) • ContinuousLinearMap.proj i) x

theorem HasStrictFDerivAt.list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸 : Type u_5} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {f : ι → E → 𝔸} {f' : ι → E →L[𝕜] 𝔸} {l : List ι} {x : E},
  (∀ i ∈ l, HasStrictFDerivAt (fun x ↦ f i x) (f' i) x) →
    HasStrictFDerivAt (fun x ↦ (List.map (fun x_1 ↦ f x_1 x) l).prod)
      (∑ i,
        (List.map (fun x_1 ↦ f x_1 x) (List.take (↑i) l)).prod •
          MulOpposite.op (List.map (fun x_1 ↦ f x_1 x) (List.drop (↑i).succ l)).prod • f' l[i])
      x

theorem HasFDerivAt.list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸 : Type u_5} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {f : ι → E → 𝔸} {f' : ι → E →L[𝕜] 𝔸} {l : List ι} {x : E},
  (∀ i ∈ l, HasFDerivAt (fun x ↦ f i x) (f' i) x) →
    HasFDerivAt (fun x ↦ (List.map (fun x_1 ↦ f x_1 x) l).prod)
      (∑ i,
        (List.map (fun x_1 ↦ f x_1 x) (List.take (↑i) l)).prod •
          MulOpposite.op (List.map (fun x_1 ↦ f x_1 x) (List.drop (↑i).succ l)).prod • f' l[i])
      x

Unlike HasFDerivAt.finsetProd, supports non-commutative multiply and duplicate elements.

theorem HasFDerivWithinAt.list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸 : Type u_5} [inst_3 : NormedRing 𝔸]
  [inst_4 : NormedAlgebra 𝕜 𝔸] {f : ι → E → 𝔸} {f' : ι → E →L[𝕜] 𝔸} {l : List ι} {x : E},
  (∀ i ∈ l, HasFDerivWithinAt (fun x ↦ f i x) (f' i) s x) →
    HasFDerivWithinAt (fun x ↦ (List.map (fun x_1 ↦ f x_1 x) l).prod)
      (∑ i,
        (List.map (fun x_1 ↦ f x_1 x) (List.take (↑i) l)).prod •
          MulOpposite.op (List.map (fun x_1 ↦ f x_1 x) (List.drop (↑i).succ l)).prod • f' l[i])
      s x

theorem fderiv_list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸 : Type u_5} [inst_3 : NormedRing 𝔸] [inst_4 : NormedAlgebra 𝕜 𝔸]
  {f : ι → E → 𝔸} {l : List ι} {x : E},
  (∀ i ∈ l, DifferentiableAt 𝕜 (fun x ↦ f i x) x) →
    fderiv 𝕜 (fun x ↦ (List.map (fun x_1 ↦ f x_1 x) l).prod) x =
      ∑ i,
        (List.map (fun x_1 ↦ f x_1 x) (List.take (↑i) l)).prod •
          MulOpposite.op (List.map (fun x_1 ↦ f x_1 x) (List.drop (↑i).succ l)).prod • fderiv 𝕜 (fun x ↦ f l[i] x) x

theorem fderivWithin_list_prod' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸 : Type u_5} [inst_3 : NormedRing 𝔸]
  [inst_4 : NormedAlgebra 𝕜 𝔸] {f : ι → E → 𝔸} {l : List ι} {x : E},
  UniqueDiffWithinAt 𝕜 s x →
    (∀ i ∈ l, DifferentiableWithinAt 𝕜 (fun x ↦ f i x) s x) →
      fderivWithin 𝕜 (fun x ↦ (List.map (fun x_1 ↦ f x_1 x) l).prod) s x =
        ∑ i,
          (List.map (fun x_1 ↦ f x_1 x) (List.take (↑i) l)).prod •
            MulOpposite.op (List.map (fun x_1 ↦ f x_1 x) (List.drop (↑i).succ l)).prod •
              fderivWithin 𝕜 (fun x ↦ f l[i] x) s x

theorem HasStrictFDerivAt.multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {u : Multiset ι} {x : E},
  (∀ i ∈ u, HasStrictFDerivAt (fun x ↦ g i x) (g' i) x) →
    HasStrictFDerivAt (fun x ↦ (Multiset.map (fun x_1 ↦ g x_1 x) u).prod)
      (Multiset.map (fun i ↦ (Multiset.map (fun x_1 ↦ g x_1 x) (u.erase i)).prod • g' i) u).sum x

theorem HasFDerivAt.multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {u : Multiset ι} {x : E},
  (∀ i ∈ u, HasFDerivAt (fun x ↦ g i x) (g' i) x) →
    HasFDerivAt (fun x ↦ (Multiset.map (fun x_1 ↦ g x_1 x) u).prod)
      (Multiset.map (fun i ↦ (Multiset.map (fun x_1 ↦ g x_1 x) (u.erase i)).prod • g' i) u).sum x

Unlike HasFDerivAt.finsetProd, supports duplicate elements.

theorem HasFDerivWithinAt.multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {u : Multiset ι}
  {x : E},
  (∀ i ∈ u, HasFDerivWithinAt (fun x ↦ g i x) (g' i) s x) →
    HasFDerivWithinAt (fun x ↦ (Multiset.map (fun x_1 ↦ g x_1 x) u).prod)
      (Multiset.map (fun i ↦ (Multiset.map (fun x_1 ↦ g x_1 x) (u.erase i)).prod • g' i) u).sum s x

theorem fderiv_multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {g : ι → E → 𝔸'} [inst_5 : DecidableEq ι] {u : Multiset ι} {x : E},
  (∀ i ∈ u, DifferentiableAt 𝕜 (fun x ↦ g i x) x) →
    fderiv 𝕜 (fun x ↦ (Multiset.map (fun x_1 ↦ g x_1 x) u).prod) x =
      (Multiset.map (fun i ↦ (Multiset.map (fun x_1 ↦ g x_1 x) (u.erase i)).prod • fderiv 𝕜 (g i) x) u).sum

theorem fderivWithin_multiset_prod E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {g : ι → E → 𝔸'} [inst_5 : DecidableEq ι] {u : Multiset ι} {x : E},
  UniqueDiffWithinAt 𝕜 s x →
    (∀ i ∈ u, DifferentiableWithinAt 𝕜 (fun x ↦ g i x) s x) →
      fderivWithin 𝕜 (fun x ↦ (Multiset.map (fun x_1 ↦ g x_1 x) u).prod) s x =
        (Multiset.map (fun i ↦ (Multiset.map (fun x_1 ↦ g x_1 x) (u.erase i)).prod • fderivWithin 𝕜 (g i) s x) u).sum

theorem HasStrictFDerivAt.finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {u : Finset ι} {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {x : E},
  (∀ i ∈ u, HasStrictFDerivAt (g i) (g' i) x) →
    HasStrictFDerivAt (fun x ↦ ∏ i ∈ u, g i x) (∑ i ∈ u, (∏ j ∈ u.erase i, g j x) • g' i) x

theorem HasFDerivAt.finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {u : Finset ι} {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {x : E},
  (∀ i ∈ u, HasFDerivAt (g i) (g' i) x) →
    HasFDerivAt (fun x ↦ ∏ i ∈ u, g i x) (∑ i ∈ u, (∏ j ∈ u.erase i, g j x) • g' i) x

theorem HasFDerivWithinAt.finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {u : Finset ι} {g : ι → E → 𝔸'} {g' : ι → E →L[𝕜] 𝔸'} [inst_5 : DecidableEq ι] {x : E},
  (∀ i ∈ u, HasFDerivWithinAt (g i) (g' i) s x) →
    HasFDerivWithinAt (fun x ↦ ∏ i ∈ u, g i x) (∑ i ∈ u, (∏ j ∈ u.erase i, g j x) • g' i) s x

theorem fderiv_finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸'] [inst_4 : NormedAlgebra 𝕜 𝔸']
  {u : Finset ι} {g : ι → E → 𝔸'} [inst_5 : DecidableEq ι] {x : E},
  (∀ i ∈ u, DifferentiableAt 𝕜 (g i) x) →
    fderiv 𝕜 (fun x ↦ ∏ i ∈ u, g i x) x = ∑ i ∈ u, (∏ j ∈ u.erase i, g j x) • fderiv 𝕜 (g i) x

theorem fderivWithin_finsetProd E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {s : Set E} {ι : Type u_4} {𝔸' : Type u_6} [inst_3 : NormedCommRing 𝔸']
  [inst_4 : NormedAlgebra 𝕜 𝔸'] {u : Finset ι} {g : ι → E → 𝔸'} [inst_5 : DecidableEq ι] {x : E},
  UniqueDiffWithinAt 𝕜 s x →
    (∀ i ∈ u, DifferentiableWithinAt 𝕜 (g i) s x) →
      fderivWithin 𝕜 (fun x ↦ ∏ i ∈ u, g i x) s x = ∑ i ∈ u, (∏ j ∈ u.erase i, g j x) • fderivWithin 𝕜 (g i) s x

theorem hasFDerivAt_ringInverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R] (x : Rˣ),
  HasFDerivAt Ring.inverse (-((ContinuousLinearMap.mulLeftRight 𝕜 R) ↑x⁻¹) ↑x⁻¹) ↑x

At an invertible element x of a normed algebra R, the Fréchet derivative of the inversion operation is the linear map fun t ↦ - x⁻¹ * t * x⁻¹.

TODO (low prio): prove a version without assumption [HasSummableGeomSeries R] but within the set of units.

theorem differentiableAt_inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R] {x : R}, IsUnit x → DifferentiableAt 𝕜 Ring.inverse x

theorem differentiableWithinAt_inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R] {x : R}, IsUnit x → ∀ (s : Set R), DifferentiableWithinAt 𝕜 Ring.inverse s x

theorem differentiableOn_inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R], DifferentiableOn 𝕜 Ring.inverse {x | IsUnit x}

theorem fderiv_inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R] (x : Rˣ), fderiv 𝕜 Ring.inverse ↑x = -((ContinuousLinearMap.mulLeftRight 𝕜 R) ↑x⁻¹) ↑x⁻¹

theorem hasStrictFDerivAt_ringInverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedRing R] [HasSummableGeomSeries R]
  [inst_3 : NormedAlgebra 𝕜 R] (x : Rˣ),
  HasStrictFDerivAt Ring.inverse (-((ContinuousLinearMap.mulLeftRight 𝕜 R) ↑x⁻¹) ↑x⁻¹) ↑x

theorem DifferentiableWithinAt.inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedRing R] [HasSummableGeomSeries R]
  [inst_5 : NormedAlgebra 𝕜 R] {h : E → R} {z : E} {S : Set E},
  DifferentiableWithinAt 𝕜 h S z → IsUnit (h z) → DifferentiableWithinAt 𝕜 (fun x ↦ Ring.inverse (h x)) S z

theorem DifferentiableAt.inverse E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedRing R] [HasSummableGeomSeries R]
  [inst_5 : NormedAlgebra 𝕜 R] {h : E → R} {z : E},
  DifferentiableAt 𝕜 h z → IsUnit (h z) → DifferentiableAt 𝕜 (fun x ↦ Ring.inverse (h x)) z

theorem DifferentiableOn.inverse E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedRing R] [HasSummableGeomSeries R]
  [inst_5 : NormedAlgebra 𝕜 R] {h : E → R} {S : Set E},
  DifferentiableOn 𝕜 h S → (∀ x ∈ S, IsUnit (h x)) → DifferentiableOn 𝕜 (fun x ↦ Ring.inverse (h x)) S

theorem Differentiable.inverse E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedRing R] [HasSummableGeomSeries R]
  [inst_5 : NormedAlgebra 𝕜 R] {h : E → R},
  Differentiable 𝕜 h → (∀ (x : E), IsUnit (h x)) → Differentiable 𝕜 fun x ↦ Ring.inverse (h x)

theorem hasStrictFDerivAt_inv' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {x : R},
  x ≠ 0 → HasStrictFDerivAt Inv.inv (-((ContinuousLinearMap.mulLeftRight 𝕜 R) x⁻¹) x⁻¹) x

At an invertible element x of a normed division algebra R, the inversion is strictly differentiable, with derivative the linear map fun t ↦ - x⁻¹ * t * x⁻¹. For a nicer formula in the commutative case, see hasStrictFDerivAt_inv.

theorem hasFDerivAt_inv' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {x : R},
  x ≠ 0 → HasFDerivAt Inv.inv (-((ContinuousLinearMap.mulLeftRight 𝕜 R) x⁻¹) x⁻¹) x

At an invertible element x of a normed division algebra R, the Fréchet derivative of the inversion operation is the linear map fun t ↦ - x⁻¹ * t * x⁻¹. For a nicer formula in the commutative case, see hasFDerivAt_inv.

theorem differentiableAt_inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {x : R}, x ≠ 0 → DifferentiableAt 𝕜 Inv.inv x

theorem differentiableWithinAt_inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {x : R}, x ≠ 0 → ∀ (s : Set R), DifferentiableWithinAt 𝕜 (fun x ↦ x⁻¹) s x

theorem differentiableOn_inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R], DifferentiableOn 𝕜 (fun x ↦ x⁻¹) {x | x ≠ 0}

theorem fderiv_inv' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {x : R}, x ≠ 0 → fderiv 𝕜 Inv.inv x = -((ContinuousLinearMap.mulLeftRight 𝕜 R) x⁻¹) x⁻¹

Non-commutative version of fderiv_inv

theorem fderivWithin_inv' E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {R : Type u_4} [inst_1 : NormedDivisionRing R]
  [inst_2 : NormedAlgebra 𝕜 R] {s : Set R} {x : R},
  x ≠ 0 →
    UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 (fun x ↦ x⁻¹) s x = -((ContinuousLinearMap.mulLeftRight 𝕜 R) x⁻¹) x⁻¹

Non-commutative version of fderivWithin_inv

theorem DifferentiableWithinAt.inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {z : E} {S : Set E}, DifferentiableWithinAt 𝕜 h S z → h z ≠ 0 → DifferentiableWithinAt 𝕜 h⁻¹ S z

theorem DifferentiableWithinAt.fun_inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {z : E} {S : Set E}, DifferentiableWithinAt 𝕜 h S z → h z ≠ 0 → DifferentiableWithinAt 𝕜 (fun i ↦ (h i)⁻¹) S z

Eta-expanded form of DifferentiableWithinAt.inv

theorem DifferentiableAt.fun_inv E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {z : E}, DifferentiableAt 𝕜 h z → h z ≠ 0 → DifferentiableAt 𝕜 (fun i ↦ (h i)⁻¹) z

Eta-expanded form of DifferentiableAt.inv

theorem DifferentiableAt.inv E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {z : E}, DifferentiableAt 𝕜 h z → h z ≠ 0 → DifferentiableAt 𝕜 h⁻¹ z

theorem DifferentiableOn.inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {S : Set E}, DifferentiableOn 𝕜 h S → (∀ x ∈ S, h x ≠ 0) → DifferentiableOn 𝕜 h⁻¹ S

theorem DifferentiableOn.fun_inv E1 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R}
  {S : Set E}, DifferentiableOn 𝕜 h S → (∀ x ∈ S, h x ≠ 0) → DifferentiableOn 𝕜 (fun i ↦ (h i)⁻¹) S

Eta-expanded form of DifferentiableOn.inv

theorem Differentiable.fun_inv E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R},
  Differentiable 𝕜 h → (∀ (x : E), h x ≠ 0) → Differentiable 𝕜 fun i ↦ (h i)⁻¹

Eta-expanded form of Differentiable.inv

theorem Differentiable.inv E0 #

∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {R : Type u_4} [inst_3 : NormedDivisionRing R] [inst_4 : NormedAlgebra 𝕜 R] {h : E → R},
  Differentiable 𝕜 h → (∀ (x : E), h x ≠ 0) → Differentiable 𝕜 h⁻¹