feynlag.invariance¶
Symmetry and consistency checks for Lagrangian terms.
Strategy (see plan): explicit component transformation.
Gauge groups: infinitesimal variation
δφ = i α^a T^a φwith constantα^a; the O(α) coefficient of every generator must vanish. For terms written with covariant derivatives this global check is the correct tree-level invariance test. Fermion legs (living insideBilinearatoms asIndexedcomponents with a flavor index) get a parallel transform that preserves the flavor index — see_fermion_transform().Discrete groups: substitute each finite generator map; the term must be unchanged after
expand. Fermion legs get the same finite substitution as bosons, index-preserved via.replace()(no linearization needed — discrete transforms are finite, not infinitesimal) — see_fermion_transform_discrete().Hermiticity:
expand(L − L*) = 0(valid for bosonic sectors; fermion bilinears need Dirac-conjugation identities not yet implemented — seeModel.check_invariance, which skips sectors containingBilinear).Mass dimension: symbolic power counting (renormalizability: ≤ 4). A fermion
Bilinearcontributes exactly 3 (two spin-½ legs).
Functions
|
Whether |
|
Whether |
|
Whether a bosonic Lagrangian (sector) is hermitian: |
|
Whether every monomial of |
|
O(α) variation coefficients of |