Show HN: Lemmafit: Make agents prove that their code is correct
1–6 of 6 posts
Re: Show HN: Lemmafit: Make agents prove that their code is correct
#2lemmafit is an npm package that gives AI coding agents (currently only Claude Code) a formal verification loop. Any effect-free logic gets written in Dafny, verified on every save, and auto-compiled to TypeScript. The agent then hooks the logic up to a React UI, and you get an app with state transitions and business logic with guarantees of correctness.
Happy to answer questions about the verification pipeline or the Dafny integration.
Re: Show HN: Lemmafit: Make agents prove that their code is correct
#3Re: Show HN: Lemmafit: Make agents prove that their code is correct
#4Curious if there is any analysis on how often an LLM can create proofs correctly without special prompting.
Re: Show HN: Lemmafit: Make agents prove that their code is correct
#5Curious if there is any analysis on how often an LLM can create proofs correctly without special prompting.
Since around Opus 4.5, systems like Claude Code are very good at Dafny proofs. They don’t get everything right in one shot but can iterate with verifier feedback. Some proofs take over 20 minutes to complete. The system knows to put temporary axioms to tackle proofs step by step.
Re: Show HN: Lemmafit: Make agents prove that their code is correct
#6Earlier quoted context omitted.
Since around Opus 4.5, systems like Claude Code are very good at Dafny proofs. They don’t get everything right in one shot but can iterate with verifier feedback. Some proofs take over 20 minutes to complete. The system knows to put temporary axioms to tackle proofs step by step.
Awesome thanks! Would be nice to have a sort of "worked example" where you take a simple project and derive Typescript and Dafny for it and have the LLM (Claude) generate proofs. Just some feedback to broaden it up to folks not as familiar with Dafny.