Recognizer for jaccess structures.
(jaccessp x) → *
Function:
(defun jaccessp (x) (declare (xargs :guard t)) (let ((__function__ 'jaccessp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :public)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :protected) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :private) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :default) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-jaccessp (implies (jaccessp x) (consp x)) :rule-classes :compound-recognizer)