def lea
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs.bend as Limbsimport Base
57# every limb at most b
58def lea(xs: List<&2, U32>, +b: Nat) -> Bool:
59 match xs:
60 case Nil{}:
61 True{}
62 case Con{x, xt}:
63 Bool.and(Nat.is_le(U32.to_nat(x), b), lea(xt, b))
Uses (7)
Used by (35)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs:okb_lea
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs:lea_tail
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs:lea_head
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/poly:addl_val
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits:kbit_le
- …