Derivative Interval Library #
This file provides a systematic collection of derivative interval facts for basic functions. These lemmas establish that derivatives of common functions lie within specified intervals, which feeds into:
- Monotonicity analysis
- Lipschitz/contractivity bounds
- Newton method analysis
- Global optimization pruning
Main theorems #
Exp (derivative = exp, always positive) #
exp_deriv_pos- exp' x > 0 for all xexp_deriv_interval- exp' x ∈ [exp a, exp b] for x ∈ [a, b]
Log (derivative = 1/x on (0, ∞)) #
log_deriv_interval- log' x ∈ [1/b, 1/a] for x ∈ [a, b] with 0 < a
Arctan (derivative = 1/(1+x²) ∈ (0, 1]) #
arctan_deriv_interval- arctan' x ∈ (0, 1] for all xarctan_deriv_mem_Icc- arctan' x ∈ [0, 1] for all x
Arsinh (derivative = 1/√(1+x²) ∈ (0, 1]) #
arsinh_deriv_interval- arsinh' x ∈ (0, 1] for all xarsinh_deriv_mem_Icc- arsinh' x ∈ [0, 1] for all x
Sin/Cos (derivatives bounded by 1) #
sin_deriv_interval- |sin' x| = |cos x| ≤ 1cos_deriv_interval- |cos' x| = |sin x| ≤ 1
Sinh/Cosh (derivative relationships) #
sinh_deriv_eq_cosh- sinh' = coshcosh_deriv_eq_sinh- cosh' = sinhcosh_deriv_interval- cosh' x = sinh x, monotonicity facts
Design notes #
These lemmas are independent of any specific algorithm; they're just facts about functions. They're designed to be composable with the chain rule for AD correctness proofs.
Exp derivative intervals #
exp is strictly increasing (follows from positive derivative)
Log derivative intervals #
log is strictly increasing on (0, ∞)
Arctan derivative intervals #
The derivative of arctan at x is 1/(1+x²)
1/(1+x²) is always positive
1/(1+x²) ≤ 1 for all x
arctan' x ∈ (0, 1] for all x
arctan' x ∈ [0, 1] for all x (closed interval version for interval arithmetic)
arctan is strictly increasing (follows from positive derivative)
Arsinh derivative intervals #
The derivative of arsinh at x is (√(1+x²))⁻¹
arsinh' x > 0 for all x
arsinh' x ≤ 1 for all x
arsinh' x ∈ (0, 1] for all x
arsinh' x ∈ [0, 1] for all x (closed interval version)
arsinh is strictly increasing
Sin derivative intervals #
Cos derivative intervals #
Sinh derivative intervals #
sinh is strictly increasing
Cosh derivative intervals #
cosh' 0 = sinh 0 = 0
cosh is strictly decreasing on (-∞, 0]
cosh is strictly increasing on [0, ∞)
One-Sided Taylor Bounds #
For convex functions, the Taylor polynomial provides a one-sided bound. For exp on [0, ∞), the n-th Taylor polynomial is a lower bound. For concave functions, similar upper bounds hold.
These bounds are tighter than symmetric remainder bounds at endpoints, which is important for verified numerics.
Exp lower bounds (convexity gives Taylor poly ≤ function) #
Monotonicity from derivative bounds #
These wrap the Mathlib lemmas for convenience with our naming.
If f' ≥ 0 on [a, b], then f is monotone increasing on [a, b]
If f' > 0 on (a, b), then f is strictly monotone on [a, b]
If f' ≤ 0 on [a, b], then f is antitone (monotone decreasing) on [a, b]
If f' < 0 on (a, b), then f is strictly antitone on [a, b]