Function:
(defun 4vec-boolmaskp (x mask) (declare (xargs :guard (and (4vec-p x) (integerp mask)))) (let ((__function__ '4vec-boolmaskp)) (declare (ignorable __function__)) (b* (((4vec x) x)) (eql 0 (logand mask (logxor x.upper x.lower))))))
Theorem:
(defthm 4vec-boolmaskp-of-4vec-fix-x (equal (4vec-boolmaskp (4vec-fix x) mask) (4vec-boolmaskp x mask)))
Theorem:
(defthm 4vec-boolmaskp-4vec-equiv-congruence-on-x (implies (4vec-equiv x x-equiv) (equal (4vec-boolmaskp x mask) (4vec-boolmaskp x-equiv mask))) :rule-classes :congruence)
Theorem:
(defthm 4vec-boolmaskp-of-ifix-mask (equal (4vec-boolmaskp x (ifix mask)) (4vec-boolmaskp x mask)))
Theorem:
(defthm 4vec-boolmaskp-int-equiv-congruence-on-mask (implies (int-equiv mask mask-equiv) (equal (4vec-boolmaskp x mask) (4vec-boolmaskp x mask-equiv))) :rule-classes :congruence)