Recognizer for fgl-rune structures.
(fgl-rune-p x) → *
Function:
(defun fgl-rune-p (x) (declare (xargs :guard t)) (let ((__function__ 'fgl-rune-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :rewrite)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((acl2::?name (std::da-nth 0 (cdr x)))) t))) ((eq (car x) :definition) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((acl2::?name (std::da-nth 0 (cdr x)))) t))) ((eq (car x) :formula) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((name (std::da-nth 0 (cdr x)))) (pseudo-fnsym-p name)))) ((eq (car x) :primitive) (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) :meta) (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-rune-p (implies (fgl-rune-p x) (consp x)) :rule-classes :compound-recognizer)