Fixing function for major-frame structures.
(major-frame-fix x) → new-x
Function:
(defun major-frame-fix$inline (x) (declare (xargs :guard (major-frame-p x))) (let ((__function__ 'major-frame-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((bindings (fgl-object-bindings-fix (cdr (std::da-nth 0 x)))) (rule (maybe-fgl-generic-rule-fix (cdr (std::da-nth 1 x)))) (phase (acl2::maybe-natp-fix (cdr (std::da-nth 2 x)))) (minor-stack (minor-stack-fix (cdr (std::da-nth 3 x))))) (list (cons 'bindings bindings) (cons 'rule rule) (cons 'phase phase) (cons 'minor-stack minor-stack))) :exec x)))
Theorem:
(defthm major-frame-p-of-major-frame-fix (b* ((new-x (major-frame-fix$inline x))) (major-frame-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm major-frame-fix-when-major-frame-p (implies (major-frame-p x) (equal (major-frame-fix x) x)))
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)