SignedLAWS.classified: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWS Lines 251-260 of bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend&start_line=251&end_line=260 import Base import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed # The class of a product against a bound, in Signed.Product, stated from # its definition and not through signed.bend's helpers: 0 is ZeroProduct, a # nonzero product at most the bound is Within{product}, and one past it is # Beyond. def classified(product: Nat, below: Bool) -> Signed.Product: match below: case True{}: Signed.Within{product} case False{}: Signed.Beyond{} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&name=Product