# Gauge anomaly

In theoretical physics, a gauge anomaly is an example of an anomaly: it is a feature of quantum mechanics—usually a one-loop diagram—that invalidates the gauge symmetry of a quantum field theory; i.e. of a gauge theory.
All gauge anomalies must cancel out. Anomalies in gauge symmetries lead to an inconsistency, since a gauge symmetry is required in order to cancel degrees of freedom with a negative norm which are unphysical (such as a photon polarized in the time direction). Indeed, cancellation occurs in the Standard Model.
The term gauge anomaly is usually used for vector gauge anomalies. Another type of gauge anomaly is the gravitational anomaly, because coordinate reparametrization (called a diffeomorphism) is the gauge symmetry of gravitation.

## Calculation of the anomaly

Anomalies occur only in even spacetime dimensions. For example, the anomalies in the usual 4 spacetime dimensions arise from triangle Feynman diagrams.

### Vector gauge anomalies

In vector gauge anomalies (in gauge symmetries whose gauge boson is a vector), the anomaly is a chiral anomaly, and can be calculated exactly at one loop level, via a Feynman diagram with a chiral fermion running in the loop with n external gauge bosons attached to the loop where $n=1+D/2$ where $D$ is the spacetime dimension.
Let us look at the (semi)effective action we get after integrating over the chiral fermions. If there is a gauge anomaly, the resulting action will not be gauge invariant. If we denote by $\delta _{\epsilon }$ the operator corresponding to an infinitesimal gauge transformation by ε, then the Frobenius consistency condition requires that
    $\left[\delta _{\epsilon _{1}},\delta _{\epsilon _{2}}\right]{\mathcal {F}}=\delta _{\left[\epsilon _{1},\epsilon _{2}\right]}{\mathcal {F}}$
for any functional ${\mathcal {F}}$, including the (semi)effective action S where [,] is the Lie bracket. As $\delta _{\epsilon }S$ is linear in ε, we can write
    $\delta _{\epsilon }S=\int _{M^{d}}\Omega ^{(d)}(\epsilon )$
where Ω$^{(d)}$ is d-form as a functional of the nonintegrated fields and is linear in ε. Let us make the further assumption (which turns out to be valid in all the cases of interest) that this functional is local (i.e. Ω$^{(d)}$(x) only depends upon the values of the fields and their derivatives at x) and that it can be expressed as the exterior product of p-forms. If the spacetime M$^d$ is closed (i.e. without boundary) and oriented, then it is the boundary of some d+1 dimensional oriented manifold M$^{d+1}$. If we then arbitrarily extend the fields (including ε) as defined on M$^d$ to M$^{d+1}$ with the only condition being they match on the boundaries and the expression Ω$^{(d)}$, being the exterior product of p-forms, can be extended and defined in the interior, then
    $\delta _{\epsilon }S=\int _{M^{d+1}}d\Omega ^{(d)}(\epsilon ).$
The Frobenius consistency condition now becomes
    $\left[\delta _{\epsilon _{1}},\delta _{\epsilon _{2}}\right]S=\int _{M^{d+1}}\left[\delta _{\epsilon _{1}}d\Omega ^{(d)}(\epsilon _{2})-\delta _{\epsilon _{2}}d\Omega ^{(d)}(\epsilon _{1})\right]=\int _{M^{d+1}}d\Omega ^{(d)}(\left[\epsilon _{1},\epsilon _{2}\right]).$
As the previous equation is valid for any arbitrary extension of the fields into the interior,
    $\delta _{\epsilon _{1}}d\Omega ^{(d)}(\epsilon _{2})-\delta _{\epsilon _{2}}d\Omega ^{(d)}(\epsilon _{1})=d\Omega ^{(d)}(\left[\epsilon _{1},\epsilon _{2}\right]).$
Because of the Frobenius consistency condition, this means that there exists a d+1-form Ω$^{(d+1)}$ (not depending upon ε) defined over M$^{d+1}$ satisfying
    $\delta _{\epsilon }\Omega ^{(d+1)}=d\Omega ^{(d)}(\epsilon ).$
Ω$^{(d+1)}$ is often called a Chern–Simons form.
Once again, if we assume Ω$^{(d+1)}$ can be expressed as an exterior product and that it can be extended into a d+1 -form in a d+2 dimensional oriented manifold, we can define
    $\Omega ^{(d+2)}=d\Omega ^{(d+1)}$
in d+2 dimensions. Ω$^{(d+2)}$ is gauge invariant:
    $\delta _{\epsilon }\Omega ^{(d+2)}=d\delta _{\epsilon }\Omega ^{(d+1)}=d^{2}\Omega ^{(d)}(\epsilon )=0$
as d and δ$_ε$ commute.