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