NLAlib.Ops.Examples.bitsVal_sumBit_add
Library · theorem
The sum bits and the last carry are the sum of the two values.
NLAlib.Ops.Examples.bitsVal_sumBit_add (a b : ℕ → Bool) (w : ℕ) :
Ops.Examples.bitsVal (Ops.Examples.sumBit a b) w + (Ops.Examples.carry a b w).toNat * 2 ^ w =
Ops.Examples.bitsVal a w + Ops.Examples.bitsVal b wImport NLAlib.Ops.Examples.Bits.