Fixing function for vl-iframe structures.
(vl-iframe-fix x) → new-x
Function:
(defun vl-iframe-fix$inline (x) (declare (xargs :guard (vl-iframe-p x))) (let ((__function__ 'vl-iframe-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((initially-activep (acl2::bool-fix (std::prod-car (std::prod-car x)))) (some-thing-satisfiedp (acl2::bool-fix (std::prod-cdr (std::prod-car x)))) (already-saw-elsep (acl2::bool-fix (std::prod-car (std::prod-cdr x)))) (mi-controller (maybe-string-fix (std::prod-car (std::prod-cdr (std::prod-cdr x))))) (mi-filename (maybe-string-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr x)))))) (std::prod-cons (std::prod-cons initially-activep some-thing-satisfiedp) (std::prod-cons already-saw-elsep (std::prod-cons mi-controller mi-filename)))) :exec x)))
Theorem:
(defthm vl-iframe-p-of-vl-iframe-fix (b* ((new-x (vl-iframe-fix$inline x))) (vl-iframe-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-iframe-fix-when-vl-iframe-p (implies (vl-iframe-p x) (equal (vl-iframe-fix x) x)))
Function:
(defun vl-iframe-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-iframe-p acl2::x) (vl-iframe-p acl2::y)))) (equal (vl-iframe-fix acl2::x) (vl-iframe-fix acl2::y)))
Theorem:
(defthm vl-iframe-equiv-is-an-equivalence (and (booleanp (vl-iframe-equiv x y)) (vl-iframe-equiv x x) (implies (vl-iframe-equiv x y) (vl-iframe-equiv y x)) (implies (and (vl-iframe-equiv x y) (vl-iframe-equiv y z)) (vl-iframe-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-iframe-equiv-implies-equal-vl-iframe-fix-1 (implies (vl-iframe-equiv acl2::x x-equiv) (equal (vl-iframe-fix acl2::x) (vl-iframe-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-iframe-fix-under-vl-iframe-equiv (vl-iframe-equiv (vl-iframe-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-iframe-fix-1-forward-to-vl-iframe-equiv (implies (equal (vl-iframe-fix acl2::x) acl2::y) (vl-iframe-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-iframe-fix-2-forward-to-vl-iframe-equiv (implies (equal acl2::x (vl-iframe-fix acl2::y)) (vl-iframe-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-iframe-equiv-of-vl-iframe-fix-1-forward (implies (vl-iframe-equiv (vl-iframe-fix acl2::x) acl2::y) (vl-iframe-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-iframe-equiv-of-vl-iframe-fix-2-forward (implies (vl-iframe-equiv acl2::x (vl-iframe-fix acl2::y)) (vl-iframe-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)