law capacity_gate

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/blake/blake2b/api.bend:13

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2b/api.bend as Api
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2b/blake2b.bend as I

13law capacity_gate:
14  for a: Array<U32>
15  for +n: Nat
16  for +capacity: U32
17  for invalid: {Nat.is_le(n,Nat.mul(4n,U32.to_nat(capacity))) == False{} : Bool}
18  {I.sized(n,(a,capacity)) == None{} : Maybe<&1,Array<U32>>}

Uses (12)

Used by (1)