def mod_small
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/rconst.bend as Rconstimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith.bend as NR
94# x mod P = x for x < P
95def mod_small(+pp: Nat, +x: Nat, +h: {Nat.is_lt(x, 1n+pp) == True{} : Bool}) -> {Nat.mod(x, 1n+pp) == x : Nat}:
96 NR.mod_of(0n, pp, x, h)
Uses (5)
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/prec:rxg
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/prec:rc0
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/prec:rc1
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/rconst:rc_true
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/rconst:rn_val