Skip to Main Content

Your AI wrote the code. Who proves it's right? Proof-Carrying Code checks Python functions with formal proofs. Every function ends with one of two things: a proof anyone can re-check, or the exact input that breaks it, as a failing test you can run. Meta's models do the reasoning. Dafny, a proof checker, decides what counts, so a model can't talk its way past it. What you get per function - A proof file anyone can verify with dafny verify - Or a counterexample: a concrete input that really breaks the spec, as a ready-to-run pytest - Or an honest "couldn't check, and here's why" How it works - It reads what the function is supposed to do and writes a spec. Those steps never see the function body, so the spec can't just copy the code. - It translates the function to Dafny and tries to prove it, with escalating Meta models. - It runs as a GitHub Action on every pull request and posts the result as a comment. Meta's models in the pipeline: Spark, Wonder, and Glimmer, which we fine-tuned ourselves. We trained it with rejection sampling, where the Dafny checker was the only reward and no human labels were used. On 569 held-out tasks, pass rate went from 7.6% to 44.8% (four tries per task).

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview