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