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