• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
            • Vl-find-basename/extension-aux
            • Vl-find-highest-priority-extension
            • Vl-split-filename
            • Vl-dirxcache
              • Vl-dirxcache-p
                • Vl-dirxcache-fix
                • Vl-make-dirxcache
                • Vl-dirxcache-equiv
              • Vl-dirxlist-cache
            • Vl-load-file
            • Vl-loadresult
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-dirxcache

    Vl-dirxcache-p

    Recognizer for vl-dirxcache.

    Signature
    (vl-dirxcache-p x) → *

    Definitions and Theorems

    Function: vl-dirxcache-p

    (defun vl-dirxcache-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-dirxcache-p))
        (declare (ignorable __function__))
        (if (atom x)
            t
          (and (consp (car x))
               (stringp (caar x))
               (string-listp (cdar x))
               (vl-dirxcache-p (cdr x))))))

    Theorem: vl-dirxcache-p-of-revappend

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

    Theorem: vl-dirxcache-p-of-remove

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

    Theorem: vl-dirxcache-p-of-last

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

    Theorem: vl-dirxcache-p-of-nthcdr

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

    Theorem: vl-dirxcache-p-of-butlast

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

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

    (defthm vl-dirxcache-p-of-update-nth
     (implies (vl-dirxcache-p (double-rewrite acl2::x))
              (iff (vl-dirxcache-p (update-nth acl2::n acl2::y acl2::x))
                   (and (and (consp acl2::y)
                             (stringp (car acl2::y))
                             (string-listp (cdr acl2::y)))
                        (or (<= (nfix acl2::n) (len acl2::x))
                            (and (consp nil)
                                 (stringp (car nil))
                                 (string-listp (cdr nil)))))))
     :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-repeat

    (defthm vl-dirxcache-p-of-repeat
      (iff (vl-dirxcache-p (repeat acl2::n acl2::x))
           (or (and (consp acl2::x)
                    (stringp (car acl2::x))
                    (string-listp (cdr acl2::x)))
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-take

    (defthm vl-dirxcache-p-of-take
      (implies (vl-dirxcache-p (double-rewrite acl2::x))
               (iff (vl-dirxcache-p (take acl2::n acl2::x))
                    (or (and (consp nil)
                             (stringp (car nil))
                             (string-listp (cdr nil)))
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

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

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

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

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

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

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

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

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

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

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

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

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

    Theorem: vl-dirxcache-p-of-rcons

    (defthm vl-dirxcache-p-of-rcons
      (iff (vl-dirxcache-p (acl2::rcons acl2::a acl2::x))
           (and (and (consp acl2::a)
                     (stringp (car acl2::a))
                     (string-listp (cdr acl2::a)))
                (vl-dirxcache-p (list-fix acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-rev

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

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

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

    Theorem: vl-dirxcache-p-of-difference

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

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

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

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

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

    Theorem: vl-dirxcache-p-of-union

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

    Theorem: vl-dirxcache-p-of-mergesort

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

    Theorem: vl-dirxcache-p-of-delete

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

    Theorem: vl-dirxcache-p-of-insert

    (defthm vl-dirxcache-p-of-insert
      (iff (vl-dirxcache-p (insert acl2::a acl2::x))
           (and (vl-dirxcache-p (sfix acl2::x))
                (and (consp acl2::a)
                     (stringp (car acl2::a))
                     (string-listp (cdr acl2::a)))))
      :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-sfix

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

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

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

    Theorem: vl-dirxcache-p-of-append

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

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

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

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

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

    Theorem: vl-dirxcache-p-of-cons

    (defthm vl-dirxcache-p-of-cons
      (equal (vl-dirxcache-p (cons acl2::a acl2::x))
             (and (and (consp acl2::a)
                       (stringp (car acl2::a))
                       (string-listp (cdr acl2::a)))
                  (vl-dirxcache-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-make-fal

    (defthm vl-dirxcache-p-of-make-fal
      (implies (and (vl-dirxcache-p acl2::x)
                    (vl-dirxcache-p acl2::y))
               (vl-dirxcache-p (make-fal acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: string-listp-of-cdr-when-member-equal-of-vl-dirxcache-p

    (defthm string-listp-of-cdr-when-member-equal-of-vl-dirxcache-p
      (and (implies (and (vl-dirxcache-p acl2::x)
                         (member-equal acl2::a acl2::x))
                    (string-listp (cdr acl2::a)))
           (implies (and (member-equal acl2::a acl2::x)
                         (vl-dirxcache-p acl2::x))
                    (string-listp (cdr acl2::a))))
      :rule-classes ((:rewrite)))

    Theorem: stringp-of-car-when-member-equal-of-vl-dirxcache-p

    (defthm stringp-of-car-when-member-equal-of-vl-dirxcache-p
      (and (implies (and (vl-dirxcache-p acl2::x)
                         (member-equal acl2::a acl2::x))
                    (stringp (car acl2::a)))
           (implies (and (member-equal acl2::a acl2::x)
                         (vl-dirxcache-p acl2::x))
                    (stringp (car acl2::a))))
      :rule-classes ((:rewrite)))

    Theorem: consp-when-member-equal-of-vl-dirxcache-p

    (defthm consp-when-member-equal-of-vl-dirxcache-p
      (implies (and (vl-dirxcache-p acl2::x)
                    (member-equal acl2::a acl2::x))
               (consp acl2::a))
      :rule-classes
      ((:rewrite :backchain-limit-lst (0 0))
       (:rewrite :backchain-limit-lst (0 0)
                 :corollary (implies (if (member-equal acl2::a acl2::x)
                                         (vl-dirxcache-p acl2::x)
                                       'nil)
                                     (consp acl2::a)))))

    Theorem: vl-dirxcache-p-of-fast-alist-clean

    (defthm vl-dirxcache-p-of-fast-alist-clean
      (implies (vl-dirxcache-p acl2::x)
               (vl-dirxcache-p (fast-alist-clean acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-dirxcache-p-of-hons-shrink-alist

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

    Theorem: vl-dirxcache-p-of-hons-acons

    (defthm vl-dirxcache-p-of-hons-acons
      (equal (vl-dirxcache-p (hons-acons acl2::a acl2::n acl2::x))
             (and (stringp acl2::a)
                  (string-listp acl2::n)
                  (vl-dirxcache-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: string-listp-of-cdr-of-hons-assoc-equal-when-vl-dirxcache-p

    (defthm string-listp-of-cdr-of-hons-assoc-equal-when-vl-dirxcache-p
      (implies
           (vl-dirxcache-p acl2::x)
           (iff (string-listp (cdr (hons-assoc-equal acl2::k acl2::x)))
                (or (hons-assoc-equal acl2::k acl2::x)
                    (string-listp nil))))
      :rule-classes ((:rewrite)))

    Theorem: string-listp-of-cdar-when-vl-dirxcache-p

    (defthm string-listp-of-cdar-when-vl-dirxcache-p
      (implies (vl-dirxcache-p acl2::x)
               (iff (string-listp (cdar acl2::x))
                    (or (consp acl2::x)
                        (string-listp nil))))
      :rule-classes ((:rewrite)))

    Theorem: stringp-of-caar-when-vl-dirxcache-p

    (defthm stringp-of-caar-when-vl-dirxcache-p
      (implies (vl-dirxcache-p acl2::x)
               (iff (stringp (caar acl2::x))
                    (or (consp acl2::x) (stringp nil))))
      :rule-classes ((:rewrite)))