law fold_mod
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/poly1305/modp.bend:50
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/poly1305/modp.bend as Modp
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/poly1305.bend as R
50law fold_mod:
51 for +one: Nat
52 for +h1: {one == 1n : Nat}
53 for +bp: Nat
54 for +h5: {Nat.add(1n+bp, 5n) == C.shift(130n, one) : Nat}
55 for +x: Nat
56 {Nat.mod(R.fold(x), 1n+bp) == Nat.mod(x, 1n+bp) : Nat}