(any-trace-fix x) is a usual ACL2::fty list fixing function.
(any-trace-fix x) → fty::newx
In the logic, we apply any-table-fix to each member of the x. In the execution, none of that is actually necessary and this is just an inlined identity function.
Function:
(defun any-trace-fix$inline (x) (declare (xargs :guard (any-trace-p x))) (let ((acl2::__function__ 'any-trace-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (if (atom x) nil (cons (any-table-fix (car x)) (any-trace-fix (cdr x)))) :exec x)))
Theorem:
(defthm any-trace-p-of-any-trace-fix (b* ((fty::newx (any-trace-fix$inline x))) (any-trace-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm any-trace-fix-when-any-trace-p (implies (any-trace-p x) (equal (any-trace-fix x) x)))
Function:
(defun any-trace-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (any-trace-p acl2::x) (any-trace-p acl2::y)))) (equal (any-trace-fix acl2::x) (any-trace-fix acl2::y)))
Theorem:
(defthm any-trace-equiv-is-an-equivalence (and (booleanp (any-trace-equiv x y)) (any-trace-equiv x x) (implies (any-trace-equiv x y) (any-trace-equiv y x)) (implies (and (any-trace-equiv x y) (any-trace-equiv y z)) (any-trace-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm any-trace-equiv-implies-equal-any-trace-fix-1 (implies (any-trace-equiv acl2::x x-equiv) (equal (any-trace-fix acl2::x) (any-trace-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm any-trace-fix-under-any-trace-equiv (any-trace-equiv (any-trace-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-any-trace-fix-1-forward-to-any-trace-equiv (implies (equal (any-trace-fix acl2::x) acl2::y) (any-trace-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-any-trace-fix-2-forward-to-any-trace-equiv (implies (equal acl2::x (any-trace-fix acl2::y)) (any-trace-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm any-trace-equiv-of-any-trace-fix-1-forward (implies (any-trace-equiv (any-trace-fix acl2::x) acl2::y) (any-trace-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm any-trace-equiv-of-any-trace-fix-2-forward (implies (any-trace-equiv acl2::x (any-trace-fix acl2::y)) (any-trace-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm car-of-any-trace-fix-x-under-any-table-equiv (any-table-equiv (car (any-trace-fix acl2::x)) (car acl2::x)))
Theorem:
(defthm car-any-trace-equiv-congruence-on-x-under-any-table-equiv (implies (any-trace-equiv acl2::x x-equiv) (any-table-equiv (car acl2::x) (car x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cdr-of-any-trace-fix-x-under-any-trace-equiv (any-trace-equiv (cdr (any-trace-fix acl2::x)) (cdr acl2::x)))
Theorem:
(defthm cdr-any-trace-equiv-congruence-on-x-under-any-trace-equiv (implies (any-trace-equiv acl2::x x-equiv) (any-trace-equiv (cdr acl2::x) (cdr x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cons-of-any-table-fix-x-under-any-trace-equiv (any-trace-equiv (cons (any-table-fix acl2::x) acl2::y) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-any-table-equiv-congruence-on-x-under-any-trace-equiv (implies (any-table-equiv acl2::x x-equiv) (any-trace-equiv (cons acl2::x acl2::y) (cons x-equiv acl2::y))) :rule-classes :congruence)
Theorem:
(defthm cons-of-any-trace-fix-y-under-any-trace-equiv (any-trace-equiv (cons acl2::x (any-trace-fix acl2::y)) (cons acl2::x acl2::y)))
Theorem:
(defthm cons-any-trace-equiv-congruence-on-y-under-any-trace-equiv (implies (any-trace-equiv acl2::y y-equiv) (any-trace-equiv (cons acl2::x acl2::y) (cons acl2::x y-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-any-trace-fix (equal (consp (any-trace-fix acl2::x)) (consp acl2::x)))
Theorem:
(defthm any-trace-fix-under-iff (iff (any-trace-fix acl2::x) (consp acl2::x)))
Theorem:
(defthm any-trace-fix-of-cons (equal (any-trace-fix (cons a x)) (cons (any-table-fix a) (any-trace-fix x))))
Theorem:
(defthm len-of-any-trace-fix (equal (len (any-trace-fix acl2::x)) (len acl2::x)))
Theorem:
(defthm any-trace-fix-of-append (equal (any-trace-fix (append std::a std::b)) (append (any-trace-fix std::a) (any-trace-fix std::b))))
Theorem:
(defthm any-trace-fix-of-repeat (equal (any-trace-fix (acl2::repeat acl2::n acl2::x)) (acl2::repeat acl2::n (any-table-fix acl2::x))))
Theorem:
(defthm list-equiv-refines-any-trace-equiv (implies (acl2::list-equiv acl2::x acl2::y) (any-trace-equiv acl2::x acl2::y)) :rule-classes :refinement)
Theorem:
(defthm nth-of-any-trace-fix (equal (nth acl2::n (any-trace-fix acl2::x)) (if (< (nfix acl2::n) (len acl2::x)) (any-table-fix (nth acl2::n acl2::x)) nil)))
Theorem:
(defthm any-trace-equiv-implies-any-trace-equiv-append-1 (implies (any-trace-equiv acl2::x fty::x-equiv) (any-trace-equiv (append acl2::x acl2::y) (append fty::x-equiv acl2::y))) :rule-classes (:congruence))
Theorem:
(defthm any-trace-equiv-implies-any-trace-equiv-append-2 (implies (any-trace-equiv acl2::y fty::y-equiv) (any-trace-equiv (append acl2::x acl2::y) (append acl2::x fty::y-equiv))) :rule-classes (:congruence))
Theorem:
(defthm any-trace-equiv-implies-any-trace-equiv-nthcdr-2 (implies (any-trace-equiv acl2::l l-equiv) (any-trace-equiv (nthcdr acl2::n acl2::l) (nthcdr acl2::n l-equiv))) :rule-classes (:congruence))
Theorem:
(defthm any-trace-equiv-implies-any-trace-equiv-take-2 (implies (any-trace-equiv acl2::l l-equiv) (any-trace-equiv (take acl2::n acl2::l) (take acl2::n l-equiv))) :rule-classes (:congruence))