Formally Verifying Peephole Optimisations in Lean
l-m.dev·5d·
Discuss: Hacker News
⚖️Verification Calculi
Preview
Report Post

>> Introduction to formally specifying peephole optimisations (under LLVM/C style UB semantics) in Lean, and an introduction to my new project which verifies them.

Posted on Dec 23, 2025 | 1771 words | ~9 minute read


tags: [ lean ] [ compiler ] [ c ]

sources: [ [VOD] PEEP 2 - proof of addNsw_assoc (add nsw LLVM instruction) ] [ l-m.dev/stream (stream schedule) ] [ l1mey112/peephole-formal ] [ google/souper ]


TLDR: New project + development streams: l1mey112/peephole-formal

Motivation

I started a new project back around Sep…

Similar Posts

Loading similar posts...