• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
              • Vl-interfacelist-condcheck
                • Vl-modulelist-condcheck
                • Vl-expr-condcheck
                • Vl-condcheck-fix
                • Vl-module-condcheck!
                • Vl-interface-condcheck!
                • Vl-modelement-condcheck!
                • Vl-iftest-condcheck
                • Vl-maybe-delayoreventcontrol-condcheck
                • Vl-repeateventcontrol-condcheck
                • Vl-delayoreventcontrol-condcheck
                • Vl-design-condcheck!
                • Vl-vardecllist-condcheck
                • Vl-typedeflist-condcheck
                • Vl-portdecllist-condcheck
                • Vl-paramtype-condcheck
                • Vl-paramdecllist-condcheck
                • Vl-maybe-gatedelay-condcheck
                • Vl-maybe-exprdist-condcheck
                • Vl-exprdistlist-condcheck
                • Vl-blockitemlist-condcheck
                • Vl-blockitem-condcheck
                • Vl-vardecl-condcheck
                • Vl-repetition-condcheck
                • Vl-propspec-condcheck
                • Vl-portdecl-condcheck
                • Vl-importlist-condcheck
                • Vl-gatedelay-condcheck
                • Vl-eventcontrol-condcheck
                • Vl-distlist-condcheck
                • Vl-distitem-condcheck
                • Vl-delaycontrol-condcheck
                • Vl-typedef-condcheck
                • Vl-paramdecl-condcheck
                • Vl-maybe-rhs-condcheck
                • Vl-letdecl-condcheck
                • Vl-exprdist-condcheck
                • Vl-rhs-condcheck
                • Vl-import-condcheck
                • Vl-fundecl-condcheck!-aux
                • Vl-taskdecl-condcheck!-aux
                • Vl-package-condcheck!
                • Vl-function-specialization-map-condcheck!
                • Vl-portdecl-or-blockitem-list-condcheck!
                • Vl-portdecl-or-blockitem-condcheck!
                • Vl-condcheck-negate
                • Vl-class-condcheck!
                • Vl-parse-temps-condcheck!
                • Vl-modinst-condcheck!-aux
                • Vl-function-specialization-condcheck!
                • Vl-clkdecl-condcheck!
                • Vl-ansi-portdecl-condcheck!
                • Vl-vardecl-condcheck!-aux
                • Vl-modport-portlist-condcheck!
                • Vl-gateinst-condcheck!-aux
                • Vl-defaultdisablelist-condcheck!
                • Vl-defaultdisable-condcheck!
                • Vl-assign-condcheck!-aux
                • Vl-ansi-portdecllist-condcheck!
                • Vl-udp-condcheck!
                • Vl-taskdecllist-condcheck!
                • Vl-sequencelist-condcheck!
                • Vl-sequence-condcheck!
                • Vl-propportlist-condcheck!
                • Vl-propport-condcheck!
                • Vl-propertylist-condcheck!
                • Vl-property-condcheck!
                • Vl-plainarglist-condcheck!
                • Vl-paramdecl-condcheck!-aux
                • Vl-namedarglist-condcheck!
                • Vl-modport-port-condcheck!
                • Vl-maybe-parse-temps-condcheck!
                • Vl-gclkdecllist-condcheck!
                • Vl-gateinstlist-condcheck!
                • Vl-fwdtypedeflist-condcheck!
                • Vl-elabtasklist-condcheck!
                • Vl-dpiimportlist-condcheck!
                • Vl-dpiimport-condcheck!
                • Vl-dpiexportlist-condcheck!
                • Vl-covergrouplist-condcheck!
                • Vl-clkassignlist-condcheck!
                • Vl-cassertionlist-condcheck!
                • Vl-assertionlist-condcheck!
                • Vl-typedef-condcheck!-aux
                • Vl-regularport-condcheck!
                • Vl-programlist-condcheck!
                • Vl-plainarg-condcheck!
                • Vl-packagelist-condcheck!
                • Vl-namedarg-condcheck!
                • Vl-modportlist-condcheck!
                • Vl-modinstlist-condcheck!
                • Vl-maybe-clkskew-condcheck!
                • Vl-interfaceport-condcheck!
                • Vl-interface-condcheck
                • Vl-initiallist-condcheck!
                • Vl-initial-condcheck!-aux
                • Vl-genvarlist-condcheck!
                • Vl-gclkdecl-condcheck!
                • Vl-fundecllist-condcheck!
                • Vl-finallist-condcheck!
                • Vl-final-condcheck!-aux
                • Vl-configlist-condcheck!
                • Vl-clkdecllist-condcheck!
                • Vl-clkassign-condcheck!
                • Vl-classlist-condcheck!
                • Vl-bind-condcheck!
                • Vl-assignlist-condcheck!
                • Vl-arguments-condcheck!
                • Vl-alwayslist-condcheck!
                • Vl-always-condcheck!-aux
                • Vl-aliaslist-condcheck!
                • Vl-alias-condcheck!-aux
                • Vl-udplist-condcheck!
                • Vl-taskdecl-condcheck!
                • Vl-program-condcheck!
                • Vl-portlist-condcheck!
                • Vl-port-condcheck!
                • Vl-paramdecl-condcheck!
                • Vl-module-condcheck
                • Vl-modport-condcheck!
                • Vl-gateinst-condcheck!
                • Vl-fwdtypedef-condcheck!
                • Vl-elabtask-condcheck!
                • Vl-dpiexport-condcheck!
                • Vl-design-condcheck
                • Vl-covergroup-condcheck!
                • Vl-clkskew-condcheck!
                • Vl-bindlist-condcheck!
                • Vl-vardecl-condcheck!
                • Vl-typedef-condcheck!
                • Vl-modinst-condcheck!
                • Vl-initial-condcheck!
                • Vl-genvar-condcheck!
                • Vl-fundecl-condcheck!
                • Vl-final-condcheck!
                • Vl-config-condcheck!
                • Vl-assign-condcheck!
                • Vl-always-condcheck!
                • Vl-alias-condcheck!
              • Lint-warning-suppression
              • Lucid
              • 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
    • Condcheck

    Vl-interfacelist-condcheck

    (vl-interfacelist-condcheck x) maps vl-interface-condcheck across a list.

    Signature
    (vl-interfacelist-condcheck x) → new-x
    Arguments
    x — Guard (vl-interfacelist-p x).
    Returns
    new-x — Type (vl-interfacelist-p new-x).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-interfacelist-condcheck-exec

    (defun vl-interfacelist-condcheck-exec (x acc)
      (declare (xargs :guard (vl-interfacelist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-interfacelist-condcheck-exec))
        (declare (ignorable __function__))
        (if (consp x)
            (vl-interfacelist-condcheck-exec
                 (cdr x)
                 (cons (vl-interface-condcheck (car x))
                       acc))
          acc)))

    Function: vl-interfacelist-condcheck-nrev

    (defun vl-interfacelist-condcheck-nrev (x nrev)
      (declare (xargs :stobjs (nrev)))
      (declare (xargs :guard (vl-interfacelist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-interfacelist-condcheck-nrev))
        (declare (ignorable __function__))
        (if (atom x)
            (nrev-fix nrev)
          (let ((nrev (nrev-push (vl-interface-condcheck (car x))
                                 nrev)))
            (vl-interfacelist-condcheck-nrev (cdr x)
                                             nrev)))))

    Function: vl-interfacelist-condcheck

    (defun vl-interfacelist-condcheck (x)
     (declare (xargs :guard (vl-interfacelist-p x)))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-interfacelist-condcheck))
      (declare (ignorable __function__))
      (mbe
        :logic
        (if (consp x)
            (cons (vl-interface-condcheck (car x))
                  (vl-interfacelist-condcheck (cdr x)))
          nil)
        :exec
        (if (atom x)
            nil
          (with-local-nrev (vl-interfacelist-condcheck-nrev x nrev))))))

    Theorem: vl-interfacelist-p-of-vl-interfacelist-condcheck

    (defthm vl-interfacelist-p-of-vl-interfacelist-condcheck
      (b* ((new-x (vl-interfacelist-condcheck x)))
        (vl-interfacelist-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-interfacelist-condcheck-of-vl-interfacelist-fix-x

    (defthm vl-interfacelist-condcheck-of-vl-interfacelist-fix-x
      (equal (vl-interfacelist-condcheck (vl-interfacelist-fix x))
             (vl-interfacelist-condcheck x)))

    Theorem: vl-interfacelist-condcheck-vl-interfacelist-equiv-congruence-on-x

    (defthm
      vl-interfacelist-condcheck-vl-interfacelist-equiv-congruence-on-x
      (implies (vl-interfacelist-equiv x x-equiv)
               (equal (vl-interfacelist-condcheck x)
                      (vl-interfacelist-condcheck x-equiv)))
      :rule-classes :congruence)

    Theorem: vl-interfacelist-condcheck-of-update-nth

    (defthm vl-interfacelist-condcheck-of-update-nth
     (implies
      (<= (nfix acl2::n) (len acl2::x))
      (equal
       (vl-interfacelist-condcheck (update-nth acl2::n acl2::v acl2::x))
       (update-nth acl2::n (vl-interface-condcheck acl2::v)
                   (vl-interfacelist-condcheck acl2::x))))
     :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-revappend

    (defthm vl-interfacelist-condcheck-of-revappend
      (equal (vl-interfacelist-condcheck (revappend acl2::x acl2::y))
             (revappend (vl-interfacelist-condcheck acl2::x)
                        (vl-interfacelist-condcheck acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: nthcdr-of-vl-interfacelist-condcheck

    (defthm nthcdr-of-vl-interfacelist-condcheck
      (equal (nthcdr acl2::n
                     (vl-interfacelist-condcheck acl2::x))
             (vl-interfacelist-condcheck (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: nth-of-vl-interfacelist-condcheck

    (defthm nth-of-vl-interfacelist-condcheck
      (equal (nth acl2::n
                  (vl-interfacelist-condcheck acl2::x))
             (and (< (nfix acl2::n) (len acl2::x))
                  (vl-interface-condcheck (nth acl2::n acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-take

    (defthm vl-interfacelist-condcheck-of-take
     (implies (<= (nfix acl2::n) (len acl2::x))
              (equal (vl-interfacelist-condcheck (take acl2::n acl2::x))
                     (take acl2::n
                           (vl-interfacelist-condcheck acl2::x))))
     :rule-classes ((:rewrite)))

    Theorem: set-equiv-congruence-over-vl-interfacelist-condcheck

    (defthm set-equiv-congruence-over-vl-interfacelist-condcheck
      (implies (set-equiv acl2::x acl2::y)
               (set-equiv (vl-interfacelist-condcheck acl2::x)
                          (vl-interfacelist-condcheck acl2::y)))
      :rule-classes ((:congruence)))

    Theorem: subsetp-of-vl-interfacelist-condcheck-when-subsetp

    (defthm subsetp-of-vl-interfacelist-condcheck-when-subsetp
      (implies (subsetp acl2::x acl2::y)
               (subsetp (vl-interfacelist-condcheck acl2::x)
                        (vl-interfacelist-condcheck acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: member-of-vl-interface-condcheck-in-vl-interfacelist-condcheck

    (defthm
         member-of-vl-interface-condcheck-in-vl-interfacelist-condcheck
      (implies (member acl2::k acl2::x)
               (member (vl-interface-condcheck acl2::k)
                       (vl-interfacelist-condcheck acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-nrev-removal

    (defthm vl-interfacelist-condcheck-nrev-removal
      (equal (vl-interfacelist-condcheck-nrev acl2::x nrev)
             (append nrev
                     (vl-interfacelist-condcheck acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-exec-removal

    (defthm vl-interfacelist-condcheck-exec-removal
      (equal (vl-interfacelist-condcheck-exec acl2::x acl2::acc)
             (revappend (vl-interfacelist-condcheck acl2::x)
                        acl2::acc))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-rev

    (defthm vl-interfacelist-condcheck-of-rev
      (equal (vl-interfacelist-condcheck (rev acl2::x))
             (rev (vl-interfacelist-condcheck acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-list-fix

    (defthm vl-interfacelist-condcheck-of-list-fix
      (equal (vl-interfacelist-condcheck (list-fix acl2::x))
             (vl-interfacelist-condcheck acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-append

    (defthm vl-interfacelist-condcheck-of-append
      (equal (vl-interfacelist-condcheck (append acl2::a acl2::b))
             (append (vl-interfacelist-condcheck acl2::a)
                     (vl-interfacelist-condcheck acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: cdr-of-vl-interfacelist-condcheck

    (defthm cdr-of-vl-interfacelist-condcheck
      (equal (cdr (vl-interfacelist-condcheck acl2::x))
             (vl-interfacelist-condcheck (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: car-of-vl-interfacelist-condcheck

    (defthm car-of-vl-interfacelist-condcheck
      (equal (car (vl-interfacelist-condcheck acl2::x))
             (and (consp acl2::x)
                  (vl-interface-condcheck (car acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-under-iff

    (defthm vl-interfacelist-condcheck-under-iff
      (iff (vl-interfacelist-condcheck acl2::x)
           (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-interfacelist-condcheck

    (defthm consp-of-vl-interfacelist-condcheck
      (equal (consp (vl-interfacelist-condcheck acl2::x))
             (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: len-of-vl-interfacelist-condcheck

    (defthm len-of-vl-interfacelist-condcheck
      (equal (len (vl-interfacelist-condcheck acl2::x))
             (len acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-interfacelist-condcheck

    (defthm true-listp-of-vl-interfacelist-condcheck
      (true-listp (vl-interfacelist-condcheck acl2::x))
      :rule-classes :type-prescription)

    Theorem: vl-interfacelist-condcheck-when-not-consp

    (defthm vl-interfacelist-condcheck-when-not-consp
      (implies (not (consp acl2::x))
               (equal (vl-interfacelist-condcheck acl2::x)
                      nil))
      :rule-classes ((:rewrite)))

    Theorem: vl-interfacelist-condcheck-of-cons

    (defthm vl-interfacelist-condcheck-of-cons
      (equal (vl-interfacelist-condcheck (cons acl2::a acl2::b))
             (cons (vl-interface-condcheck acl2::a)
                   (vl-interfacelist-condcheck acl2::b)))
      :rule-classes ((:rewrite)))