Dear Maria,
I'm not sure what you mean by "don't work".
In your notebook, I see that the terms eq1 and eq3 are simplified to
zero as by the rule.
This looks to me working correctly.
If there is something else that does not work, please send a minimal
working example (MWE) that shows exactly what you think is incorrect,
and what you believe it should be. Without any explanation, or with
long additional extra code and output, it is very difficult to
understand what is going on.
Some things that I noticed when looking at the notebook:
- in your definition of L there is a non-commutative product missing
between Gamma3 and PD of psi, also in the definition of theta between
the RightVarD and the PD psi
- when you define rules which involve patterns, like theta[mu_,nu_] or
K1G[rho_,mu_,nu_], you need to use := instead of =
(see for example the Mathematica documentation:
https://reference.wolfram.com/language/tutorial/FunctionsAndPrograms.html#13037)
> Hi, I try to use
> \[Psi] /: Gammagg1[\[Mu]_, B_, A_]\[CenterDot]\[Psi][\[Nu]_, -A_] /;
> PairQ[\[Mu], \[Nu]] := 0
>
> but don't work, this is my notebook
>
>
>
> Em sex., 9 de ago. de 2024 às 07:33, Markus B. Fröb <
>
mfr...@itp.uni-leipzig.de> escreveu: