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