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