Consider the generic form of a spacetime metric. For the purpose of illustrating its redefinition (reordering of lines and columns) when changing the signature, it doesn't need to depend on the coordinates
Set the metric with this value, note the signature: it is (- - - +):
Track the line element
Change now the signature by reversing the position of the time-like component, from 4 to 1
Neither the metric nor the coordinates change: t is still in position 4 and the component (1, 1) of the metric is still :
However, after changing the signature using Setup, we may also want to redefine the coordinates accordingly - place t in position 1 - and possibly also the metric reordering its lines and rows. For that purpose you can use Redefine, to which you need to indicate the previous signature (or in a different situation the new signature, to explore the effect of a change before doing it) and an indication of whether you want to redefine the metric, the coordinates or all
These redefinitions however were not set, the keywords coordinates, metric, or all only trigger the change, t is still in position 4 and the component (1,1) of the metric is still
You can now either use the output of this routine to redefine things using the Setup command, or do all in one go using any of the keywords setcoordinates, setmetric, or setall, for example
Now t is in position 1 and the component (1,1) of the metric equal to
Note that, despite the reordering of lines and columns in the metric, because we also reordered the variables, the line element has not changed:
Redefine is particularly useful when working with metrics from the database of solutions to Einstein's equations, all of which reset the signature to (+ + + -) when loaded. For example:
Note above the message about resetting the signature; query about:
How would this metric [12, 21, 1] and coordinates would look with the signature (+ - - -) ?
By replacing all by setall in the command above not only the list of coordinates and metric matrix form are returned but they are also set in one go.
As an example of redefining tetrads, load Tetrads and the metric [27, 37, 1] of the database of solutions to Einstein's equations
The assumptions on the metric's parameters are
The null tetrad computed by the Maple system using a general algorithms is
The book on solutions to Einstein's equations [1] suggests a different tetrad, free of radicals, which for our illustration purposes is
For this tetrad, however, IsTetrad returns false with the following message:
So you can change the signature to (---+) as indicated in the message, or instead of that redefine the tetrad, from the signature indicated, to work with the current signature (+++-)
The returned tetrad matches the definition
You can now set it and verify that