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