Issue #2693: The sites new in 0.0.1529–0.0.1539 that the prover leaves checked are proved (operations −0.24 and −0.36 points)

Open and answer this issue on GitHub.

ready · opened 2026-11-22 · updated 2026-11-22 · 1 comment

Found while handling the bug lane driver’s PROVED FELL 11387c90: operations -0.24 points since 0.0.1528 7f34ccfb, in 7f34ccfb..11387c90.

Symptom

The proved measurement (#1823) fell from 65.27 % to 65.03 % of operations between 0.0.1528 (7f34ccfb) and 0.0.1531 (11387c90). No proved site was lost: in every file the proved count stayed the same or rose. The fall comes from new code whose operations the prover does not prove.

Probe (I5)

On both SHAs, in a worktree: nikaia lower-std --bounds --asserts --sysroot tree/crates > bounds-report.txt, then compare the per-file bounds in <path>: N indexes, P proved; M operations, Q proved lines and the checked: rows.

New unproved sites (11387c90 against 7f34ccfb):

File Site Reason the prover gives Commit
check_arith.nika self.flow.unknown_said += 1 a field no rule of its type bounds (ADR-369 D4) a92cf3bcc
check_core_stmt.nika 4 × reads += found a loop counter on line 70 (ADR-361 D13) 1b43b5542 “A map’s read beside an owned arm is copied out; arms that are all reads stay a view”
emit_out.nika entry.end + offset, entry.start + offset an element of a named list (ADR-306 D7) a01e3de40 “emitter: a task’s or an async group’s body keeps its source map when wrapped”
prover_walk.nika first + 1; i - first no fact bounds it; an element of a named list 1b22d2fd7 “The raw-sink check pairs each root of fs::copy_between with its own name”
tether.nika line + 1 an element of a call’s result (ADR-306 D24) a53a5b676 “–tethers and the language server narrate each give and each in-place replace”
toml.nika (new) 11 asserts, all checked by a test — f6e6034b6 “The compiler reads TOML into a declared struct through a grammar, Toml::read[T]”

Governing decision (I6)

The proved measurement after each push (#1823): a fall is filed for the prover lane. For each new site, the builder chooses whether a new prover rule proves it or a precondition, assert or field rule in the new code does, following the ADRs that the reasons cite.

Cause (I7)

traced: the rows above, read from the two reports; no prover rule changed in the range.

Done when

lower-std --bounds on develop reports each site of the table as proved, or the report states for a site why no rule the ADRs allow can prove it; that site keeps checked:.

To build

  1. check_core_stmt.nika reads += found and check_arith.nika unknown_said += 1: give the counters a bound the prover reads (a field rule, ADR-369 D4; the loop-counter form, ADR-361 D13). Test: in a tests/compiler/tests/ case or the existing bounds test, the --bounds rows of those files show proved.
  2. emit_out.nika, prover_walk.nika, tether.nika: the list-element and call-result sums (ADR-306 D7, D24) get a precondition or assert in the code; first + 1 and i - first get a fact from the loop. Test: as in step 1.
  3. toml.nika asserts: prove the ones the prover can reach; the rest stay checked by a test.

Files and limits (I11)

Change: the six compiler files named, and a prover rule only if a site shape is common and its ADR allows it. Not: scripts/proved.nika, the driver.

Ruled out (I12)

A prover regression: no file lost a proved site.

Comments

keywan-ghadami, 2026-11-22

The performance driver reported the next fall in the same series: PROVED FELL 6a66336b: operations -0.36 points since 0.0.1530 e8674505, in e8674505..6a66336b (65.19 % → 64.83 %, 1562/2396 → 1565/2414 operations proved). The probe is the same as above (nikaia lower-std --bounds --asserts on both SHAs, then a diff of the checked: rows). Again no proved site was lost; every new unproved site is in new code. The four reads += found sites and the two emit_out.nika sites are already in the table above. These sites are new and are added to this issue’s To build:

File Site Reason the prover gives Commit
check_core_stmt.nika (check_core_returned_counted) grammars -= 1; files -= 1; grammars += 1; (named[name] ?? 0) + 1 no fact bounds it; a map’s value (ADR-306 D24); a loop counter on line 4713 (ADR-361 D13); an element of a named list (ADR-306 D7, D21) edd8776b9 “check: a package’s file checks share the facts worked out once for the package”
order.nika (the --overlaps par_iter listing) at + count, at + k, sites[at + k], at += count; line_at(…).0 + 1; line - 1, lines[line - 1] a loop counter on line 1042 (ADR-361 D13); a field of a value that is not a name (#384); no fact bounds it b6c2c90c9 “The ledger records how each par_iter call runs…” (ADR-async-5 D32)
emit_out.nika a second entry.end + offset, entry.start + offset (line 194, append) an element of a named list (ADR-306 D7, D21) a01e3de40 (as above)

The title’s range now covers 0.0.1529–0.0.1539.


Generated by Claude Code

Back to Open Issues