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