Recognizer for feat-base structures.
(feat-basep x) → *
Function:
(defun feat-basep (x) (declare (xargs :guard t)) (let ((__function__ 'feat-basep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :rv32i)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :rv64i) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :rv32e) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :rv64e) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-feat-basep (implies (feat-basep x) (consp x)) :rule-classes :compound-recognizer)