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