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