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