Issue #2749: BigInt Farkas multipliers in the LRA certificate (LassoRanker Fig1 4-piece ends unknown)

Open and answer this issue on GitHub.

blocked, solver · opened 2026-11-22 · updated 2026-11-23 · 7 comments

Filed by the driver from the Found: of the run of issue-2707 (#2707). Decided by the supervisor on 2026-11-22, following the owner’s decision in #2671 (the i64 fast path stays, with a bignum fallback that has a budget). The decision is in the comment below.

Found

LassoRanker (qflra/LassoRanker/...Fig1...4-pieceTemplate.smt2, run with nikaia run scripts/solver.nika -- run --stats --cases 16384 FILE) resumes in BigInt and then ends unknown (overflow).

The cause is big_conflict in packages/logic/src/sv_simplex.nika:

The instance should be proved (z3 says unsat).

To build

Done when

Comments

keywan-ghadami, 2026-11-22

Supervisor decision, 2026-11-22. This follows from the owner’s decision in #2671 (the i64 fast path stays, with a bignum fallback that has a budget), so it needs no owner round.

The issue is relabelled ready for the solver lane.


Generated by Claude Code

keywan-ghadami, 2026-11-23

From the report of the run of issue-2750 (#2750):

once BigInt Farkas multipliers land, the Heizmann copy4/copy7/init5 and LassoRanker files go on in BigInt past line 1924 and meet big_budget (init5 had already spent 47.5M of 50M within 10 s), so the qflra figures after #2749 should be read against the budget too


Generated by Claude Code

keywan-ghadami, 2026-11-23

Brief queued: issue-2749


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

Issue #2749

Your work order is issue #2749, 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/2749/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-2749.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-23

Run: issue-2749, Result: blocked

Tokens: input 40, cache read 884609, cache write 47047, output 9291 Cost: 0.78 USD, time 3 min 6 s, turns 20

Report

Result: blocked Files: none Commit: none Body: Stopped before the first edit. A BigInt farkas step must also go through the log’s text, because sv_ask_new_kind (packages/logic/src/sv_ask.nika) runs sv_log_of(sv_log_text(steps)) on every proof and panics when the log does not read back, and nikaia.proofs keeps that text. Writing the multipliers works with to_text(). Reading them back needs a BigInt made from decimal text, and std::bigint has no such method; Part I 2.2 lists only of, from_wide and reading back through narrow/sign/bits/the decimal text. The planned build, once that is decided: a new SvStep variant (e.g. BigFarkas(lits, srcs, Vec[BigInt], den)) made only when some multiplier fails narrow(), so the i64 Farkas step and its path stay as they are; big_conflict hands its multipliers over without narrowing; sv_check adds a BigInt combination (sum of BigInt multiplier times the i64 row of each source); SvAssumes.assumed and the step counters in sv_simplex/sv_elim/sv_proof learn the variant; sv_ask gets a letter for it (e.g. F). Fixes: none Pushed: none Tests: ran the issue’s probe on develop c7a59cf67 with target/fast/nikaia, which is current with crates/: nikaia run scripts/solver.nika -- run --stats --cases 16384 target/smtlib/qflra/LassoRanker/SV-COMP-HarrisLalNoriRajamani-2010SAS-Fig1_true-termination.c_Iteration1_Lasso_4-pieceTemplate.smt2 printed unknown (overflow) 9561, stats conflicts 87, theory conflicts 73, lemmas 620, decisions 2862, 1 overflows, resumed in BigInt, 53.7 s wall. No build, nothing else run. Gate: green Deviation: none Found: std::bigint has no way to make a BigInt from its decimal text, and Part I 2.2 does not decide one (it says “read back with narrow() -> i64?, sign() -> i64, bits() -> i64 and its decimal text”, output only); no decision yet. Probe use std::bigint / fn main() throws { let b: bigint::BigInt = bigint::BigInt::parse("123456789012345678901234567890") ?? bigint::BigInt::of(0); println(b.to_text()) } gives error[NK1245]: The compiler can't tell what type bigint::BigInt::parse("123456789012345678901234567890") is., exit 1. The same program with bigint::BigInt::of(123456789) in place of the parse runs, exit 0. Expected: a BigInt::parse(text) -> BigInt? (or a name the supervisor picks) that reads back what to_text() writes, so that a BigInt farkas step in the proof log (sv_log_text / sv_log_of in packages/logic/src/sv_ask.nika) reads back, as sv_ask_new_kind requires. Building the log around it, by writing BigInt limbs as i64 and rebuilding them with of/mul/add, would be the workaround CLAUDE.md forbids. Needs: supervisor decision: a std::bigint read from decimal text (Part I 2.2), which #2749’s log text needs Changelog: none Issue: rules-gap: To build names the farkas step, the checker and big_conflict, but not the log’s text form (sv_ask.nika sv_log_text/sv_log_of, which must read back), and that text form needs a std::bigint parse that Part I 2.2 does not have (I3/I6: the gap was decidable when the issue was filed) Owner: none Comment: #2749 Blocked before building: a BigInt farkas step must go through the proof log’s text (sv_ask.nika sv_log_text/sv_log_of, read back on every proof), and std::bigint has no read from decimal text (Part I 2.2 does not have one). Once a BigInt::parse is decided and built, the plan is a separate SvStep variant with BigInt multipliers, made only when a multiplier fails narrow(), so the i64 path stays as it is. Probe on develop c7a59cf67: LassoRanker Fig1 4-piece ends unknown (overflow) 9561, resumed in BigInt. Friction: none Disk freed: none; target/nikaia-project-tests 1.8G, / 11G free of 252G, no cache entry over 100 MB new in this run Attribution: Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01UVxJDwk9ubq9teP7QCErff

Debrief

  1. Most time: finding out that the log must survive a text round trip (sv_ask.nika’s sv_log_of(sv_log_text(...)), which panics if it fails), and then checking whether std::bigint has any way to read a BigInt back from text. The issue’s own probe took 54 s.
  2. Looked up: the places that match on SvStep (sv_ask, sv_proof, sv_simplex, sv_elim, sv_check), the methods bigint.nika offers, and Part I 2.2 on what BigInt is allowed to do. A list of every place that reads a farkas step would have saved this.
  3. Checks run: the binary against HEAD, three probe.nika runs (the first two failed for my own typing mistakes, so they were wasted), the issue’s probe, and the disk figures. No builds.
  4. One change: the issue builder should grep every reader of the data it widens, including how it is stored and read back, before filing an issue as ready.
  5. What the issue lacked:
    • rules-gap: To build leaves out the proof log’s text form (sv_log_text / sv_log_of), which a BigInt step needs, and that needs a BigInt parse std does not have.
    • knowledge: Probes | std::bigint has no read from decimal text (Part I 2.2 only reads out of a BigInt), so a value that must persist as text cannot be a BigInt yet.
  6. Traps:
    • Fact: Core | Every SvStep variant is written to text and read back by sv_ask.nika (sv_step_text, sv_step_from) and must round-trip, or sv_ask_new_kind panics.
    • Fact: Probes | A call to a method that does not exist on a std Nikaia type (BigInt::parse) shows as NK1245 "can't tell what type", not as an unknown method.
  7. Solver area:
    • Fact: Solver (packages/logic) | LassoRanker Fig1 4-piece, run as nikaia run scripts/solver.nika -- run --stats --cases 16384 FILE, ends unknown (overflow) 9561 after going on in BigInt: 87 conflicts, 2862 decisions, 53.7 s wall (2026-11-23, c7a59cf67).
    • Fact: Solver (packages/logic) | The BigInt conflict is big_conflict in sv_simplex.nika (lines 1870-1928); the farkas step is checked by farkas in sv_check.nika (line 298) and walked by SvAssumes.assumed in sv_proof.nika (line 185).

Generated by Claude Code

keywan-ghadami, 2026-11-23

From the report of the run of issue-2749 (#2749):

Blocked before building: a BigInt farkas step must go through the proof log’s text (sv_ask.nika sv_log_text/sv_log_of, read back on every proof), and std::bigint has no read from decimal text (Part I 2.2 does not have one). Once a BigInt::parse is decided and built, the plan is a separate SvStep variant with BigInt multipliers, made only when a multiplier fails narrow(), so the i64 path stays as it is. Probe on develop c7a59cf67: LassoRanker Fig1 4-piece ends unknown (overflow) 9561, resumed in BigInt.


Generated by Claude Code

keywan-ghadami, 2026-11-23

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


Generated by Claude Code

keywan-ghadami, 2026-11-23

Blocked on “std::bigint: BigInt::parse reads back the decimal text to_text writes” (#2812). The builder’s run on c7a59cf67 found that the certificate log can’t read a BigInt multiplier back without it. That gap is now decided in Part I 2.2 (commit 93705904a) and filed as a ready build.

The builder’s plan stays as it is:

The probe is LassoRanker Fig1, 4 pieces: unknown (overflow) 9561, then the run resumes in BigInt.

Goes back to ready once #2812 lands.


Generated by Claude Code

Back to Open Issues