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