(modalist-lookup modname modalist) → mod
Function:
(defun modalist-lookup (modname modalist) (declare (xargs :guard (modalist-p modalist))) (let ((__function__ 'modalist-lookup)) (declare (ignorable __function__)) (cdr (hons-get modname (mbe :logic (modalist-fix modalist) :exec modalist)))))
Theorem:
(defthm return-type-of-modalist-lookup (b* ((mod (modalist-lookup modname modalist))) (iff (module-p mod) mod)) :rule-classes :rewrite)
Theorem:
(defthm modalist-lookup-of-modalist-fix-modalist (equal (modalist-lookup modname (modalist-fix modalist)) (modalist-lookup modname modalist)))
Theorem:
(defthm modalist-lookup-modalist-equiv-congruence-on-modalist (implies (modalist-equiv modalist modalist-equiv) (equal (modalist-lookup modname modalist) (modalist-lookup modname modalist-equiv))) :rule-classes :congruence)