# Raising and lowering indices with an anti-symmetric tensor

Hi there,

I'm quite enamoured with Cadabra's capabilty.

One thing that would be useful is being able to raise indices with an anti-symmetric objeect \epsilon_AB, \epsilon^AB

Right now if I set index behaviour to 'free', the canonicalise function assumes that

u^{A}v_{A} = u_{A}v^{A}

whereas in my line of work it is customary that:

u^{A}v_{A} = -u_{A}v^{A}. 

At the moment the only workaround I can think of is keeping all indices lowered and manually inserting \epsilon^AB everywhere.

I had a look at the source for an easy edit I could make and I also couldn't find one. Any suggestions?

Cheers

Add the AntiCommuting property to the indices, so e.g.

{A,B}::Indices(position=fixed);
{A,B}::AntiCommuting;
ex:= v^A v_A - v_A v^A;
canonicalise(_);

which produces $2 v^A v_A$.

by (70.8k points)

Thank you very much!

Hi K. That's a great trick! Thank you for sharing.