TorchLean API

NN.MLTheory.CROWN.Extras.IntervalLemmas

Interval arithmetic lemmas #

Scalar facts shared by the CROWN soundness proofs: monotonicity of the real sigmoid and tanh, the real reading of BoundOps.min2/BoundOps.max2, the enclosure law for the four-corner product Graph.intervalMul, and the exact real instance of LawfulNonlinearBoundOps.

Monotone nonlinear functions #

The real sigmoid written in the form used by NonlinearBoundOps.

Instances For

    Derivative of real hyperbolic tangent.

    The real hyperbolic tangent is strictly monotone.

    The real hyperbolic tangent is monotone.

    Directed endpoint arithmetic #

    BoundOps.min2 selects the smaller endpoint in the mathematical interpretation.

    BoundOps.max2 selects the larger endpoint in the mathematical interpretation.

    The outward-rounded four-corner product Graph.intervalMul encloses every product of enclosed reals.

    It depends only on the endpoint interpretation and the directed-operation laws; it does not assume that rounded scalars form a ring or that reassociation is exact. The real four-corner bound is FloatLib's mul_bounds_Icc.

    Nonlinear transfer laws over the reals #

    Exact real nonlinear transfers satisfy their mathematical interval contracts.