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