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)) (mbe :logic (b* ((x (and t x))) (absdeclor-option-fix (car (cdr x)))) :exec (car (cdr x))))
Theorem:
(defthm absdeclor-optionp-of-tyname->declor? (b* ((declor? (tyname->declor?$inline x))) (absdeclor-optionp 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)