Using variable grammars and "axioms" (substitution rules) many different agebraic systems may be represented using the same system.
Here a simple 2 variable system is used to represent equations and logical statements. The first is LV, representing "Truth-valued" expressions. The second is AV, representing "Number-valued" expressions.
Available rulesets: details