MindFormal v1.0.0One Mind

MindFormal.Tools.Saturation

Scalar bounds and regularity for the page's rational saturation and tanh reads.

noncomputable def MindFormal.Saturation.ratio (x : ℝ) :

The rational saturation on its physical nonnegative argument domain.

Equations
Instances For
    theorem MindFormal.Saturation.ratio_bounds {x : ℝ} (hx : 0 ≤ x) :
    0 ≤ ratio x ∧ ratio x < 1

    On nonnegative arguments the saturation lies between zero and one.

    theorem MindFormal.Saturation.ratio_deriv {x : ℝ} (hx : 0 ≤ x) :
    HasDerivAt ratio (1 / (1 + x) ^ 2) x

    Its derivative is computed from the displayed quotient, including at zero.

    The saturation is strictly increasing throughout its nonnegative domain.

    The physical rational saturation is one-Lipschitz, uniformly in its argument.

    noncomputable def MindFormal.Saturation.magnitude (x : ℝ) :

    Magnitude saturation is bounded even when the underlying value is signed.

    Equations
    Instances For

      The magnitude response is globally one-Lipschitz, including its corner at zero.

      The derivative of tanh is positive, calculated from sinh and cosh.

      A tanh value read is strictly increasing at every real argument.

      The tanh read has global Lipschitz constant one, uniformly in the value.