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