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