For use with sfaiglist, translates sexpr environments into equivalent faig environments.
(sfaiglist-make-faigenv sexprs env) → faig-env
Function:
(defun sfaiglist-make-faigenv (sexprs env) (declare (xargs :guard t)) (let ((__function__ 'sfaiglist-make-faigenv)) (declare (ignorable __function__)) (b* ((vars (4v-sexpr-vars-1pass-list sexprs)) (onoff (num-varmap vars 0)) (env (4v-sexpr-alist-extract vars env))) (sig-al-to-svar-al (4v-alist->faig-const-alist env) onoff))))
Theorem:
(defthm faig-eval-list-of-sfaiglist-make-faigenv (b* ((faigs (sfaiglist sexprs)) (faig-env (sfaiglist-make-faigenv sexprs env))) (equal (faig-eval-list faigs faig-env) (4v-list->faig-const-list (4v-sexpr-eval-list sexprs env)))))