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