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