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