Skip to content

Evaluate and document Aplite sampling distribution guarantees #2187

Open

Description

@tignear

The approximate sampler introduced in #2184 should not block initial SystemVerilog constrained randomize integration. Track distribution guarantees separately from satisfying constraints correctly.

Current implementation follows a UniGen2-style policy with bounded cells and seeded randomness. It does not yet establish that the paper's probability bounds transfer to this implementation, including projected variables, cached parameter estimates, finite PRNG state, resource limits and batch dependence. Statistical regression tests are not proofs.

Follow-up:

  • Audit the implemented policy against the paper's assumptions and state an accurate approximation contract, including failure conditioning and the fixed tolerance.
  • Evaluate practical distribution quality and performance on representative SV constraints; compare against existing simulators without treating their behavior as the specification.
  • Consider exact sampling for cheaply countable domains where useful. Do not require general exact model counting or full-space enumeration for initial randomize support.
  • Preserve the distinction between proved UNSAT and resource exhaustion/Unknown at the SV boundary; document unsupported dist, solve-before and randc combinations.

Reference: https://people.eecs.berkeley.edu/~sseshia/pubdir/tacas15.pdf

Initial SV integration: #2194 deliberately uses seeded SAT model search rather than the hash-cell sampler. This prioritizes satisfying constraints and avoids exposing cell-acceptance failures as normal randomize failures. Its output is not claimed to be uniform; evaluating and improving that policy belongs to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions