Better HN
topnewbestaskshowjobs
Log inSign up

namin

743 karma · joined Aug 9, 2007 (19y ago) · 122 submissions

Submissions

1.

LemmaScript: A Verification Toolchain for TypeScript via Dafny(midspiral.com ↗)

4 points · by namin · 7mo ago · discuss

2.

Show HN: LemmaScript, a verification toolchain for TypeScript via Dafny(github.com ↗)

5 points · by namin · 7mo ago · discuss

3.

Show HN: Guardians – Verify tool-using agent workflows before execution(github.com ↗)

8 points · by namin · 7mo ago · discuss

comment 8mo ago · link · parent

Thanks, we will provide case studies. Already today, lemmafit doesn't need familiarity with Dafny. It is used under the hood, so you just use Claude Code normally and lemmafit adds the verification harness. You don't need to interact with Dafny or the proofs at all.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

Hey HN! We've been experimenting with Dafny formal verification in web apps. We've been using AI to write verified state machines, proving undo/redo preserves invariants, verifying business logic, and creating apps with this logic. That work has lived in blog posts and research experiments so far. lemmafit is the first time we've packaged it into something you can npm install.

lemmafit 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.

7.

Show HN: Lemmafit: Make agents prove that their code is correct(github.com ↗)

7 points · by namin · 8mo ago · 5 comments

comment 9mo ago · link · parent

Ha. At least you can check the theorem statements and see that the proofs verify :)

9.

A Very Small SAT Solver (From Haskell) Now in Dafny, Proved Correct with LLMs(github.com ↗)

4 points · by namin · 9mo ago · 2 comments

10.

Verifying State and Reconciliation in Collaborative Web Apps(midspiral.com ↗)

3 points · by namin · 10mo ago · discuss

11.

Show HN: Henri: a small, hackable agent CLI(github.com ↗)

4 points · by namin · 10mo ago · discuss

12.

Show HN: Holey: Staged execution from Python to SMT for synthesis(github.com ↗)

4 points · by namin · 10mo ago · discuss

13.

Building a React App with Formally Verified State(midspiral.com ↗)

3 points · by namin · 10mo ago · discuss

14.

From Intent to Proof: Dafny Verification for Web Apps(midspiral.com ↗)

5 points · by namin · 11mo ago · discuss

comment 1y ago · link · parent

Harvard SEAS | https://metareflection.seas.harvard.edu and https://namin.seas.harvard.edu | Postdoctoral Fellow | Greater Boston Area | ONSITE

I am looking for a postdoctoral fellow interested in the intersection of programming languages and artificial intelligence, in particular verification and large language models.

Our main goal is to create a PL+AI system that is the best at verified program synthesis. We will use the verification-aware programming language Dafny and co-evolve an LLM and a discovery system for Dafny.

Please contact me at namin@seas.harvard.edu if interested. Include a CV and GitHub link.

16.

Show HN: Tiny Hoare logic verifier using SMT(github.com ↗)

12 points · by namin · 1y ago · 1 comment

17.

Show HN: Live software archaeology of FOL (theory of reasoning)(io.livecode.ch ↗)

3 points · by namin · 1y ago · discuss

18.

Work with Apps on macOS(help.openai.com ↗)

5 points · by namin · 2y ago · discuss

19.

A Scalable Communication Protocol for Networks of Large Language Models(agoraprotocol.org ↗)

3 points · by namin · 2y ago · discuss

comment 2y ago · link · parent

Harvard SEAS, ONSITE (Boston area, MA, US)

I have one opening in a new project around AI for precision medicine. One thrust is about combining biomedical knowledge graphs and large language models into a biomedical-fluent core platform. Another thrust is about UI for data-rich programmable systems. The opening is for either a research engineer or a postdoc, with different criteria in each case. The research engineer would be responsible for quarterly demo-driven deliverables. The postdoc would be expected to develop a research agenda with these applications in mind.

Contact: namin@seas.harvard.edu

21.

Arc Prize Guide(arcprize.org ↗)

7 points · by namin · 2y ago · 1 comment

comment 2y ago · link · parent

Awesome, thank you! I'll check it out.

comment 2y ago · link · parent

This seems cool! Is there a way to try it locally with an open LLM? If you provide a way to set the OpenAI server URL and other parameters, that would be enough. Is the API_URL server documented, so a mock a local one can be created?

Thanks.

24.

Show HN: Verified Multi-Step Synthesis Using LLMs and MCTS(arxiv.org ↗)

1 points · by namin · 2y ago · discuss

comment 3y ago · link · parent

Not dumb! The verifier lets slide an error on the last line, while it's still in progress.

comment 3y ago · link · parent

Yes. The verifier check already ensures syntactic correctness, but the search could goes faster if the underlying LLM doesn't generate bad syntax to begin with.

comment 3y ago · link · parent

> How does the MCTS distinguish between 'generated a stupid lemma that is true' and 'generated a valid lemma'?

It does not, though I would like to add validation as part of the check as future work.

> Is there any reason to expect that a 'good' partial subtree will result in a 'good' output?

Yes. I am using Phind Code Llama and it generates a lot of invalid Dafny out of the box. Now, all these false starts get pruned.

I do suspect that if we try to scale this to Coq proof, we will run in local optima rabbit holes.

> Why do you think this approach will generate valid lemmas? > (Not structurally valid; valid as in, they assert a solution to the given problem).

Because the LLM tries to follow instructions.

> "Generate me a function for X and a bunch of tests that verify X". > "If the tests pass, the function is good" > ...but, there's no specific reason to expect that to be true?

Indeed, there are complementary approaches like Speculyzer that help validate specs and code at once.

> How is what you're doing different?

That's not the problem I am solving at the moment. What I solve is that I am able to generate verified code (that still need to be inspected) while the LLM struggles to do in one go.

> I guess I'm struggling to see how this is superior / novel to existing approaches in that space.

It's not that novel, see the planning in LLM work that I credit in the README.md. This transfers from a setting of checks by tests to a setting of checks by a verifier. The code is very simple, and it actually brings open models to reliably solve problems that even ChatGPT only sometimes solve. I think it's a good foundation to build more sophisticated verification with LLMs.

comment 3y ago · link · parent

Interesting! Is the end goal similar to the outlines library: https://github.com/outlines-dev/outlines ?
12345