A prose value notation is well-formed iff it consists of only non-control ASCII characters, except for the right angle bracket character.
(prose-val-wfp prose-val) → yes/no
These allowed characters are consistent with
the rule
Function:
(defun prose-val-wfp (prose-val) (declare (xargs :guard (prose-val-p prose-val))) (b* ((allowed-chars (nats=>chars (append (integers-from-to 32 61) (integers-from-to 63 126))))) (subsetp (explode (prose-val->get prose-val)) allowed-chars)))
Theorem:
(defthm booleanp-of-prose-val-wfp (b* ((yes/no (prose-val-wfp prose-val))) (booleanp yes/no)) :rule-classes :rewrite)