Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: Lemma for fderiv of scalar function #14502

Closed
wants to merge 7 commits into from
11 changes: 10 additions & 1 deletion Mathlib/Analysis/Calculus/Deriv/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,18 @@ theorem fderiv_deriv : (fderiv ๐•œ f x : ๐•œ โ†’ F) 1 = deriv f x :=
rfl
#align fderiv_deriv fderiv_deriv

theorem deriv_fderiv : smulRight (1 : ๐•œ โ†’L[๐•œ] ๐•œ) (deriv f x) = fderiv ๐•œ f x := by simp [deriv]
@[simp]
theorem fderiv_eq_smul_deriv (y : ๐•œ) : (fderiv ๐•œ f x : ๐•œ โ†’ F) y = y โ€ข deriv f x := by
rw [โ† fderiv_deriv, โ† ContinuousLinearMap.map_smul]
simp only [smul_eq_mul, mul_one]

theorem deriv_fderiv : smulRight (1 : ๐•œ โ†’L[๐•œ] ๐•œ) (deriv f x) = fderiv ๐•œ f x := by
simp only [deriv, ContinuousLinearMap.smulRight_one_one]
#align deriv_fderiv deriv_fderiv

lemma fderiv_eq_deriv_mul {f : ๐•œ โ†’ ๐•œ} {x y : ๐•œ} : (fderiv ๐•œ f x : ๐•œ โ†’ ๐•œ) y = (deriv f x) * y := by
simp [mul_comm]

theorem norm_deriv_eq_norm_fderiv : โ€–deriv f xโ€– = โ€–fderiv ๐•œ f xโ€– := by
simp [โ† deriv_fderiv]

Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Analysis/Calculus/IteratedDeriv/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ theorem iteratedDeriv_zero : iteratedDeriv 0 f = f := by ext x; simp [iteratedDe
#align iterated_deriv_zero iteratedDeriv_zero

@[simp]
theorem iteratedDeriv_one : iteratedDeriv 1 f = deriv f := by ext x; simp [iteratedDeriv]; rfl
theorem iteratedDeriv_one : iteratedDeriv 1 f = deriv f := by ext x; simp [iteratedDeriv]
#align iterated_deriv_one iteratedDeriv_one

/-- The property of being `C^n`, initially defined in terms of the Frรฉchet derivative, can be
Expand Down
Loading