def sh_eq0

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/secp256k1/listops.bend:39

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/listops.bend as Listops
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/proofs/math/typed/width.bend as WW

39# 2^16 y == 0 exactly when y == 0
40def sh_eq0(+y: Nat) -> {Nat.is_eq(C.shift(16n, y), 0n) == Nat.is_eq(y, 0n) : Bool}:
41  WW.shift_eq0(16n, y)

Uses (5)

Used by (1)