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