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