Recognizer for truth-idx bit structures.
(truth-idx-p x) → *
Function:
(defun truth-idx-p (x) (declare (xargs :guard t)) (let ((__function__ 'truth-idx-p)) (declare (ignorable __function__)) (mbe :logic (unsigned-byte-p 16 x) :exec (and (natp x) (< x 65536)))))
Theorem:
(defthm truth-idx-p-when-unsigned-byte-p (implies (unsigned-byte-p 16 x) (truth-idx-p x)))
Theorem:
(defthm unsigned-byte-p-when-truth-idx-p (implies (truth-idx-p x) (unsigned-byte-p 16 x)))
Theorem:
(defthm truth-idx-p-compound-recognizer (implies (truth-idx-p x) (natp x)) :rule-classes :compound-recognizer)