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