Recognizer for floating-point-type structures.
(floating-point-typep x) → *
Function:
(defun floating-point-typep (x) (declare (xargs :guard t)) (let ((__function__ 'floating-point-typep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :float)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :double) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-floating-point-typep (implies (floating-point-typep x) (consp x)) :rule-classes :compound-recognizer)