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