PROOF.bits.sub_minus: def of bend-osdev-caps@0.1.0.0 Import: import bend-osdev-caps@0.1.0.0/PROOF.bend as PROOF Lines 203-216 of bend-osdev-caps@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-caps@0.1.0.0/PROOF.bend&start_line=203&end_line=216 import Base import bend-osdev-caps@0.1.0.0/caps.bend as C def bits.sub_minus(+n: Nat, +x: Word(n), +y: Word(n)) -> {C.CapBits.subset(n, Word.and(n, x, Word.not(n, y)), x) == True{} : Bool}: match n: case 0n: {==} case 1n+n1: match x y: case WCon{True{}, +xt} WCon{True{}, +yt}: bits.sub_minus(n1, xt, yt) case WCon{True{}, +xt} WCon{False{}, +yt}: bits.sub_minus(n1, xt, yt) case WCon{False{}, +xt} WCon{True{}, +yt}: bits.sub_minus(n1, xt, yt) case WCon{False{}, +xt} WCon{False{}, +yt}: bits.sub_minus(n1, xt, yt) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.not https://jend.leeeet.dev/definition.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&name=CapBits.subset