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