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