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