def classified

bendtorch-core@0.1.0.0 · src/tensor/signed_LAWS.bend:251

import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWS
import Base
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed

251# The class of a product against a bound, in Signed.Product, stated from
252# its definition and not through signed.bend's helpers: 0 is ZeroProduct, a
253# nonzero product at most the bound is Within{product}, and one past it is
254# Beyond.
255def classified(product: Nat, below: Bool) -> Signed.Product:
256  match below:
257    case True{}:
258      Signed.Within{product}
259    case False{}:
260      Signed.Beyond{}

Uses (3)

Used by (7)