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