Fixer for values of type
Function:
(defun sshort-fix (x) (declare (xargs :guard (sshortp x))) (let ((__function__ 'sshort-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((get (sshort-integer-fix (std::da-nth 0 (cdr x))))) (cons :sshort (list get))) :exec x)))
Theorem:
(defthm sshortp-of-sshort-fix (b* ((fixed-x (sshort-fix x))) (sshortp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm sshort-fix-when-sshortp (implies (sshortp x) (equal (sshort-fix x) x)))