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