feynlag.invariance.check_global_invariance¶
- feynlag.invariance.check_global_invariance(term, group)[source]¶
Whether
termis invariant under the global U(1)group.Every charged scalar component transforms as
φ → (1 + iqα)φ(and, through the conjugate,φ* → (1 − iqα)φ*;PartialMuheads alike), every fermion legψ_k → (1 + iq_kα)ψ_kwith its own flavour’s charge and every bar legψ̄_k → (1 − iq_kα)ψ̄_k— applied per sandwich viabilinear_charge(), so a flavour-diagonalψ̄_i Γ ψ_iwith symboliciis neutral. The O(α) coefficient isi Σ_m Q_m·mover the monomialsmoftermwith total chargeQ_m, so its vanishing is exact (finite) U(1) invariance, not just a first-order statement.- Returns:
(ok: bool, violations: list[(0, coefficient)])— the shape ofcheck_discrete_invariance()(a U(1) has one generator).