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