95e509660bb09ace251fa3002df4864bd3aa0984
The way out of a FOR EACH loop includes the case of no pass at all, but the checker added "X is in the collection" to the loop's head state and then used that same state as the way out. After a loop over an empty list the fact is FALSE, so the checker held a contradiction and proved anything after the loop, ASSERT 1 == 2 included (tests/prover/foreach-empty.pseudo). The fact is now assumed only for the body of a pass. The soundness test gains a canary: after every program that runs to its end without input, ASSERT 1 == 2 is appended and must not be proved, since a proof there means a contradiction on a path every run takes. A one-off scan with the canary after every top-level statement of every program (476 points) found nothing else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
Languages
TypeScript
47.7%
JavaScript
47.1%
Python
4.9%
Mojo
0.3%