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