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