Repository navigation
Quod 0.3.1
Quod 0.3.1: what the first agents to write 0.3 ran into. No proof changes: a program that compiled gives the same verdicts, and only the C# class of a file that holds a type of its own name changes.
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.
Fixed
- C#: a type named like its file.
struct Moneyinmoney.quodwas proved, and its C# did not compile. The class of the file is nowMoneyModule, and the typeMoneyModule.Money. Okwhereoption.Okis meant. The message now gives the full name of a case of an imported module.- A literal in the cases of a
matchtakes the bounded type its context wants, as in the branches of anif:let p: i32 = match c { Regular => 0, Staff => 30 };neededto_i32.
Measured
- An agent on the features of 0.3, on 0.3.0: Haiku wrote 12 small tasks 3 times each from the reference alone. 36 of 36 verified and passed hidden tests, and 33 of 36 compiled in C#. No cost of
i32againstintcould be seen, on tasks this small. They are easy, and the contracts were not measured: this says the features can be written, not that they hold on a real program. - All compiler tests pass. The mutant benches were not rerun: no proof changes.
Known
Those of 0.3.0, except the above.
- A function whose body is made of statements cannot be used in a contract, and that includes
strings.find: a contract needs a function of a single expression. i32 * i32staysi32when anintis expected, and must fit:let q: int = x;widens first.