Basic equivalence relation for constraint-instance structures.
Function:
(defun constraint-instance-equiv$inline (x y) (declare (xargs :guard (and (constraint-instance-p x) (constraint-instance-p y)))) (equal (constraint-instance-fix x) (constraint-instance-fix y)))
Theorem:
(defthm constraint-instance-equiv-is-an-equivalence (and (booleanp (constraint-instance-equiv x y)) (constraint-instance-equiv x x) (implies (constraint-instance-equiv x y) (constraint-instance-equiv y x)) (implies (and (constraint-instance-equiv x y) (constraint-instance-equiv y z)) (constraint-instance-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm constraint-instance-equiv-implies-equal-constraint-instance-fix-1 (implies (constraint-instance-equiv x x-equiv) (equal (constraint-instance-fix x) (constraint-instance-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm constraint-instance-fix-under-constraint-instance-equiv (constraint-instance-equiv (constraint-instance-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-constraint-instance-fix-1-forward-to-constraint-instance-equiv (implies (equal (constraint-instance-fix x) y) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-constraint-instance-fix-2-forward-to-constraint-instance-equiv (implies (equal x (constraint-instance-fix y)) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm constraint-instance-equiv-of-constraint-instance-fix-1-forward (implies (constraint-instance-equiv (constraint-instance-fix x) y) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm constraint-instance-equiv-of-constraint-instance-fix-2-forward (implies (constraint-instance-equiv x (constraint-instance-fix y)) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)