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