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