NLAlib.Ops.Examples.ripple_satisfies
Library · theorem
Exact satisfaction by the ripple-carry adder: where the block function of rippleF succeeds on inputs in other buffers than the output, the run of the adder is that block function.
NLAlib.Ops.Examples.ripple_satisfies {I : Ops.Interp Ops.Examples.BitOp Empty Bool}
(hI : Ops.Examples.IsBits I) {d : List ℕ} {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape Bool}
{m m' : Ops.Mem Bool} (hadm : Ops.Examples.DisjointBufs d ins outs)
(h : (Ops.Examples.waddFn Ops.Examples.rippleF).apply d ins outs τ m = some m') :
Ops.Examples.rippleImpl.Fits d.length ins.length outs.length ∧
Ops.eval I τ Ops.Examples.rippleImpl.body (Ops.Env.frame d (ins ++ outs)) m = some m'Import NLAlib.Ops.Examples.Bits.