A small interactive tool for visualizing Stallings folding, with step-by-step animations and Chinese/English support.
Built with the help of ChatGPT. Made for exploring and learning geometric group theory.
(A screenshot of the visualizer is shown at the bottom of this README.)
Here's an example from Office Hours with a Geometric Group Theorist that I'm currently reading.
Free group rank: 2
Subgroup generators:
abab^{-1}
abb
bab
baaab^{-1}
Enter these four words, one per line, and click Build Graph and Compute Folding to construct the initial graph.
You can then step through the folding process or play the animations to see how the graph changes at each step.
You can also switch between Chinese and English using the language toggle.
Uppercase letters represent inverse generators. For example:
Arepresents (a^{-1})Brepresents (b^{-1})aBrepresents (ab^{-1})ABrepresents (a^{-1}b^{-1})
You can also use explicit notation, such as ab^{-1} or a^-1b.
