Recognizer for plain-string structures.
(plain-stringp x) → *
Function:
(defun plain-stringp (x) (declare (xargs :guard t)) (let ((__function__ 'plain-stringp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :plain-string) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(content double-quote-p))) :exec (fty::alist-with-carsp (cdr x) '(content double-quote-p))) (b* ((content (cdr (std::da-nth 0 (cdr x)))) (double-quote-p (cdr (std::da-nth 1 (cdr x))))) (and (string-element-listp content) (booleanp double-quote-p))))))
Theorem:
(defthm consp-when-plain-stringp (implies (plain-stringp x) (consp x)) :rule-classes :compound-recognizer)