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