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