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