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