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