def len_eq

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/curve25519/xbits.bend:100

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits.bend as Xbits
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/x25519.bend as X

100def len_eq(+bs: List<&2, U32>) -> {X.len(bs) == C.length(U32, bs) : Nat}:
101  match bs:
102    case Nil{}:
103      {==}
104    case Con{+b, +bt}:
105      Equal.cong(Nat, Nat, z => 1n+z, X.len(bt), C.length(U32, bt), len_eq(bt))

Uses (6)

Used by (1)