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