Get the field field from a initializer.
(initializer->field x) → field
This is an ordinary field accessor created by fty::defprod.
Function:
(defun initializer->field$inline (x) (declare (xargs :guard (initializerp x))) (declare (xargs :guard t)) (let ((__function__ 'initializer->field)) (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-initializer->field (b* ((field (initializer->field$inline x))) (identifierp field)) :rule-classes :rewrite)
Theorem:
(defthm initializer->field$inline-of-initializer-fix-x (equal (initializer->field$inline (initializer-fix x)) (initializer->field$inline x)))
Theorem:
(defthm initializer->field$inline-initializer-equiv-congruence-on-x (implies (initializer-equiv x x-equiv) (equal (initializer->field$inline x) (initializer->field$inline x-equiv))) :rule-classes :congruence)