• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
          • Vls-commands
            • Vls-command-args-to-eformals
            • Vls-commandinfo-p
            • Vls-success
            • Vls-commandinfolist-p
              • Vls-commandinfolist-p-basics
              • Commands-table
              • Define-vls-command-fn
              • Vls-fail-fn
              • Vls-fail
              • Vls-command-arg-to-eformal
              • Vls-commandtype-p
              • Get-vls-commands
            • Vl-descriptionlist-summaries
            • Vls-transdb
            • File-layout
            • Vls-data-p
            • Ts-queue
            • Vls-showloc
            • Vls-get-plainsrc
            • Vl-description->warnings
            • Vl-describe
            • Vls-port-table
            • Vls-describe
            • Vls-data-from-translation
            • Vl-find-description-insensitive
            • Vls-get-warnings
            • Vls-get-summary
            • Vls-get-origsrc
            • Vls-data-origname-reportcard
            • Vls-get-parents
            • Vls-get-children
            • Vls-get-summaries
            • Vl-ppc-description
            • Vls-get-desctypes
            • Vl-description-summary
            • Start
            • Vl-descalist->descriptions/types
            • Stop
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vls-commandinfolist-p

    Vls-commandinfolist-p-basics

    Basic theorems about vls-commandinfolist-p, generated by deflist.

    Definitions and Theorems

    Theorem: vls-commandinfolist-p-of-cons

    (defthm vls-commandinfolist-p-of-cons
      (equal (vls-commandinfolist-p (cons acl2::a acl2::x))
             (and (vls-commandinfo-p acl2::a)
                  (vls-commandinfolist-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-cdr-when-vls-commandinfolist-p

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

    Theorem: vls-commandinfolist-p-when-not-consp

    (defthm vls-commandinfolist-p-when-not-consp
      (implies (not (consp acl2::x))
               (vls-commandinfolist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfo-p-of-car-when-vls-commandinfolist-p

    (defthm vls-commandinfo-p-of-car-when-vls-commandinfolist-p
      (implies (vls-commandinfolist-p acl2::x)
               (iff (vls-commandinfo-p (car acl2::x))
                    (or (consp acl2::x)
                        (vls-commandinfo-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-append

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

    Theorem: vls-commandinfolist-p-of-list-fix

    (defthm vls-commandinfolist-p-of-list-fix
      (equal (vls-commandinfolist-p (list-fix acl2::x))
             (vls-commandinfolist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-sfix

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

    Theorem: vls-commandinfolist-p-of-insert

    (defthm vls-commandinfolist-p-of-insert
      (iff (vls-commandinfolist-p (insert acl2::a acl2::x))
           (and (vls-commandinfolist-p (sfix acl2::x))
                (vls-commandinfo-p acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-delete

    (defthm vls-commandinfolist-p-of-delete
      (implies (vls-commandinfolist-p acl2::x)
               (vls-commandinfolist-p (delete acl2::k acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-mergesort

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

    Theorem: vls-commandinfolist-p-of-union

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

    Theorem: vls-commandinfolist-p-of-intersect-1

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

    Theorem: vls-commandinfolist-p-of-intersect-2

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

    Theorem: vls-commandinfolist-p-of-difference

    (defthm vls-commandinfolist-p-of-difference
      (implies (vls-commandinfolist-p acl2::x)
               (vls-commandinfolist-p (difference acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-duplicated-members

    (defthm vls-commandinfolist-p-of-duplicated-members
      (implies (vls-commandinfolist-p acl2::x)
               (vls-commandinfolist-p (duplicated-members acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-rev

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

    Theorem: vls-commandinfolist-p-of-rcons

    (defthm vls-commandinfolist-p-of-rcons
      (iff (vls-commandinfolist-p (acl2::rcons acl2::a acl2::x))
           (and (vls-commandinfo-p acl2::a)
                (vls-commandinfolist-p (list-fix acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfo-p-when-member-equal-of-vls-commandinfolist-p

    (defthm vls-commandinfo-p-when-member-equal-of-vls-commandinfolist-p
      (and (implies (and (member-equal acl2::a acl2::x)
                         (vls-commandinfolist-p acl2::x))
                    (vls-commandinfo-p acl2::a))
           (implies (and (vls-commandinfolist-p acl2::x)
                         (member-equal acl2::a acl2::x))
                    (vls-commandinfo-p acl2::a)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-when-subsetp-equal

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

    Theorem: vls-commandinfolist-p-set-equiv-congruence

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

    Theorem: vls-commandinfolist-p-of-set-difference-equal

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

    Theorem: vls-commandinfolist-p-of-intersection-equal-1

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

    Theorem: vls-commandinfolist-p-of-intersection-equal-2

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

    Theorem: vls-commandinfolist-p-of-union-equal

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

    Theorem: vls-commandinfolist-p-of-take

    (defthm vls-commandinfolist-p-of-take
      (implies (vls-commandinfolist-p (double-rewrite acl2::x))
               (iff (vls-commandinfolist-p (take acl2::n acl2::x))
                    (or (vls-commandinfo-p nil)
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-repeat

    (defthm vls-commandinfolist-p-of-repeat
      (iff (vls-commandinfolist-p (repeat acl2::n acl2::x))
           (or (vls-commandinfo-p acl2::x)
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfo-p-of-nth-when-vls-commandinfolist-p

    (defthm vls-commandinfo-p-of-nth-when-vls-commandinfolist-p
      (implies (and (vls-commandinfolist-p acl2::x)
                    (< (nfix acl2::n) (len acl2::x)))
               (vls-commandinfo-p (nth acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-update-nth

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

    Theorem: vls-commandinfolist-p-of-butlast

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

    Theorem: vls-commandinfolist-p-of-nthcdr

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

    Theorem: vls-commandinfolist-p-of-last

    (defthm vls-commandinfolist-p-of-last
      (implies (vls-commandinfolist-p (double-rewrite acl2::x))
               (vls-commandinfolist-p (last acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-remove

    (defthm vls-commandinfolist-p-of-remove
      (implies (vls-commandinfolist-p acl2::x)
               (vls-commandinfolist-p (remove acl2::a acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vls-commandinfolist-p-of-revappend

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