Recognizer for svar-map.
(svar-map-p x) → *
Function:
(defun svar-map-p (x) (declare (xargs :guard t)) (let ((__function__ 'svar-map-p)) (declare (ignorable __function__)) (if (atom x) t (and (consp (car x)) (svar-p (caar x)) (svar-p (cdar x)) (svar-map-p (cdr x))))))
Theorem:
(defthm svar-map-p-of-union-equal (equal (svar-map-p (union-equal x y)) (and (svar-map-p (list-fix x)) (svar-map-p (double-rewrite y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-intersection-equal-2 (implies (svar-map-p (double-rewrite y)) (svar-map-p (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-intersection-equal-1 (implies (svar-map-p (double-rewrite x)) (svar-map-p (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-set-difference-equal (implies (svar-map-p x) (svar-map-p (set-difference-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-set-equiv-congruence (implies (set-equiv x y) (equal (svar-map-p x) (svar-map-p y))) :rule-classes :congruence)
Theorem:
(defthm svar-map-p-when-subsetp-equal (and (implies (and (subsetp-equal x y) (svar-map-p y)) (svar-map-p x)) (implies (and (svar-map-p y) (subsetp-equal x y)) (svar-map-p x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-rcons (iff (svar-map-p (acl2::rcons acl2::a x)) (and (and (consp acl2::a) (svar-p (car acl2::a)) (svar-p (cdr acl2::a))) (svar-map-p (list-fix x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-repeat (iff (svar-map-p (repeat acl2::n x)) (or (and (consp x) (svar-p (car x)) (svar-p (cdr x))) (zp acl2::n))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-rev (equal (svar-map-p (rev x)) (svar-map-p (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-list-fix (equal (svar-map-p (list-fix x)) (svar-map-p x)) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-append (equal (svar-map-p (append acl2::a acl2::b)) (and (svar-map-p acl2::a) (svar-map-p acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-when-not-consp (implies (not (consp x)) (svar-map-p x)) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-cdr-when-svar-map-p (implies (svar-map-p (double-rewrite x)) (svar-map-p (cdr x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-cons (equal (svar-map-p (cons acl2::a x)) (and (and (consp acl2::a) (svar-p (car acl2::a)) (svar-p (cdr acl2::a))) (svar-map-p x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-fast-alist-clean (implies (svar-map-p x) (svar-map-p (fast-alist-clean x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-hons-shrink-alist (implies (and (svar-map-p x) (svar-map-p y)) (svar-map-p (hons-shrink-alist x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-map-p-of-hons-acons (equal (svar-map-p (hons-acons acl2::a acl2::n x)) (and (svar-p acl2::a) (svar-p acl2::n) (svar-map-p x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-p-of-cdr-of-hons-assoc-equal-when-svar-map-p (implies (svar-map-p x) (iff (svar-p (cdr (hons-assoc-equal acl2::k x))) (or (hons-assoc-equal acl2::k x) (svar-p nil)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-p-of-cdar-when-svar-map-p (implies (svar-map-p x) (iff (svar-p (cdar x)) (or (consp x) (svar-p nil)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-p-of-caar-when-svar-map-p (implies (svar-map-p x) (iff (svar-p (caar x)) (or (consp x) (svar-p nil)))) :rule-classes ((:rewrite)))