Category theory for Mathematica -> HPF