xAct - Signature of the metric in general dimensions - ConstantSymbols and integers

456 views
Skip to first unread message

Alejandro Jiménez

unread,
Jun 26, 2018, 4:53:14 AM6/26/18
to xAct Tensor Computer Algebra
Hi!

I am working with a general dimension:

DefConstantSymbol[dimM]
DefManifold[M, dimM, {a, b, c, d, e, f, g, h, i, j, k, l, m, n}]

Suppose I want to choose the signature (+ -...-) for the metric. What I did was:

DefMetric[{1, dimM-1, 0},  metricg[-a, -b], ...(bla bla)...]  

but I get an error if I do not tell Mathematica that dimM is (or behaves as) an integer greater than 1.

I am not an expert in Mathematica, so I do not know if there is a way using its standard options; I mean, without using a ConstantSymbol as I did and, instead, a couple of auxiliary variables MetricPlusIndex and MetricMinusIndex (not declared as ConstantSymbols, just default Mathematica objects) and indicating that they are going to be integers the whole time.


Is it possible? Thanks in advance!


Best regards,
Alejandro JC

-------------
Note: 
with the other convention (- +...+), since you only have one minus, you could avoid the problem defining 
DefMetric[-1,  metricg[-a, -b], ...(bla bla)...] 
and it is independent of the dimension.

Thomas Bäckdahl

unread,
Jun 26, 2018, 5:33:15 AM6/26/18
to xa...@googlegroups.com

Hi!

The first argument of DefMetric can either be the signature, i.e. a list with 3 numbers or just the corresponding determinant.
Unfortunately, this was not designed for symbolic dimensions so the checks are a bit too restrictive.
Perhaps these checks should be rewritten, but instead of doing that, you could try to bypass the tests in this way

Abs[signDetM] ^= 1
DefMetric[signDetM, met[-a, -b], CD]
signDetM = (-1)^(dimM - 1)
SignatureOfMetric[met] ^= {1, dimM - 1, 0}

I hope this works, but I can not guarantee that some function somewhere will complain due to a symbolic SignDetOfMetric. Most  xAct functions will only use SignDetOfMetric, not SignatureOfMetric, so that is the most important part to get right.

Reagrds
Thomas
--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alejandro Jiménez

unread,
Jun 26, 2018, 9:37:18 AM6/26/18
to xAct Tensor Computer Algebra
Thanks for your reply! It works. If I find any problematic consequence, I will write it here.

Alejandro JC
Reply all
Reply to author
Forward
0 new messages