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