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