If you're not familiar, it uses a CAS called derive which handles algebraic simplification (including trigonometry), differentiation and integration. Oh, and a function called "rref" (reduced row echelon form; familiar to matlab users), which solves a linear system (including symbolically), with absolutely minimal overhead in the "CLI".
Now that I say that, I want an actual CLI tool called rref that works in the same way.
> PRESS (PRolog Equation Solving System) is a system for solving symbolic, transcendental, non-differential equations. The methods used for solving equations are described, together with the service facilities. The principal technique, meta-level inference, appears to have applications in the broader field of symbolic and algebraic manipulation.
https://dream.inf.ed.ac.uk/software/press/
And: https://github.com/maths/PRESS
> This directory contains a copy of the PRESS ... modified to run on SWI Prolog
This looks like it does substitutions but I didn't see reductions.