Throw away attributes and widths, keeping just the core of an expression. (memoized)
Note that we gain significant performance in leftright-check by memoizing this function.
Theorem:
(defthm return-type-of-vl-expr-strip.new-x (b* ((?new-x (vl-expr-strip x))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-strip.new-x (b* ((?new-x (vl-exprlist-strip x))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-expr-strip-of-vl-expr-fix-x (equal (vl-expr-strip (vl-expr-fix x)) (vl-expr-strip x)))
Theorem:
(defthm vl-exprlist-strip-of-vl-exprlist-fix-x (equal (vl-exprlist-strip (vl-exprlist-fix x)) (vl-exprlist-strip x)))
Theorem:
(defthm vl-expr-strip-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-expr-strip x) (vl-expr-strip x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-strip-vl-exprlist-equiv-congruence-on-x (implies (vl-exprlist-equiv x x-equiv) (equal (vl-exprlist-strip x) (vl-exprlist-strip x-equiv))) :rule-classes :congruence)