def one_lt

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/ed25519/scalar3.bend:59

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/ed25519/scalar3.bend as Scalar3
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/ed25519.bend as SE
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/nat.bend as N
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/logic.bend as L

59def one_lt(+one: Nat, +h1: {one == 1n : Nat}) -> {Nat.is_lt(1n, 1n+mmL(one)) == True{} : Bool}:
60  L.subst(Nat, z => {Nat.is_lt(1n, z) == True{} : Bool}, SE.ell(one), 1n+mmL(one), Equal.sym(Nat, 1n+mmL(one), SE.ell(one), ell_eq(one, h1)), N.succ_le_lt(1n, SE.ell(one), ell_ge(one, h1)))

Uses (10)

Used by (1)