Get the specs field from a decl-decl.
(decl-decl->specs x) → specs
This is an ordinary field accessor created by fty::defprod.
Function:
(defun decl-decl->specs$inline (x) (declare (xargs :guard (declp x))) (declare (xargs :guard (equal (decl-kind x) :decl))) (let ((__function__ 'decl-decl->specs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (decl-kind x) :decl) x))) (decl-spec-list-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm decl-spec-listp-of-decl-decl->specs (b* ((specs (decl-decl->specs$inline x))) (decl-spec-listp specs)) :rule-classes :rewrite)
Theorem:
(defthm decl-decl->specs$inline-of-decl-fix-x (equal (decl-decl->specs$inline (decl-fix x)) (decl-decl->specs$inline x)))
Theorem:
(defthm decl-decl->specs$inline-decl-equiv-congruence-on-x (implies (decl-equiv x x-equiv) (equal (decl-decl->specs$inline x) (decl-decl->specs$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm decl-decl->specs-when-wrong-kind (implies (not (equal (decl-kind x) :decl)) (equal (decl-decl->specs x) (decl-spec-list-fix nil))))