TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.DirectedSemantics.Rational.Runtime

Low-level rational rounding primitives #

Format-independent executable quotient operations support nearest-even and directed rational rounding. The quotient layer stays below Model.Arithmetic, allowing native arithmetic kernels to reuse their proofs without creating an import cycle through the public dispatcher.

@[inline]

Ceiling of a natural quotient, totalized to zero at a zero denominator.

Instances For
    @[inline]

    Round a nonnegative quotient to an integer, selecting floor or ceiling.

    Instances For