Skip to content

feat(aplite): generate approximate projected sample batches - #2184

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/aplite/generate-approximate-projected-sample-batches--6b228ea7
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/aplite/generate-approximate-projected-sample-batches--6b228ea7

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Add a seeded Sampler with UniGen2-style parameter estimation and fresh affine XOR cells. Enumerate only bounded cells: spaces with at most 64 projected assignments use an exact small-domain path; larger spaces accept complete cells containing 11 through 63 models and return 11 distinct randomly selected assignments.

Preparation caches the immutable formula, projection and estimated parameters. Each fresh hash family currently builds its own encoding. Preparation and each batch have aggregate work/time budgets; failed estimation, incomplete solving and cell rejection remain errors or Unknown with no partial models or heuristic fallback. Only a proved empty space yields Unsat.

This is approximate sampling, not an exact-uniformity certificate. Document the fixed kappa and broad epsilon, seeded reproducibility conditions, and remaining SV integration, dist, solve-before and randc work.

Validation: 105 Aplite unit tests and 5 doctests, followed by the additional passing permutation regression (106 unit tests total); Lydite IR and solver tests with Z3; clippy for all three crates; formatting; package verification and release/package guards. Regressions cover projected distribution, hidden witnesses, replay, constrained support, 32-bit spaces, permutations and aggregate budget exhaustion. Development-build smoke probes only; no local release build or full RV32I proof run.

Depends-On: #2183

@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 perf(aplite): reduce affine XOR rows before bit blasting #2183
2 feat(aplite): generate approximate projected sample batches #2184 👈
3 feat(sv-syntax)!: retain named constraint expressions #2193
4 feat(sv)!: solve scalar class constraints during randomize #2194

@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-26T18:12:56.277444Z 7c9ef1c New commits
ℹ️ 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
@tignear
tignear force-pushed the stack/tignear/feat/aplite/generate-approximate-projected-sample-batches--6b228ea7 branch from e8ba69c to 461d96b Compare October 26, 2026 17:48
@tignear

tignear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial e8ba69c 2026-10-26 17:48 UTC
2 content e8ba69c → 461d96b Fix #2184 CI rustdoc bare URL warning; validate documentation with warnings denied. 2026-10-26 17:48 UTC
3 rebase 461d96b → 7c9ef1c (rebase only) 2026-10-26 18:10 UTC

@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-26 17:56 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-26 18:12 UTC · at 461d96bd0a562ad446a87e02aa7ddfb285cff359

This pull request spent 15 minutes 57 seconds in the queue, with no time running CI.

Reason

The pull request #2184 has been manually updated

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

Add a seeded Sampler with UniGen2-style parameter estimation and fresh affine XOR cells. Enumerate only bounded cells: spaces with at most 64 projected assignments use an exact small-domain path; larger spaces accept complete cells containing 11 through 63 models and return 11 distinct randomly selected assignments.

Preparation caches the immutable formula, projection and estimated parameters. Each fresh hash family currently builds its own encoding. Preparation and each batch have aggregate work/time budgets; failed estimation, incomplete solving and cell rejection remain errors or Unknown with no partial models or heuristic fallback. Only a proved empty space yields Unsat.

This is approximate sampling, not an exact-uniformity certificate. Document the fixed kappa and broad epsilon, seeded reproducibility conditions, and remaining SV integration, dist, solve-before and randc work.

Validation: 105 Aplite unit tests and 5 doctests, followed by the additional passing permutation regression (106 unit tests total); Lydite IR and solver tests with Z3; clippy for all three crates; formatting; package verification and release/package guards. Regressions cover projected distribution, hidden witnesses, replay, constrained support, 32-bit spaces, permutations and aggregate budget exhaustion. Development-build smoke probes only; no local release build or full RV32I proof run.
Change-Id: I6b228ea76629b92831384582faf9308f39b4bf52
@tignear
tignear force-pushed the stack/tignear/feat/aplite/reduce-affine-xor-rows-bit-blasting--9afa0006 branch from 5030ba1 to 52daeac Compare October 26, 2026 18:10
@tignear
tignear force-pushed the stack/tignear/feat/aplite/generate-approximate-projected-sample-batches--6b228ea7 branch from 461d96b to 7c9ef1c Compare October 26, 2026 18:10
@tignear

tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 26 minutes 31 seconds in the queue, including 32 minutes 50 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#2183 [⛓️ perf(aplite): reduce affine XOR rows before bit blasting #2183]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot deleted the stack/tignear/feat/aplite/generate-approximate-projected-sample-batches--6b228ea7 branch October 26, 2026 19:51
@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