Get the tyspec field from a fundef.
(fundef->tyspec x) → tyspec
This is an ordinary field accessor created by fty::defprod.
Function:
(defun fundef->tyspec$inline (x) (declare (xargs :guard (fundefp x))) (declare (xargs :guard t)) (let ((__function__ 'fundef->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-fundef->tyspec (b* ((tyspec (fundef->tyspec$inline x))) (tyspecseqp tyspec)) :rule-classes :rewrite)
Theorem:
(defthm fundef->tyspec$inline-of-fundef-fix-x (equal (fundef->tyspec$inline (fundef-fix x)) (fundef->tyspec$inline x)))
Theorem:
(defthm fundef->tyspec$inline-fundef-equiv-congruence-on-x (implies (fundef-equiv x x-equiv) (equal (fundef->tyspec$inline x) (fundef->tyspec$inline x-equiv))) :rule-classes :congruence)