Choose the Fourier transform convention
Then becomes . Applying this to the Lorenz constraint in Proca theory yields
Thus every physical Fourier transform mode is orthogonal to its four-momentum in the Minkowski metric.
Take the four-divergence of the Proca equation. Commuting partial derivatives and using that is an antisymmetric second-rank tensor give
Consequently, for , . This is the Lorenz constraint in Proca theory: an equation of motion enforces it, rather than a choice of gauge fixing. It leaves . At the divergence argument supplies no such constraint; the massless gauge symmetry requires a separate treatment.
Vary the four-potential with compactly supported variation. Antisymmetry of the electromagnetic field tensor gives . Integration by parts therefore gives
Thus the Euler-Lagrange field equation is .
A gauge transformation is . Commuting derivatives leave unchanged. At , the source term changes by , a boundary term because the current is conserved. With suitable boundary conditions the action is gauge invariant. For , the mass term changes by terms involving , so the same arbitrary gauge transformations are not a symmetry.
Take the divergence of the field equation. Antisymmetry gives , and conservation gives . Thus . For this is the Lorenz constraint in Proca theory, and expanding gives
For the same reduced equation holds when the Lorenz gauge is imposed. More generally it is enough that the divergence be spacetime constant, but the conventional vanishing boundary conditions set that constant to zero.
For the torsion-free Levi-Civita connection, cyclically summing the displayed coordinate expression and using gives the algebraic first Bianchi identity
Apply the Jacobi identity to three covariant-derivative commutators, or differentiate the coordinate formula in normal coordinates. The third-derivative terms and the derivatives of quadratic connection terms cancel cyclically, giving the differential second Bianchi identity
Contracting the first and third curvature indices and then contracting once more yields
or the contracted Bianchi identity
For the metric variation ,
while the two double-divergence terms in the supplied metric variation of scalar curvature become a boundary term after integration by parts for tensor fields. The Einstein-Hilbert action therefore contributes . Varying the Proca action with respect to the metric gives the Proca stress-energy tensor, and the full Einstein-Proca theory equation is
Since , variation with respect to and one integration by parts give the covariant Proca equation
Taking its covariant divergence gives
because the resulting contractions pair the symmetric Ricci tensor with the antisymmetric electromagnetic field tensor. Since , the Lorenz constraint in Proca theory follows:
Moreover, and , so the Electromagnetic Bianchi identity is
Finally, use that identity to differentiate the matter tensor. The result groups naturally as
Both terms vanish by the Proca equation and its Lorenz constraint in Proca theory. Thus , exactly as required by the contracted Bianchi identity applied to the Einstein field equations. The vector equation is therefore consistent with the gravitational equation.
Under , the field strength is unchanged, but the mass term in the Proca action changes by
which is not generally a total derivative. The mass therefore breaks gauge invariance.
The Euler-Lagrange field equation is
Taking its divergence and using the antisymmetry of gives . Since , the Lorenz constraint in Proca theory follows. Substitution back into the field equation then gives
Take the divergence of the field equation. Commuting derivatives and antisymmetry of give
Current conservation then yields
For ,
This is the Lorenz constraint in Proca theory; it follows dynamically rather than being a gauge choice.