Issue #3003: A search from an empty book proves less than the grown book (panics=true in yaml, benches/lowering)

Open and answer this issue on GitHub.

ready · opened 2026-11-30 · updated 2026-11-30 · 0 comments

Found while building “nikaia.proofs: a trace per walked function; –search-unproved” (#2991). The binary before that change does the same.

A build of packages/yaml from an empty book changes panics=false to panics=true in the contracts of digits_in, leading_zero_digits, reads_as_other and requested. benches/lowering changes in the same way. So a search from scratch proves less than the book that grew over many builds holds, and a fresh checkout without the book would publish weaker contracts.

The owner’s rule is “no proof is lost” (2026-11-30). A proof must not depend on the history of the book.

To build

  1. Find, for digits_in in yaml, which proved entry in the grown book has no counterpart in a search from scratch. Diff the two books, and use NIKAIA_DUMP_QUERIES.
  2. Sort the cause: either a guess the search makes only when an older entry exists (order or history dependence), or a proof found by an earlier prover that the current one no longer finds.
  3. Fix it so that a search from an empty book proves what the grown book holds, or, if a proof is genuinely beyond the current prover, record that here as a decision.
  4. Add a test in tests/compiler/tests/: one build from no book gives the same contracts as the committed book.

Done when yaml and benches/lowering from an empty book give the committed contracts.


Generated by Claude Code

Back to Open Issues