law capacity_rejection

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/keccak/laws.bend:19

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/keccak/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/keccak.bend as K

19law capacity_rejection:
20  for a: Array<U32>
21  for +n: Nat
22  for +capacity: U32
23  for invalid: {Nat.is_le(n,Nat.mul(4n,U32.to_nat(capacity))) == False{} : Bool}
24  {K.sized(24n,n,(a,capacity)) == None{} : Maybe<&1,Array<U32>>}

Uses (11)

Used by (0)

No other definition uses this definition.