Take a functional $S[\varphi]$ on a $d$-dimensional space-time of the form
$S[\varphi]=\int d^d x\, L(x,\varphi,\partial_\mu \varphi,\partial_\mu \partial_\nu \varphi, \dots)$
where $\varphi(x)$ is a scalar function of $x^\mu$, and $L$ is a polynomial function of $\varphi$ and its derivatives, with $x^\mu$-dependent tensor-valued coefficients, and contains only even powers in $\varphi$ e.g.
$L = c_1(x) \varphi^2+ c^\mu_2(x)\varphi^3 \partial_\mu \varphi+c_3(x)^{\mu\nu}\partial_\mu \varphi \partial_\nu \varphi+c_4(x)^{\mu\nu}\varphi^3 \partial_\mu\partial_\nu \varphi+\cdots\ .$
Can one show that
$S[\varphi] \geq 0 \quad\text{for all }\varphi\qquad \Rightarrow\qquad L+\partial_\mu K^\mu\geq 0\quad\text{for all }\varphi ,$
where we consider configurations of $\varphi$ such that $\varphi$ and its derivatives vanish sufficiently fast at space and time infinity, and where $K^\mu$ is some vector that depends on $x^\mu$, $\varphi$ and the derivatives of $\varphi$?
In case of negative answer, is there any hope for the statement to be true if one restricts to more specific forms of $S[\varphi]$ (e.g. if one assumes the coefficients $c_1,\ c_2^\mu,\ \dots$ to be independent of $x^\mu$)?