Recognize non-empty strings.
(nonempty-stringp x) → yes/no
Function:
(defun nonempty-stringp (x) (declare (xargs :guard t)) (let ((__function__ 'nonempty-stringp)) (declare (ignorable __function__)) (not (equal (str-fix x) ""))))
Theorem:
(defthm booleanp-of-nonempty-stringp (b* ((yes/no (nonempty-stringp x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm stringp-when-nonempty-stringp (implies (nonempty-stringp x) (stringp x)))