• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
              • Typo-detection
              • Vl-lucid-dissect-pair
              • Vl-lucidstate
              • Vl-lucid-dissect-var-main
              • Vl-lucidstate-init
              • Vl-lucid-check-uses-are-spurious-instances
              • Vl-hidslice-mark
              • Vl-namedarglist-lucidcheck
              • Vl-lucidst-mark-modport
              • Vl-lucid-multidrive-detect
              • Vl-namedarg-lucidcheck
              • Vl-lucid-filter-merges
              • Vl-hidsolo-mark
              • Vl-arguments-lucidcheck
              • Vl-lucid-dissect-database
              • Vl-design-lucid
              • Vl-maybe-delayoreventcontrol-lucidcheck
              • Vl-lucid-valid-bits-for-datatype
              • Vl-delayoreventcontrol-lucidcheck
              • Vl-repeateventcontrol-lucidcheck
              • Vl-namedparamvaluelist-lucidcheck
              • Vl-scopeexprlist-mark-solo
              • Vl-plainarg-lucidcheck
              • Vl-maybe-rhsexprlist-lucidcheck
              • Vl-maybe-paramvalue-lucidcheck
              • Vl-paramvaluelist-lucidcheck
              • Vl-namedparamvalue-lucidcheck
              • Vl-maybe-gatedelay-lucidcheck
              • Vl-plainarglist-lucidcheck
              • Vl-lucidstate-mark
              • Vl-lucid-mark-simple
              • Vl-eventcontrol-lucidcheck
              • Vl-enumitemlist-lucidcheck
              • Vl-delaycontrol-lucidcheck
              • Vl-paramvalue-lucidcheck
              • Vl-paramargs-lucidcheck
              • Vl-maybe-rhsexpr-lucidcheck
              • Vl-maybe-range-lucidcheck
              • Vl-lucid-typo-detect1
              • Vl-gatedelay-lucidcheck
              • Vl-evatomlist-lucidcheck
              • Vl-rangelist-lucidcheck
              • Vl-pps-lucidstate
              • Vl-enumitem-lucidcheck
              • Vl-custom-suppress-multidrive-p
              • Vl-evatom-lucidcheck
              • Vl-rhs-lucidcheck
              • Vl-range-lucidcheck
              • Vl-lucidocclist-drop-bad-modinsts
              • Vl-hidtrace-mark-interfaces
              • Vl-hidstep-mark-interfaces
              • Vl-add-typo-candidate
              • Vl-paramdecl-lucidcheck
              • Vl-interfaceportlist-lucidcheck
              • Vl-interfaceport-lucidcheck
              • Vl-fundecl-lucidcheck
              • Vl-design-lucidcheck-main
              • Vl-taskdecllist-lucidcheck
              • Vl-taskdecl-lucidcheck
              • Vl-portdecllist-lucidcheck
              • Vl-paramdecllist-lucidcheck
              • Vl-package-lucidcheck
              • Vl-modinst-lucidcheck
              • Vl-interfacelist-lucidcheck
              • Vl-gateinstlist-lucidcheck
              • Vl-dpiimportlist-lucidcheck
              • Vl-dpiexportlist-lucidcheck
              • Vl-vardecllist-lucidcheck
              • Vl-vardecl-lucidcheck
              • Vl-typedeflist-lucidcheck
              • Vl-portdecl-lucidcheck
              • Vl-packagelist-lucidcheck
              • Vl-modulelist-lucidcheck
              • Vl-modportlist-lucidcheck
              • Vl-modinstlist-lucidcheck
              • Vl-interface-lucidcheck
              • Vl-initiallist-lucidcheck
              • Vl-gateinst-lucidcheck
              • Vl-fundecllist-lucidcheck
              • Vl-dpiimport-lucidcheck
              • Vl-dpiexport-lucidcheck
              • Vl-assignlist-lucidcheck
              • Vl-alwayslist-lucidcheck
              • Vl-typedef-lucidcheck
              • Vl-modport-lucidcheck
              • Vl-initial-lucidcheck
              • Vl-finallist-lucidcheck
              • Vl-assign-lucidcheck
              • Vl-always-lucidcheck
              • Vl-aliaslist-lucidcheck
              • Vl-module-lucidcheck
              • Vl-lucid-typo-detect
              • Vl-final-lucidcheck
              • Vl-alias-lucidcheck
              • Vl-lucidocclist-drop-foreign-writes
              • Vl-lucid-pp-multibits
              • Vl-lucid-slices-append-bits
              • Vl-scopestack-is-portdecl-p
              • Vl-lucid-valid-bits-for-decl
              • Vl-lucid-resolved-slices->bits
              • Vl-lucid-resolved-slice->bits
              • Vl-lucid-instmod-find-port-dir
              • Vl-custom-suppress-multidrive-p-default
              • Vl-lucidmergealist-count
              • Vl-lucid-scopestack-subscope-p
              • Vl-lucid-range->bits
              • Vl-lucidocclist-drop-initials/finals
              • Vl-lucid-collect-solo-occs
              • Vl-lucid-collect-resolved-slices
              • Vl-basic-lucidctx
              • Vl-scopestack->flat-transitive-names-slow
              • Vl-lucidocclist-drop-generates
              • Vl-lucid-dissect
              • Vl-lucid-first-solo-occ
              • Vl-lucid-do-merges1
              • Vl-lucid-do-merges
              • Vl-lucidocclist-remove-tails
              • Vl-lucid-some-solo-occp
              • Vl-scopestack-top-level-name
              • Vl-normalize-scopestack
              • Vl-lucid-resolved-slice-p
              • Vl-lucid-all-slices-resolved-p
              • Vl-lucid-warning-type
              • Vl-lucid-plainarglist-nicely-resolved-p
              • Vl-lucid-multidrive-summary
              • Vl-string-expr->value
              • Vl-scopestack->topname
              • Vl-pp-lucid-multidrive-summary
              • Vl-lucid-all-slices-p
              • Vl-lucidocclist-some-transistory-p
              • Vl-lucidocc-transistory-p
              • Vl-lucid-plainarg-nicely-resolved-p
              • Vl-inside-true-generate-p
              • Vl-possible-typo-warnings
              • Vl-lucid-z-gateinst-p
              • Vl-lucid-modinst-nicely-resolved-p
              • Vl-inside-interface-p
              • Vl-inside-blockscope-p
              • Vl-typocandidates
                • Vl-typocandidates-p
                  • Vl-typocandidates-fix
                  • Vl-typocandidates-equiv
                • Vl-lucid-z-expr-p
                • Vl-lucid-z-assign-p
                • Vl-lucidmergealist
                • Vl-lucid-summarize-bits
                • Vl-pp-merged-index-list
                • Vl-pp-merged-index
                • Vl-lucid-pp-bits
              • Lvaluecheck
              • Vl-interfacelist-alwaysstyle
              • Truncation-warnings
              • Vl-modulelist-alwaysstyle
              • Skip-detection
              • Vl-lint-report
              • Vl-lintresult
              • Vl::vl-design-sv-use-set
              • Oddexpr-check
              • Leftright-check
              • Duplicate-detect
              • Selfassigns
              • *vl-lint-help*
              • Arith-compare-check
              • Dupeinst-check
              • Qmarksize-check
              • Lint-whole-file-suppression
              • Run-vl-lint-main
              • Logicassign
              • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-typocandidates

    Vl-typocandidates-p

    Recognizer for vl-typocandidates.

    Signature
    (vl-typocandidates-p x) → *

    Definitions and Theorems

    Function: vl-typocandidates-p

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

    Theorem: vl-typocandidates-p-of-revappend

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

    Theorem: vl-typocandidates-p-of-remove

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

    Theorem: vl-typocandidates-p-of-last

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

    Theorem: vl-typocandidates-p-of-nthcdr

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

    Theorem: vl-typocandidates-p-of-butlast

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

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

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

    Theorem: vl-typocandidates-p-of-repeat

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

    Theorem: vl-typocandidates-p-of-take

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

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

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

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

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

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

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

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

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

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

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

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

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

    Theorem: vl-typocandidates-p-of-rcons

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

    Theorem: vl-typocandidates-p-of-rev

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

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

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

    Theorem: vl-typocandidates-p-of-difference

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

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

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

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

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

    Theorem: vl-typocandidates-p-of-union

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

    Theorem: vl-typocandidates-p-of-mergesort

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

    Theorem: vl-typocandidates-p-of-delete

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

    Theorem: vl-typocandidates-p-of-insert

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

    Theorem: vl-typocandidates-p-of-sfix

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

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

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

    Theorem: vl-typocandidates-p-of-append

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

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

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

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

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

    Theorem: vl-typocandidates-p-of-cons

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

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

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

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

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

    Theorem: vl-scopestack-p-of-car-when-member-equal-of-vl-typocandidates-p

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

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

    (defthm consp-when-member-equal-of-vl-typocandidates-p
      (implies (and (vl-typocandidates-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-typocandidates-p acl2::x)
                                       'nil)
                                     (consp acl2::a)))))

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

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

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

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

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

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

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

    (defthm
       string-listp-of-cdr-of-hons-assoc-equal-when-vl-typocandidates-p
      (implies
           (vl-typocandidates-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-typocandidates-p

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

    Theorem: vl-scopestack-p-of-caar-when-vl-typocandidates-p

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