Get the instname field from a modinst.
This is an ordinary field accessor created by defprod.
Function:
(defun modinst->instname$inline (x) (declare (xargs :guard (modinst-p x))) (declare (xargs :guard t)) (let ((__function__ 'modinst->instname)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (name-fix (std::prod-car x))) :exec (std::prod-car x))))
Theorem:
(defthm name-p-of-modinst->instname (b* ((instname (modinst->instname$inline x))) (name-p instname)) :rule-classes :rewrite)
Theorem:
(defthm modinst->instname$inline-of-modinst-fix-x (equal (modinst->instname$inline (modinst-fix x)) (modinst->instname$inline x)))
Theorem:
(defthm modinst->instname$inline-modinst-equiv-congruence-on-x (implies (modinst-equiv x x-equiv) (equal (modinst->instname$inline x) (modinst->instname$inline x-equiv))) :rule-classes :congruence)