def over_nat

bendtorch-core@0.1.0.0 · src/storage/api.bend:741

import bendtorch-core@0.1.0.0/src/storage/api.bend as Api
import Base
import bendtorch-core@0.1.0.0/src/storage/arith.bend as Arith

741def over_nat(+n: U32, +over: {U32.is_le(n, 1048576) == False{} : Bool}) ->
742  {Nat.is_le(U32.to_nat(n), U32.to_nat(1048576)) == False{} : Bool}:
743  %Equal.sym(Bool, Nat.is_le(U32.to_nat(n), U32.to_nat(1048576)), U32.is_le(n, 1048576), Arith.u32_le(n, 1048576)) : {_ == False{} : Bool}
744  over

Uses (7)

Used by (1)