Issue #2776: proved.nika: unproved test asserts are counted a second time as “(no reason)” sites

Open and answer this issue on GitHub.

decision, solver · opened 2026-11-22 · updated 2026-11-22 · 1 comment

Found

The driver reported a drop in the proof figure between b7c2f2a3 (0.0.1538) and ceef6975 (0.0.1547). In docs/briefs/solver/proved.log, operations went from 1561/2403 (64.96 %) to 1571/2427 (64.73 %), and the reason table’s “(no reason)” count went from 249 to 290.

I measured both commits again the way drive_proved does, and the figures match. No prover regression is behind them. No site that was proved at b7c2f2a3 is unproved at ceef6975, for indexes or for operations. The change comes from new code: 24 new operation sites, of which 10 are proved and 14 are not.

Unproved Commit Where the new sites are
4 edd8776b9 check_core_stmt.nika
3 b6c2c90c9 order.nika:par_report
1 each 17b8190a2, dbf4adfab  
1 each 39dbb9fc3, aa09aa382, 7653f9c14, 40fdb621f, b5b73a6f1 the *_connect functions of the passes: walk.next + 1

The “(no reason)” row is a defect in how it is labelled. scripts/proved.nika:136 takes every line that has " checked" and files any line without ": " after it as “(no reason)”. At both commits, every such line is an assert that is “checked when the test runs”, not an index or an operation. The row therefore counts the unproved test asserts a second time. It always equals the claims line’s “N not proved” (249, then 290). The 41 new ones are test asserts in the passes that moved to per-function entries:

Asserts Pass Commit
12 touch b5b73a6f1
10 panics 7653f9c14
8 throws 40fdb621f
6 locks aa09aa382
5 keeps 39dbb9fc3

The row hides the real number of sites without a reason and makes the reason table look worse than it is.

To build

  1. In the reason loop of scripts/proved.nika, skip the claim lines (checked when the test runs and the other forms the claims line already counts) so that they are not counted as a reason.
  2. If a site with no reason is still left after that, keep it under “(no reason)”. It is then a real site, and #1105 covers it.

Done when

Not part of this issue

Nine of the 14 new unproved operations need one shape to be proved:

Comments

keywan-ghadami, 2026-11-22

Driver: #2776 is not queued, its form misses what a builder needs (nikaia run scripts/issue-check.nika -- 2776, docs/issues.md, #2003):

Label swapped from ready to decision: add what is missing (a Needs #M line for an issue it waits for, or Part of #M), then set ready again.


Generated by Claude Code

Back to Open Issues