def cbn
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/poly.bend as Polyimport Base
260def cbn(n: Nat, +k: Nat) -> Nat:
261 match n:
262 case 0n:
263 0n
264 case 1n+m:
265 Nat.add(k, cbn(m, k))
Uses (2)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/canon:cb32_lt
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/canon:sum_v
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/mulw:cb32
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/mulw:cbn_pow
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/mulw:cb_okb
- …