law wcon
import lawful-words@0.1.0.0/proof_word.bend as ProofWordimport Base
import lawful-words@0.1.0.0/proof_nat.bend as N
11# The value of a word with head bit b and tail t.
12law wcon:
13 for +p: Nat
14 for +b: Bool
15 for +t: Word(p)
16 {Word.to_nat(1n+p, WCon{b, t}) == Nat.add(N.bn(b), Nat.double(Word.to_nat(p, t))) : Nat}