Example 1.
First create a vector bundle with base coordinates and fiber coordinates .
Define a metric on the base. For this example we use the Godel metric. (See (12.26) in Exact Solutions to Einstein's Field Equations.) Note that we have adjusted the metric to conform to the signature conventions used by the spinor formalism in the DifferentialGeometry package. See SpacetimeConventions.
Use DGGramSchmidt to calculate an orthonormal frame for the metric .
Use SolderForm to compute the solder form from the frame .
Calculate the Ricci spinor from the solder form .
Example 2.
In this example we first calculate the Ricci tensor of the metric and then use the second calling sequence for RicciSpinor.
Example 3.
We can check the result of Example 1 by direct computation, starting from the solder form . First use the command SpinorInnerProduct to calculate the metric from . (Note that coincides with the original metric .)
Second, calculate the curvature tensor , the Ricci tensor , and the Ricci scalar .
Calculate the trace-free Ricci tensor .
Convert to a spinor .
Rearrange the indices of and scale by to arrive at the Ricci spinor (or ).