How to prove equations using diagrams, part 1
This post introduces the concept of e-graphs and their manipulation using diagrams in computer algebra. An e-graph maintains a congruence relation on expression trees, enabling equational reasoning. Willsey et al. demonstrated the power of e-graphs with equality saturation in 2021.
The post draws a parallel between e-graphs and commutative diagrams in category theory, where equations between morphisms are represented. In computer algebra, diagrams are often finitely presented, with the target category containing generators and relations.
The author argues that category theory is essential for describing valid manipulations of diagrams, which are transformations through morphisms between diagrams. The key concept is that of an initial functor, which characterizes the initiality condition for such transformations.
The post outlines the formal definition of a diagram in a category, a functor mapping an indexing category to the target category. It also introduces the idea of deriving new equations by manipulating diagrams, which requires the use of initial functors to ensure valid transformations.
Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.