Stronger version of element equivalence for four-valued alists.
This is a universal equivalence, introduced using def-universal-equiv.
Function:
(defun 4v-cdr-consp-equiv (x y) (and (iff (consp x) (consp y)) (equal (car x) (car y)) (4v-equiv (cdr x) (cdr y))))
Function:
(defun 4v-cdr-consp-equiv (x y) (and (iff (consp x) (consp y)) (equal (car x) (car y)) (4v-equiv (cdr x) (cdr y))))
Theorem:
(defthm 4v-cdr-consp-equiv-is-an-equivalence (and (booleanp (4v-cdr-consp-equiv x y)) (4v-cdr-consp-equiv x x) (implies (4v-cdr-consp-equiv x y) (4v-cdr-consp-equiv y x)) (implies (and (4v-cdr-consp-equiv x y) (4v-cdr-consp-equiv y z)) (4v-cdr-consp-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm 4v-equiv-implies-4v-cdr-consp-equiv-cons-2 (implies (4v-equiv b b-equiv) (4v-cdr-consp-equiv (cons a b) (cons a b-equiv))) :rule-classes (:congruence))