def mask_hx

bend-collections-laws-crypto@1.0.0.0 · proofs/lib/u32.bend:256

import bend-collections-laws-crypto@1.0.0.0/proofs/lib/u32.bend as U32
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as SC
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/spec/numeric.bend as S

256def mask_hx(+wx: Word(32n), +d: Nat, +hx: {Nat.is_lt(U32.to_nat(U32{wx}), SC.pow2(d)) == True{} : Bool}) -> {Nat.is_lt(S.unsigned(32n, wx), SC.pow2(d)) == True{} : Bool}:
257  %to_nat_word(wx) : {Nat.is_lt(_, SC.pow2(d)) == True{} : Bool}
258  hx

Uses (9)

Used by (1)