[math-fun] constructing closures of groups