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