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