~/bend-docscommunity

PROOF.bend checks

raw source on the hub · import 0xfdfa1bd0e55846c1e77720b33fca8def/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:{0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.feed(0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut(t, rev, seen), cs) == 0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut(List.append(&2, U32, t, cs), rev, seen) : 0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.Cut} -> {0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.feed(0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut.at(done, rev, seen, t, r => s => 0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut(t, r, s)), cs) == 0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut.at(done, rev, seen, List.append(&2, U32, t, cs), r => s => 0xfdfa1bd0e55846c1e77720b33fca8def/Wire.wr.cut(List.append(&2, U32, t, cs), r, s)) : 0xfdfa1bd0e55846c1e77720b33fca8def/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).