Write every fermion as a left-handed Weyl field. One Standard Model generation then has
with an optional neutral . The purely colored anomaly vanishes because
The mixed non-Abelian-hypercharge coefficients are
The cubic hypercharge anomaly also cancels:
as does the mixed gauge-gravitational anomaly,
There is no perturbative cubic anomaly because its representations are pseudoreal. There are four left-handed weak doublets after counting the three colors of , so the global Witten SU(2) anomaly also vanishes. This proves Standard Model anomaly cancellation generation by generation.
The equality of proton and positron charges follows from the same constraints. Let the Higgs hypercharge be . Gauge-invariant Yukawa interactions imply
while cancellation of gives . Since electric charge is ,
Therefore
showing how anomaly cancellation, together with Yukawa gauge invariance and the normalization fixed by the neutral Higgs vacuum, enforces this instance of charge quantization.