I can't get the trace of a Kronecker delta to give me 4.
With all the usual index declarations, etc,...
\delta_{\mu}^{\nu}::KroneckerDelta.
\delta^{\mu}_{\nu}::KroneckerDelta.
Z := Z = \delta^\mu_\mu;
eliminate_kronecker(Z);
canonicalise(Z);
gives back only Z = \delta^\mu_\mu;
I would have expected it to give Z = 4.
Have I done something wrong?