law multiply_go

stelliferous@0.0.2.0 · proofs/word_multiplication.bend:99

import stelliferous@0.0.2.0/proofs/word_multiplication.bend as WordMultiplication
import Base
import stelliferous@0.0.2.0/proofs/word_arithmetic.bend as WordArithmetic

99law multiply_go:
100  for +m: Nat
101  for +n: Nat
102  for +w: Word(m)
103  for +b: Nat
104  for +acc: Nat
105  {Word.mul.go(n,m,w,WordArithmetic.encode(b,n),WordArithmetic.encode(acc,n)) == WordArithmetic.encode(Nat.add(acc,Nat.mul(Word.to_nat(m,w),b)),
106      n) : Word(n)}

Uses (17)

Used by (1)