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