Issue #1320: The solver works on one hard query with every thread: portfolio, cube-and-conquer, shared clauses (ADR-270 D8 step 7)

Open and answer this issue on GitHub.

blocked · opened 2026-11-07 · updated 2026-11-07 · 0 comments

Part of #1053. Blocked on the issue for ADR-270 D8 step 4 (#1319), which builds the batch entry and the lemma store this extends. ADR-270 D8 step 7.

Goal

Parallel inside one hard query (D18, second bullet): portfolios, cube-and-conquer and the sharing of clauses and bounds. Measured by the solved count and PAR-2 on QF_LIA’s hard unsatisfiable instances, against z3 and cvc5 in their parallel modes (D17). The compiler’s queries do not need this (about 4 µs each, D9). It is for SMT-LIB-sized queries and large projects.

To build

  1. Portfolio: two or more pipelines of the strategy layer (D14) race on one query, and the first answer counts. Every answer carries its proof and is checked (D5, D3), so the race changes how soon an answer comes, never what is true. The losers are stopped through the solver’s work budget, which is checked at the expensive steps. Test: tests/compiler/tests/solver_portfolio.nika + .stdout. Its answers equal the single-pipeline answers on the stress families.
  2. Cube-and-conquer: a look-ahead picks the split literals and turns the query into cubes, solved in parallel and answered in any order. Proved needs every cube proved, and the certificate is the cubes’ proofs joined by resolution over the split literals. Refuted needs one cube’s model, evaluated against the whole query. Test: solver_cubes.nika. A query split into 2^k cubes gives the same answer as the whole query, and the joined certificate checks.
  3. Sharing: engines exchange learned clauses (each with its proof step, glue at most a named limit) and derived bounds, whenever they find them, with no epochs to wait at (D18). A shared clause enters a log only with its proof step. Each thread keeps its own arenas over the frozen query (D16), with nothing written behind a lock in the core.
  4. The figures, recorded in this issue: on the unsatisfiable files of tests/solver/qflia that take more than one second single-threaded (the list is written into the issue), solved count and PAR-2 at 1, 2, 4 and 8 threads. Compared with z3 parallel.enable=true and cvc5’s parallel mode on the same machine, as scripts/solver.nika already runs z3 (#1281). The speedup is measured as #1319 adds to docs/measuring.md.

Done when

Portfolio, cube-and-conquer and sharing are built with their tests. Every answer at every thread count checks, and the figures against z3 and cvc5 in parallel mode are recorded here.

Files and limits

Ruled out


Generated by Claude Code

Back to Open Issues