Get the latest tech news

Anatomy of a Lean proof for software engineers


Intro I recently worked through a problem from a theory of computation textbook that asked me to prove a property of a language using finite automata. The informal proof is a simple constructive proof where you build an automaton and show that it recognizes the language. This is kind of similar to program verification, so I thought it’d be interesting to see what it takes to formalize the proof. Lean is a good choice for this, because its Mathlib has all the theorems for the problem.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of software engineers

software engineers

Photo of Anatomy

Anatomy

Photo of Lean

Lean

Related news:

News photo

Investors are pricing in a 32.6% AI productivity boost for software engineers

News photo

Anatomy of a Texture

News photo

After Google mapped an adult male fruit fly's brain, software engineers made it play Doom, Mario64, and Beat Saber