Fixing function for vl-iskipinfo structures.
(vl-iskipinfo-fix x) → new-x
Function:
(defun vl-iskipinfo-fix$inline (x) (declare (xargs :guard (vl-iskipinfo-p x))) (let ((__function__ 'vl-iskipinfo-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((controller (maybe-string-fix (std::prod-car (std::prod-car (cdr x))))) (misses (vl-locationlist-fix (std::prod-cdr (std::prod-car (cdr x))))) (hits (vl-locationlist-fix (std::prod-car (std::prod-cdr (cdr x))))) (len (nfix (std::prod-cdr (std::prod-cdr (cdr x)))))) (cons :vl-iskipinfo (std::prod-cons (std::prod-cons controller misses) (std::prod-cons hits len)))) :exec x)))
Theorem:
(defthm vl-iskipinfo-p-of-vl-iskipinfo-fix (b* ((new-x (vl-iskipinfo-fix$inline x))) (vl-iskipinfo-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-iskipinfo-fix-when-vl-iskipinfo-p (implies (vl-iskipinfo-p x) (equal (vl-iskipinfo-fix x) x)))
Function:
(defun vl-iskipinfo-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-iskipinfo-p acl2::x) (vl-iskipinfo-p acl2::y)))) (equal (vl-iskipinfo-fix acl2::x) (vl-iskipinfo-fix acl2::y)))
Theorem:
(defthm vl-iskipinfo-equiv-is-an-equivalence (and (booleanp (vl-iskipinfo-equiv x y)) (vl-iskipinfo-equiv x x) (implies (vl-iskipinfo-equiv x y) (vl-iskipinfo-equiv y x)) (implies (and (vl-iskipinfo-equiv x y) (vl-iskipinfo-equiv y z)) (vl-iskipinfo-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-iskipinfo-equiv-implies-equal-vl-iskipinfo-fix-1 (implies (vl-iskipinfo-equiv acl2::x x-equiv) (equal (vl-iskipinfo-fix acl2::x) (vl-iskipinfo-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-iskipinfo-fix-under-vl-iskipinfo-equiv (vl-iskipinfo-equiv (vl-iskipinfo-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-iskipinfo-fix-1-forward-to-vl-iskipinfo-equiv (implies (equal (vl-iskipinfo-fix acl2::x) acl2::y) (vl-iskipinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-iskipinfo-fix-2-forward-to-vl-iskipinfo-equiv (implies (equal acl2::x (vl-iskipinfo-fix acl2::y)) (vl-iskipinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-iskipinfo-equiv-of-vl-iskipinfo-fix-1-forward (implies (vl-iskipinfo-equiv (vl-iskipinfo-fix acl2::x) acl2::y) (vl-iskipinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-iskipinfo-equiv-of-vl-iskipinfo-fix-2-forward (implies (vl-iskipinfo-equiv acl2::x (vl-iskipinfo-fix acl2::y)) (vl-iskipinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)