ReplaceSpinor[expr, x→r] returns expr with massless or massive spinors x replaced by r, r can be linear combination of massless or massive spinors. |
ReplaceSpinor[expr, x→{b, a}] replaces B spinor x with b and A spinor x with a, a and b can be linear combinations of massless or massive spinors. |
ReplaceSpinor[expr, patt→r ] returns expr with all massless or massive spinors that match pattern patt replaced by r. |
ReplaceSpinor[expr, patt→{b, a} ] returns expr with all massless or massive B spinors that match pattern patt replaced by b and all A spinors that match patt with a. |
ReplaceSpinor[expr, patt⧴replacement ] returns expr with all massless or massive spinors that match pattern patt replaced by replacement . patt can have named patterns inside and replacement can use variables matched by those named patterns. |
ReplaceSpinor[expr, patt⧴{replacementB , replacementA } ] replaces B spinors with replacementB and A spinors with replacementA . replacementB and replacementA can use variables matched by named patterns in patt. |
ReplaceSpinor[expr, {x→{b, a}, patt⧴replacement , ...}] returns expr with replacement using all given rules. |
ReplaceSpinor[expr, {{x1→r1, ...}, {x2→{b2, a2}, ...}, ...}] returns a List, each element of this list is a result of replacement using subsequent list of rules. |