# Mathematician uses category theory to explain how diagrams prove equations

Original title: How to prove equations using diagrams, part 1

> Hacker News story 50412830 · language: en · submitted 2026-11-08
> Web version: https://zeli.app/story/50412830
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 78 · by [frostbyte7](<https://news.ycombinator.com/user?id=frostbyte7>) · 💬 8
[original](<https://www.epatters.org/post/e-graphs-1/>) · [HN discussion](<https://news.ycombinator.com/item?id=50412830>)

## Summary

E-graphs, the equality graphs behind tools like egg and egglog, are usually taught through union-find and implementation details. Evan Patterson asks what is really going on abstractly. He proposes initial functors as the key to diagrammatic equational reasoning, showing how pullbacks and extensions along them preserve solution sets, then works through examples like pasting commutative squares and a monoid presentation.

## Key quote

> The diagrammatic and visual nature of e-graphs, so apparent in the interactive egglog demo, will suggest to any category theorist that categorical ideas may be implicitly at work.

## HN discussion (8 comments)

### [henearkr](<https://news.ycombinator.com/item?id=50414982>)

> Very interesting!!
>
> A nitpick, for a J-shaped diagram D, J is the "index category" or the "scheme" of D, not the "shape" like written in the article.

### [boldslogan](<https://news.ycombinator.com/item?id=50416634>)

> man ive recently stumbled on this concept of functor or nonsymbolic logic and such. don't suppose you have any suggestions to look at?

---

## Cite

- Page: https://zeli.app/story/50412830
- Date: 2026-11-08
- Source: epatters.org (https://www.epatters.org/post/e-graphs-1/)
- Hacker News: https://news.ycombinator.com/item?id=50412830

## Other languages

- zh: https://zeli.app/zh/story/50412830 · markdown: https://zeli.app/zh/story/50412830.md
- ja: https://zeli.app/ja/story/50412830 · markdown: https://zeli.app/ja/story/50412830.md
- ko: https://zeli.app/ko/story/50412830 · markdown: https://zeli.app/ko/story/50412830.md
- de: https://zeli.app/de/story/50412830 · markdown: https://zeli.app/de/story/50412830.md
- es: https://zeli.app/es/story/50412830 · markdown: https://zeli.app/es/story/50412830.md
- ru: https://zeli.app/ru/story/50412830 · markdown: https://zeli.app/ru/story/50412830.md
