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