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

22 declarations. Mathlib docs ยท Source

Derivatives of functions taking values in product types

In this file we prove lemmas about derivatives of functions f : ๐•œ โ†’ E ร— F and of functions f : ๐•œ โ†’ (ฮ  i, E i).

For a more detailed overview of one-dimensional derivatives in mathlib, see the module docstring of Mathlib/Analysis/Calculus/Deriv/Basic.lean.

Tags

derivative

Derivative of the Cartesian product of two functions

Derivatives of functions f : ๐•œ โ†’ ฮ  i, E i

Derivatives of tuples f : ๐•œ โ†’ ฮ  i : Fin n.succ, F' i

These can be used to prove results about functions of the form fun x โ†ฆ ![f x, g x, h x], as Matrix.vecCons is defeq to Fin.cons.

theorem HasDerivAtFilter.prodMk E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace ๐•œ F] {fโ‚ : ๐•œ โ†’ F} {fโ‚' : F} {L : Filter (๐•œ ร— ๐•œ)} {G : Type w} [inst_3 : NormedAddCommGroup G]
  [inst_4 : NormedSpace ๐•œ G] {fโ‚‚ : ๐•œ โ†’ G} {fโ‚‚' : G},
  HasDerivAtFilter fโ‚ fโ‚' L โ†’ HasDerivAtFilter fโ‚‚ fโ‚‚' L โ†’ HasDerivAtFilter (fun x โ†ฆ (fโ‚ x, fโ‚‚ x)) (fโ‚', fโ‚‚') L

theorem HasDerivWithinAt.prodMk E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace ๐•œ F] {fโ‚ : ๐•œ โ†’ F} {fโ‚' : F} {x : ๐•œ} {s : Set ๐•œ} {G : Type w} [inst_3 : NormedAddCommGroup G]
  [inst_4 : NormedSpace ๐•œ G] {fโ‚‚ : ๐•œ โ†’ G} {fโ‚‚' : G},
  HasDerivWithinAt fโ‚ fโ‚' s x โ†’ HasDerivWithinAt fโ‚‚ fโ‚‚' s x โ†’ HasDerivWithinAt (fun x โ†ฆ (fโ‚ x, fโ‚‚ x)) (fโ‚', fโ‚‚') s x

theorem HasDerivAt.prodMk E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace ๐•œ F] {fโ‚ : ๐•œ โ†’ F} {fโ‚' : F} {x : ๐•œ} {G : Type w} [inst_3 : NormedAddCommGroup G]
  [inst_4 : NormedSpace ๐•œ G] {fโ‚‚ : ๐•œ โ†’ G} {fโ‚‚' : G},
  HasDerivAt fโ‚ fโ‚' x โ†’ HasDerivAt fโ‚‚ fโ‚‚' x โ†’ HasDerivAt (fun x โ†ฆ (fโ‚ x, fโ‚‚ x)) (fโ‚', fโ‚‚') x

theorem HasStrictDerivAt.prodMk E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {F : Type v} [inst_1 : NormedAddCommGroup F]
  [inst_2 : NormedSpace ๐•œ F] {fโ‚ : ๐•œ โ†’ F} {fโ‚' : F} {x : ๐•œ} {G : Type w} [inst_3 : NormedAddCommGroup G]
  [inst_4 : NormedSpace ๐•œ G] {fโ‚‚ : ๐•œ โ†’ G} {fโ‚‚' : G},
  HasStrictDerivAt fโ‚ fโ‚' x โ†’ HasStrictDerivAt fโ‚‚ fโ‚‚' x โ†’ HasStrictDerivAt (fun x โ†ฆ (fโ‚ x, fโ‚‚ x)) (fโ‚', fโ‚‚') x

theorem hasDerivAtFilter_pi E0 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {L : Filter (๐•œ ร— ๐•œ)} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i}
  {ฯ†' : (i : ฮน) โ†’ E' i}, HasDerivAtFilter ฯ† ฯ†' L โ†” โˆ€ (i : ฮน), HasDerivAtFilter (fun x โ†ฆ ฯ† x i) (ฯ†' i) L

theorem hasStrictDerivAt_pi E0 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i}
  {ฯ†' : (i : ฮน) โ†’ E' i}, HasStrictDerivAt ฯ† ฯ†' x โ†” โˆ€ (i : ฮน), HasStrictDerivAt (fun x โ†ฆ ฯ† x i) (ฯ†' i) x

theorem hasDerivAt_pi E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i}
  {ฯ†' : (i : ฮน) โ†’ E' i}, HasDerivAt ฯ† ฯ†' x โ†” โˆ€ (i : ฮน), HasDerivAt (fun x โ†ฆ ฯ† x i) (ฯ†' i) x

theorem hasDerivWithinAt_pi E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {s : Set ๐•œ} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i}
  {ฯ†' : (i : ฮน) โ†’ E' i}, HasDerivWithinAt ฯ† ฯ†' s x โ†” โˆ€ (i : ฮน), HasDerivWithinAt (fun x โ†ฆ ฯ† x i) (ฯ†' i) s x

theorem derivWithin_pi E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {s : Set ๐•œ} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i},
  (โˆ€ (i : ฮน), DifferentiableWithinAt ๐•œ (fun x โ†ฆ ฯ† x i) s x) โ†’
    derivWithin ฯ† s x = fun i โ†ฆ derivWithin (fun x โ†ฆ ฯ† x i) s x

theorem deriv_pi E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {ฮน : Type u_1} {E' : ฮน โ†’ Type u_2}
  [inst_1 : (i : ฮน) โ†’ NormedAddCommGroup (E' i)] [inst_2 : (i : ฮน) โ†’ NormedSpace ๐•œ (E' i)] {ฯ† : ๐•œ โ†’ (i : ฮน) โ†’ E' i},
  (โˆ€ (i : ฮน), DifferentiableAt ๐•œ (fun x โ†ฆ ฯ† x i) x) โ†’ deriv ฯ† x = fun i โ†ฆ deriv (fun x โ†ฆ ฯ† x i) x

theorem hasStrictDerivAt_finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : (i : Fin n.succ) โ†’ F' i},
  HasStrictDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) ฯ†' x โ†”
    HasStrictDerivAt ฯ† (ฯ†' 0) x โˆง HasStrictDerivAt ฯ†s (fun i โ†ฆ ฯ†' i.succ) x

theorem hasStrictDerivAt_finCons' E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasStrictDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') x โ†”
    HasStrictDerivAt ฯ† ฯ†' x โˆง HasStrictDerivAt ฯ†s ฯ†s' x

A variant of hasStrictDerivAt_finCons where the derivative variables are free on the RHS instead.

theorem HasStrictDerivAt.finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasStrictDerivAt ฯ† ฯ†' x โ†’
    HasStrictDerivAt ฯ†s ฯ†s' x โ†’ HasStrictDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') x

theorem hasDerivAtFilter_finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : (i : Fin n.succ) โ†’ F' i} {l : Filter (๐•œ ร— ๐•œ)},
  HasDerivAtFilter (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) ฯ†' l โ†”
    HasDerivAtFilter ฯ† (ฯ†' 0) l โˆง HasDerivAtFilter ฯ†s (fun i โ†ฆ ฯ†' i.succ) l

theorem hasDerivAtFilter_finCons' E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ} {l : Filter (๐•œ ร— ๐•œ)},
  HasDerivAtFilter (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') l โ†”
    HasDerivAtFilter ฯ† ฯ†' l โˆง HasDerivAtFilter ฯ†s ฯ†s' l

A variant of hasDerivAtFilter_finCons where the derivative variables are free on the RHS instead.

theorem HasDerivAtFilter.finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ} {l : Filter (๐•œ ร— ๐•œ)},
  HasDerivAtFilter ฯ† ฯ†' l โ†’
    HasDerivAtFilter ฯ†s ฯ†s' l โ†’ HasDerivAtFilter (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') l

theorem hasDerivAt_finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : (i : Fin n.succ) โ†’ F' i},
  HasDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) ฯ†' x โ†” HasDerivAt ฯ† (ฯ†' 0) x โˆง HasDerivAt ฯ†s (fun i โ†ฆ ฯ†' i.succ) x

theorem hasDerivAt_finCons' E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') x โ†” HasDerivAt ฯ† ฯ†' x โˆง HasDerivAt ฯ†s ฯ†s' x

A variant of hasDerivAt_finCons where the derivative variables are free on the RHS instead.

theorem HasDerivAt.finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasDerivAt ฯ† ฯ†' x โ†’ HasDerivAt ฯ†s ฯ†s' x โ†’ HasDerivAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') x

theorem hasDerivWithinAt_finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {s : Set ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : (i : Fin n.succ) โ†’ F' i},
  HasDerivWithinAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) ฯ†' s x โ†”
    HasDerivWithinAt ฯ† (ฯ†' 0) s x โˆง HasDerivWithinAt ฯ†s (fun i โ†ฆ ฯ†' i.succ) s x

theorem hasDerivWithinAt_finCons' E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {s : Set ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasDerivWithinAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') s x โ†”
    HasDerivWithinAt ฯ† ฯ†' s x โˆง HasDerivWithinAt ฯ†s ฯ†s' s x

A variant of hasDerivWithinAt_finCons where the derivative variables are free on the RHS instead.

theorem HasDerivWithinAt.finCons E1 #

โˆ€ {๐•œ : Type u} [inst : NontriviallyNormedField ๐•œ] {x : ๐•œ} {s : Set ๐•œ} {n : โ„•} {F' : Fin n.succ โ†’ Type u_1}
  [inst_1 : (i : Fin n.succ) โ†’ NormedAddCommGroup (F' i)] [inst_2 : (i : Fin n.succ) โ†’ NormedSpace ๐•œ (F' i)]
  {ฯ† : ๐•œ โ†’ F' 0} {ฯ†s : ๐•œ โ†’ (i : Fin n) โ†’ F' i.succ} {ฯ†' : F' 0} {ฯ†s' : (i : Fin n) โ†’ F' i.succ},
  HasDerivWithinAt ฯ† ฯ†' s x โ†’
    HasDerivWithinAt ฯ†s ฯ†s' s x โ†’ HasDerivWithinAt (fun x โ†ฆ Fin.cons (ฯ† x) (ฯ†s x)) (Fin.cons ฯ†' ฯ†s') s x