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