SeQuant framework for symbolic and numerical tensor algebra. I. Core capabilities | Synapse