Recognizer of Java
(doublex-valuep x) → yes/no
Function:
(defun doublex-valuep (x) (declare (xargs :guard t)) (let ((__function__ 'doublex-valuep)) (declare (ignorable __function__)) (and (tuplep 2 x) (eq (first x) :doublex) (doublex-value-abs-p (second x)))))
Theorem:
(defthm booleanp-of-doublex-valuep (b* ((yes/no (doublex-valuep x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm no-doublex-value-when-unsupported (implies (not (doublex-param)) (not (doublex-valuep x))))