Bitwise conjunction of a value of type
Function:
(defun bitand-ulong-sshort (x y) (declare (xargs :guard (and (ulongp x) (sshortp y)))) (bitand-ulong-ulong x (ulong-from-sshort y)))
Theorem:
(defthm ulongp-of-bitand-ulong-sshort (ulongp (bitand-ulong-sshort x y)))
Theorem:
(defthm bitand-ulong-sshort-of-ulong-fix-x (equal (bitand-ulong-sshort (ulong-fix x) y) (bitand-ulong-sshort x y)))
Theorem:
(defthm bitand-ulong-sshort-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (bitand-ulong-sshort x y) (bitand-ulong-sshort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitand-ulong-sshort-of-sshort-fix-y (equal (bitand-ulong-sshort x (sshort-fix y)) (bitand-ulong-sshort x y)))
Theorem:
(defthm bitand-ulong-sshort-sshort-equiv-congruence-on-y (implies (sshort-equiv y y-equiv) (equal (bitand-ulong-sshort x y) (bitand-ulong-sshort x y-equiv))) :rule-classes :congruence)