(vl-bind-elaborate x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-bind-elaborate-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-bind-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-bind-elaborate)) (declare (ignorable __function__)) (b* (((vl-bind x) (vl-bind-fix x))) (b* (((mv ok warnings addto elabindex) (vl-exprlist-elaborate-fn x.addto elabindex reclimit config)) ((mv ok1 warnings1 modinsts elabindex) (vl-modinstlist-elaborate-fn x.modinsts elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings))) (mv ok warnings (change-vl-bind x :addto addto :modinsts modinsts) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-bind-elaborate.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-bind-elaborate-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-bind-p-of-vl-bind-elaborate.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-bind-elaborate-fn x elabindex reclimit config))) (vl-bind-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-bind-elaborate-fn-of-vl-bind-fix-x (equal (vl-bind-elaborate-fn (vl-bind-fix x) elabindex reclimit config) (vl-bind-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-bind-elaborate-fn-vl-bind-equiv-congruence-on-x (implies (vl-bind-equiv x x-equiv) (equal (vl-bind-elaborate-fn x elabindex reclimit config) (vl-bind-elaborate-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-bind-elaborate-fn-of-nfix-reclimit (equal (vl-bind-elaborate-fn x elabindex (nfix reclimit) config) (vl-bind-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-bind-elaborate-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-bind-elaborate-fn x elabindex reclimit config) (vl-bind-elaborate-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-bind-elaborate-fn-of-vl-simpconfig-fix-config (equal (vl-bind-elaborate-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-bind-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-bind-elaborate-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-bind-elaborate-fn x elabindex reclimit config) (vl-bind-elaborate-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)