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