Top-level wrapper for eliminating
(vl-expr-wildelim x ctx warnings) → (mv new-warnings new-x)
Function:
(defun vl-expr-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-expr-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-expr-wildelim)) (declare (ignorable __function__)) (mbe :logic (vl-wildeq-rewrite-expr x ctx warnings) :exec (if (not (vl-expr-has-ops '(:vl-binary-wildeq :vl-binary-wildneq) x)) (mv warnings x) (vl-wildeq-rewrite-expr x ctx warnings)))))
Theorem:
(defthm vl-warninglist-p-of-vl-expr-wildelim.new-warnings (b* (((mv ?new-warnings ?new-x) (vl-expr-wildelim x ctx warnings))) (vl-warninglist-p new-warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-expr-p-of-vl-expr-wildelim.new-x (b* (((mv ?new-warnings ?new-x) (vl-expr-wildelim x ctx warnings))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-expr-wildelim-of-vl-expr-fix-x (equal (vl-expr-wildelim (vl-expr-fix x) ctx warnings) (vl-expr-wildelim x ctx warnings)))
Theorem:
(defthm vl-expr-wildelim-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-expr-wildelim x ctx warnings) (vl-expr-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-wildelim-of-vl-context-fix-ctx (equal (vl-expr-wildelim x (vl-context-fix ctx) warnings) (vl-expr-wildelim x ctx warnings)))
Theorem:
(defthm vl-expr-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-expr-wildelim x ctx warnings) (vl-expr-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-wildelim-of-vl-warninglist-fix-warnings (equal (vl-expr-wildelim x ctx (vl-warninglist-fix warnings)) (vl-expr-wildelim x ctx warnings)))
Theorem:
(defthm vl-expr-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-expr-wildelim x ctx warnings) (vl-expr-wildelim x ctx warnings-equiv))) :rule-classes :congruence)