(vl-datatypelist-usertype-resolve x ss scopes) → (mv err new-x)
Function:
(defun vl-datatypelist-usertype-resolve (x ss scopes) (declare (xargs :guard (and (vl-datatypelist-p x) (vl-scopestack-p ss) (vl-elabscopes-p scopes)))) (let ((__function__ 'vl-datatypelist-usertype-resolve)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv nil nil)) ((mv err1 x1) (vl-datatype-usertype-resolve (car x) ss :scopes scopes)) ((mv err2 x2) (vl-datatypelist-usertype-resolve (cdr x) ss scopes))) (mv (or err1 err2) (cons x1 x2)))))
Theorem:
(defthm return-type-of-vl-datatypelist-usertype-resolve.err (b* (((mv ?err ?new-x) (vl-datatypelist-usertype-resolve x ss scopes))) (iff (vl-msg-p err) err)) :rule-classes :rewrite)
Theorem:
(defthm vl-datatypelist-p-of-vl-datatypelist-usertype-resolve.new-x (b* (((mv ?err ?new-x) (vl-datatypelist-usertype-resolve x ss scopes))) (vl-datatypelist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-datatypelist-resolved-p-of-vl-datatypelist-usertype-resolve (b* (((mv ?err ?new-x) (vl-datatypelist-usertype-resolve x ss scopes))) (implies (not err) (vl-datatypelist-resolved-p new-x))))
Theorem:
(defthm len-of-vl-datatypelist-usertype-resolve (b* (((mv ?err ?new-x) (vl-datatypelist-usertype-resolve x ss scopes))) (equal (len new-x) (len x))))
Theorem:
(defthm vl-datatypelist-usertype-resolve-of-vl-datatypelist-fix-x (equal (vl-datatypelist-usertype-resolve (vl-datatypelist-fix x) ss scopes) (vl-datatypelist-usertype-resolve x ss scopes)))
Theorem:
(defthm vl-datatypelist-usertype-resolve-vl-datatypelist-equiv-congruence-on-x (implies (vl-datatypelist-equiv x x-equiv) (equal (vl-datatypelist-usertype-resolve x ss scopes) (vl-datatypelist-usertype-resolve x-equiv ss scopes))) :rule-classes :congruence)
Theorem:
(defthm vl-datatypelist-usertype-resolve-of-vl-scopestack-fix-ss (equal (vl-datatypelist-usertype-resolve x (vl-scopestack-fix ss) scopes) (vl-datatypelist-usertype-resolve x ss scopes)))
Theorem:
(defthm vl-datatypelist-usertype-resolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-datatypelist-usertype-resolve x ss scopes) (vl-datatypelist-usertype-resolve x ss-equiv scopes))) :rule-classes :congruence)
Theorem:
(defthm vl-datatypelist-usertype-resolve-of-vl-elabscopes-fix-scopes (equal (vl-datatypelist-usertype-resolve x ss (vl-elabscopes-fix scopes)) (vl-datatypelist-usertype-resolve x ss scopes)))
Theorem:
(defthm vl-datatypelist-usertype-resolve-vl-elabscopes-equiv-congruence-on-scopes (implies (vl-elabscopes-equiv scopes scopes-equiv) (equal (vl-datatypelist-usertype-resolve x ss scopes) (vl-datatypelist-usertype-resolve x ss scopes-equiv))) :rule-classes :congruence)