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