iteratedDeriv_tanh_const_mul
theoremverifiedformalizationimported Lean
Iterated derivative for scaled tanh
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Real in open NNReal in open Field in open scoped ContDiff in lemma iteratedDeriv_tanh_const_mul (n : ℕ) (κ : ℝ) : ∀ x : ℝ, iteratedDeriv n (fun y => Real.tanh (κ * y)) x = κ^n * (iteratedDeriv n Real.tanh) (κ * x)
- Formalizes
- Physlib, `iteratedDeriv_tanh_const_mul`
- Lean proof
- By Afiq Hatta, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Afiq Hatta. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.iteratedDeriv_tanh_const_mul← iteratedDeriv_tanh_const_mul (Physlib/Mathematics/ForMathlib/Trigonometry/Tanh.lean:174): verbatim
- Verified
- 09 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- iteratedDeriv_tanh_differentiableIterated derivative for scaled tanh is differentiable
- Used by 1
- tanh_const_mul_hasTemperateGrowthtanh(κx) has temperate growth
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Real inopen NNReal inopen Field inopen scoped ContDiff in/-- Iterated derivative for scaled tanh -/lemma iteratedDeriv_tanh_const_mul (n : ℕ) (κ : ℝ) : ∀ x : ℝ, iteratedDeriv n (fun y => Real.tanh (κ * y)) x = κ^n * (iteratedDeriv n Real.tanh) (κ * x) := by induction n with | zero => rw [iteratedDeriv_zero] field_simp simp | succ n ih => rw [iteratedDeriv_succ] have h' : iteratedDeriv n (fun y => tanh (κ * y)) = fun x => κ ^ n * iteratedDeriv n tanh (κ * x) := by funext x rw [ih] rw [h'] simp only [deriv_const_mul_field'] have h'': (fun x => iteratedDeriv n tanh (κ * x)) = (iteratedDeriv n tanh) ∘ (fun x => κ * x) := by funext x simp rw [h''] intro x rw [deriv_comp, ← iteratedDeriv_succ] have h''': deriv (fun x => κ * x) = fun x => κ := by funext x rw [deriv_const_mul, ← Function.id_def] field_simp simp only [deriv_id', mul_one] apply differentiable_id rw [h'''] field_simp ring apply iteratedDeriv_tanh_differentiable fun_prop