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