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