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