(svar-boolmasks-lookup v boolmasks) → boolmask
Function:
(defun svar-boolmasks-lookup (v boolmasks) (declare (xargs :guard (and (svar-p v) (svar-boolmasks-p boolmasks)))) (let ((__function__ 'svar-boolmasks-lookup)) (declare (ignorable __function__)) (ifix (cdr (hons-get (mbe :logic (svar-fix v) :exec v) boolmasks)))))
Theorem:
(defthm integerp-of-svar-boolmasks-lookup (b* ((boolmask (svar-boolmasks-lookup v boolmasks))) (integerp boolmask)) :rule-classes :type-prescription)
Theorem:
(defthm svar-boolmasks-lookup-of-svar-fix-v (equal (svar-boolmasks-lookup (svar-fix v) boolmasks) (svar-boolmasks-lookup v boolmasks)))
Theorem:
(defthm svar-boolmasks-lookup-svar-equiv-congruence-on-v (implies (svar-equiv v v-equiv) (equal (svar-boolmasks-lookup v boolmasks) (svar-boolmasks-lookup v-equiv boolmasks))) :rule-classes :congruence)
Theorem:
(defthm svar-boolmasks-lookup-of-svar-boolmasks-fix-boolmasks (equal (svar-boolmasks-lookup v (svar-boolmasks-fix boolmasks)) (svar-boolmasks-lookup v boolmasks)))
Theorem:
(defthm svar-boolmasks-lookup-svar-boolmasks-equiv-congruence-on-boolmasks (implies (svar-boolmasks-equiv boolmasks boolmasks-equiv) (equal (svar-boolmasks-lookup v boolmasks) (svar-boolmasks-lookup v boolmasks-equiv))) :rule-classes :congruence)