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