/-
Copyright (c) 2023 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Heather Macbeth
-/
module
public import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.Calculus.FDeriv.Pi
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# One-dimensional derivatives on pi-types.
-/
public section
variable { ι : Type*} [DecidableEq ι] [NontriviallyNormedField ]
theorem hasDerivAt_update (x : ι → ) (i : ι) (y : ) :
HasDerivAt (Function.update x i) (Pi.single i (1 : )) y := by
convert! (hasFDerivAt_update x y).hasDerivAt
ext z j
rw [Pi.single, Function.update_apply]
split_ifs with h
· simp [h]
· simp [Pi.single_eq_of_ne h]
theorem hasDerivAt_single (i : ι) (y : ) :
HasDerivAt (Pi.single (M := fun _ ↦ ) i) (Pi.single i (1 : )) y :=
hasDerivAt_update 0 i y
variable [Finite ι]
theorem deriv_update (x : ι → ) (i : ι) (y : ) :
deriv (Function.update x i) y = Pi.single i (1 : ) :=
have := Fintype.ofFinite ι
(hasDerivAt_update x i y).deriv
theorem deriv_single (i : ι) (y : ) :
deriv (Pi.single (M := fun _ ↦ ) i) y = Pi.single i (1 : ) :=
deriv_update 0 i y
¤ Dauer der Verarbeitung: 0.11 Sekunden
¤
*© Formatika GbR, Deutschland