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