Repair a formal proof by iterating on code and builds
Codex fixed CertiGC proofs in Rocq with human review on any change that could alter the specification.
- What they did
- A developer let Codex work inside the repository and edit Rocq proof files directly. It checked proof states through rocq-mcp, made targeted edits, and kept validating them with make builds. It handled the VST proofs first and then moved to the graph-isomorphism theorem. When it proposed a recorded-backward-edge invariant, the author reviewed that idea, and any Definition change required discussion before it could go in.
- How it went
- The branch compiled successfully and was accepted in PR 30. The main theorem was approved on April 29, and a later audit dropped a stale no-backward-edge premise. This was a single case, not a controlled study, and no speedup was measured.
- Tips
- This works best when a person stays in the loop and checks that any new invariant still matches the intended spec. Expect a lot of interaction if the proof tree is large.
Try it yourself with Codex
I have a [Coq/Lean/Isabelle] repository at [folder], and [file, lemma, or theorem] is failing after [change]. Open the proof state, make the smallest edits needed to get it working again, and rerun the relevant build after each change. If you believe a specification, invariant, or Definition must be adjusted, pause and ask me before changing it. Do not submit, merge, delete, or otherwise make an irreversible change until I explicitly approve it. At the end, give me a list of every file and statement you touched, plus any ideas you considered but did not apply.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Build a robot arm CAD package from a single request
A text-to-CAD setup turned one prompt into a multi-part robot arm model with motion logic, a viewer, and export files.
Validate a circuit model with scope measurements
Claude Code can compare a SPICE run with oscilloscope readings from the real circuit.
Use OpenClaw to script robot arm motions
OpenClaw can take movement instructions in everyday language and turn them into Python for a 7-axis NERO arm.
Have Gemini write robot control plans from vision and speech
A developer used Gemini to turn camera input and robot tools into Python plans, then drove robot actions with voice commands.
Search for room-temperature magnetic semiconductor candidates
A Claude Opus 5.5 agent team screened Luttinger-compensated magnets and surfaced two predicted room-temperature magnetic semiconductor candidates.
Analyze a Go binary in Ghidra through Cursor
A developer used Cursor with GhidraMCP to map a stripped Go server and hunt for bugs in its routes and handlers.