• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
          • Bit-blasting
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
            • Svex-xeval
            • Svex-mono-eval
            • Svex-eval
            • Svex-apply
            • Svex-env
            • Svex-alist-eval
            • Svar-boolmasks-lookup
            • Svex-s4eval
            • Svexlist-unquote
            • Svex-alist-eval-for-symbolic
            • Svexlist-eval
            • Svexlist-quotesp
            • Svar-boolmasks
              • Svar-boolmasks-fix
              • Svar-boolmasks-p
                • Svar-boolmasks-equiv
              • Svexlist-s4eval
              • Svexlist-eval-for-symbolic
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svar-boolmasks

    Svar-boolmasks-p

    Recognizer for svar-boolmasks.

    Signature
    (svar-boolmasks-p x) → *

    Definitions and Theorems

    Function: svar-boolmasks-p

    (defun svar-boolmasks-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'svar-boolmasks-p))
        (declare (ignorable __function__))
        (if (atom x)
            t
          (and (consp (car x))
               (svar-p (caar x))
               (integerp (cdar x))
               (svar-boolmasks-p (cdr x))))))

    Theorem: svar-boolmasks-p-of-repeat

    (defthm svar-boolmasks-p-of-repeat
      (iff (svar-boolmasks-p (repeat acl2::n x))
           (or (and (consp x)
                    (svar-p (car x))
                    (integerp (cdr x)))
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-rev

    (defthm svar-boolmasks-p-of-rev
      (equal (svar-boolmasks-p (rev x))
             (svar-boolmasks-p (list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-list-fix

    (defthm svar-boolmasks-p-of-list-fix
      (equal (svar-boolmasks-p (list-fix x))
             (svar-boolmasks-p x))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-append

    (defthm svar-boolmasks-p-of-append
      (equal (svar-boolmasks-p (append acl2::a acl2::b))
             (and (svar-boolmasks-p acl2::a)
                  (svar-boolmasks-p acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-when-not-consp

    (defthm svar-boolmasks-p-when-not-consp
      (implies (not (consp x))
               (svar-boolmasks-p x))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-cdr-when-svar-boolmasks-p

    (defthm svar-boolmasks-p-of-cdr-when-svar-boolmasks-p
      (implies (svar-boolmasks-p (double-rewrite x))
               (svar-boolmasks-p (cdr x)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-cons

    (defthm svar-boolmasks-p-of-cons
      (equal (svar-boolmasks-p (cons acl2::a x))
             (and (and (consp acl2::a)
                       (svar-p (car acl2::a))
                       (integerp (cdr acl2::a)))
                  (svar-boolmasks-p x)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-fast-alist-clean

    (defthm svar-boolmasks-p-of-fast-alist-clean
      (implies (svar-boolmasks-p x)
               (svar-boolmasks-p (fast-alist-clean x)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-hons-shrink-alist

    (defthm svar-boolmasks-p-of-hons-shrink-alist
      (implies (and (svar-boolmasks-p x)
                    (svar-boolmasks-p y))
               (svar-boolmasks-p (hons-shrink-alist x y)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boolmasks-p-of-hons-acons

    (defthm svar-boolmasks-p-of-hons-acons
      (equal (svar-boolmasks-p (hons-acons acl2::a acl2::n x))
             (and (svar-p acl2::a)
                  (integerp acl2::n)
                  (svar-boolmasks-p x)))
      :rule-classes ((:rewrite)))

    Theorem: integerp-of-cdr-of-hons-assoc-equal-when-svar-boolmasks-p

    (defthm integerp-of-cdr-of-hons-assoc-equal-when-svar-boolmasks-p
      (implies (svar-boolmasks-p x)
               (iff (integerp (cdr (hons-assoc-equal acl2::k x)))
                    (or (hons-assoc-equal acl2::k x)
                        (integerp nil))))
      :rule-classes ((:rewrite)))

    Theorem: integerp-of-cdar-when-svar-boolmasks-p

    (defthm integerp-of-cdar-when-svar-boolmasks-p
      (implies (svar-boolmasks-p x)
               (iff (integerp (cdar x))
                    (or (consp x) (integerp nil))))
      :rule-classes ((:rewrite)))

    Theorem: svar-p-of-caar-when-svar-boolmasks-p

    (defthm svar-p-of-caar-when-svar-boolmasks-p
      (implies (svar-boolmasks-p x)
               (iff (svar-p (caar x))
                    (or (consp x) (svar-p nil))))
      :rule-classes ((:rewrite)))