- code : List Instruction
Instances For
Equations
Instances For
Binary schoolbook multiplication, keeping every afterRow product, comparison-free addition and carry register. No multiplication result is an input register or a program-generation parameter.
Equations
Instances For
theorem
MindFormal.A695LogicPaper.BooleanArithmetic.multiply_correct
(r b base : ℕ)
(x : Fin r → ℕ)
(y : Fin b → ℕ)
(zreg : ℕ)
(hx : ∀ (i : Fin r), x i < base)
(hy : ∀ (i : Fin b), y i < base)
(hz : zreg < base)
(mem : Memory)
(hzero : mem zreg = false)
:
The complete product is computed by the represented NOR gates. The final carry vanishes because the product fits the proved output width; all internal carries still occupy registers and remain charged.