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