def dm_lt
import bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith.bend as Arithimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat.bend as N
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/proofs/word_value.bend as WV
27# v mod n < n (Mathlib Nat.mod_lt)
28def dm_lt(+bp: Nat, +v: Nat) -> {Nat.is_lt(Nat.mod(v, 1n+bp), 1n+bp) == True{} : Bool}:
29 dm_l2(bp, v, WV.go(bp, v, bp, 0n, 0n, N.add_zero(bp)))
Uses (7)
Used by (53)
- bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith:absorb
- bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith:le_div
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/penc:mod2_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith:mod_mod
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldops:red_r
- …