{"slug":"egglog","article":{"kind":"article","title":"Egglog","category":"Computing","entityType":"programming-language","summary":"Egglog is a language and reasoning system presented at PLDI in 2023. Its authors combined Datalog-style rules with equality saturation so that a program can infer facts and maintain equalities between expressions in one system.","sources":["source:datalog-better-together","source:egglog-project"],"relations":[{"rel":"extends","to":"article:datalog"}],"id":"article:egglog","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"},"sections":[{"kind":"section","article":"article:egglog","title":"Facts and equalities","order":0,"text":"A Datalog program draws new facts from existing facts by applying rules. Equality saturation records when expressions are interchangeable and retains equivalent representations for later reasoning. Egglog gives rules a way to work with both relational information and equivalence among terms.","sources":["source:datalog-better-together"],"id":"section:egglog-logic","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"},{"kind":"section","article":"article:egglog","title":"Applications in the paper","order":1,"text":"The authors present examples involving program optimization and analysis. Keeping the associated equalities in the same reasoning system makes it possible for a rule to use what has been learned about equivalent expressions. The project publishes the implementation and examples in its repository.","sources":["source:datalog-better-together","source:egglog-project"],"id":"section:egglog-uses","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"}],"events":[],"examples":[],"links":[],"sources":[{"kind":"source","title":"Better Together: Unifying Datalog and Equality Saturation","url":"https://arxiv.org/abs/2304.04332","id":"source:datalog-better-together","from":"2026-11-28","revision":"580c0dcacc18aefc55c7ad472cef353348b4fc1152035bece2bddff7979a91ff","recordedAt":"2026-11-28T22:36:35.274Z"},{"kind":"source","title":"Egglog · Project repository","url":"https://github.com/egraphs-good/egglog","id":"source:egglog-project","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"}],"related":[{"slug":"datalog","title":"Datalog","category":"Knowledge graphs","rel":"extends"}],"backlinks":[],"history":[{"id":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z","message":"Publish sourced articles and connect reviewed subjects and dated records"}]}
