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