(constraintlist->absindexed x scope moddb) → (mv fails xx)
Function:
(defun constraintlist->absindexed (x scope moddb) (declare (xargs :stobjs (moddb))) (declare (xargs :guard (and (constraintlist-p x) (modscope-p scope) (moddb-ok moddb)))) (declare (xargs :guard (and (modscope-okp scope moddb) (svarlist-idxaddr-okp (constraintlist-vars x) (modscope-local-bound scope moddb))))) (let ((__function__ 'constraintlist->absindexed)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv nil nil)) ((constraint x1) (car x)) ((mv fails1 new-cond) (svex->absindexed x1.cond scope moddb)) ((mv fails2 rest) (constraintlist->absindexed (cdr x) scope moddb))) (mv (append-without-guard fails1 fails2) (cons (change-constraint x1 :cond new-cond) rest)))))
Theorem:
(defthm svarlist-p-of-constraintlist->absindexed.fails (b* (((mv ?fails ?xx) (constraintlist->absindexed x scope moddb))) (svarlist-p fails)) :rule-classes :rewrite)
Theorem:
(defthm constraintlist-p-of-constraintlist->absindexed.xx (b* (((mv ?fails ?xx) (constraintlist->absindexed x scope moddb))) (constraintlist-p xx)) :rule-classes :rewrite)
Theorem:
(defthm constraintlist-boundedp-of-constraintlist->absindexed (b* (((mv ?fails res) (constraintlist->absindexed x scope moddb))) (implies (and (svarlist-idxaddr-okp (constraintlist-vars x) (modscope-local-bound scope moddb)) (modscope-okp scope moddb) (moddb-ok moddb)) (svarlist-boundedp (constraintlist-vars res) (modscope-top-bound scope moddb)))))
Theorem:
(defthm constraintlist->absindexed-of-constraintlist-fix-x (equal (constraintlist->absindexed (constraintlist-fix x) scope moddb) (constraintlist->absindexed x scope moddb)))
Theorem:
(defthm constraintlist->absindexed-constraintlist-equiv-congruence-on-x (implies (constraintlist-equiv x x-equiv) (equal (constraintlist->absindexed x scope moddb) (constraintlist->absindexed x-equiv scope moddb))) :rule-classes :congruence)
Theorem:
(defthm constraintlist->absindexed-of-modscope-fix-scope (equal (constraintlist->absindexed x (modscope-fix scope) moddb) (constraintlist->absindexed x scope moddb)))
Theorem:
(defthm constraintlist->absindexed-modscope-equiv-congruence-on-scope (implies (modscope-equiv scope scope-equiv) (equal (constraintlist->absindexed x scope moddb) (constraintlist->absindexed x scope-equiv moddb))) :rule-classes :congruence)
Theorem:
(defthm constraintlist->absindexed-of-moddb-fix-moddb (equal (constraintlist->absindexed x scope (moddb-fix moddb)) (constraintlist->absindexed x scope moddb)))
Theorem:
(defthm constraintlist->absindexed-moddb-equiv-congruence-on-moddb (implies (moddb-equiv moddb moddb-equiv) (equal (constraintlist->absindexed x scope moddb) (constraintlist->absindexed x scope moddb-equiv))) :rule-classes :congruence)