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