law capacity_rejection
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2b/laws.bend as Lawsimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2b/blake2b.bend as I
98# Lengths past the array's capacity are rejected.
99law capacity_rejection:
100 for a: Array<U32>
101 for +n: Nat
102 for +capacity: U32
103 for invalid: {Nat.is_le(n,Nat.mul(4n,U32.to_nat(capacity))) == False{} : Bool}
104 {I.sized(n,(a,capacity)) == None{} : Maybe<&1,Array<U32>>}
Uses (11)
Used by (0)
No other definition uses this definition.