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