Recognizer for svtv-override-triplemap.
(svtv-override-triplemap-p x) → *
Function:
(defun svtv-override-triplemap-p (x) (declare (xargs :guard t)) (let ((__function__ 'svtv-override-triplemap-p)) (declare (ignorable __function__)) (if (atom x) (eq x nil) (and (consp (car x)) (svar-p (caar x)) (svtv-override-triple-p (cdar x)) (svtv-override-triplemap-p (cdr x))))))
Theorem:
(defthm svtv-override-triplemap-p-of-union-equal (equal (svtv-override-triplemap-p (union-equal x y)) (and (svtv-override-triplemap-p (list-fix x)) (svtv-override-triplemap-p (double-rewrite y)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-intersection-equal-2 (implies (svtv-override-triplemap-p (double-rewrite y)) (svtv-override-triplemap-p (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-intersection-equal-1 (implies (svtv-override-triplemap-p (double-rewrite x)) (svtv-override-triplemap-p (intersection-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-set-difference-equal (implies (svtv-override-triplemap-p x) (svtv-override-triplemap-p (set-difference-equal x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-when-subsetp-equal (and (implies (and (subsetp-equal x y) (svtv-override-triplemap-p y)) (equal (svtv-override-triplemap-p x) (true-listp x))) (implies (and (svtv-override-triplemap-p y) (subsetp-equal x y)) (equal (svtv-override-triplemap-p x) (true-listp x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-rcons (iff (svtv-override-triplemap-p (acl2::rcons acl2::a x)) (and (and (consp acl2::a) (svar-p (car acl2::a)) (svtv-override-triple-p (cdr acl2::a))) (svtv-override-triplemap-p (list-fix x)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-append (equal (svtv-override-triplemap-p (append acl2::a acl2::b)) (and (svtv-override-triplemap-p (list-fix acl2::a)) (svtv-override-triplemap-p acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-repeat (iff (svtv-override-triplemap-p (repeat acl2::n x)) (or (and (consp x) (svar-p (car x)) (svtv-override-triple-p (cdr x))) (zp acl2::n))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-rev (equal (svtv-override-triplemap-p (rev x)) (svtv-override-triplemap-p (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-list-fix (implies (svtv-override-triplemap-p x) (svtv-override-triplemap-p (list-fix x))) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-when-svtv-override-triplemap-p-compound-recognizer (implies (svtv-override-triplemap-p x) (true-listp x)) :rule-classes :compound-recognizer)
Theorem:
(defthm svtv-override-triplemap-p-when-not-consp (implies (not (consp x)) (equal (svtv-override-triplemap-p x) (not x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-cdr-when-svtv-override-triplemap-p (implies (svtv-override-triplemap-p (double-rewrite x)) (svtv-override-triplemap-p (cdr x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-cons (equal (svtv-override-triplemap-p (cons acl2::a x)) (and (and (consp acl2::a) (svar-p (car acl2::a)) (svtv-override-triple-p (cdr acl2::a))) (svtv-override-triplemap-p x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-remove-assoc (implies (svtv-override-triplemap-p x) (svtv-override-triplemap-p (remove-assoc-equal acl2::name x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-put-assoc (implies (and (svtv-override-triplemap-p x)) (iff (svtv-override-triplemap-p (put-assoc-equal acl2::name acl2::val x)) (and (svar-p acl2::name) (svtv-override-triple-p acl2::val)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-fast-alist-clean (implies (svtv-override-triplemap-p x) (svtv-override-triplemap-p (fast-alist-clean x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-hons-shrink-alist (implies (and (svtv-override-triplemap-p x) (svtv-override-triplemap-p y)) (svtv-override-triplemap-p (hons-shrink-alist x y))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triplemap-p-of-hons-acons (equal (svtv-override-triplemap-p (hons-acons acl2::a acl2::n x)) (and (svar-p acl2::a) (svtv-override-triple-p acl2::n) (svtv-override-triplemap-p x))) :rule-classes ((:rewrite)))
Theorem:
(defthm svtv-override-triple-p-of-cdr-of-hons-assoc-equal-when-svtv-override-triplemap-p (implies (svtv-override-triplemap-p x) (iff (svtv-override-triple-p (cdr (hons-assoc-equal acl2::k x))) (or (hons-assoc-equal acl2::k x) (svtv-override-triple-p nil)))) :rule-classes ((:rewrite)))
Theorem:
(defthm alistp-when-svtv-override-triplemap-p-rewrite (implies (svtv-override-triplemap-p x) (alistp x)) :rule-classes ((:rewrite)))
Theorem:
(defthm alistp-when-svtv-override-triplemap-p (implies (svtv-override-triplemap-p x) (alistp x)) :rule-classes :tau-system)
Theorem:
(defthm svtv-override-triple-p-of-cdar-when-svtv-override-triplemap-p (implies (svtv-override-triplemap-p x) (iff (svtv-override-triple-p (cdar x)) (or (consp x) (svtv-override-triple-p nil)))) :rule-classes ((:rewrite)))
Theorem:
(defthm svar-p-of-caar-when-svtv-override-triplemap-p (implies (svtv-override-triplemap-p x) (iff (svar-p (caar x)) (or (consp x) (svar-p nil)))) :rule-classes ((:rewrite)))