Value associated to a key in an omap.
(lookup key map) → val
Function:
(defun lookup (key map) (declare (xargs :guard (mapp map))) (declare (xargs :guard (in key map))) (let ((__function__ 'lookup)) (declare (ignorable __function__)) (cdr (in key map))))
Theorem:
(defthm lookup-when-empty (implies (empty map) (not (lookup key map))) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm acl2-count-lookup-<-map (implies (not (empty map)) (< (acl2-count (lookup key map)) (acl2-count map))))