Set of (names of) relations in a constraint.
(constraint-rels constr) → rels
This is the empty set for an equality constraint; for a relation constraint, it is the singleton with that constraint relation. This function is used to define constraint-list-rels.
Function:
(defun constraint-rels (constr) (declare (xargs :guard (constraintp constr))) (let ((__function__ 'constraint-rels)) (declare (ignorable __function__)) (constraint-case constr :equal nil :relation (insert constr.name nil))))
Theorem:
(defthm string-setp-of-constraint-rels (b* ((rels (constraint-rels constr))) (string-setp rels)) :rule-classes :rewrite)
Theorem:
(defthm constraint-rels-of-constraint-fix-constr (equal (constraint-rels (constraint-fix constr)) (constraint-rels constr)))
Theorem:
(defthm constraint-rels-constraint-equiv-congruence-on-constr (implies (constraint-equiv constr constr-equiv) (equal (constraint-rels constr) (constraint-rels constr-equiv))) :rule-classes :congruence)