Let $\Omega\subset\mathbb R^n$ and consider an arbitrary functional $$ S\colon C^k(\Omega)\to\mathbb R $$ that is local, $$ \phi\overset S\mapsto \int_\Omega L(\phi,D\phi,\dots,D^k\phi) $$ for $L$ some $n$-form taking values in the $k$-jet space $J^k\phi$. We may call $S$ the action functional, and $L$ its associated Lagrangian (although we do not assume that $\delta S[\phi]=0$, i.e., we work off-shell).
There are two notions of a symmetry that are typically discussed:
- Lagrangian symmetries, that is, transformations of the form $\phi\to\phi'$ that satisfy $$ L-L'=\mathrm d\Theta $$ for some $(n-1)$-form $\Theta$, and where $L'(J^k\phi)=L(J^k\phi')$.
- Action symmetries, that is, transformations of the form $\phi\to\phi'$ that satisfy $$ S-S'=0 $$ where $S'[\phi]=S[\phi']$.
If we assume that the boundary conditions are such that $\Theta|_{\partial\Omega}=0$, then it is clear that Lagrangian symmetries are also action symmetries.
If we assume that $\Omega$ is "nice-enough" (e.g. star-shaped) then I believe that any action symmetry is also a Lagrangian symmetry, although I would like to have a more precise statement about this fact. In other words, my question is
Are these two notions of symmetry equivalent? Under what conditions?
Moreover, how much can we weaken the assumptions? For example, can we take $\Omega$ to be simply-connected instead of star-shaped? Can we take $\phi$ to only have weak derivatives instead of strong derivatives?