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