HOL Light has a very nice library called bitmatch.
It would be great if it could be ported to HOL4.
hey, I wrote that :smile: