Generalized symmetry and Neumann’s principle