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