Recognizer for plaintext-type structures.
(plaintext-typep x) → *
Function:
(defun plaintext-typep (x) (declare (xargs :guard t)) (let ((__function__ 'plaintext-typep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :literal)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (literal-typep get)))) (t (and (eq (car x) :interface) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((name (std::da-nth 0 (cdr x)))) (identifierp name))))))))
Theorem:
(defthm consp-when-plaintext-typep (implies (plaintext-typep x) (consp x)) :rule-classes :compound-recognizer)