(vl-delayoreventcontrol-fix x) is a fty fixing function.
(vl-delayoreventcontrol-fix x) → fty::newx
Note that in the execution this is just an inline identity function.
Function:
(defun vl-delayoreventcontrol-fix$inline (x) (declare (xargs :guard (vl-delayoreventcontrol-p x))) (let ((__function__ 'vl-delayoreventcontrol-fix)) (declare (ignorable __function__)) (mbe :logic (common-lisp::case (tag x) ((:vl-delaycontrol) (vl-delaycontrol-fix x)) ((:vl-eventcontrol) (vl-eventcontrol-fix x)) (otherwise (vl-repeateventcontrol-fix x))) :exec x)))
Theorem:
(defthm vl-delayoreventcontrol-p-of-vl-delayoreventcontrol-fix (b* ((fty::newx (vl-delayoreventcontrol-fix$inline x))) (vl-delayoreventcontrol-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm vl-delayoreventcontrol-fix-when-vl-delayoreventcontrol-p (implies (vl-delayoreventcontrol-p x) (equal (vl-delayoreventcontrol-fix x) x)))
Function:
(defun vl-delayoreventcontrol-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-delayoreventcontrol-p acl2::x) (vl-delayoreventcontrol-p acl2::y)))) (equal (vl-delayoreventcontrol-fix acl2::x) (vl-delayoreventcontrol-fix acl2::y)))
Theorem:
(defthm vl-delayoreventcontrol-equiv-is-an-equivalence (and (booleanp (vl-delayoreventcontrol-equiv x y)) (vl-delayoreventcontrol-equiv x x) (implies (vl-delayoreventcontrol-equiv x y) (vl-delayoreventcontrol-equiv y x)) (implies (and (vl-delayoreventcontrol-equiv x y) (vl-delayoreventcontrol-equiv y z)) (vl-delayoreventcontrol-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-delayoreventcontrol-equiv-implies-equal-vl-delayoreventcontrol-fix-1 (implies (vl-delayoreventcontrol-equiv acl2::x x-equiv) (equal (vl-delayoreventcontrol-fix acl2::x) (vl-delayoreventcontrol-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-delayoreventcontrol-fix-under-vl-delayoreventcontrol-equiv (vl-delayoreventcontrol-equiv (vl-delayoreventcontrol-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-delayoreventcontrol-fix-1-forward-to-vl-delayoreventcontrol-equiv (implies (equal (vl-delayoreventcontrol-fix acl2::x) acl2::y) (vl-delayoreventcontrol-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-delayoreventcontrol-fix-2-forward-to-vl-delayoreventcontrol-equiv (implies (equal acl2::x (vl-delayoreventcontrol-fix acl2::y)) (vl-delayoreventcontrol-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-delayoreventcontrol-equiv-of-vl-delayoreventcontrol-fix-1-forward (implies (vl-delayoreventcontrol-equiv (vl-delayoreventcontrol-fix acl2::x) acl2::y) (vl-delayoreventcontrol-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-delayoreventcontrol-equiv-of-vl-delayoreventcontrol-fix-2-forward (implies (vl-delayoreventcontrol-equiv acl2::x (vl-delayoreventcontrol-fix acl2::y)) (vl-delayoreventcontrol-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tag-of-vl-delayoreventcontrol-fix-forward (or (equal (tag (vl-delayoreventcontrol-fix x)) :vl-delaycontrol) (equal (tag (vl-delayoreventcontrol-fix x)) :vl-eventcontrol) (equal (tag (vl-delayoreventcontrol-fix x)) :vl-repeat-eventcontrol)) :rule-classes ((:forward-chaining :trigger-terms ((tag (vl-delayoreventcontrol-fix x))))))