Substitute into a vl-plainarg-p.
(vl-plainarg-subst x sigma) → new-x
Function:
(defun vl-plainarg-subst (x sigma) (declare (xargs :guard (and (vl-plainarg-p x) (vl-sigma-p sigma)))) (declare (ignorable x sigma)) (let ((__function__ 'vl-plainarg-subst)) (declare (ignorable __function__)) (change-vl-plainarg x :expr (vl-maybe-expr-subst (vl-plainarg->expr x) sigma))))
Theorem:
(defthm vl-plainarg-p-of-vl-plainarg-subst (b* ((new-x (vl-plainarg-subst x sigma))) (vl-plainarg-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-plainarg-subst-of-vl-plainarg-fix-x (equal (vl-plainarg-subst (vl-plainarg-fix x) sigma) (vl-plainarg-subst x sigma)))
Theorem:
(defthm vl-plainarg-subst-vl-plainarg-equiv-congruence-on-x (implies (vl-plainarg-equiv x x-equiv) (equal (vl-plainarg-subst x sigma) (vl-plainarg-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-plainarg-subst-of-vl-sigma-fix-sigma (equal (vl-plainarg-subst x (vl-sigma-fix sigma)) (vl-plainarg-subst x sigma)))
Theorem:
(defthm vl-plainarg-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-plainarg-subst x sigma) (vl-plainarg-subst x sigma-equiv))) :rule-classes :congruence)