Repository navigation
Quod 0.3.2
Quod 0.3.2: the reference now tells an agent to keep its helpers private. Neither the verifier nor the generated code changes: only the text of the reference, which agents read through quod_reference.
Install
As for 0.1.0: download the package for
your system, unpack it, and run quod from that folder (z3 4.12.1 is inside). On macOS, run
xattr -d com.apple.quarantine quod z3 in the folder first. The MCP server:
claude mcp add quod -- /path/to/quod mcp, or see
docs/mcp.md. Quod.Build, attached, is a NuGet package:
see its README.
Changed
- The reference recommends
private fnfor helpers. What is public is the API of the generated code, and in C# a helper overintshows aBigIntegerthere.
Measured
- T9, a billing engine of about 300 lines over three modules, written by Haiku and Sonnet from a specification on 0.3.1: 12 of 12 verified and pass a separate oracle on 436 orders, 6 of 6 on 235 orders in C# on .NET Framework 4.7.2.
i64costs failed proofs (38 against 7 withint), and not money. - T10, the same with a discount shared in proportion, a product of variables: 12 of 12 again. The ceiling was not reached. The rules, the oracle, the tests and the compiler have one author, and one product is not a hard case.
- T11, on this version: all 6 runs made helpers private, against none of 6 before. Public methods with a
BigIntegerfall from 19 to 30 down to 0 to 17, and nothing else moved. - All compiler tests pass. The mutant benches were not rerun: neither the verifier nor the generated code changes.
Known
Those of 0.3.1.
- A helper called from another module must stay public: Quod has no visibility in between. The
BigIntegerof hidden helpers leave the API, not the generated code.