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