AFTD Auto-Formalizing Theoretical Domains

tanh_const_mul_hasTemperateGrowth

theoremverifiedformalizationimported Lean

tanh(κx) has temperate growth

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Real in
open NNReal in
open Field in
open scoped ContDiff in
@[fun_prop]
lemma tanh_const_mul_hasTemperateGrowth (κ : ℝ) :
    Function.HasTemperateGrowth (fun x => Real.tanh (κ * x))
Formalizes
Physlib, `tanh_const_mul_hasTemperateGrowth`
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.
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Real inopen NNReal inopen Field inopen scoped ContDiff in/-- tanh(κx) has temperate growth -/@[fun_prop]lemma tanh_const_mul_hasTemperateGrowth (κ : ℝ) :    Function.HasTemperateGrowth (fun x => Real.tanh (κ * x)) := by  constructor  · have h : (fun x => Real.tanh (κ * x)) = (Real.tanh ∘ (fun x => κ * x)) :=      rfl    have h' : ContDiff ℝ ∞ (fun x => κ * x) := by      have h'': (fun x : ℝ => κ * x) = fun x => κ • x := rfl      rw [contDiff_infty, h'']      intro n      apply contDiff_const_smul    rw [h]    apply ContDiff.comp contDiff_top_tanh h'  · intro n    obtain ⟨D, hD⟩ := iteratedDeriv_tanh_bounded n    use 0    use D * (|κ| ^ n)    intro x    rw [tanh_const_mul_iteratedDeriv_norm_eq_iteratedFDeriv_norm, iteratedDeriv_tanh_const_mul]    field_simp    rw [abs_mul, abs_pow, mul_comm, mul_comm, mul_comm D (|κ| ^ n)]    apply mul_le_mul_of_nonneg_left    apply hD    simp only [abs_nonneg, pow_nonneg]
See it in the graphDiscuss this resultChallenge it