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