def k_le_t

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/curve25519/reduce.bend:58

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/reduce.bend as Reduce
import Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as WD
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/num.bend as M
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs.bend as LM

58# K = 2^27; K + 38 <= 2^256 and K < 2^256
59def k_le_t(+one: Nat, +h1: {one == 1n : Nat}) -> {Nat.is_le(WD.sc(27n, one), LM.shn(32n, one)) == True{} : Bool}:
60  M.sc_mono(229n, 27n, one)

Uses (6)

Used by (1)