law wcon

lawful-words@0.1.0.0 · proof_word.bend:11

import lawful-words@0.1.0.0/proof_word.bend as ProofWord
import 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}

Uses (8)

Used by (9)