Formal verification of AI code: cop-out or the point? A sharp debate
debreuil · x · 2026-11-25
A substantive debate on formally verifying AI-generated code. Patrick Toulme argues it's somewhat a "cop out" — people want to rubber-stamp AI code via Lean proofs, AI code faces a far higher burden of proof than human code ever did, and a wrong spec makes the proof worthless. Robert Penner pushes back hard: "the proof is worthless if the spec is wrong" has been true for thousands of years; spec alignment is imperfectly human. The right move is replacing scattershot example-based tests with comprehensive proofs while focusing human review on a short, clear spec. Human code was never really "known right" — we relied on unit tests and manual review only because hand-written proofs were too slow and expensive. Now AI generates more code than anyone can review, while finally making proofs cheap enough to write. Calling formal verification a cop-out has it backwards, he argues: the real cop-out is passing up mathematical certainty when it's finally realistic.
More from coding & agent
- Experimental Gemini frontend skill ships anti-slop rules for clean landing pages — mrdbourke · 2026-11-25
- New Survey Maps RAG Across the Agentic Era, From Indexing to Orchestration — _reachsumit · 2026-11-25
- Independently Distilled Memory and Retrieval Policies Beat RL Compositions in Long-Term Agents — _reachsumit · 2026-11-25
- Ling-3.2-air open-weight model jumps from 15.7% to 61% on AutomationBench-AA — nikola_mr64990 · 2026-11-25
- Supabase launches Knowledge Base with migration guides, troubleshooting, and agent support — dshukertjr · 2026-11-25
- GitHub Copilot CLI v1.0.116-3 adds env var injection for all spawned processes and context size selection — copilot-cli-release-app[bot] · 2026-11-25