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