• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • 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-plainarglist->exprs
          • Vl-class
          • Vl-taskdecllist->names
          • Vl-sort-blockitems-aux
          • Vl-fundecllist->names
            • Expressions-and-datatypes
            • 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-udpsymbol-p
            • Vl-final
            • 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-modelement->loc
            • Vl-ctxelement
            • Vl-ctxelement->loc
            • Statements
            • Vl-interface->ifports
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-module->ifports
            • Vl-lifetime-p
            • Vl-syntaxversion
            • Vl-nettypename-p
            • Vl-paramdecllist
            • Vl-modelementlist->genelements
            • Vl-importlist
            • Vl-gatetype-p
            • Vl-typedeflist
            • Vl-genelement->loc
            • Vl-cstrength-p
            • Vl-port->name
            • Vl-elabtask->loc
            • Vl-delayoreventcontrol
            • Vl-udpentry-p
            • Vl-portdecllist
            • Vl-port->loc
            • Property-expressions
            • Vl-taskdecllist
            • 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-blockstmt-p
            • Vl-bindlist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-gclkdecllist
            • Vl-finallist
            • Vl-elabtasklist
            • Vl-defaultdisablelist
            • Vl-clkdecllist
            • Vl-cassertionlist
            • 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-casekey-p
            • Vl-blockitemlist
            • Vl-ansi-portdecllist
            • Vl-regularportlist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-interfaceportlist
          • Loader
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Syntax

    Vl-fundecllist->names

    (vl-fundecllist->names x) maps vl-fundecl->name across a list.

    Signature
    (vl-fundecllist->names x) → names
    Arguments
    x — Guard (vl-fundecllist-p x).
    Returns
    names — Type (string-listp names).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-fundecllist->names-exec

    (defun vl-fundecllist->names-exec (x acc)
           (declare (xargs :guard (vl-fundecllist-p x)))
           (declare (xargs :guard t))
           (let ((__function__ 'vl-fundecllist->names-exec))
                (declare (ignorable __function__))
                (if (consp x)
                    (vl-fundecllist->names-exec
                         (cdr x)
                         (cons (vl-fundecl->name (car x)) acc))
                    acc)))

    Function: vl-fundecllist->names-nrev

    (defun vl-fundecllist->names-nrev (x nrev)
           (declare (xargs :stobjs (nrev)))
           (declare (xargs :guard (vl-fundecllist-p x)))
           (declare (xargs :guard t))
           (let ((__function__ 'vl-fundecllist->names-nrev))
                (declare (ignorable __function__))
                (if (atom x)
                    (nrev-fix nrev)
                    (let ((nrev (nrev-push (vl-fundecl->name (car x))
                                           nrev)))
                         (vl-fundecllist->names-nrev (cdr x)
                                                     nrev)))))

    Function: vl-fundecllist->names

    (defun
     vl-fundecllist->names (x)
     (declare (xargs :guard (vl-fundecllist-p x)))
     (declare (xargs :guard t))
     (let
      ((__function__ 'vl-fundecllist->names))
      (declare (ignorable __function__))
      (mbe :logic (if (consp x)
                      (cons (vl-fundecl->name (car x))
                            (vl-fundecllist->names (cdr x)))
                      nil)
           :exec
           (if (atom x)
               nil
               (with-local-nrev (vl-fundecllist->names-nrev x nrev))))))

    Theorem: string-listp-of-vl-fundecllist->names

    (defthm string-listp-of-vl-fundecllist->names
            (b* ((names (vl-fundecllist->names x)))
                (string-listp names))
            :rule-classes :rewrite)

    Theorem: vl-fundecllist->names-of-vl-fundecllist-fix-x

    (defthm vl-fundecllist->names-of-vl-fundecllist-fix-x
            (equal (vl-fundecllist->names (vl-fundecllist-fix x))
                   (vl-fundecllist->names x)))

    Theorem: vl-fundecllist->names-vl-fundecllist-equiv-congruence-on-x

    (defthm vl-fundecllist->names-vl-fundecllist-equiv-congruence-on-x
            (implies (vl-fundecllist-equiv x x-equiv)
                     (equal (vl-fundecllist->names x)
                            (vl-fundecllist->names x-equiv)))
            :rule-classes :congruence)

    Theorem: vl-fundecllist->names-of-update-nth

    (defthm
     vl-fundecllist->names-of-update-nth
     (implies
       (<= (nfix acl2::n) (len acl2::x))
       (equal
            (vl-fundecllist->names (update-nth acl2::n acl2::v acl2::x))
            (update-nth acl2::n (vl-fundecl->name acl2::v)
                        (vl-fundecllist->names acl2::x))))
     :rule-classes ((:rewrite)))

    Theorem: vl-fundecllist->names-of-revappend

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

    Theorem: nthcdr-of-vl-fundecllist->names

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

    Theorem: nth-of-vl-fundecllist->names

    (defthm nth-of-vl-fundecllist->names
            (equal (nth acl2::n (vl-fundecllist->names acl2::x))
                   (and (< (nfix acl2::n) (len acl2::x))
                        (vl-fundecl->name (nth acl2::n acl2::x))))
            :rule-classes ((:rewrite)))

    Theorem: vl-fundecllist->names-of-take

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

    Theorem: set-equiv-congruence-over-vl-fundecllist->names

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

    Theorem: subsetp-of-vl-fundecllist->names-when-subsetp

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

    Theorem: member-of-vl-fundecl->name-in-vl-fundecllist->names

    (defthm member-of-vl-fundecl->name-in-vl-fundecllist->names
            (implies (member acl2::k acl2::x)
                     (member (vl-fundecl->name acl2::k)
                             (vl-fundecllist->names acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: vl-fundecllist->names-nrev-removal

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

    Theorem: vl-fundecllist->names-exec-removal

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

    Theorem: vl-fundecllist->names-of-rev

    (defthm vl-fundecllist->names-of-rev
            (equal (vl-fundecllist->names (rev acl2::x))
                   (rev (vl-fundecllist->names acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: vl-fundecllist->names-of-list-fix

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

    Theorem: vl-fundecllist->names-of-append

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

    Theorem: cdr-of-vl-fundecllist->names

    (defthm cdr-of-vl-fundecllist->names
            (equal (cdr (vl-fundecllist->names acl2::x))
                   (vl-fundecllist->names (cdr acl2::x)))
            :rule-classes ((:rewrite)))

    Theorem: car-of-vl-fundecllist->names

    (defthm car-of-vl-fundecllist->names
            (equal (car (vl-fundecllist->names acl2::x))
                   (and (consp acl2::x)
                        (vl-fundecl->name (car acl2::x))))
            :rule-classes ((:rewrite)))

    Theorem: vl-fundecllist->names-under-iff

    (defthm vl-fundecllist->names-under-iff
            (iff (vl-fundecllist->names acl2::x)
                 (consp acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-fundecllist->names

    (defthm consp-of-vl-fundecllist->names
            (equal (consp (vl-fundecllist->names acl2::x))
                   (consp acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: len-of-vl-fundecllist->names

    (defthm len-of-vl-fundecllist->names
            (equal (len (vl-fundecllist->names acl2::x))
                   (len acl2::x))
            :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-fundecllist->names

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

    Theorem: vl-fundecllist->names-when-not-consp

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

    Theorem: vl-fundecllist->names-of-cons

    (defthm vl-fundecllist->names-of-cons
            (equal (vl-fundecllist->names (cons acl2::a acl2::b))
                   (cons (vl-fundecl->name acl2::a)
                         (vl-fundecllist->names acl2::b)))
            :rule-classes ((:rewrite)))