Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: Sage Manifolds
Path: fix-tex/original.tex
Views: 1351\documentclass{article}2\usepackage{fullpage}3\usepackage{amsmath}4\usepackage[utf8x]{inputenc}5\usepackage{amssymb}6\usepackage{graphicx}7\usepackage{etoolbox}8\usepackage{url}9\usepackage{hyperref}10\usepackage[T1]{fontenc}11\makeatletter12\preto{\@verbatim}{\topsep=0pt \partopsep=0pt }13\makeatother14\usepackage{listings}15\lstdefinelanguage{Sage}[]{Python}16{morekeywords={True,False,sage,singular},17sensitive=true}18\lstset{19showtabs=False,20showspaces=False,21showstringspaces=False,22commentstyle={\ttfamily\color{dbrowncolor}},23keywordstyle={\ttfamily\color{dbluecolor}\bfseries},24stringstyle ={\ttfamily\color{dgraycolor}\bfseries},25backgroundcolor=\color{lightyellow},26language = Sage,27basicstyle={\ttfamily},28aboveskip=1em,29belowskip=0.1em,30breaklines=true,31prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\backslash}},32%frame=single33}34\usepackage{color}35\definecolor{lightyellow}{rgb}{1,1,.92}36\definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}37\definecolor{dbluecolor}{rgb}{.01,.02,0.7}38\definecolor{dredcolor}{rgb}{1,0,0}39\definecolor{dbrowncolor}{rgb}{0.625,0.3125,0}40\definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}41\definecolor{graycolor}{rgb}{0.35,0.35,0.35}42\title{SM{\textbackslash}\_de{\textbackslash}\_Sitter.sagews}43\author{}44\begin{document}45\maketitle46\tableofcontents47\begin{lstlisting}48\end{lstlisting}49\begin{lstlisting}50\end{lstlisting}5152{53\section{de Sitter spacetime}54{This worksheet demonstrates a few capabilities of \url{SageManifolds} (version 0.8) in computations regarding de Sitter spacetime.}55{It is released under the GNU General Public License version 3.}56{(c) Eric Gourgoulhon, Michal Bejger (2015)}57{{{The corresponding worksheet file can be downloaded from}{{ \url{{here}}}}}}58{{{{{{}}}}}}59}60\subsection{Spacetime manifold}61{{{We declare the de Sitter spacetime as a 4-dimensional differentiable manifold:}}}6263\begin{lstlisting}64M = Manifold(4, 'M', r'\mathcal{M}')65print M ; M66\end{lstlisting}\begin{verbatim}4-dimensional manifold 'M'\end{verbatim}6768{$\mathcal{M}$}69\begin{lstlisting}70%html71<p>We consider hyperspherical coordinates $(\tau,\chi,\theta,\phi)$ on $\mathcal{M}$. Allowing for the standard coordinate singularities at $\chi=0$, $\chi=\pi$, $\theta=0$ or $\theta=\pi$, these coordinates cover the entire spacetime manifold (which is topologically $\mathbb{R}\times\mathbb{S}^3$). If we restrict ourselves to <em>regular</em> coordinates (i.e. to consider only mathematically well defined charts), the hyperspherical coordinates cover only an open part of $\mathcal{M}$, which we call $\mathcal{M}_0$, on which $\chi$ spans the open interval $(0,\pi)$, $\theta$ the open interval $(0,\pi)$ and $\phi$ the open interval $(0,2\pi)$. Therefore, we declare:</p>7273\end{lstlisting}{We consider hyperspherical coordinates $(\tau,\chi,\theta,\phi)$ on $\mathcal{M}$. Allowing for the standard coordinate singularities at $\chi=0$, $\chi=\pi$, $\theta=0$ or $\theta=\pi$, these coordinates cover the entire spacetime manifold (which is topologically $\mathbb{R}\times\mathbb{S}^3$). If we restrict ourselves to {regular} coordinates (i.e. to consider only mathematically well defined charts), the hyperspherical coordinates cover only an open part of $\mathcal{M}$, which we call $\mathcal{M}_0$, on which $\chi$ spans the open interval $(0,\pi)$, $\theta$ the open interval $(0,\pi)$ and $\phi$ the open interval $(0,2\pi)$. Therefore, we declare:}74\begin{lstlisting}75M0 = M.open_subset('M_0', r'\mathcal{M}_0')76X_hyp.<ta,ch,th,ph> = M0.chart(r'ta:\tau ch:(0,pi):\chi th:(0,pi):\theta ph:(0,2*pi):\phi')77print X_hyp ; X_hyp78\end{lstlisting}\begin{verbatim}chart (M_0, (ta, ch, th, ph))\end{verbatim}7980{$\left(\mathcal{M}_0,({\tau}, {\chi}, {\theta}, {\phi})\right)$}81\begin{lstlisting}82\end{lstlisting}\subsection{$\mathbb{R}^5$ as an ambient space}83{The de Sitter metric can be defined as that induced by the embedding of $\mathcal{M}$ into a 5-dimensional Minkowski space, i.e. $\mathbb{R}^5$ equipped with a flat Lorentzian metric. We therefore introduce $\mathbb{R}^5$ as a 5-dimensional manifold covered by canonical coordinates:}84\begin{lstlisting}85R5 = Manifold(5, 'R5', r'\mathbb{R}^5')86X5.<T,W,X,Y,Z> = R5.chart()87print X5 ; X588\end{lstlisting}\begin{verbatim}chart (R5, (T, W, X, Y, Z))\end{verbatim}8990{$\left(\mathbb{R}^5,(T, W, X, Y, Z)\right)$}91\begin{lstlisting}92\end{lstlisting}{The embedding of $\mathcal{M}$ into $\mathbb{R}^5$ is defined as a differential mapping $\Phi$ from $\mathcal{M}$ to $\mathbb{R}^5$, by providing its expression in terms of $\mathcal{M}$'s default chart (which is X\_hyp = $(\mathcal{M}_0,(\tau,\chi,\theta,\phi))$ ) and $\mathbb{R}^5$'s default chart (which is X5 = $(\mathbb{R}^5,(T,W,X,Y,Z))$ ):}93\begin{lstlisting}94var('b')95Phi = M.diff_mapping(R5, [sinh(b*ta)/b,96cosh(b*ta)/b * cos(ch),97cosh(b*ta)/b * sin(ch)*sin(th)*cos(ph),98cosh(b*ta)/b * sin(ch)*sin(th)*sin(ph),99cosh(b*ta)/b * sin(ch)*cos(th)],100name='Phi', latex_name=r'\Phi')101print Phi ; Phi.display()102\end{lstlisting}103104{$b$}\begin{verbatim}differentiable mapping 'Phi' from the 4-dimensional manifold 'M' to the 5-dimensional105manifold 'R5'\end{verbatim}106107{$\begin{array}{llcl} \Phi:& \mathcal{M} & \longrightarrow & \mathbb{R}^5 \\ \mbox{on}\ \mathcal{M}_0 : & \left({\tau}, {\chi}, {\theta}, {\phi}\right) & \longmapsto & \left(T, W, X, Y, Z\right) = \left(\frac{\sinh\left(b {\tau}\right)}{b}, \frac{\cos\left({\chi}\right) \cosh\left(b {\tau}\right)}{b}, \frac{\cos\left({\phi}\right) \cosh\left(b {\tau}\right) \sin\left({\chi}\right) \sin\left({\theta}\right)}{b}, \frac{\cosh\left(b {\tau}\right) \sin\left({\chi}\right) \sin\left({\phi}\right) \sin\left({\theta}\right)}{b}, \frac{\cos\left({\theta}\right) \cosh\left(b {\tau}\right) \sin\left({\chi}\right)}{b}\right) \end{array}$}108\begin{lstlisting}109\end{lstlisting}{The constant $b$ is a scale parameter. Considering de Sitter metric as a solution of vacuum Einstein equation with positive cosmological constant $\Lambda$, one has $b = \sqrt{\Lambda/3}$.}110{Let us evaluate the image of a point via the mapping $\Phi$:}111\begin{lstlisting}112p = M.point((ta, ch, th, ph), name='p') ; print p113\end{lstlisting}\begin{verbatim}point 'p' on 4-dimensional manifold 'M'\end{verbatim}114\begin{lstlisting}115p.coord()116\end{lstlisting}117118{(${\tau}$, ${\chi}$, ${\theta}$, ${\phi}$)}119\begin{lstlisting}120q = Phi(p) ; print q121\end{lstlisting}\begin{verbatim}point 'Phi(p)' on 5-dimensional manifold 'R5'\end{verbatim}\begin{verbatim}\end{verbatim}122\begin{lstlisting}123q.coord()124\end{lstlisting}125126{($\frac{\sinh\left(b {\tau}\right)}{b}$, $\frac{\cos\left({\chi}\right) \cosh\left(b {\tau}\right)}{b}$, $\frac{\cos\left({\phi}\right) \cosh\left(b {\tau}\right) \sin\left({\chi}\right) \sin\left({\theta}\right)}{b}$, $\frac{\cosh\left(b {\tau}\right) \sin\left({\chi}\right) \sin\left({\phi}\right) \sin\left({\theta}\right)}{b}$, $\frac{\cos\left({\theta}\right) \cosh\left(b {\tau}\right) \sin\left({\chi}\right)}{b}$)}127\begin{lstlisting}128\end{lstlisting}{The image of $\mathcal{M}$ by $\Phi$ is a hyperboloid of one sheet, of equation $-T^2+W^2+X^2+Y^2+Z^2=b^{-2}$. Indeed:}129\begin{lstlisting}130(Tq,Wq,Xq,Yq,Zq) = q.coord()131s = -Tq^2 + Wq^2 + Xq^2 + Yq^2 + Zq^2132s.simplify_full()133\end{lstlisting}134135{$\frac{1}{b^{2}}$}136\begin{lstlisting}137\end{lstlisting}{We may use the embedding $\Phi$ to draw the coordinate grid $(\tau,\chi)$ in terms of the coordinates $(W,X,T)$ for $\theta=\pi/2$ and $\phi=0$ (red) and $\theta=\pi/2$ and $\phi=\pi$ (green) (the brown lines are the lines $\tau={\rm const}$):}138\begin{lstlisting}139graph1 = X_hyp.plot(X5, mapping=Phi, ambient_coords=(W,X,T), fixed_coords={th:pi/2, ph:0}, nb_values=9, color={ta:'red', ch:'brown'}, thickness=2, max_value=2, parameters={b:1}, label_axes=False)140graph2 = X_hyp.plot(X5, mapping=Phi, ambient_coords=(W,X,T), fixed_coords={th:pi/2, ph:pi}, nb_values=9, color={ta:'green', ch:'brown'}, thickness=2, max_value=2, parameters={b:1}, label_axes=False)141show(set_axes_labels(graph1+graph2,'W','X','T'), aspect_ratio=1)142\end{lstlisting}\url{https://cloud.sagemath.com/blobs/f97f4212-d46d-4ad8-b8f7-4979d61774e6.sage3d?uuid=f97f4212-d46d-4ad8-b8f7-4979d61774e6}143144{}145\begin{lstlisting}146\end{lstlisting}\subsection{Spacetime metric}147{First, we introduce on $\mathbb{R}^5$ the Minkowski metric $h$:}148\begin{lstlisting}149h = R5.lorentz_metric('h')150h[0,0], h[1,1], h[2,2], h[3,3], h[4,4] = -1, 1, 1, 1, 1151h.display()152\end{lstlisting}153154{$h = -\mathrm{d} T\otimes \mathrm{d} T+\mathrm{d} W\otimes \mathrm{d} W+\mathrm{d} X\otimes \mathrm{d} X+\mathrm{d} Y\otimes \mathrm{d} Y+\mathrm{d} Z\otimes \mathrm{d} Z$}155\begin{lstlisting}156\end{lstlisting}{As mentionned above, the de Sitter metric $g$ on $\mathcal{M}$ is that induced by $h$, i.e.$g$ is the pullback of $h$ by the mapping $\Phi$:}157\begin{lstlisting}158g = M.metric('g')159g.set( Phi.pullback(h) )160\end{lstlisting}161\begin{lstlisting}162\end{lstlisting}{The expression of $g$ in terms of $\mathcal{M}$'s default frame is found to be}163\begin{lstlisting}164g.display()165\end{lstlisting}166167{$g = -\mathrm{d} {\tau}\otimes \mathrm{d} {\tau} + \frac{\cosh\left(b {\tau}\right)^{2}}{b^{2}} \mathrm{d} {\chi}\otimes \mathrm{d} {\chi} + \frac{\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2}}{b^{2}} \mathrm{d} {\theta}\otimes \mathrm{d} {\theta} + \frac{\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2}}{b^{2}} \mathrm{d} {\phi}\otimes \mathrm{d} {\phi}$}168\begin{lstlisting}169g[:]170\end{lstlisting}171172{$\left(\begin{array}{rrrr}173-1 & 0 & 0 & 0 \\1740 & \frac{\cosh\left(b {\tau}\right)^{2}}{b^{2}} & 0 & 0 \\1750 & 0 & \frac{\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2}}{b^{2}} & 0 \\1760 & 0 & 0 & \frac{\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2}}{b^{2}}177\end{array}\right)$}178\begin{lstlisting}179\end{lstlisting}\subsection{Curvature}180{The Riemann tensor of $g$ is}181\begin{lstlisting}182Riem = g.riemann()183print Riem184Riem.display()185\end{lstlisting}\begin{verbatim}tensor field 'Riem(g)' of type (1,3) on the 4-dimensional manifold 'M'\end{verbatim}186187{$\mathrm{Riem}\left(g\right) = \cosh\left(b {\tau}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\chi} -\cosh\left(b {\tau}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\tau} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\theta} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\tau} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\phi} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\tau} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\tau} + b^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\chi} -b^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\tau} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\theta} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\chi} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\phi} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\chi} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\chi} + b^{2} \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\theta} -b^{2} \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\tau} + \left( -\frac{\sin\left({\chi}\right)^{2} \sinh\left(b {\tau}\right)^{2} - \cos\left({\chi}\right)^{2} + 1}{\sin\left({\chi}\right)^{2}} \right) \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\theta} + \cosh\left(b {\tau}\right)^{2} \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\chi} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\phi} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \frac{\partial}{\partial {\theta} }\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\theta} + b^{2} \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\phi} -b^{2} \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\tau}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\tau} + \left( -\frac{\sin\left({\chi}\right)^{2} \sinh\left(b {\tau}\right)^{2} - \cos\left({\chi}\right)^{2} + 1}{\sin\left({\chi}\right)^{2}} \right) \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\phi} + \cosh\left(b {\tau}\right)^{2} \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\chi}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\chi} -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\phi} + \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \frac{\partial}{\partial {\phi} }\otimes \mathrm{d} {\theta}\otimes \mathrm{d} {\phi}\otimes \mathrm{d} {\theta}$}188\begin{lstlisting}189Riem.display_comp(only_nonredundant=True)190\end{lstlisting}191192{$\begin{array}{lcl} \mathrm{Riem}\left(g\right)_{ \phantom{\, {\tau} } \, {\chi} \, {\tau} \, {\chi} }^{ \, {\tau} \phantom{\, {\chi} } \phantom{\, {\tau} } \phantom{\, {\chi} } } & = & \cosh\left(b {\tau}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\tau} } \, {\theta} \, {\tau} \, {\theta} }^{ \, {\tau} \phantom{\, {\theta} } \phantom{\, {\tau} } \phantom{\, {\theta} } } & = & \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\tau} } \, {\phi} \, {\tau} \, {\phi} }^{ \, {\tau} \phantom{\, {\phi} } \phantom{\, {\tau} } \phantom{\, {\phi} } } & = & \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\chi} } \, {\tau} \, {\tau} \, {\chi} }^{ \, {\chi} \phantom{\, {\tau} } \phantom{\, {\tau} } \phantom{\, {\chi} } } & = & b^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\chi} } \, {\theta} \, {\chi} \, {\theta} }^{ \, {\chi} \phantom{\, {\theta} } \phantom{\, {\chi} } \phantom{\, {\theta} } } & = & \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\chi} } \, {\phi} \, {\chi} \, {\phi} }^{ \, {\chi} \phantom{\, {\phi} } \phantom{\, {\chi} } \phantom{\, {\phi} } } & = & \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\theta} } \, {\tau} \, {\tau} \, {\theta} }^{ \, {\theta} \phantom{\, {\tau} } \phantom{\, {\tau} } \phantom{\, {\theta} } } & = & b^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\theta} } \, {\chi} \, {\chi} \, {\theta} }^{ \, {\theta} \phantom{\, {\chi} } \phantom{\, {\chi} } \phantom{\, {\theta} } } & = & -\frac{\sin\left({\chi}\right)^{2} \sinh\left(b {\tau}\right)^{2} - \cos\left({\chi}\right)^{2} + 1}{\sin\left({\chi}\right)^{2}} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\theta} } \, {\phi} \, {\theta} \, {\phi} }^{ \, {\theta} \phantom{\, {\phi} } \phantom{\, {\theta} } \phantom{\, {\phi} } } & = & \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\phi} } \, {\tau} \, {\tau} \, {\phi} }^{ \, {\phi} \phantom{\, {\tau} } \phantom{\, {\tau} } \phantom{\, {\phi} } } & = & b^{2} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\phi} } \, {\chi} \, {\chi} \, {\phi} }^{ \, {\phi} \phantom{\, {\chi} } \phantom{\, {\chi} } \phantom{\, {\phi} } } & = & -\frac{\sin\left({\chi}\right)^{2} \sinh\left(b {\tau}\right)^{2} - \cos\left({\chi}\right)^{2} + 1}{\sin\left({\chi}\right)^{2}} \\ \mathrm{Riem}\left(g\right)_{ \phantom{\, {\phi} } \, {\theta} \, {\theta} \, {\phi} }^{ \, {\phi} \phantom{\, {\theta} } \phantom{\, {\theta} } \phantom{\, {\phi} } } & = & -\cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \end{array}$}193\begin{lstlisting}194\end{lstlisting}{The Ricci tensor:}195\begin{lstlisting}196Ric = g.ricci()197print Ric198Ric.display()199\end{lstlisting}\begin{verbatim}field of symmetric bilinear forms 'Ric(g)' on the 4-dimensional manifold 'M'\end{verbatim}200201{$\mathrm{Ric}\left(g\right) = -3 \, b^{2} \mathrm{d} {\tau}\otimes \mathrm{d} {\tau} + 3 \, \cosh\left(b {\tau}\right)^{2} \mathrm{d} {\chi}\otimes \mathrm{d} {\chi} + 3 \, \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \mathrm{d} {\theta}\otimes \mathrm{d} {\theta} + 3 \, \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2} \mathrm{d} {\phi}\otimes \mathrm{d} {\phi}$}202\begin{lstlisting}203Ric[:]204\end{lstlisting}205206{$\left(\begin{array}{rrrr}207-3 \, b^{2} & 0 & 0 & 0 \\2080 & 3 \, \cosh\left(b {\tau}\right)^{2} & 0 & 0 \\2090 & 0 & 3 \, \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} & 0 \\2100 & 0 & 0 & 3 \, \cosh\left(b {\tau}\right)^{2} \sin\left({\chi}\right)^{2} \sin\left({\theta}\right)^{2}211\end{array}\right)$}212\begin{lstlisting}213\end{lstlisting}{The Ricci scalar:}214\begin{lstlisting}215R = g.ricci_scalar()216print R217R.display()218\end{lstlisting}\begin{verbatim}scalar field 'r(g)' on the 4-dimensional manifold 'M'\end{verbatim}219220{$\begin{array}{llcl} \mathrm{r}\left(g\right):& \mathcal{M} & \longrightarrow & \mathbb{R} \\ \mbox{on}\ \mathcal{M}_0 : & \left({\tau}, {\chi}, {\theta}, {\phi}\right) & \longmapsto & 12 \, b^{2} \end{array}$}221\begin{lstlisting}222\end{lstlisting}{We recover the fact that de Sitter spacetime has a constant curvature. It is indeed a {maximally symmetric space}. In particular, the Riemann tensor is expressible as}223{\[ R^i_{\ \, jlk} = \frac{R}{n(n-1)} \left( \delta^i_{\ \, k} g_{jl} - \delta^i_{\ \, l} g_{jk} \right) \]}224{where $n$ is the dimension of $\mathcal{M}$: $n=4$ in the present case. Let us check this formula here, under the form $R^i_{\ \, jlk} = -\frac{R}{6} g_{j[k} \delta^i_{\ \, l]}$:}225\begin{lstlisting}226delta = M.tangent_identity_field()227Riem == - (R/6)*(g*delta).antisymmetrize(2,3) # 2,3 = last positions of the type-(1,3) tensor g*delta228\end{lstlisting}229230{$\mathrm{True}$}231\begin{lstlisting}232\end{lstlisting}{We may also check that de Sitter metric is a solution of the vacuum {Einstein equation} with (positive) cosmological constant:}233\begin{lstlisting}234Lambda = 3*b^2235Ric - 1/2*R*g + Lambda*g == 0236\end{lstlisting}237238{$\mathrm{True}$}239240\end{document}241242