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