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