def drop_eq
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/ed25519/bytes.bend:36
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/bytes.bend as Bytes
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as SE
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as F
36def drop_eq(+n: Nat, +xs: List<&2, U32>) -> {F.drop(n, xs) == SE.rest(n, xs) : List<&2, U32>}:
37 match n:
38 case 0n:
39 {==}
40 case 1n+ +m:
41 match xs:
42 case Nil{}:
43 {==}
44 case Con{+x, +xt}:
45 drop_eq(m, xt)