def sc_le
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/arith.bend as Arithimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat.bend as N
33def sc_le(+k: Nat, +a: Nat, +b: Nat, +h: {Nat.is_le(a, b) == True{} : Bool}) -> {Nat.is_le(sc(k, a), sc(k, b)) == True{} : Bool}:
34 match k:
35 case 0n:
36 h
37 case 1n+j:
38 N.double_le(sc(j, a), sc(j, b), sc_le(j, a, b, h))
Uses (5)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/arith:digit_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/reduce:shn_ge
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/num:le_sc
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/arith:sc_lt_cancel_g
- bend-collections-laws-crypto@1.0.0.0/proofs/lib/words32:pow_le32
- …