The NonCommuting
property only relates different objects; your line says that uμ does not commute with fμν, but it says nothing about how uμ commutes with uν. To impose what you want, use SelfNonCommuting
, as in:
{\mu,\nu}::Indices(vector).
f^{\mu\nu}::AntiSymmetric.
h^{\mu\nu}::Symmetric.
u^{\mu}::SelfNonCommuting.
ex:=u^{\mu}u^{\nu}f^{\nu\mu}+f^{\mu\nu}h^{\mu\nu};
canonicalise(_);
which then gives −uμuνfμν.
(I have taken the liberty of removing the question marks on the indices (you don't need them)).