def classified
import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWSimport 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)
- bendtorch-core@0.1.0.0/src/tensor/signed_LAWS:classify
- bendtorch-core@0.1.0.0/src/tensor/signed_PROOF:bounded_classified
- bendtorch-core@0.1.0.0/src/tensor/signed_PROOF:indivisible_decided
- bendtorch-core@0.1.0.0/src/tensor/signed_PROOF:size_decided
- bendtorch-core@0.1.0.0/src/tensor/signed_PROOF:times_scaled
- …