Get the get field from a value-string.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun value-string->get$inline (x) (declare (xargs :guard (valuep x))) (declare (xargs :guard (equal (value-kind x) :string))) (let ((__function__ 'value-string->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (value-kind x) :string) x))) (str-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm stringp-of-value-string->get (b* ((get (value-string->get$inline x))) (stringp get)) :rule-classes :rewrite)
Theorem:
(defthm value-string->get$inline-of-value-fix-x (equal (value-string->get$inline (value-fix x)) (value-string->get$inline x)))
Theorem:
(defthm value-string->get$inline-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (value-string->get$inline x) (value-string->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm value-string->get-when-wrong-kind (implies (not (equal (value-kind x) :string)) (equal (value-string->get x) (str-fix nil))))