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