(vl-interfacelist->orignames x) maps vl-interface->origname across a list.
(vl-interfacelist->orignames x) → orignames
This is an ordinary defprojection.
Function:
(defun vl-interfacelist->orignames-exec (x acc) (declare (xargs :guard (vl-interfacelist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-interfacelist->orignames-exec)) (declare (ignorable __function__)) (if (consp x) (vl-interfacelist->orignames-exec (cdr x) (cons (vl-interface->origname (car x)) acc)) acc)))
Function:
(defun vl-interfacelist->orignames-nrev (x nrev) (declare (xargs :stobjs (nrev))) (declare (xargs :guard (vl-interfacelist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-interfacelist->orignames-nrev)) (declare (ignorable __function__)) (if (atom x) (nrev-fix nrev) (let ((nrev (nrev-push (vl-interface->origname (car x)) nrev))) (vl-interfacelist->orignames-nrev (cdr x) nrev)))))
Function:
(defun vl-interfacelist->orignames (x) (declare (xargs :guard (vl-interfacelist-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-interfacelist->orignames)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (vl-interface->origname (car x)) (vl-interfacelist->orignames (cdr x))) nil) :exec (if (atom x) nil (with-local-nrev (vl-interfacelist->orignames-nrev x nrev))))))
Theorem:
(defthm string-listp-of-vl-interfacelist->orignames (b* ((orignames (vl-interfacelist->orignames x))) (string-listp orignames)) :rule-classes :rewrite)
Theorem:
(defthm vl-interfacelist->orignames-of-vl-interfacelist-fix-x (equal (vl-interfacelist->orignames (vl-interfacelist-fix x)) (vl-interfacelist->orignames x)))
Theorem:
(defthm vl-interfacelist->orignames-vl-interfacelist-equiv-congruence-on-x (implies (vl-interfacelist-equiv x x-equiv) (equal (vl-interfacelist->orignames x) (vl-interfacelist->orignames x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-interfacelist->orignames-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-interfacelist->orignames (take acl2::n acl2::x)) (take acl2::n (vl-interfacelist->orignames acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-interfacelist->orignames (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-interfacelist->orignames acl2::x) (vl-interfacelist->orignames acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-interfacelist->orignames-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-interfacelist->orignames acl2::x) (vl-interfacelist->orignames acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-interface->origname-in-vl-interfacelist->orignames (implies (member acl2::k acl2::x) (member (vl-interface->origname acl2::k) (vl-interfacelist->orignames acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-nrev-removal (equal (vl-interfacelist->orignames-nrev acl2::x nrev) (append nrev (vl-interfacelist->orignames acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-exec-removal (equal (vl-interfacelist->orignames-exec acl2::x acl2::acc) (revappend (vl-interfacelist->orignames acl2::x) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-of-rev (equal (vl-interfacelist->orignames (rev acl2::x)) (rev (vl-interfacelist->orignames acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-of-list-fix (equal (vl-interfacelist->orignames (list-fix acl2::x)) (vl-interfacelist->orignames acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-of-append (equal (vl-interfacelist->orignames (append acl2::a acl2::b)) (append (vl-interfacelist->orignames acl2::a) (vl-interfacelist->orignames acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-interfacelist->orignames (equal (cdr (vl-interfacelist->orignames acl2::x)) (vl-interfacelist->orignames (cdr acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-interfacelist->orignames (equal (car (vl-interfacelist->orignames acl2::x)) (and (consp acl2::x) (vl-interface->origname (car acl2::x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-under-iff (iff (vl-interfacelist->orignames acl2::x) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-interfacelist->orignames (equal (consp (vl-interfacelist->orignames acl2::x)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-interfacelist->orignames (equal (len (vl-interfacelist->orignames acl2::x)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-interfacelist->orignames (true-listp (vl-interfacelist->orignames acl2::x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-interfacelist->orignames-when-not-consp (implies (not (consp acl2::x)) (equal (vl-interfacelist->orignames acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-interfacelist->orignames-of-cons (equal (vl-interfacelist->orignames (cons acl2::a acl2::b)) (cons (vl-interface->origname acl2::a) (vl-interfacelist->orignames acl2::b))) :rule-classes ((:rewrite)))