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