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