I have some expression reached after a long list of manipulations with some free indices, and I want to create a mapping (I think documentation prefers calling them "substitution rules") like:
M_{\mu} -> <previous expression with only \mu as free indice>
I tried doing:
M_mapping := M_{\mu} -> $(_);
but this gives:
`\begin{verbatim}RuntimeError: Python object '' does not exist.
At:
Notebook Cell (Line 1): Mmapping = Ex(' M{\mu} -> @(_)')
\end{verbatim}`
I tried doing:
M_expr = _; <--- this succeeds
M_mapping := M_{\mu} -> @(M_expr); <--- this gives an error:
`\begin{verbatim}RuntimeError: Python object '\prod' does not exist.
At:
Notebook Cell (Line 1): Mmapping = Ex(' M{\mu} -> @(M_expr)')
\end{verbatim}`
What's the correct syntax to create a mapping with the previous expression?