Recognizer for address-set.
(address-setp x) → *
Function:
(defun address-setp (x) (declare (xargs :guard t)) (if (atom x) (null x) (and (addressp (car x)) (or (null (cdr x)) (and (consp (cdr x)) (acl2::fast-<< (car x) (cadr x)) (address-setp (cdr x)))))))
Theorem:
(defthm booleanp-ofaddress-setp (booleanp (address-setp x)))
Theorem:
(defthm setp-when-address-setp (implies (address-setp x) (setp x)) :rule-classes (:rewrite))
Theorem:
(defthm addressp-of-head-when-address-setp (implies (address-setp x) (equal (addressp (head x)) (not (emptyp x)))))
Theorem:
(defthm address-setp-of-tail-when-address-setp (implies (address-setp x) (address-setp (tail x))))
Theorem:
(defthm address-setp-of-insert (equal (address-setp (insert a x)) (and (addressp a) (address-setp (sfix x)))))
Theorem:
(defthm addressp-when-in-address-setp-binds-free-x (implies (and (in a x) (address-setp x)) (addressp a)))
Theorem:
(defthm not-in-address-setp-when-not-addressp (implies (and (address-setp x) (not (addressp a))) (not (in a x))))
Theorem:
(defthm address-setp-of-union (equal (address-setp (union x y)) (and (address-setp (sfix x)) (address-setp (sfix y)))))
Theorem:
(defthm address-setp-of-intersect (implies (and (address-setp x) (address-setp y)) (address-setp (intersect x y))))
Theorem:
(defthm address-setp-of-difference (implies (address-setp x) (address-setp (difference x y))))
Theorem:
(defthm address-setp-of-delete (implies (address-setp x) (address-setp (delete a x))))