← Fri, Nov 20 digest

Automatic Checking of Compiler Correctness with E-Graphs

read article ↗ hn thread ↗

MIT researchers developed an e-graph-based engine inside the Rocq Prover that automates the formal verification of modular compilers.

read it It offers a deep technical look at applying e-graphs and the Pyrosome framework to eliminate manual proofs in compiler verification.

summary

Adam Chlipala discusses new research automating formal verification for modular compilers using e-graphs, set to appear at POPL 2027. Built on the Pyrosome framework, the system allows language features and their compiler phases to be verified in isolation before being safely linked. The underlying e-graph engine is implemented purely functionally inside the Rocq Prover and proven sound, eliminating the need for runtime certificate checking. While current performance is limited by sequential execution, this approach enables rapid, verified language experimentation.

key points

  1. The approach uses e-graphs to automate proof obligations in the Pyrosome framework, eliminating manual proofs for nearly all test cases in a System F-to-TAL compiler case study.
  2. The e-graph engine is implemented as a purely functional program inside the Rocq Prover and formally proven sound.
  3. Modular language definition allows separate verification of individual language-feature modules that can be linked into a fully verified language and compiler.

who should read it

Compiler engineers and formal methods researchers working on automated theorem proving and program verification.

Generated by an LLM from the article and thread. Check the sources before relying on it.