• 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
          • Address
          • Wire
          • Module
          • Lhs
            • Lhs.lisp
              • Lhs-vars-normorderedp
              • Lhs-norm
              • Lhatom-normorderedp
              • Lhs-normp
              • Svex-lhsrewrite-aux
              • Lhs-concat
              • Lhs-check-masks
              • Lhrange-combine
              • Svexarr-vars-aux
              • Assigns-check-masks
              • Svex->lhs-range
              • Svex-lhs-preproc-blkrev
              • Svarlist-boundedp-badguy
              • Driverlist-rest-after-strength
              • Aliases-normorderedp
              • Lhs-rsh
              • Lhs-cons
              • Svarlist-boundedp
              • Lhs-bitproj
              • Lhs-vars
              • Driver
              • Svex-override
              • Make-simple-lhs
              • Lhssvex-range-p
              • Lhs-override
              • Lhs-first-aux
              • Lhrange-combinable-dec
              • Lhrange-bitproj
              • Lhatom
              • Driverlist-values-of-strength
              • Lhs-rest-aux
              • Lhs-rest
              • Aliases-normorderedp-aux
              • Svexarr-vars
              • Lhsarr-to-svexarr
              • Svexarr-vars-witness-aux
              • Lhbit
              • Svex-lhsrewrite
              • Svar-boundedp
              • Lhs-decomp-aux
              • Svex->lhs-bound
              • Aliases-vars-aux
              • Svexarr
              • Svexarr-vars-witness
              • Svar-set-index
              • Lhsarr
              • Lhs-override-vars
              • Lhatom-eval-zero
              • Lhatom-bitproj
              • Lhrange-nextbit
              • Lhrange-combinable
              • Driverlist->svex
              • Svexlist-resolve
              • Lhs->svex-zero
              • Lhs-overridelist-vars
              • Lhs-overridelist-keys
              • Lhbit-eval
              • Driverlist-vars
              • Assigns-vars
              • Svex-int
              • Lhssvex-bounded-p
              • Lhslist-vars
              • Lhs-decomp
              • Lhatom-vars
              • Svar-map-vars
              • Lhssvex-unbounded-p
              • Lhspairs-vars
              • Lhs-width
              • Aliases-vars
              • Lhs-first
              • Svar-index
              • Assigns
                • Assigns-p
                  • Assigns-fix
                  • Assigns-equiv
                • Svar-indexedp
                • Lhspairs
                • Svex-overridelist
                • Lhslist
                • Lhs-overridelist
                • Driverlist
                • Svex-lhs-preproc
                • Svexarr-fix
                • Lhsarr-fix
              • Lhs-p
              • Lhs-fix
              • Lhrange
              • Lhs-eval-zx
              • Lhs-equiv
              • Lhs-eval
              • Lhs->svex
            • Path
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Assigns

    Assigns-p

    Recognizer for assigns.

    Signature
    (assigns-p x) → *

    Definitions and Theorems

    Function: assigns-p

    (defun assigns-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'assigns-p))
        (declare (ignorable __function__))
        (if (atom x)
            t
          (and (consp (car x))
               (lhs-p (caar x))
               (driver-p (cdar x))
               (assigns-p (cdr x))))))

    Theorem: assigns-p-of-butlast

    (defthm assigns-p-of-butlast
      (implies (assigns-p (double-rewrite x))
               (assigns-p (butlast x acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-update-nth

    (defthm assigns-p-of-update-nth
      (implies (assigns-p (double-rewrite x))
               (iff (assigns-p (update-nth acl2::n y x))
                    (and (and (consp y)
                              (lhs-p (car y))
                              (driver-p (cdr y)))
                         (or (<= (nfix acl2::n) (len x))
                             (and (consp nil)
                                  (lhs-p (car nil))
                                  (driver-p (cdr nil)))))))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-union-equal

    (defthm assigns-p-of-union-equal
      (equal (assigns-p (union-equal x y))
             (and (assigns-p (list-fix x))
                  (assigns-p (double-rewrite y))))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-intersection-equal-2

    (defthm assigns-p-of-intersection-equal-2
      (implies (assigns-p (double-rewrite y))
               (assigns-p (intersection-equal x y)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-intersection-equal-1

    (defthm assigns-p-of-intersection-equal-1
      (implies (assigns-p (double-rewrite x))
               (assigns-p (intersection-equal x y)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-set-difference-equal

    (defthm assigns-p-of-set-difference-equal
      (implies (assigns-p x)
               (assigns-p (set-difference-equal x y)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-set-equiv-congruence

    (defthm assigns-p-set-equiv-congruence
      (implies (set-equiv x y)
               (equal (assigns-p x) (assigns-p y)))
      :rule-classes :congruence)

    Theorem: assigns-p-when-subsetp-equal

    (defthm assigns-p-when-subsetp-equal
      (and (implies (and (subsetp-equal x y) (assigns-p y))
                    (assigns-p x))
           (implies (and (assigns-p y) (subsetp-equal x y))
                    (assigns-p x)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-rcons

    (defthm assigns-p-of-rcons
      (iff (assigns-p (acl2::rcons acl2::a x))
           (and (and (consp acl2::a)
                     (lhs-p (car acl2::a))
                     (driver-p (cdr acl2::a)))
                (assigns-p (list-fix x))))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-repeat

    (defthm assigns-p-of-repeat
      (iff (assigns-p (repeat acl2::n x))
           (or (and (consp x)
                    (lhs-p (car x))
                    (driver-p (cdr x)))
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-rev

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

    Theorem: assigns-p-of-list-fix

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

    Theorem: assigns-p-of-append

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

    Theorem: assigns-p-when-not-consp

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

    Theorem: assigns-p-of-cdr-when-assigns-p

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

    Theorem: assigns-p-of-cons

    (defthm assigns-p-of-cons
      (equal (assigns-p (cons acl2::a x))
             (and (and (consp acl2::a)
                       (lhs-p (car acl2::a))
                       (driver-p (cdr acl2::a)))
                  (assigns-p x)))
      :rule-classes ((:rewrite)))

    Theorem: assigns-p-of-fast-alist-clean

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

    Theorem: assigns-p-of-hons-shrink-alist

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

    Theorem: assigns-p-of-hons-acons

    (defthm assigns-p-of-hons-acons
      (equal (assigns-p (hons-acons acl2::a acl2::n x))
             (and (lhs-p acl2::a)
                  (driver-p acl2::n)
                  (assigns-p x)))
      :rule-classes ((:rewrite)))

    Theorem: driver-p-of-cdr-of-hons-assoc-equal-when-assigns-p

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

    Theorem: driver-p-of-cdar-when-assigns-p

    (defthm driver-p-of-cdar-when-assigns-p
      (implies (assigns-p x)
               (iff (driver-p (cdar x))
                    (or (consp x) (driver-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: lhs-p-of-caar-when-assigns-p

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