Recognizer for fgl-binder-rune structures.
(fgl-binder-rune-p x) → *
Function:
(defun fgl-binder-rune-p (x) (declare (xargs :guard t)) (let ((__function__ 'fgl-binder-rune-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :brewrite)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((acl2::?name (std::da-nth 0 (cdr x)))) t))) ((eq (car x) :bformula) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((name (std::da-nth 0 (cdr x)))) (pseudo-fnsym-p name)))) (t (and (eq (car x) :bmeta) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((name (std::da-nth 0 (cdr x)))) (pseudo-fnsym-p name))))))))
Theorem:
(defthm consp-when-fgl-binder-rune-p (implies (fgl-binder-rune-p x) (consp x)) :rule-classes :compound-recognizer)