A
(abstract-case-sensitive-string tree) → charstring
Function:
(defun abstract-case-sensitive-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)))) (fail)) (trees (cadr treess)) ((unless (consp trees)) (fail)) (subtree (car trees))) (abstract-quoted-string subtree)))
Theorem:
(defthm stringp-of-abstract-case-sensitive-string (b* ((charstring (abstract-case-sensitive-string tree))) (common-lisp::stringp charstring)) :rule-classes :rewrite)