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