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