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