• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Vwsim
      • Fgl
      • Vl
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Vl-fundecl
          • Vl-interface
          • Vl-design
          • Vl-assign
          • Vl-modinst
          • Vl-gateinst
          • Vl-taskdecl
          • Vl-portdecl
          • Vl-commentmap
          • Vl-dpiimport
          • Vl-ansi-portdecl
          • Vl-package
          • Vl-paramdecl
          • Vl-dpiexport
          • Vl-class
          • Vl-sort-blockitems-aux
          • Vl-plainarglist->exprs
            • Vl-taskdecllist->names
            • Expressions-and-datatypes
            • Vl-fundecllist->names
            • Vl-udp
            • Vl-port
            • Vl-genelement
            • Vl-clkdecl
            • Vl-parse-temps
            • Vl-bind
            • Vl-namedarg
            • Vl-exprdist
            • Vl-clkassign
            • Vl-range
            • Vl-propport
            • Vl-typedef
            • Vl-gatedelay
            • Vl-dimension
            • Vl-sequence
            • Vl-clkskew
            • Vl-program
            • Vl-gatestrength
            • Vl-property
            • Vl-config
            • Vl-always
            • Vl-import
            • Vl-repeateventcontrol
            • Vl-timeliteral
            • Vl-initial
            • Vl-eventcontrol
            • Vl-final
            • Vl-udpsymbol-p
            • Vl-maybe-clkskew
            • Vl-alias
            • Vl-maybe-nettypename
            • Vl-maybe-gatedelay
            • Vl-letdecl
            • Vl-direction-p
            • Vl-modelement
            • Vl-maybe-timeprecisiondecl
            • Vl-maybe-scopeid
            • Vl-maybe-gatestrength
            • Vl-maybe-direction
            • Vl-maybe-delayoreventcontrol
            • Vl-gclkdecl
            • Vl-fwdtypedef
            • Vl-maybe-udpsymbol-p
            • Vl-maybe-timeunitdecl
            • Vl-maybe-timeliteral
            • Vl-maybe-parse-temps
            • Vl-maybe-cstrength
            • Vl-arguments
            • Vl-maybe-module
            • Vl-maybe-design
            • Vl-covergroup
            • Vl-udpline
            • Vl-timeunitdecl
            • Vl-genvar
            • Vl-defaultdisable
            • Vl-context1
            • Vl-timeprecisiondecl
            • Vl-sort-blockitems
            • Vl-elabtask
            • Vl-udpedge
            • Vl-delaycontrol
            • Vl-context
            • Vl-ctxelement
            • Vl-ctxelement->loc
            • Vl-modelement->loc
            • Statements
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-interface->ifports
            • Vl-syntaxversion
            • Vl-nettypename-p
            • Vl-module->ifports
            • Vl-lifetime-p
            • Vl-paramdecllist
            • Vl-modelementlist->genelements
            • Vl-importlist
            • Vl-typedeflist
            • Vl-gatetype-p
            • Vl-cstrength-p
            • Vl-port->name
            • Vl-genelement->loc
            • Vl-delayoreventcontrol
            • Vl-udpentry-p
            • Vl-portdecllist
            • Vl-elabtask->loc
            • Property-expressions
            • Vl-taskdecllist
            • Vl-port->loc
            • Vl-fundecllist
            • Vl-sequencelist
            • Vl-propertylist
            • Vl-portlist
            • Vl-dpiimportlist
            • Vl-dpiexportlist
            • Vl-classlist
            • Vl-arguments->args
            • Vl-alwaystype-p
            • Vl-modinstlist
            • Vl-importpart-p
            • Vl-importpart-fix
            • Vl-bindlist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-gclkdecllist
            • Vl-finallist
            • Vl-elabtasklist
            • Vl-defaultdisablelist
            • Vl-clkdecllist
            • Vl-cassertionlist
            • Vl-blockstmt-p
            • Vl-assignlist
            • Vl-assertionlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-udptable
            • Vl-udplist
            • Vl-udpentrylist
            • Vl-propportlist
            • Vl-programlist
            • Vl-packagelist
            • Vl-namedarglist
            • Vl-modulelist
            • Vl-modportlist
            • Vl-modport-portlist
            • Vl-letdecllist
            • Vl-interfacelist
            • Vl-gateinstlist
            • Vl-fwdtypedeflist
            • Vl-covergrouplist
            • Vl-configlist
            • Vl-clkassignlist
            • Vl-blockitemlist
            • Vl-ansi-portdecllist
            • Vl-regularportlist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-interfaceportlist
            • Vl-casekey-p
          • Loader
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Syntax

    Vl-plainarglist->exprs

    (vl-plainarglist->exprs x) maps vl-plainarg->expr across a list.

    Signature
    (vl-plainarglist->exprs x) → *
    Arguments
    x — Guard (vl-plainarglist-p x).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-plainarglist->exprs-exec

    (defun vl-plainarglist->exprs-exec (x acc)
      (declare (xargs :guard (vl-plainarglist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-plainarglist->exprs-exec))
        (declare (ignorable __function__))
        (if (consp x)
            (vl-plainarglist->exprs-exec
                 (cdr x)
                 (cons (vl-plainarg->expr (car x)) acc))
          acc)))

    Function: vl-plainarglist->exprs-nrev

    (defun vl-plainarglist->exprs-nrev (x nrev)
      (declare (xargs :stobjs (nrev)))
      (declare (xargs :guard (vl-plainarglist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-plainarglist->exprs-nrev))
        (declare (ignorable __function__))
        (if (atom x)
            (nrev-fix nrev)
          (let ((nrev (nrev-push (vl-plainarg->expr (car x))
                                 nrev)))
            (vl-plainarglist->exprs-nrev (cdr x)
                                         nrev)))))

    Function: vl-plainarglist->exprs

    (defun vl-plainarglist->exprs (x)
     (declare (xargs :guard (vl-plainarglist-p x)))
     (declare (xargs :guard t))
     (let ((__function__ 'vl-plainarglist->exprs))
       (declare (ignorable __function__))
       (mbe :logic
            (if (consp x)
                (cons (vl-plainarg->expr (car x))
                      (vl-plainarglist->exprs (cdr x)))
              nil)
            :exec
            (if (atom x)
                nil
              (with-local-nrev (vl-plainarglist->exprs-nrev x nrev))))))

    Theorem: vl-plainarglist->exprs-of-vl-plainarglist-fix-x

    (defthm vl-plainarglist->exprs-of-vl-plainarglist-fix-x
      (equal (vl-plainarglist->exprs (vl-plainarglist-fix x))
             (vl-plainarglist->exprs x)))

    Theorem: vl-plainarglist->exprs-vl-plainarglist-equiv-congruence-on-x

    (defthm vl-plainarglist->exprs-vl-plainarglist-equiv-congruence-on-x
      (implies (vl-plainarglist-equiv x x-equiv)
               (equal (vl-plainarglist->exprs x)
                      (vl-plainarglist->exprs x-equiv)))
      :rule-classes :congruence)

    Theorem: vl-plainarglist->exprs-of-update-nth

    (defthm vl-plainarglist->exprs-of-update-nth
     (implies
      (<= (nfix acl2::n) (len acl2::x))
      (equal
           (vl-plainarglist->exprs (update-nth acl2::n acl2::v acl2::x))
           (update-nth acl2::n (vl-plainarg->expr acl2::v)
                       (vl-plainarglist->exprs acl2::x))))
     :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-revappend

    (defthm vl-plainarglist->exprs-of-revappend
      (equal (vl-plainarglist->exprs (revappend acl2::x acl2::y))
             (revappend (vl-plainarglist->exprs acl2::x)
                        (vl-plainarglist->exprs acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: nthcdr-of-vl-plainarglist->exprs

    (defthm nthcdr-of-vl-plainarglist->exprs
      (equal (nthcdr acl2::n
                     (vl-plainarglist->exprs acl2::x))
             (vl-plainarglist->exprs (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: nth-of-vl-plainarglist->exprs

    (defthm nth-of-vl-plainarglist->exprs
      (equal (nth acl2::n
                  (vl-plainarglist->exprs acl2::x))
             (and (< (nfix acl2::n) (len acl2::x))
                  (vl-plainarg->expr (nth acl2::n acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-take

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

    Theorem: set-equiv-congruence-over-vl-plainarglist->exprs

    (defthm set-equiv-congruence-over-vl-plainarglist->exprs
      (implies (set-equiv acl2::x acl2::y)
               (set-equiv (vl-plainarglist->exprs acl2::x)
                          (vl-plainarglist->exprs acl2::y)))
      :rule-classes ((:congruence)))

    Theorem: subsetp-of-vl-plainarglist->exprs-when-subsetp

    (defthm subsetp-of-vl-plainarglist->exprs-when-subsetp
      (implies (subsetp acl2::x acl2::y)
               (subsetp (vl-plainarglist->exprs acl2::x)
                        (vl-plainarglist->exprs acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: member-of-vl-plainarg->expr-in-vl-plainarglist->exprs

    (defthm member-of-vl-plainarg->expr-in-vl-plainarglist->exprs
      (implies (member acl2::k acl2::x)
               (member (vl-plainarg->expr acl2::k)
                       (vl-plainarglist->exprs acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-nrev-removal

    (defthm vl-plainarglist->exprs-nrev-removal
      (equal (vl-plainarglist->exprs-nrev acl2::x nrev)
             (append nrev (vl-plainarglist->exprs acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-exec-removal

    (defthm vl-plainarglist->exprs-exec-removal
      (equal (vl-plainarglist->exprs-exec acl2::x acl2::acc)
             (revappend (vl-plainarglist->exprs acl2::x)
                        acl2::acc))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-rev

    (defthm vl-plainarglist->exprs-of-rev
      (equal (vl-plainarglist->exprs (rev acl2::x))
             (rev (vl-plainarglist->exprs acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-list-fix

    (defthm vl-plainarglist->exprs-of-list-fix
      (equal (vl-plainarglist->exprs (list-fix acl2::x))
             (vl-plainarglist->exprs acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-append

    (defthm vl-plainarglist->exprs-of-append
      (equal (vl-plainarglist->exprs (append acl2::a acl2::b))
             (append (vl-plainarglist->exprs acl2::a)
                     (vl-plainarglist->exprs acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: cdr-of-vl-plainarglist->exprs

    (defthm cdr-of-vl-plainarglist->exprs
      (equal (cdr (vl-plainarglist->exprs acl2::x))
             (vl-plainarglist->exprs (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: car-of-vl-plainarglist->exprs

    (defthm car-of-vl-plainarglist->exprs
      (equal (car (vl-plainarglist->exprs acl2::x))
             (and (consp acl2::x)
                  (vl-plainarg->expr (car acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-under-iff

    (defthm vl-plainarglist->exprs-under-iff
      (iff (vl-plainarglist->exprs acl2::x)
           (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-plainarglist->exprs

    (defthm consp-of-vl-plainarglist->exprs
      (equal (consp (vl-plainarglist->exprs acl2::x))
             (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: len-of-vl-plainarglist->exprs

    (defthm len-of-vl-plainarglist->exprs
      (equal (len (vl-plainarglist->exprs acl2::x))
             (len acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-plainarglist->exprs

    (defthm true-listp-of-vl-plainarglist->exprs
      (true-listp (vl-plainarglist->exprs acl2::x))
      :rule-classes :type-prescription)

    Theorem: vl-plainarglist->exprs-when-not-consp

    (defthm vl-plainarglist->exprs-when-not-consp
      (implies (not (consp acl2::x))
               (equal (vl-plainarglist->exprs acl2::x)
                      nil))
      :rule-classes ((:rewrite)))

    Theorem: vl-plainarglist->exprs-of-cons

    (defthm vl-plainarglist->exprs-of-cons
      (equal (vl-plainarglist->exprs (cons acl2::a acl2::b))
             (cons (vl-plainarg->expr acl2::a)
                   (vl-plainarglist->exprs acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: vl-exprlist-p-of-vl-plainarglist->exprs

    (defthm vl-exprlist-p-of-vl-plainarglist->exprs
      (equal (vl-exprlist-p (vl-plainarglist->exprs x))
             (not (member nil (vl-plainarglist->exprs x)))))

    Theorem: vl-exprlist-p-of-remove-nil-of-plainarglist->exprs

    (defthm vl-exprlist-p-of-remove-nil-of-plainarglist->exprs
      (vl-exprlist-p (remove nil (vl-plainarglist->exprs x))))