I get an error if I do:
constraint =
FeynCalcInternal[
FV[p, muPAT] FV[p, nuPAT] ->
PolarizationSum[mu, nu, p1]] /. {muPAT :> mu_, nuPAT :> nu_};
Print["contract and using the constraint : ",
FeynCalcExternal@Contract[tmp /. constraint]]
The error is:
ReplaceAll::reps: "{FeynCalcInternal[FV[p,mu_]\ FV[p,nu_]->PolarizationSum[mu,nu,p1]]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing."
For reference, this is a part of the uncontracted input to which I want to apply the rule to:
(hbar^2 mw^4 e1^$AL\[InvisibleApplication](2) e3^$AL\[InvisibleApplication](2) e1^$AL\[InvisibleApplication](3) e3^$AL\[InvisibleApplication](3) gwwz^4)/(mz^2-2 p1^$AL\[InvisibleApplication](1) p3^$AL\[InvisibleApplication](1))^2
This archive was generated by hypermail 2b29 : 09/04/20-12:55:05 AM Z CEST