Recognizer for address-pos-map.
(address-pos-mapp x) → *
Function:
(defun address-pos-mapp (x) (declare (xargs :guard t)) (if (atom x) (null x) (and (consp (car x)) (addressp (caar x)) (posp (cdar x)) (or (null (cdr x)) (and (consp (cdr x)) (consp (cadr x)) (acl2::fast-<< (caar x) (caadr x)) (address-pos-mapp (cdr x)))))))
Theorem:
(defthm booleanp-of-address-pos-mapp (booleanp (address-pos-mapp x)))
Theorem:
(defthm mapp-when-address-pos-mapp (implies (address-pos-mapp x) (omap::mapp x)) :rule-classes (:rewrite :forward-chaining))
Theorem:
(defthm address-pos-mapp-of-tail (implies (address-pos-mapp x) (address-pos-mapp (omap::tail x))))
Theorem:
(defthm addressp-of-head-key-when-address-pos-mapp (implies (and (address-pos-mapp x) (not (omap::emptyp x))) (addressp (mv-nth 0 (omap::head x)))))
Theorem:
(defthm posp-of-head-val-when-address-pos-mapp (implies (and (address-pos-mapp x) (not (omap::emptyp x))) (posp (mv-nth 1 (omap::head x)))))
Theorem:
(defthm address-pos-mapp-of-update (implies (and (address-pos-mapp x) (addressp k) (posp v)) (address-pos-mapp (omap::update k v x))))
Theorem:
(defthm address-pos-mapp-of-update* (implies (and (address-pos-mapp x) (address-pos-mapp y)) (address-pos-mapp (omap::update* x y))))
Theorem:
(defthm address-pos-mapp-of-delete (implies (address-pos-mapp x) (address-pos-mapp (omap::delete k x))))
Theorem:
(defthm address-pos-mapp-of-delete* (implies (address-pos-mapp x) (address-pos-mapp (omap::delete* k x))))
Theorem:
(defthm addressp-when-assoc-address-pos-mapp-binds-free-x (implies (and (omap::assoc k x) (address-pos-mapp x)) (addressp k)))
Theorem:
(defthm addressp-of-car-of-assoc-address-pos-mapp (implies (and (address-pos-mapp x) (omap::assoc k x)) (addressp (car (omap::assoc k x)))))
Theorem:
(defthm posp-of-cdr-of-assoc-address-pos-mapp (implies (and (address-pos-mapp x) (omap::assoc k x)) (posp (cdr (omap::assoc k x)))))
Theorem:
(defthm posp-of-lookup-when-address-pos-mapp (implies (and (address-pos-mapp x) (omap::assoc k x)) (posp (omap::lookup k x))))