Caps.CapBits.subset: def of bend-osdev-caps@0.1.0.0 Import: import bend-osdev-caps@0.1.0.0/caps.bend as Caps Lines 206-214 of bend-osdev-caps@0.1.0.0/caps.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-caps@0.1.0.0/caps.bend&start_line=206&end_line=214 import Base # every capability in a is in b def CapBits.subset(n: Nat, a: Word(n), b: Word(n)) -> Bool: match n: case 0n: True{} case 1n+p: match a b: case WCon{ah, at} WCon{bh, bt}: CapBits.sub.bit(ah, bh, CapBits.subset(p, at, bt)) Uses (5): 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=bend-osdev-caps@0.1.0.0/caps.bend&name=CapBits.sub.bit