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