Anatomy of a Lean proof for software engineers

·Hacker News··

..2026-10-01Anatomy of a Lean Proof for Software Engineers[Contents]IntroBackground: DFAs & Regular LanguagesDeterministic Finite Automaton (DFA)Regular LanguagesThe ProblemThe SolutionAdder ArithmeticAdder DFAExample 1Example 2The Lean ProofThe SpecificationThe ImplementationHow Proofs WorkThe ProofRun InvariantRun Invariant ProofBase CaseInductive StepSplitting the RunFirst Step AddsLeast Significant Bit SplitPutting It TogetherBRB^{\mathcal{R}}BR Is RegularAdder DFA Accepts BRB^{\mathcal{R}}B

Read full article →

Related Articles

Pi 1.0
sergiotapia · Hacker News · 1d ago
The Legend of von Neumann (1973) [pdf]
suopspaces · Hacker News · 6h ago
Automatic Transmission – a data-privacy study of connected vehicles
rafaelc · Hacker News · 23h ago
Court agrees with EFF: Utah's VPN law demands a technical impossibility
hn_acker · Hacker News · 21h ago
Cops Can Bypass iPhone's Automatic Reboot to Get into Locked Phones
speckx · Hacker News · 1d ago