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