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