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