A compact boolean representation of functional groups