Dear Leo,
Thanks a lot again for replying to my query and sharing your notebook!
The way you have defined the Bianchi identities is quite efficient and for my purposes it is sufficient as well because I need to apply the identities only on terms which have an accompanying Levi-Civita tensor in them.
The RiemannSimplify command is a huge help! The two linearly dependent terms which remained in your example after applying RiemannSimplify, can actually be shown to be related to each other using the symmetry/anti-symmetry properties of the Riemann tensor indices and the first Bianchi identity alone. I observed this yesterday after I managed to derive one of those terms from the other by manual calculation. So I think those terms are not necessarily related via dimensionally dependent identities.
I have a follow-up question. If I use the command RiemannSimplify on your initial list of the four curvature square terms, i.e. before applying the Bianchi identities to it, then the first term gets simplified to an unrecognisable output which is 1/2 (2, 3) (4, 5, 7) (6, 9, 8) (shown in attached notebook).
Unfortunately when I apply RiemannSimplify on odd-parity curvature cube terms (shown in the attached notebook) even after applying the Bianchi identities, some of the terms give unrecognisable outputs of the kind mentioned above.
Any idea what could be the reason for such unrecognisable outputs and how to fix it?
Best,
Sukruti