(svexlist-mask-acons x mask al) → al
Function:
(defun svexlist-mask-acons (x mask al) (declare (xargs :guard (and (svexlist-p x) (4vmask-p mask) (svex-mask-alist-p al)))) (let ((__function__ 'svexlist-mask-acons)) (declare (ignorable __function__)) (mbe :logic (if (atom x) (mbe :logic (svex-mask-alist-fix al) :exec al) (svex-mask-acons (car x) mask (svexlist-mask-acons (cdr x) mask al))) :exec (svexlist-mask-acons-rev (rev x) mask al))))
Theorem:
(defthm svex-mask-alist-p-of-svexlist-mask-acons (b* ((al (svexlist-mask-acons x mask al))) (svex-mask-alist-p al)) :rule-classes :rewrite)
Theorem:
(defthm svexlist-mask-acons-of-svexlist-fix-x (equal (svexlist-mask-acons (svexlist-fix x) mask al) (svexlist-mask-acons x mask al)))
Theorem:
(defthm svexlist-mask-acons-svexlist-equiv-congruence-on-x (implies (svexlist-equiv x x-equiv) (equal (svexlist-mask-acons x mask al) (svexlist-mask-acons x-equiv mask al))) :rule-classes :congruence)
Theorem:
(defthm svexlist-mask-acons-of-4vmask-fix-mask (equal (svexlist-mask-acons x (4vmask-fix mask) al) (svexlist-mask-acons x mask al)))
Theorem:
(defthm svexlist-mask-acons-4vmask-equiv-congruence-on-mask (implies (4vmask-equiv mask mask-equiv) (equal (svexlist-mask-acons x mask al) (svexlist-mask-acons x mask-equiv al))) :rule-classes :congruence)
Theorem:
(defthm svexlist-mask-acons-of-svex-mask-alist-fix-al (equal (svexlist-mask-acons x mask (svex-mask-alist-fix al)) (svexlist-mask-acons x mask al)))
Theorem:
(defthm svexlist-mask-acons-svex-mask-alist-equiv-congruence-on-al (implies (svex-mask-alist-equiv al al-equiv) (equal (svexlist-mask-acons x mask al) (svexlist-mask-acons x mask al-equiv))) :rule-classes :congruence)
Theorem:
(defthm lookup-in-svexlist-mask-acons (equal (svex-mask-lookup k (svexlist-mask-acons x mask al)) (if (member (svex-fix k) (svexlist-fix x)) (4vmask-fix mask) (svex-mask-lookup k al))))
Theorem:
(defthm svex-mask-alist-keys-of-svexlist-mask-acons (equal (svex-mask-alist-keys (svexlist-mask-acons x mask al)) (append (svexlist-fix x) (svex-mask-alist-keys al))))