Get the prefix? field from a stringlit.
(stringlit->prefix? x) → prefix?
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stringlit->prefix?$inline (x) (declare (xargs :guard (stringlitp x))) (declare (xargs :guard t)) (let ((__function__ 'stringlit->prefix?)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (eprefix-option-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm eprefix-optionp-of-stringlit->prefix? (b* ((prefix? (stringlit->prefix?$inline x))) (eprefix-optionp prefix?)) :rule-classes :rewrite)
Theorem:
(defthm stringlit->prefix?$inline-of-stringlit-fix-x (equal (stringlit->prefix?$inline (stringlit-fix x)) (stringlit->prefix?$inline x)))
Theorem:
(defthm stringlit->prefix?$inline-stringlit-equiv-congruence-on-x (implies (stringlit-equiv x x-equiv) (equal (stringlit->prefix?$inline x) (stringlit->prefix?$inline x-equiv))) :rule-classes :congruence)