Most of the papers I run across that deal with compressed representations of sets/sequences just talk about rank and select out of context. I'm looking for something that explains directly how these are used to implement set operations, but would be happy with something that goes through using them for pattern matching.