(vl-maybe-rhs-strip x) → new-x
Function:
(defun vl-maybe-rhs-strip (x) (declare (xargs :guard (vl-maybe-rhs-p x))) (let ((__function__ 'vl-maybe-rhs-strip)) (declare (ignorable __function__)) (vl-maybe-rhs-case x :none (b* nil (change-vl-maybe-rhs-none x)) :some (b* ((fty::val (vl-rhs-strip x.val))) (change-vl-maybe-rhs-some x :val fty::val)))))
Theorem:
(defthm vl-maybe-rhs-p-of-vl-maybe-rhs-strip (b* ((new-x (vl-maybe-rhs-strip x))) (vl-maybe-rhs-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-maybe-rhs-strip-of-vl-maybe-rhs-fix-x (equal (vl-maybe-rhs-strip (vl-maybe-rhs-fix x)) (vl-maybe-rhs-strip x)))
Theorem:
(defthm vl-maybe-rhs-strip-vl-maybe-rhs-equiv-congruence-on-x (implies (vl-maybe-rhs-equiv x x-equiv) (equal (vl-maybe-rhs-strip x) (vl-maybe-rhs-strip x-equiv))) :rule-classes :congruence)