law capacity_gate

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

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

117law capacity_gate:
118  for a: Array<U32>
119  for +n: Nat
120  for +capacity: U32
121  for invalid: {Nat.is_le(n,Nat.mul(4n,U32.to_nat(capacity))) == False{} : Bool}
122  {K.sized(24n,n,(a,capacity)) == None{} : Maybe<&1,Array<U32>>}

Uses (12)

Used by (1)