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