Consider a quantum system with Hilbert space $\mathcal{H}$ and Hamiltonian $H$. Let $G$ be a Lie group and $U$ a unitary representation of $G$ on $H$. What are the most general conditions that $H$, $G$ and $U$ must fulfil so that $G$ can be considered a symmetry of the system?
I know, for example, that $G$ is a symmetry if $$ [U(g), H] = 0\quad\forall g\in G\quad, $$ but this is not the most general condition. In a relativistic QFT the representations of Lorentz boosts do not commute with the Hamiltonian. In the case of Lorentz symmetry the criterium seems to be that $H$ must transform as the time component of a four-vector, as explained, for instance, in https://physics.stackexchange.com/a/568141/197448. But how does this generalise to arbitrary groups? Is there a broader notion of symmetry in QM for which both Lorentz symmetry in QFT and $[U(g), H]=0$ are just special examples?
For example, would it be valid to say that the system is symmetric under $G$ if $H$ is a linear combination of the generators of the representation $U$ (so that it transforms as a vector in the adjoint representation of $G$)? This would cover the case of Lorentz boosts in QFT if we take $G$ to be the Poincare group. It would also cover the cases where $H$ commutes with $U(g)$ if we let $G$ be the product of the time translations and some other group of transformations which do not involve time.