*Continent · 2 territory* ## Summary A Z3 cross-check of the rulebooks runs inside npm test, and the records give two different sets of run figures for it without saying which run each belongs to. ## Explanation - The Z3 cross-check in `test/z3-crosscheck.test.ts` agrees with Z3 on every generated pair, and z3-solver is a devDependency only. - `test/z3-crosscheck.test.ts` agrees with Z3 on every generated pair, and z3-solver is a devDependency only. - The Z3 cross-check in `test/z3-crosscheck.test.ts` must keep agreeing on every pair. - The Z3 cross-check in `test/z3-crosscheck.test.ts` must keep agreeing on every pair. - The reachability law is cross-checked against the Z3 SMT solver on every generated pair in `npm test`. - The reachability law is cross-checked against the Z3 SMT solver on every generated pair in `npm test`. - In PROVENANCE.md the Z3 line read `z3 cross-check: 341 rulebooks, 2046 pairs (796 overlapping, 1250 disjoint; 241 overlapping on facts but unreachable), 122 unconditional never rules, 796 witnesses, 14.4 s`. - The Z3 line read `z3 cross-check: 341 rulebooks, 2046 pairs (796 overlapping, 1250 disjoint; 241 overlapping on facts but unreachable), 122 unconditional never… - In robot-domain-rules-CHANGELOG.md a Z3 cross-check in test/z3-crosscheck.test.ts runs in npm test: hundreds of seeded rulebooks are encoded into the Z3 SMT solver, the checker must agree on every pair, and every witness must satisfy both formulas — 306 rulebooks, 1,836 pairs, 1,115 witnesses, about 6 s. - A Z3 cross-check in test/z3-crosscheck.test.ts runs in npm test: hundreds of seeded rulebooks are encoded into the Z3 SMT solver, the checker must agree on eve… - In robot-domain-rules-CHANGELOG.md the run covers 341 rulebooks, 2,046 pairs (241 overlapping on facts but unreachable), 122 unconditional never rules and 796 witnesses. - The run covers 341 rulebooks, 2,046 pairs (241 overlapping on facts but unreachable), 122 unconditional never rules and 796 witnesses. - The changelog's description of the test and the changelog's run figures give two different counts for the same cross-check — 306 rulebooks, 1,836 pairs and 1,115 witnesses against 341 rulebooks, 2,046 pairs and 796 witnesses — and the records do not say which run each set belongs to. - A Z3 cross-check in test/z3-crosscheck.test.ts runs in npm test: hundreds of seeded rulebooks are encoded into the Z3 SMT solver, the checker must agree on eve… - The run covers 341 rulebooks, 2,046 pairs (241 overlapping on facts but unreachable), 122 unconditional never rules and 796 witnesses. ## Threads - The Z3 cross-check in test/z3-crosscheck.test.ts and its rule that it must agree on every pair, with z3-solver as a devDependency only - `test/z3-crosscheck.test.ts` agrees with Z3 on every generated pair, and z3-solver is a devDependency only. - The Z3 cross-check in `test/z3-crosscheck.test.ts` must keep agreeing on every pair. - The reachability law is cross-checked against the Z3 SMT solver on every generated pair in `npm test`. - The logged run figures: 341 rulebooks, 2,046 pairs, 122 unconditional never rules, 796 witnesses, 14.4 s - The Z3 line read `z3 cross-check: 341 rulebooks, 2046 pairs (796 overlapping, 1250 disjoint; 241 overlapping on facts but unreachable), 122 unconditional never… - The run covers 341 rulebooks, 2,046 pairs (241 overlapping on facts but unreachable), 122 unconditional never rules and 796 witnesses. - The changelog's description of the test: 306 rulebooks, 1,836 pairs, 1,115 witnesses, about 6 s - A Z3 cross-check in test/z3-crosscheck.test.ts runs in npm test: hundreds of seeded rulebooks are encoded into the Z3 SMT solver, the checker must agree on eve… ## Consultant **Where it shows up** — The Z3 cross-check keeps coming up: it runs in npm test over seeded rulebooks, must agree on every pair, and its logged figures sit in PROVENANCE.md and robot-domain-rules-CHANGELOG.md. **A question to sit with** — Which run do the 306-rulebook figures and the 341-rulebook figures each describe, and what changed between them? **A way forward** — Keep the Z3 cross-check in npm test as it is, and add the run date and rulebook count beside each set of figures so the two runs read as two runs. ## Territories - [[Bevia/World/Territories/Z3 cross-check agreeing on every generated pair|Z3 cross-check agreeing on every generated pair]] - [[Bevia/World/Territories/Z3 cross-check counts and timing|Z3 cross-check counts and timing]]