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