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