law word_to_nat_lt
import bend-mathlib@0.8.1.0/u32.bend as U32import Base
import bend-mathlib@0.8.1.0/nat.bend as MNat
17# A word's value is below two to the width: to_nat w < 2^n.
18law word_to_nat_lt:
19 for n: Nat
20 for w: Word(n)
21 MNat.lt(Word.to_nat(n, w), Nat.pow(2n, n))