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