def kn
import bend-ml-bpe-tokenizer@0.1.3.0/main.bend as BendMlBpeTokenizerimport Base
146# is the token a byte, or was it created by a rule in the table?
147def kn(+D: List<&2, Rule>, tk: Tk) -> Bool:
148 match tk:
149 case B{n}:
150 True{}
151 case M{+j}:
152 has(D, j)