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