Multiplication of a value of type
Function:
(defun mul-sshort-uint (x y) (declare (xargs :guard (and (sshortp x) (uintp y)))) (mul-uint-uint (uint-from-sshort x) y))
Theorem:
(defthm uintp-of-mul-sshort-uint (uintp (mul-sshort-uint x y)))
Theorem:
(defthm mul-sshort-uint-of-sshort-fix-x (equal (mul-sshort-uint (sshort-fix x) y) (mul-sshort-uint x y)))
Theorem:
(defthm mul-sshort-uint-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (mul-sshort-uint x y) (mul-sshort-uint x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm mul-sshort-uint-of-uint-fix-y (equal (mul-sshort-uint x (uint-fix y)) (mul-sshort-uint x y)))
Theorem:
(defthm mul-sshort-uint-uint-equiv-congruence-on-y (implies (uint-equiv y y-equiv) (equal (mul-sshort-uint x y) (mul-sshort-uint x y-equiv))) :rule-classes :congruence)