(svtv-cyclephaselist-fix x) is a usual fty list fixing function.
(svtv-cyclephaselist-fix x) → fty::newx
In the logic, we apply svtv-cyclephase-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 svtv-cyclephaselist-fix$inline (x) (declare (xargs :guard (svtv-cyclephaselist-p x))) (let ((__function__ 'svtv-cyclephaselist-fix)) (declare (ignorable __function__)) (mbe :logic (if (atom x) nil (cons (svtv-cyclephase-fix (car x)) (svtv-cyclephaselist-fix (cdr x)))) :exec x)))
Theorem:
(defthm svtv-cyclephaselist-p-of-svtv-cyclephaselist-fix (b* ((fty::newx (svtv-cyclephaselist-fix$inline x))) (svtv-cyclephaselist-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm svtv-cyclephaselist-fix-when-svtv-cyclephaselist-p (implies (svtv-cyclephaselist-p x) (equal (svtv-cyclephaselist-fix x) x)))
Function:
(defun svtv-cyclephaselist-equiv$inline (x y) (declare (xargs :guard (and (svtv-cyclephaselist-p x) (svtv-cyclephaselist-p y)))) (equal (svtv-cyclephaselist-fix x) (svtv-cyclephaselist-fix y)))
Theorem:
(defthm svtv-cyclephaselist-equiv-is-an-equivalence (and (booleanp (svtv-cyclephaselist-equiv x y)) (svtv-cyclephaselist-equiv x x) (implies (svtv-cyclephaselist-equiv x y) (svtv-cyclephaselist-equiv y x)) (implies (and (svtv-cyclephaselist-equiv x y) (svtv-cyclephaselist-equiv y z)) (svtv-cyclephaselist-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svtv-cyclephaselist-equiv-implies-equal-svtv-cyclephaselist-fix-1 (implies (svtv-cyclephaselist-equiv x x-equiv) (equal (svtv-cyclephaselist-fix x) (svtv-cyclephaselist-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svtv-cyclephaselist-fix-under-svtv-cyclephaselist-equiv (svtv-cyclephaselist-equiv (svtv-cyclephaselist-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svtv-cyclephaselist-fix-1-forward-to-svtv-cyclephaselist-equiv (implies (equal (svtv-cyclephaselist-fix x) y) (svtv-cyclephaselist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svtv-cyclephaselist-fix-2-forward-to-svtv-cyclephaselist-equiv (implies (equal x (svtv-cyclephaselist-fix y)) (svtv-cyclephaselist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-cyclephaselist-equiv-of-svtv-cyclephaselist-fix-1-forward (implies (svtv-cyclephaselist-equiv (svtv-cyclephaselist-fix x) y) (svtv-cyclephaselist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-cyclephaselist-equiv-of-svtv-cyclephaselist-fix-2-forward (implies (svtv-cyclephaselist-equiv x (svtv-cyclephaselist-fix y)) (svtv-cyclephaselist-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm car-of-svtv-cyclephaselist-fix-x-under-svtv-cyclephase-equiv (svtv-cyclephase-equiv (car (svtv-cyclephaselist-fix x)) (car x)))
Theorem:
(defthm car-svtv-cyclephaselist-equiv-congruence-on-x-under-svtv-cyclephase-equiv (implies (svtv-cyclephaselist-equiv x x-equiv) (svtv-cyclephase-equiv (car x) (car x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cdr-of-svtv-cyclephaselist-fix-x-under-svtv-cyclephaselist-equiv (svtv-cyclephaselist-equiv (cdr (svtv-cyclephaselist-fix x)) (cdr x)))
Theorem:
(defthm cdr-svtv-cyclephaselist-equiv-congruence-on-x-under-svtv-cyclephaselist-equiv (implies (svtv-cyclephaselist-equiv x x-equiv) (svtv-cyclephaselist-equiv (cdr x) (cdr x-equiv))) :rule-classes :congruence)
Theorem:
(defthm cons-of-svtv-cyclephase-fix-x-under-svtv-cyclephaselist-equiv (svtv-cyclephaselist-equiv (cons (svtv-cyclephase-fix x) y) (cons x y)))
Theorem:
(defthm cons-svtv-cyclephase-equiv-congruence-on-x-under-svtv-cyclephaselist-equiv (implies (svtv-cyclephase-equiv x x-equiv) (svtv-cyclephaselist-equiv (cons x y) (cons x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm cons-of-svtv-cyclephaselist-fix-y-under-svtv-cyclephaselist-equiv (svtv-cyclephaselist-equiv (cons x (svtv-cyclephaselist-fix y)) (cons x y)))
Theorem:
(defthm cons-svtv-cyclephaselist-equiv-congruence-on-y-under-svtv-cyclephaselist-equiv (implies (svtv-cyclephaselist-equiv y y-equiv) (svtv-cyclephaselist-equiv (cons x y) (cons x y-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-svtv-cyclephaselist-fix (equal (consp (svtv-cyclephaselist-fix x)) (consp x)))
Theorem:
(defthm svtv-cyclephaselist-fix-under-iff (iff (svtv-cyclephaselist-fix x) (consp x)))
Theorem:
(defthm svtv-cyclephaselist-fix-of-cons (equal (svtv-cyclephaselist-fix (cons a x)) (cons (svtv-cyclephase-fix a) (svtv-cyclephaselist-fix x))))
Theorem:
(defthm len-of-svtv-cyclephaselist-fix (equal (len (svtv-cyclephaselist-fix x)) (len x)))
Theorem:
(defthm svtv-cyclephaselist-fix-of-append (equal (svtv-cyclephaselist-fix (append std::a std::b)) (append (svtv-cyclephaselist-fix std::a) (svtv-cyclephaselist-fix std::b))))
Theorem:
(defthm svtv-cyclephaselist-fix-of-repeat (equal (svtv-cyclephaselist-fix (repeat acl2::n x)) (repeat acl2::n (svtv-cyclephase-fix x))))
Theorem:
(defthm list-equiv-refines-svtv-cyclephaselist-equiv (implies (list-equiv x y) (svtv-cyclephaselist-equiv x y)) :rule-classes :refinement)
Theorem:
(defthm nth-of-svtv-cyclephaselist-fix (equal (nth acl2::n (svtv-cyclephaselist-fix x)) (if (< (nfix acl2::n) (len x)) (svtv-cyclephase-fix (nth acl2::n x)) nil)))
Theorem:
(defthm svtv-cyclephaselist-equiv-implies-svtv-cyclephaselist-equiv-append-1 (implies (svtv-cyclephaselist-equiv x fty::x-equiv) (svtv-cyclephaselist-equiv (append x y) (append fty::x-equiv y))) :rule-classes (:congruence))
Theorem:
(defthm svtv-cyclephaselist-equiv-implies-svtv-cyclephaselist-equiv-append-2 (implies (svtv-cyclephaselist-equiv y fty::y-equiv) (svtv-cyclephaselist-equiv (append x y) (append x fty::y-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svtv-cyclephaselist-equiv-implies-svtv-cyclephaselist-equiv-nthcdr-2 (implies (svtv-cyclephaselist-equiv acl2::l l-equiv) (svtv-cyclephaselist-equiv (nthcdr acl2::n acl2::l) (nthcdr acl2::n l-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svtv-cyclephaselist-equiv-implies-svtv-cyclephaselist-equiv-take-2 (implies (svtv-cyclephaselist-equiv acl2::l l-equiv) (svtv-cyclephaselist-equiv (take acl2::n acl2::l) (take acl2::n l-equiv))) :rule-classes (:congruence))