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