Recognizer for fsuffix structures.
(fsuffixp x) → *
Function:
(defun fsuffixp (x) (declare (xargs :guard t)) (let ((__function__ 'fsuffixp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :locase-f)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :upcase-f) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :locase-l) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :upcase-l) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-fsuffixp (implies (fsuffixp x) (consp x)) :rule-classes :compound-recognizer)