Convert from type
Function:
(defun ushort-from-sshort (x) (declare (xargs :guard (sshortp x))) (let ((__function__ 'ushort-from-sshort)) (declare (ignorable __function__)) (ushort-from-integer-mod (integer-from-sshort x))))
Theorem:
(defthm ushortp-of-ushort-from-sshort (b* ((result (ushort-from-sshort x))) (ushortp result)) :rule-classes :rewrite)
Theorem:
(defthm ushort-from-sshort-of-sshort-fix-x (equal (ushort-from-sshort (sshort-fix x)) (ushort-from-sshort x)))
Theorem:
(defthm ushort-from-sshort-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (ushort-from-sshort x) (ushort-from-sshort x-equiv))) :rule-classes :congruence)