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