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