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