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