Representation of a write of a pointed type
Function:
(defun ulong-write (x) (declare (xargs :guard (ulongp x))) (let ((__function__ 'ulong-write)) (declare (ignorable __function__)) (ulong-fix x)))
Theorem:
(defthm return-type-of-ulong-write (b* ((x (ulong-write x))) (star (ulongp x))) :rule-classes :rewrite)
Theorem:
(defthm ulongp-of-ulong-write (b* ((x (ulong-write x))) (ulongp x)) :rule-classes :rewrite)
Theorem:
(defthm ulong-write-of-ulong-fix-x (equal (ulong-write (ulong-fix x)) (ulong-write x)))
Theorem:
(defthm ulong-write-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (ulong-write x) (ulong-write x-equiv))) :rule-classes :congruence)