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