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