(vl-gencase-some-match x y ss scopes warnings) → (mv errmsg warnings equalp)
Function:
(defun vl-gencase-some-match (x y ss scopes warnings) (declare (xargs :guard (and (vl-expr-p x) (vl-exprlist-p y) (vl-scopestack-p ss) (vl-elabscopes-p scopes) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-gencase-some-match)) (declare (ignorable __function__)) (b* (((when (atom y)) (mv nil (ok) nil)) ((mv errmsg warnings first) (vl-gencase-match x (car y) ss scopes warnings)) ((when errmsg) (mv errmsg warnings nil)) ((when first) (mv nil warnings first))) (vl-gencase-some-match x (cdr y) ss scopes warnings))))
Theorem:
(defthm return-type-of-vl-gencase-some-match.errmsg (b* (((mv ?errmsg ?warnings common-lisp::?equalp) (vl-gencase-some-match x y ss scopes warnings))) (iff (vl-msg-p errmsg) errmsg)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-p-of-vl-gencase-some-match.warnings (b* (((mv ?errmsg ?warnings common-lisp::?equalp) (vl-gencase-some-match x y ss scopes warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-gencase-some-match-of-vl-expr-fix-x (equal (vl-gencase-some-match (vl-expr-fix x) y ss scopes warnings) (vl-gencase-some-match x y ss scopes warnings)))
Theorem:
(defthm vl-gencase-some-match-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-gencase-some-match x y ss scopes warnings) (vl-gencase-some-match x-equiv y ss scopes warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-gencase-some-match-of-vl-exprlist-fix-y (equal (vl-gencase-some-match x (vl-exprlist-fix y) ss scopes warnings) (vl-gencase-some-match x y ss scopes warnings)))
Theorem:
(defthm vl-gencase-some-match-vl-exprlist-equiv-congruence-on-y (implies (vl-exprlist-equiv y y-equiv) (equal (vl-gencase-some-match x y ss scopes warnings) (vl-gencase-some-match x y-equiv ss scopes warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-gencase-some-match-of-vl-scopestack-fix-ss (equal (vl-gencase-some-match x y (vl-scopestack-fix ss) scopes warnings) (vl-gencase-some-match x y ss scopes warnings)))
Theorem:
(defthm vl-gencase-some-match-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-gencase-some-match x y ss scopes warnings) (vl-gencase-some-match x y ss-equiv scopes warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-gencase-some-match-of-vl-elabscopes-fix-scopes (equal (vl-gencase-some-match x y ss (vl-elabscopes-fix scopes) warnings) (vl-gencase-some-match x y ss scopes warnings)))
Theorem:
(defthm vl-gencase-some-match-vl-elabscopes-equiv-congruence-on-scopes (implies (vl-elabscopes-equiv scopes scopes-equiv) (equal (vl-gencase-some-match x y ss scopes warnings) (vl-gencase-some-match x y ss scopes-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-gencase-some-match-of-vl-warninglist-fix-warnings (equal (vl-gencase-some-match x y ss scopes (vl-warninglist-fix warnings)) (vl-gencase-some-match x y ss scopes warnings)))
Theorem:
(defthm vl-gencase-some-match-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-gencase-some-match x y ss scopes warnings) (vl-gencase-some-match x y ss scopes warnings-equiv))) :rule-classes :congruence)