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