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