Consider the complete contraction of indices between the Riemann tensor and its dual in a Schwarzschild spacetime in spherical coordinates
For that purpose, set first the metric and the coordinates -you can use Setup for that, or because the Schwarzschild metric is known to the system you can directly pass the keyword or an abbreviation of it to the metric g_ to do all in one step
Enter the dual of the Riemann tensor
Multiply both
Check the indices
Perform the summation over these 6 indices
So (4) is zero; this term enters the computation of the 1st of the Riemann scalars,
and
and actually for both scalars only the first term in these formulas is different from zero: