Recognizer for c-char structures.
(c-char-p x) → *
Function:
(defun c-char-p (x) (declare (xargs :guard t)) (and (consp x) (cond ((or (atom x) (eq (car x) :char)) (and (b* ((code (cdr x))) (natp code)))) (t (and (eq (car x) :escape) (and) (b* ((escape (cdr x))) (escapep escape)))))))
Theorem:
(defthm consp-when-c-char-p (implies (c-char-p x) (consp x)) :rule-classes :compound-recognizer)