Skip to content

Commit 6f1ec98

Browse files
feat: hasDerivAt_const_mul (leanprover-community#32227)
This was the one theorem that existed for mul_const but was missing for const_mul.
1 parent c08393f commit 6f1ec98

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mathlib/Analysis/Calculus/Deriv/Mul.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ theorem HasDerivAt.const_mul (c : 𝔸) (hd : HasDerivAt d d' x) :
373373
rw [← hasDerivWithinAt_univ] at *
374374
exact hd.const_mul c
375375

376+
theorem hasDerivAt_const_mul (c : 𝕜) : HasDerivAt (fun y => c * y) c x := by
377+
simpa only [mul_one] using (hasDerivAt_id' x).const_mul c
378+
376379
theorem HasStrictDerivAt.const_mul (c : 𝔸) (hd : HasStrictDerivAt d d' x) :
377380
HasStrictDerivAt (fun y => c * d y) (c * d') x := by
378381
convert (hasStrictDerivAt_const _ _).mul hd using 1

0 commit comments

Comments
 (0)