The Stewart–Walker lemma provides necessary and sufficient conditions for the linear perturbation of a tensor field to be gauge-invariant. if and only if one of the following holds 1. 2. is a constant scalar field 3. is a linear combination of products of delta functions