R471 · AI-built software and its verification › Formal methods for AI-written code

AWS Project C2: LLMs plus Lean proofs find 800 concurrency bugs in 22 open-source projects

Read the original

formal-verificationleanconcurrencydistributed-systemsbug-findingneurosymbolic

Source: AWS Project C2 finds bugs AI models miss by Marc Brooker (VP and Distinguished Engineer) and Soonho Kong (Principal Applied Scientist), Amazon, 30 Nov 2026. Found via TLDR AI 2026-12-01.

Vendor note: this is a product announcement, and every number is self-reported.

How it works

Project Code Confidence (C2) is described as neurosymbolic: LLMs combined with automated reasoning, which the article defines as "mathematical logic to prove, disprove, or analyze system behaviors". The only tool it names is the Lean theorem prover.

The loop:

  1. Read the code and its documentation to infer the intended behaviour.

  2. Try to prove that the implementation meets that intent.

  3. If the proof fails, decide whether the inferred intent was wrong (refine it and loop) or the code has a real bug.

  4. For a real bug: write a test that reproduces it against the actual implementation, rate its severity, then develop, test and prove a fix.

Retries, guardrails and parallelism are layered on top. For concurrency the authors stress that C2 is "not simply trying every order but creating a model-written proof of what can happen under every possible order".

Results (self-reported)

What is missing

Scope is concurrency and distributed-systems correctness, not security vulnerabilities. Access is limited to select customers for now.

Why it matters

C2 points the proof at the faithfulness of the spec, which is the weak link R428's hackathon exposed. The inferred intent is treated as a hypothesis, and every bug claim must come with a test that reproduces it on the real code, so a proof against a wrong intent is caught by refinement rather than reported as a bug. It is the strongest industrial claim yet for LLM-plus-prover bug finding, but until maintainer acceptance numbers appear it is an announcement, not evidence.

Connections

See R471 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.