def caps.has_of
import bend-osdev-caps@0.1.0.0/PROOF.bend as PROOFimport Base
import bend-osdev-caps@0.1.0.0/caps.bend as C
709# a set that has capability k contains the set {k} (has is that subset test)
710def caps.has_of(+v: Bool, +s: C.CapSet(), +x: U32) -> {C.CapSet.has.go(v, s, x) == True{} : Bool} -> {C.CapSet.subset(C.CapSet.of.go(v, x), s) == True{} : Bool}:
711 match v:
712 case False{}:
713 h => bits.absurd(C.CapSet.subset(C.CapSet.of.go(False{}, x), s), h)
714 case True{}:
715 h => h