Skip to content

feat(aplite): add reproducible seeded scalar model search - #2168

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/aplite/add-reproducible-seeded-scalar-model-search--cc9fb9fe
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/aplite/add-reproducible-seeded-scalar-model-search--cc9fb9fe

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Aplite's fixed SAT phases produce the same witness for repeated scalar queries. Add solve_seeded with caller-owned seed-selected initial phases so constrained-randomization consumers can vary witnesses without changing the asserted formula or using global RNG state. Keep the existing proof search paths unchanged and use one bounded CDCL search for seeded queries. Replay all SAT assignments against the original formula and context; unsupported arrays and exhausted budgets return Unknown.

This is a seeded search primitive, not uniform sampling. IEEE 1800-2023 section 18.5.9 requires uniform legal-combination distributions unless ordering changes them. Distribution policy, solve-before, randc and SystemVerilog frontend/runtime integration remain follow-up work; this PR does not claim constrained-randomization conformance.

Validation: all 73 existing Aplite unit tests plus five seeded regressions, two README doctests, exhaustive two-Boolean truth-table oracle across 16 seeds, constrained bit-vector model diversity and replay, seed reproducibility, unique/unsatisfiable inputs and budget/unsupported cases. Lydite IR (38), solver (29) and kernel integration (5) tests passed with Z3 configured. Affected all-target clippy, cargo fmt, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run.

Depends-On: #2167

Aplite's fixed SAT phases produce the same witness for repeated scalar queries. Add solve_seeded with caller-owned seed-selected initial phases so constrained-randomization consumers can vary witnesses without changing the asserted formula or using global RNG state. Keep the existing proof search paths unchanged and use one bounded CDCL search for seeded queries. Replay all SAT assignments against the original formula and context; unsupported arrays and exhausted budgets return Unknown.

This is a seeded search primitive, not uniform sampling. IEEE 1800-2023 section 18.5.9 requires uniform legal-combination distributions unless ordering changes them. Distribution policy, solve-before, randc and SystemVerilog frontend/runtime integration remain follow-up work; this PR does not claim constrained-randomization conformance.

Validation: all 73 existing Aplite unit tests plus five seeded regressions, two README doctests, exhaustive two-Boolean truth-table oracle across 16 seeds, constrained bit-vector model diversity and replay, seed reproducibility, unique/unsatisfiable inputs and budget/unsupported cases. Lydite IR (38), solver (29) and kernel integration (5) tests passed with Z3 configured. Affected all-target clippy, cargo fmt, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run.
Change-Id: Icc9fb9fedd174944495a3cef3d16c9a3b8f1bafb
@tignear

tignear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(aplite): add reproducible seeded scalar model search #2168 👈
2 test(aplite): keep exhaustive sampling as a small-domain oracle #2170
3 feat(aplite): reuse compiled queries with temporary assumptions #2175
4 feat(aplite): query bounded projected XOR cells #2177
5 perf(aplite): reduce affine XOR rows before bit blasting #2183
6 feat(aplite): generate approximate projected sample batches #2184

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:34:12.280872Z 3c53fe3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 41 minutes 11 seconds in the queue, including 38 minutes 46 seconds running CI.

Required conditions to merge

Base automatically changed from stack/tignear/feat/aplite/extract-independently-versioned-finite-solver--912d3583 to master October 26, 2026 17:24
@mergify
mergify Bot merged commit ad322c5 into master Oct 26, 2026
24 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/aplite/add-reproducible-seeded-scalar-model-search--cc9fb9fe branch October 26, 2026 17:36
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant