RelabelIndices
RelabelIndices[expr]
relabels all repeated indices in expr in a canonical way.
Details and Options
- The following options can be given:
-
Expand True expand out products and positive integer powers in expr before the relabeling of indices. Use this option set to False only with caution, since this can lead to aninconsistent relabeling of indices. Unique False specifies whether to use unique or canonical index labels.
Examples
open allclose allBasic Examples (1)
Define a fermionic theory with an SU(3) gauge group and a flavor index:
RelabelIndices identifies all dummy indices in an expression and relabels them to their canonic form:
The NiceForm printing uses the symbols form IndexAlphabet, FundAlphabet, AdjAlphabet for printing the canonic index labels.
The canonic index labels used are d$$i where i=1,2,... for every type of index present separately:
Generalizations & Extensions (1)
RelabelIndices relabels all dummy indices, that is, all indices appearing exactly twice in a term.
The exception to this rule are flavor indices. Since heavy fields must be in their mass basis for the matching, their mass matrices must be diagonal and therefore only carry a single flavor index:
RelabelIndices is aware which flavor indices should be interpreted as belonging to diagonal couplings and which not. Therefore, it can be applied to these expressions:
To manually define a coupling with a flavor index that should be interpreted as diagonal one can use:
Similarly the flavor indices of FlavorSum objects are treated properly:
Options (2)
Expand (1)
Unique (1)
The option Unique->True uses unique index labels instead of the canonic ones by using the Unique function.
Using unique index labels can be required, for example, when applying replacement rules to enure non overlapping dummy indices.