A
(abstract-quoted-string tree) → charstring
Function:
(defun abstract-quoted-string (tree) (declare (xargs :guard (treep tree))) (b* (((fun (fail)) (prog2$ (abstract-fail) "")) ((unless (tree-case tree :nonleaf)) (fail)) (treess (tree-nonleaf->branches tree)) ((unless (and (consp treess) (consp (cdr treess)) (consp (cddr treess)))) (fail)) (trees (cadr treess)) (nats (abstract-*-grouped-terminal trees)) ((unless (unsigned-byte-listp 8 nats)) (fail))) (nats=>string nats)))
Theorem:
(defthm stringp-of-abstract-quoted-string (b* ((charstring (abstract-quoted-string tree))) (common-lisp::stringp charstring)) :rule-classes :rewrite)