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