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