This is a universal equivalence, introduced using def-universal-equiv.
Function:
(defun svex-envlists-similar (x y) (declare (xargs :non-executable t)) (declare (xargs :guard t)) (declare (xargs :non-executable t)) (prog2$ (acl2::throw-nonexec-error 'svex-envlists-similar (list x y)) (let ((n (svex-envlists-similar-witness x y))) (and (svex-envs-similar (nth n x) (nth n y)) (equal (len x) (len y))))))
Theorem:
(defthm svex-envlists-similar-necc (implies (not (and (svex-envs-similar (nth n x) (nth n y)) (equal (len x) (len y)))) (not (svex-envlists-similar x y))))
Theorem:
(defthm svex-envlists-similar-witnessing-witness-rule-correct (implies (not ((lambda (n y x) (not (if (svex-envs-similar (nth n x) (nth n y)) (equal (len x) (len y)) 'nil))) (svex-envlists-similar-witness x y) y x)) (svex-envlists-similar x y)) :rule-classes nil)
Theorem:
(defthm svex-envlists-similar-instancing-instance-rule-correct (implies (not (if (svex-envs-similar (nth n x) (nth n y)) (equal (len x) (len y)) 'nil)) (not (svex-envlists-similar x y))) :rule-classes nil)
Theorem:
(defthm svex-envlists-similar-is-an-equivalence (and (booleanp (svex-envlists-similar x y)) (svex-envlists-similar x x) (implies (svex-envlists-similar x y) (svex-envlists-similar y x)) (implies (and (svex-envlists-similar x y) (svex-envlists-similar y z)) (svex-envlists-similar x z))) :rule-classes (:equivalence))