
A boolean expression manipulation program that uses zippers for navigation. - shape-warrior-t/algezip

AlgeZip: navigate and manipulate boolean expressions
A boolean expression manipulation program that uses zippers for navigation. - shape-warrior-t/algezip
For some time now, I've been thinking about the concept of interactively manipulating mathematical expressions and equations via software. Like doing some quick algebra in Notepad or similar, except there's no potential for arithmetic/algebra errors, typos, etc. ruining any results.
At the same time, I also wanted to experiment a bit with zippers from functional programming. You need some way of specifying what (sub)expression to perform operations on, and it seemed like this kind of data structure could help with that.
And so, I made AlgeZip, a small proof-of-concept of the whole general idea. Although this polished Python version was completed only a few days ago, there were various other versions before this one in different languages and with worse-quality code. Instructions for things are on GitHub; requires Python 3.12 to run.
For simplicity, I decided to use boolean expressions instead of generic numeric algebraic expre