def eq
import bend-collections-laws-crypto@1.0.0.0/src/crypto/subtle.bend as Subtleimport Base
24# True exactly when a and b are the same list.
25def eq(+a: List<&2, U32>, +b: List<&2, U32>) -> Bool:
26 Bool.and(Nat.is_eq(List.length(&2, U32, a), List.length(&2, U32, b)),
27 U32.is_eq(diff(a, b, 0), 0))
Uses (8)
Used by (17)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/subtle/laws:Eq.value
- bend-collections-laws-crypto@1.0.0.0/src/crypto/mac:verify
- bend-collections-laws-crypto@1.0.0.0/src/crypto/aead/chacha20poly1305:open_split
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/subtle/laws:Eq.refl
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/subtle/laws:Eq.sound
- …