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