Differences of the logistic function #
The difference of the logistic function at two points is a ratio of hyperbolic functions of their
half-difference and their midpoint, as Real.sin_sub_sin is for the sine. Of two pairs of points
the same positive distance apart, the pair whose midpoint is nearer zero has the larger
difference.
theorem
Real.sigmoid_sub_sigmoid
(x y : ℝ)
:
x.sigmoid - y.sigmoid = sinh ((x - y) / 2) / (cosh ((x + y) / 2) + cosh ((x - y) / 2))
theorem
Real.sigmoid_sub_sigmoid_lt_sigmoid_sub_sigmoid_iff
{x y x' y' : ℝ}
(h : x' - y' = x - y)
(hyx : y < x)
:
x'.sigmoid - y'.sigmoid < x.sigmoid - y.sigmoid ↔ |x + y| < |x' + y'|