// plain terms
What this project does.
The algebra rules are already known. The hard part is choosing the right next rule, at the right place in the expression, while keeping the route short and clean.
ISRE
Interpretable Symbolic Reasoning Engine. It takes an algebra expression, turns it into an AST tree, lists possible simplification moves, chooses one move, applies it, and repeats. The goal is a correct simplification path with visible reasons for each step.
Symbolic engine
The deterministic part. It uses fixed algebra rules to check the current expression and return legal moves such as REMOVE_ZERO, FOLD_CONST, MERGE_POWER, SORT_COMMUTATIVE, EXPAND, or COLLECT_TERMS.
Policy
The learned decision-maker. Given the current expression and the legal moves, it scores every candidate action and chooses the next one. Weak choices can still simplify the expression while making the path longer and less optimal.
MLP
The standard neural baseline. An MLP is a stack of dense layers. It is familiar, strong, easy to train, and a fair comparison point. The drawback is that its decisions are hard to inspect: it can work well without giving a clean view of which symbolic features mattered.
KAN
The alternative policy head. KAN can be more interpretable because it learns small feature-wise functions instead of mixing everything through dense matrix layers. In this project, raw KAN had too little representation power on its own and needed an encoder.
Encoder-KAN
The successful version. First, an AST encoder reads the expression tree and builds a richer representation. Then KAN scores the legal moves. This version became competitive while staying much smaller than the large MLP baseline.
What we compare
We compare raw KAN, KAN with an action embedding, Encoder-KAN, small MLPs, and a larger MLP-128 baseline. The main question is which policy chooses near-optimal simplification steps with fewer parameters and less waste.