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