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