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