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