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