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