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