• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • 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-portlist-fix
            • Vl-portlist-p
              • Vl-portlist-p-basics
              • Vl-portlist->names
                • Vl-collect-interface-ports
              • Vl-portlist-equiv
            • 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-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
        • Vwsim
        • Fgl
        • Vl
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-portlist-p

    Vl-portlist->names

    (vl-portlist->names x) maps vl-port->name across a list.

    Signature
    (vl-portlist->names x) → *
    Arguments
    x — Guard (vl-portlist-p x).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-portlist->names-exec

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

    Function: vl-portlist->names-nrev

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

    Function: vl-portlist->names

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Theorem: member-of-vl-port->name-in-vl-portlist->names

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    (defthm string-listp-of-vl-portlist->names
      (equal (string-listp (vl-portlist->names x))
             (not (member nil (vl-portlist->names x)))))

    Theorem: string-listp-of-remove-equal-of-vl-portlist->names

    (defthm string-listp-of-remove-equal-of-vl-portlist->names
      (string-listp (remove-equal nil (vl-portlist->names x))))