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