Set operations on groups