NLAlib.Ops.Examples.push_wordCost_wadd
Library · theorem
The bit-operation counts of the linked add3.
NLAlib.Ops.Examples.push_wordCost_wadd (w : ℕ) :
(Ops.Count.push Ops.Examples.wordCost) (2 • Ops.Count.one Ops.Examples.WOp.wadd [w]) =
2 • Ops.Count.one Ops.Examples.BitOp.zero [] +
(2 * w) • (Ops.Count.one Ops.Examples.BitOp.xor3 [] + Ops.Count.one Ops.Examples.BitOp.maj [])Import NLAlib.Ops.Examples.Bits.