• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
      • Aig
        • Aig-constructors
        • Aig-vars
        • Aig-sat
        • Bddify
        • Aig-substitution
        • Aig-other
          • Best-aig
          • Aig2c
          • Expr-to-aig
          • Aiger-write
          • Aig-random-sim
            • Aig-vecsim60
            • 60-bit-fix
            • Logbitp-env60
              • Init-random-state
              • N-random-60-bit-nats
              • *60-bit-mask*
            • Aiger-read
            • Aig-print
            • Aig-cases
          • Aig-semantics
          • Aig-and-count
        • Satlink
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Projects
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Aig-random-sim

    Logbitp-env60

    Given an ALST binding variables to 60-bit integers as in aig-vecsim60, we extract an ordinary, Boolean-valued alist by using the Ith bit of each variable.

    Signature
    (logbitp-env60 i alst) → *

    Definitions and Theorems

    Function: logbitp-env60

    (defun logbitp-env60 (i alst)
      (declare (xargs :guard t))
      (let ((__function__ 'logbitp-env60))
        (declare (ignorable __function__))
        (cond ((atom alst) nil)
              ((atom (car alst))
               (logbitp-env60 i (cdr alst)))
              (t (cons (cons (caar alst)
                             (if (natp i)
                                 (if (< i 60)
                                     (logbitp i (cdar alst))
                                   nil)
                               (logbitp 0 (cdar alst))))
                       (logbitp-env60 i (cdr alst)))))))