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