Issue #1964: QF_LRA family LassoRanker: ours 0 of 1, z3 and cvc5 1; `nikaia run…

Open and answer this issue on GitHub.

blocked, solver · opened 2026-11-17 · updated 2026-11-21 · 5 comments

Filed by the driver from the Found: of the run of issue-1338 (#1338) (owner, 2026-11-06).

Found

QF_LRA family LassoRanker: ours 0 of 1, z3 and cvc5 1; nikaia run scripts/solver.nika -- run target/smtlib/qflra/LassoRanker/SV-COMP-HarrisLalNoriRajamani-2010SAS-Fig1_true-termination.c_Iteration1_Lasso_4-pieceTemplate.smt2 stops at the case budget; compare prints [unsat] ours unknown 15001ms | z3 unsat 1550ms | cvc5 unsat 9319ms; cause unknown

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Comments

keywan-ghadami, 2026-11-18

Brief queued: issue-1964


agent: builder model: opus max_turns: 200 budget_usd: 30 effort: medium —

Issue #1964

Your work order is issue #1964, inlined below with its comments. There is no brief written around it: plan your own steps from its To build list, build them in order, commit after each finished step, and end when its Done when holds (or at the limits of builder.md, reporting what is left). The facts in your prompt are Core of docs/builder-facts.md; more on a topic: nikaia run scripts/syntax.nika -- KEYWORD, a probe: nikaia run scripts/probe.nika -- SNIPPET.

Measure the issue against docs/issues.md while you work: what it lacked, what was wrong in it. That answer goes into the report’s Issue: field. A finding, a changed plan or a finished item also goes into the issue as a comment (gh api repos/Nikaia-Foundation/Nikaia/issues/1964/comments -F body=@file, ending with the Claude Code footer), rule I13.

Rules (CLAUDE.md; shared checkout)

Report (at most 15 lines, to exactly /home/user/Nikaia/docs/briefs/solver/issue-1964.md.report.md)

Fields: Result, Files, Commit, Body (optional), Fixes, Pushed, Tests, Gate, Deviation, Found, Needs, Changelog, Issue, Owner (a question for the owner), Comment (#N <text>, what to say on another issue; the driver posts it, one line each), Friction, Disk freed, and last Attribution: with your commit trailer lines below it.


Generated by Claude Code

keywan-ghadami, 2026-11-18

Run: issue-1964, Result: blocked

Tokens: input 98, cache read 3590357, cache write 91283, output 15323 Cost: 1.80 USD, time 1 min 1 s, turns 49

Report

Result: blocked Files: none Commit: none Body: Reproduced on HEAD 810fdc027 (binary current): nikaia run scripts/solver.nika -- run --stats target/smtlib/qflra/LassoRanker/SV-COMP-HarrisLalNoriRajamani-2010SAS-Fig1_true-termination.c_Iteration1_Lasso_4-pieceTemplate.smt2 gives unknown (cases) 1028, stats: conflicts 15, theory conflicts 12, lemmas 183 (repeated 0), decisions 472 in 2 s; the 15001 ms timeout of the Found predates the per-pivot case cost of #2048. On a git archive HEAD copy with lg_budget() raised to cases: 1000000 (logic_lia.nika) the default engine and --engine new-simplex both give unknown (overflow) 3634 after 129 s (conflicts 21, theory conflicts 13, lemmas 492, decisions 2647), and --engine new-fm gives unknown (theory) 0. With each self.overflow() call numbered, the fatal site is SvSimplex::feasible in sv_simplex.nika (line 731, if !pivoted { return self.overflow() }): each candidate pivot fails because sv_row_eliminate/sv_row_combine (sv_row.nika) would leave i64, even though the file’s coefficients are only 0, ±1 and ±2. Both stops are by design: the 1024-case lg_budget (and #2048’s 1 + 2·pivots per check), and ADR-270 D11 (i64 values; a step that would leave it is not taken, otherwise unknown (overflow)). So no defect to fix, nothing committed. Pushed: none Tests: none run beyond the probes in Body (nothing changed) Gate: green Deviation: none Found: QF_LRA LassoRanker SV-COMP-HarrisLalNoriRajamani-2010SAS-Fig1_true-termination.c_Iteration1_Lasso_4-pieceTemplate.smt2 (z3 unsat 1.5 s): on HEAD 810fdc027 it stops by design at lg_budget (unknown (cases) 1028), and with cases: 1000000 in logic_lia.nika lg_budget it ends unknown (overflow) 3634 (--engine new-simplex the same, new-fm unknown (theory) 0); traced: SvSimplex::feasible (sv_simplex.nika:731), where every entering candidate’s pivot fails because sv_row_eliminate/sv_row_combine leaves i64. ADR-270 D11 says a measured set with overflow unknowns reopens the number decision; no decision yet on a wider number (a high-half product method, per D11’s correction of 2026-11-10) or a smarter pivot choice that keeps tableau rows small, nor on whether the case budget should cover a file needing more than 3634 cases Needs: supervisor decision Changelog: none Issue: broke I7: the Found says cause unknown and names no function; the file stops at the case budget by design (lg_budget, #2048), and past it the simplex’s i64 limit (ADR-270 D11) stops it, so the issue is a capability question for a decision, not a defect Owner: Should ADR-270 D11 be reopened for LassoRanker-style QF_LRA? Its simplex tableau rows leave i64 after about 2600 decisions, even though the file’s coefficients are only 0, ±1 and ±2. Friction: running a raised budget or an instrumented solver needs a full git archive copy with git init and a copied target/fast/nikaia, because scripts/solver.nika finds its repository via git rev-parse and its compiler only under the copy’s target/fast; a --cases N flag on solver.nika run would replace the copy Disk freed: scratch copy removed; target/nikaia-project-tests 407M, / 7.7G free of 252G; no new cache entry over 100 MB Attribution: Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01UVxJDwk9ubq9teP7QCErff

Debrief

  1. Cost: most of the time went to experiments with the solver rebuilt in a scratch copy: four builds of about 2 minutes each, plus a 2-minute run per budget or engine. The first try failed because solver.nika could not find nikaia in the copy, and the next showed that a Nikaia panic prints no backtrace, so I had to number the overflow sites by hand.
  2. Looked up: ADR-270 D11, which makes overflow an unknown on purpose and says a measured overflow set reopens it. Also lg_budget in logic_lia.nika and the #2048 cost per pivot. The brief could have named D11 and lg_budget for any solver issue that ends in “stops at the case budget”.
  3. Checks: the HEAD probe (needed), the raised-budget run (decisive), the per-engine runs (useful), and the overflow site numbered per call (decisive). Wasted: the run without target/fast/nikaia in the copy, and the panic run that gave no backtrace.
  4. Change: let solver.nika run take --cases N, or document how to raise the budget, plus an env flag that makes an overflow print its site. Either one replaces the scratch copy and two rebuilds.
  5. Issue:
    • broke I7: the Found named no cause and no function, and did not say whether the case budget or overflow ends the search.
    • wrong I5: the quoted 15001 ms timeout predates #2048; today it is unknown (cases) 1028 in 2 s.
    • rules-gap: a solver-capability Found (“ours unknown, z3 solves”) has no rule asking it to say whether a by-design limit (budget, D11) is the stop. Such issues are decision questions, not defects.
  6. Facts:
    • Fact: Probes scripts/solver.nika in a git archive copy needs git init and target/fast/nikaia copied into the copy, or it stops at “No nikaia found”.
    • Fact: Probes A Nikaia panic in the solver rod prints only its file:line, no backtrace, so to find which call site fired, give each site its own label.
    • Fact: Core A solver unknown (cases) is the fixed lg_budget (1024, logic_lia.nika), and unknown (overflow) is ADR-270 D11 by design; raise the budget in a copy first to see which limit really stops a file.

Generated by Claude Code

keywan-ghadami, 2026-11-18

The report of the run of issue-1964 (#1964) judged this issue against docs/issues.md; the author fixes the issue by the rule it names (How a run judges its issue):


Generated by Claude Code

keywan-ghadami, 2026-11-18

Driver: not queued, this issue waits for #2101, which is still open (#1819). Set ready again when it is closed.


Generated by Claude Code

keywan-ghadami, 2026-11-21

Still blocked. The pivot change it waited for (#2101) is on develop since 694f5100, but LassoRanker still overflows: every pivot leaves i64 because the tableau coefficients reach about 2^62. That is now “Simplex: the last two QF_LRA overflows - does the equality elimination grow the coefficients to 2^62?” (#2657). This issue waits for #2657.


Generated by Claude Code

Back to Open Issues