• 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
          • Lint-warning-suppression
          • Warning-basics
          • Vl-warning
          • Vl-warninglist-add-ctx
          • Vl-warninglist->types
          • Propagating-errors
          • Vl-reportcard
          • Vl-some-warning-fatalp
          • Clean-warnings
          • Lint-whole-file-suppression
          • Warn
          • Vl-warninglist
            • Vl-warninglist-p
              • Vl-warninglist-p-basics
              • Vl-warninglist-fix
              • Vl-print-warnings-with-header
              • Vl-warninglist-equiv
              • Vl-print-warnings-with-named-header
              • Vl-print-warnings
              • Vl-warnings-to-string
            • Vl-remove-warnings
            • Vl-keep-warnings
            • Flat-warnings
            • Vl-some-warning-of-type-p
            • Vl-msg
            • Vl-warning-add-ctx
            • Vl-print-warning
            • Vmsg-binary-concat
            • Ok
            • Vl-trace-warnings
            • Fatal
            • Vmsg
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-warninglist-p

    Vl-warninglist-p-basics

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

    Definitions and Theorems

    Theorem: vl-warninglist-p-of-cons

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

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

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

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

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

    Theorem: vl-warning-p-of-car-when-vl-warninglist-p

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

    Theorem: vl-warninglist-p-of-append

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

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

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

    Theorem: vl-warninglist-p-of-sfix

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

    Theorem: vl-warninglist-p-of-insert

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

    Theorem: vl-warninglist-p-of-delete

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

    Theorem: vl-warninglist-p-of-mergesort

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

    Theorem: vl-warninglist-p-of-union

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

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

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

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

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

    Theorem: vl-warninglist-p-of-difference

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

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

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

    Theorem: vl-warninglist-p-of-rev

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

    Theorem: vl-warninglist-p-of-rcons

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

    Theorem: vl-warning-p-when-member-equal-of-vl-warninglist-p

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

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

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

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

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

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

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

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

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

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

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

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

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

    Theorem: vl-warninglist-p-of-take

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

    Theorem: vl-warninglist-p-of-repeat

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

    Theorem: vl-warning-p-of-nth-when-vl-warninglist-p

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

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

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

    Theorem: vl-warninglist-p-of-butlast

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

    Theorem: vl-warninglist-p-of-nthcdr

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

    Theorem: vl-warninglist-p-of-last

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

    Theorem: vl-warninglist-p-of-remove

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

    Theorem: vl-warninglist-p-of-revappend

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