Recognizer for sbyte8.
(sbyte8p x) → yes/no
Function:
(defun sbyte8p (x) (declare (xargs :guard t)) (mbe :logic (signed-byte-p 8 x) :exec (and (integerp x) (<= -128 x) (< x 128))))
Theorem:
(defthm booleanp-of-sbyte8p (b* ((yes/no (sbyte8p x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm sbyte8p-forward-signed-byte-p (implies (sbyte8p x) (signed-byte-p 8 x)) :rule-classes :forward-chaining)
Theorem:
(defthm signed-byte-p-rewrite-sbyte8p (equal (signed-byte-p 8 x) (sbyte8p x)))
Theorem:
(defthm integerp-when-sbyte8p (implies (sbyte8p x) (integerp x)) :rule-classes :compound-recognizer)