def c_mod
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/cong.bend as Congimport Base
import bend-collections-laws-crypto@1.0.0.0/proofs/math/natural/arith.bend as NR
25# the reduced value is congruent to the value
26def c_mod(+pp: Nat, +a: Nat) -> ceq(pp, Nat.mod(a, 1n+pp), a):
27 NR.mod_mod(pp, a)
Uses (4)
Used by (12)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/rel:rc_mul
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/pcodec:r_sqm1
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/rel:rc_add
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/rel:rc_sub
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/eqf:eq_val
- …