PROOF.bend checks
raw source on the hub · import hhefesto-wire@1.0.0.0/PROOF.bend as PROOF
The proofs of LAWS.bend. Nothing here is trusted: bend PROOF.bend
checks every def, --verdict rechecks them with BendTT's kernel.
3 imports
import Base import ./Wire.bend as W import ./LAWS.bend as Laws
Laws
law feed_cut.at provedsource · line 11 · raw
@done:Bool -> @-rev:List<&2, U32> -> @+seen:U32 -> @-t:List<&2, U32> -> @-cs:List<&2, U32> -> @ih:{0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.feed(0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut(t, rev, seen), cs) == 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut(List.append(&2, U32, t, cs), rev, seen) : 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.Cut} -> {0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.feed(0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut.at(done, rev, seen, t, r => s => 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut(t, r, s)), cs) == 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut.at(done, rev, seen, List.append(&2, U32, t, cs), r => s => 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.cut(List.append(&2, U32, t, cs), r, s)) : 0xb8e08f92b233e37463500e01c2e5b973/Wire.wr.Cut}One byte's step, its two ways: the head ends here (both sides end it, the fed one with the later bytes after it), or it does not (both go on with the rest, which is the law again, one byte shorter).