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