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