• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Expressions
          • Vl-fundecl
          • Vl-assign
          • Vl-gateinst
          • Vl-modinst
          • Vl-commentmap
          • Vl-portdecl
          • Vl-taskdecl
          • Vl-design
          • Vl-interface
          • Vl-plainarglist->exprs
          • Vl-taskdecllist->names
          • Vl-fundecllist->names
          • Vl-package
          • Vl-port
          • Vl-udp
          • Vl-paramdecl
          • Vl-genelement
          • Vl-cycledelayrange
          • Vl-namedarg
          • Vl-sort-blockitems-aux
          • Vl-distitem
          • Vl-gatedelay
          • Vl-repetition
          • Vl-typedef
          • Vl-range
          • Vl-gatestrength
          • Vl-program
          • Vl-config
          • Vl-always
          • Vl-datatype-update-dims
          • Vl-import
          • Vl-enumbasetype
          • Vl-repeateventcontrol
          • Vl-paramargs
          • Vl-initial
          • Vl-eventcontrol
          • Vl-udpsymbol-p
          • Vl-maybe-range
          • Vl-maybe-nettypename
          • Vl-maybe-gatestrength
          • Vl-maybe-gatedelay
          • Vl-maybe-delayoreventcontrol
          • Vl-alias
          • Maybe-string-fix
          • Vl-maybe-packeddimension
          • Vl-fwdtypedef
          • Vl-evatom
          • Vl-packeddimension-p
          • Vl-maybe-udpsymbol
          • Vl-maybe-module
          • Vl-maybe-direction
          • Vl-maybe-datatype
          • Vl-maybe-cstrength
          • Vl-direction-p
          • Vl-arguments
          • Vl-maybe-design
          • Vl-udpline
          • Vl-exprdist
          • Vl-context1
          • Vl-genvar
          • Vl-enumitem
          • Vl-datatype-update-udims
          • Vl-datatype-update-pdims
          • Vl-modelement
          • Vl-udpedge
          • Vl-delaycontrol
          • Vl-context
          • Vl-sort-blockitems
          • Vl-distweighttype-p
          • Vl-ctxelement->loc
          • Vl-blockitem
          • Vl-vardecllist
          • Vl-module->ifports
          • Vl-modelement->loc
          • Vl-ctxelement
          • Vl-coretypename-p
          • Vl-packeddimensionlist
          • Vl-modelementlist->genelements
          • Vl-gatetype-p
          • Vl-paramdecllist
          • Vl-lifetime-p
          • Vl-datatype->udims
          • Vl-datatype->pdims
          • Vl-timeunit-p
          • Vl-repetitiontype-p
          • Vl-port->name
          • Vl-importlist
          • Vl-genelement->loc
          • Vl-delayoreventcontrol
          • Vl-cstrength-p
          • Statements
          • Vl-udpentry-p
          • Vl-packeddimension-fix
          • Vl-nettypename-p
          • Vl-portdecllist
          • Vl-port->loc
          • Vl-enumbasekind-fix
          • Vl-arguments->args
          • Vl-taskdecllist
          • Vl-portlist
          • Vl-importpart-p
          • Vl-importpart-fix
          • Vl-fundecllist
          • Vl-blockstmt-p
          • Vl-assignlist
          • Vl-alwaystype-p
          • Vl-typedeflist
          • Vl-syntaxversion-p
          • Vl-randomqualifier-p
          • Vl-modinstlist
          • Vl-gateinstlist
          • Vl-blockitemlist
          • Vl-udptable
          • Vl-udplist
          • Vl-udpentrylist
          • Vl-programlist
          • Vl-paramvaluelist
          • Vl-packagelist
          • Vl-namedparamvaluelist
          • Vl-namedarglist
          • Vl-modulelist
          • Vl-modportlist
          • Vl-modport-portlist
          • Vl-interfacelist
          • Vl-initiallist
          • Vl-genvarlist
          • Vl-fwdtypedeflist
          • Vl-evatomlist
            • Vl-evatomlist-fix
            • Vl-evatomlist-p
              • Vl-evatomlist-p-basics
              • Vl-evatomlist->exprs
                • Vl-evatomlist-plain-p
                • Vl-evatomlist-edgefree-p
              • Vl-evatomlist-equiv
            • Vl-enumitemlist
            • Vl-distlist
            • Vl-configlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-regularportlist
            • Vl-rangelist-list
            • Vl-rangelist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-maybe-range-list
            • Vl-interfaceportlist
            • Vl-argumentlist
            • Data-types
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-evatomlist-p

    Vl-evatomlist->exprs

    (vl-evatomlist->exprs x) maps vl-evatom->expr across a list.

    Signature
    (vl-evatomlist->exprs x) → exprs
    Arguments
    x — Guard (vl-evatomlist-p x).
    Returns
    exprs — Type (vl-exprlist-p exprs).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-evatomlist->exprs-exec

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

    Function: vl-evatomlist->exprs-nrev

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

    Function: vl-evatomlist->exprs

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

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

    (defthm vl-exprlist-p-of-vl-evatomlist->exprs
      (b* ((exprs (vl-evatomlist->exprs x)))
        (vl-exprlist-p exprs))
      :rule-classes :rewrite)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Theorem: member-of-vl-evatom->expr-in-vl-evatomlist->exprs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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