(vl-plainarg-strip x) → new-x
Function:
(defun vl-plainarg-strip (x) (declare (xargs :guard (vl-plainarg-p x))) (let ((__function__ 'vl-plainarg-strip)) (declare (ignorable __function__)) (b* (((vl-plainarg x) (vl-plainarg-fix x))) (b* ((expr (vl-maybe-expr-strip x.expr)) (atts ((lambda (x) (declare (ignore x)) nil) x.atts))) (change-vl-plainarg x :expr expr :atts atts)))))
Theorem:
(defthm vl-plainarg-p-of-vl-plainarg-strip (b* ((new-x (vl-plainarg-strip x))) (vl-plainarg-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-plainarg-strip-of-vl-plainarg-fix-x (equal (vl-plainarg-strip (vl-plainarg-fix x)) (vl-plainarg-strip x)))
Theorem:
(defthm vl-plainarg-strip-vl-plainarg-equiv-congruence-on-x (implies (vl-plainarg-equiv x x-equiv) (equal (vl-plainarg-strip x) (vl-plainarg-strip x-equiv))) :rule-classes :congruence)