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