def lt1

bend-collections-laws-crypto@1.0.0.0 · proofs/lib/word.bend:45

import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as Word
import Base
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/lemmas/spec/numeric.bend as S
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/logic.bend as L

45def lt1(+n: Nat, +one: Nat, +h1: {one == 1n : Nat}, +x: Nat, +h: {Nat.is_lt(x, sc(n, one)) == True{} : Bool}) -> {Nat.is_lt(x, sc(n, 1n)) == True{} : Bool}:
46  L.subst(Nat, o => {Nat.is_lt(x, S.scale_binary(n, o)) == True{} : Bool}, one, 1n, h1, h)

Uses (6)

Used by (6)