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