• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
            • Vl-interfaceportlist->ifnames
            • Vl-blockscope
            • Vl-scope-find-item
            • Vl-scopestack-find-item/ss/package
            • Vl-importlist-find-explicit-item
            • Vl-scopestack-find-item/context
            • Vl-importlist-find-implicit-item
            • Vl-import-stars-find-item
            • Vl-scopeinfo
            • Vl-importlist->explicit-item-alist
            • Vl-scopestack-find-definition/ss
            • Vl-scopeitem
              • Vl-scopeitem-p
              • Vl-scopeitem-fix
              • Vl-maybe-scopeitem
              • Vl-scopeitem-equiv
              • Vl-scopeitem-alist-count
              • Vl-scopeitem-alist
              • Vl-scopeitemlist
                • Vl-scopeitemlist-fix
                • Vl-scopeitemlist-equiv
                • Vl-scopeitemlist-p
                  • Vl-scopeitemlist-p-basics
              • Vl-scopestack-find-package/ss
              • Vl-scopestack
              • Vl-scopeinfo-find-item
              • Vl-scopestack-find-item/ss
              • Vl-scopestack-find-class/ss
              • Scopestack-constants
              • Vl-scope-namespace
              • Vl-maybe-scope
              • Vl-importresult
              • Vl-scopestack-push
              • Vl-import-stars-itemnames
              • Vl-scope->scopeinfo
              • Vl-scope-find-item-fast
              • Vl-interface-scope-find-item
              • Vl-genblob-scope-find-item
              • Vl-module-scope-find-item
              • Vl-design-scope-find-definition
              • Vl-scopestack-find-item
              • Vl-scopestack-find-definition
              • Vl-scopeinfo->itemnames
              • Vl-scope-find-portdecl
              • Vl-scope-find-definition
              • Vl-package-scope-find-item
              • Vl-interface-scope-find-portdecl
              • Vl-genblob-scope-find-portdecl
              • Vl-design-scope-find-item
              • Vl-blockscope-scope-find-item
              • Vl-scopestack-find-package
              • Vl-scope-find-package
              • Vl-module-scope-find-portdecl
              • Vl-design-scope-find-package
              • Vl-design-scope-find-class
              • Vl-class-scope-find-item
              • Vl-scopestack-find-class
              • Vl-scope-find-class
              • Vl-scopestack->hashkey
              • Vl-scope-find-portdecl-fast
              • Vl-package-scope-item-alist-top
              • Vl-scopestack->path-aux
              • Vl-scopedef
              • Vl-scope-portdecl-alist
              • Vl-scope-package-alist
              • Vl-scope-find-definition-fast
              • Vl-scope-definition-alist
              • Vl-scope-find-package-fast
              • Vl-scope-find-class-fast
              • Vl-scope-class-alist
              • Vl-scopestack->path
              • Vl-scopestack->design
              • Vl-scopeitem->name
              • Vl-scope
              • Vl-scopestack-init
              • Vl-importlist->star-packages
              • Vl-scopestack-pop
              • Vl-scopestack-nesting-level
              • Vl-scopestack->toplevel
              • Vl-scope->scopetype
              • Vl-scope->id
              • Vl-design-scope-package-alist-top
              • Vl-bindlist->modinsts
              • Vl-scopestack-toplevel-p
              • Vl-scopestacks-free
              • Vl-importresult-alist
            • Hid-tools
            • Filtering-by-name
            • Vl-interface-mocktype
            • Stripping-functions
            • Genblob
            • Expr-tools
            • Extract-vl-types
            • Hierarchy
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-scopeitemlist-p

    Vl-scopeitemlist-p-basics

    Basic theorems about vl-scopeitemlist-p, generated by deflist.

    Definitions and Theorems

    Theorem: vl-scopeitemlist-p-of-cons

    (defthm vl-scopeitemlist-p-of-cons
      (equal (vl-scopeitemlist-p (cons acl2::a acl2::x))
             (and (vl-scopeitem-p acl2::a)
                  (vl-scopeitemlist-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-cdr-when-vl-scopeitemlist-p

    (defthm vl-scopeitemlist-p-of-cdr-when-vl-scopeitemlist-p
      (implies (vl-scopeitemlist-p (double-rewrite acl2::x))
               (vl-scopeitemlist-p (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-when-not-consp

    (defthm vl-scopeitemlist-p-when-not-consp
      (implies (not (consp acl2::x))
               (vl-scopeitemlist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitem-p-of-car-when-vl-scopeitemlist-p

    (defthm vl-scopeitem-p-of-car-when-vl-scopeitemlist-p
      (implies (vl-scopeitemlist-p acl2::x)
               (iff (vl-scopeitem-p (car acl2::x))
                    (consp acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-append

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

    Theorem: vl-scopeitemlist-p-of-list-fix

    (defthm vl-scopeitemlist-p-of-list-fix
      (equal (vl-scopeitemlist-p (list-fix acl2::x))
             (vl-scopeitemlist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-sfix

    (defthm vl-scopeitemlist-p-of-sfix
      (iff (vl-scopeitemlist-p (sfix acl2::x))
           (or (vl-scopeitemlist-p acl2::x)
               (not (setp acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-insert

    (defthm vl-scopeitemlist-p-of-insert
      (iff (vl-scopeitemlist-p (insert acl2::a acl2::x))
           (and (vl-scopeitemlist-p (sfix acl2::x))
                (vl-scopeitem-p acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-delete

    (defthm vl-scopeitemlist-p-of-delete
      (implies (vl-scopeitemlist-p acl2::x)
               (vl-scopeitemlist-p (delete acl2::k acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-mergesort

    (defthm vl-scopeitemlist-p-of-mergesort
      (iff (vl-scopeitemlist-p (mergesort acl2::x))
           (vl-scopeitemlist-p (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-union

    (defthm vl-scopeitemlist-p-of-union
      (iff (vl-scopeitemlist-p (union acl2::x acl2::y))
           (and (vl-scopeitemlist-p (sfix acl2::x))
                (vl-scopeitemlist-p (sfix acl2::y))))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-intersect-1

    (defthm vl-scopeitemlist-p-of-intersect-1
      (implies (vl-scopeitemlist-p acl2::x)
               (vl-scopeitemlist-p (intersect acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-intersect-2

    (defthm vl-scopeitemlist-p-of-intersect-2
      (implies (vl-scopeitemlist-p acl2::y)
               (vl-scopeitemlist-p (intersect acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-difference

    (defthm vl-scopeitemlist-p-of-difference
      (implies (vl-scopeitemlist-p acl2::x)
               (vl-scopeitemlist-p (difference acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-duplicated-members

    (defthm vl-scopeitemlist-p-of-duplicated-members
      (implies (vl-scopeitemlist-p acl2::x)
               (vl-scopeitemlist-p (duplicated-members acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-rev

    (defthm vl-scopeitemlist-p-of-rev
      (equal (vl-scopeitemlist-p (rev acl2::x))
             (vl-scopeitemlist-p (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-rcons

    (defthm vl-scopeitemlist-p-of-rcons
      (iff (vl-scopeitemlist-p (acl2::rcons acl2::a acl2::x))
           (and (vl-scopeitem-p acl2::a)
                (vl-scopeitemlist-p (list-fix acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitem-p-when-member-equal-of-vl-scopeitemlist-p

    (defthm vl-scopeitem-p-when-member-equal-of-vl-scopeitemlist-p
      (and (implies (and (member-equal acl2::a acl2::x)
                         (vl-scopeitemlist-p acl2::x))
                    (vl-scopeitem-p acl2::a))
           (implies (and (vl-scopeitemlist-p acl2::x)
                         (member-equal acl2::a acl2::x))
                    (vl-scopeitem-p acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-when-subsetp-equal

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

    Theorem: vl-scopeitemlist-p-set-equiv-congruence

    (defthm vl-scopeitemlist-p-set-equiv-congruence
      (implies (set-equiv acl2::x acl2::y)
               (equal (vl-scopeitemlist-p acl2::x)
                      (vl-scopeitemlist-p acl2::y)))
      :rule-classes :congruence)

    Theorem: vl-scopeitemlist-p-of-set-difference-equal

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

    Theorem: vl-scopeitemlist-p-of-intersection-equal-1

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

    Theorem: vl-scopeitemlist-p-of-intersection-equal-2

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

    Theorem: vl-scopeitemlist-p-of-union-equal

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

    Theorem: vl-scopeitemlist-p-of-take

    (defthm vl-scopeitemlist-p-of-take
      (implies (vl-scopeitemlist-p (double-rewrite acl2::x))
               (iff (vl-scopeitemlist-p (take acl2::n acl2::x))
                    (or (vl-scopeitem-p nil)
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-repeat

    (defthm vl-scopeitemlist-p-of-repeat
      (iff (vl-scopeitemlist-p (repeat acl2::n acl2::x))
           (or (vl-scopeitem-p acl2::x)
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitem-p-of-nth-when-vl-scopeitemlist-p

    (defthm vl-scopeitem-p-of-nth-when-vl-scopeitemlist-p
      (implies (vl-scopeitemlist-p acl2::x)
               (iff (vl-scopeitem-p (nth acl2::n acl2::x))
                    (< (nfix acl2::n) (len acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-update-nth

    (defthm vl-scopeitemlist-p-of-update-nth
     (implies
          (vl-scopeitemlist-p (double-rewrite acl2::x))
          (iff (vl-scopeitemlist-p (update-nth acl2::n acl2::y acl2::x))
               (and (vl-scopeitem-p acl2::y)
                    (or (<= (nfix acl2::n) (len acl2::x))
                        (vl-scopeitem-p nil)))))
     :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-butlast

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

    Theorem: vl-scopeitemlist-p-of-nthcdr

    (defthm vl-scopeitemlist-p-of-nthcdr
      (implies (vl-scopeitemlist-p (double-rewrite acl2::x))
               (vl-scopeitemlist-p (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-last

    (defthm vl-scopeitemlist-p-of-last
      (implies (vl-scopeitemlist-p (double-rewrite acl2::x))
               (vl-scopeitemlist-p (last acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-remove

    (defthm vl-scopeitemlist-p-of-remove
      (implies (vl-scopeitemlist-p acl2::x)
               (vl-scopeitemlist-p (remove acl2::a acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-scopeitemlist-p-of-revappend

    (defthm vl-scopeitemlist-p-of-revappend
      (equal (vl-scopeitemlist-p (revappend acl2::x acl2::y))
             (and (vl-scopeitemlist-p (list-fix acl2::x))
                  (vl-scopeitemlist-p acl2::y)))
      :rule-classes ((:rewrite)))