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