Scopesubstitute into a vl-gatedelay-p.
(vl-gatedelay-scopesubst x ss) → new-x
Function:
(defun vl-gatedelay-scopesubst (x ss) (declare (xargs :guard (and (vl-gatedelay-p x) (vl-scopestack-p ss)))) (declare (ignorable x ss)) (let ((__function__ 'vl-gatedelay-scopesubst)) (declare (ignorable __function__)) (change-vl-gatedelay x :rise (vl-expr-scopesubst (vl-gatedelay->rise x) ss) :fall (vl-expr-scopesubst (vl-gatedelay->fall x) ss) :high (vl-maybe-expr-scopesubst (vl-gatedelay->high x) ss))))
Theorem:
(defthm vl-gatedelay-p-of-vl-gatedelay-scopesubst (b* ((new-x (vl-gatedelay-scopesubst x ss))) (vl-gatedelay-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-gatedelay-scopesubst-of-vl-gatedelay-fix-x (equal (vl-gatedelay-scopesubst (vl-gatedelay-fix x) ss) (vl-gatedelay-scopesubst x ss)))
Theorem:
(defthm vl-gatedelay-scopesubst-vl-gatedelay-equiv-congruence-on-x (implies (vl-gatedelay-equiv x x-equiv) (equal (vl-gatedelay-scopesubst x ss) (vl-gatedelay-scopesubst x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-gatedelay-scopesubst-of-vl-scopestack-fix-ss (equal (vl-gatedelay-scopesubst x (vl-scopestack-fix ss)) (vl-gatedelay-scopesubst x ss)))
Theorem:
(defthm vl-gatedelay-scopesubst-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-gatedelay-scopesubst x ss) (vl-gatedelay-scopesubst x ss-equiv))) :rule-classes :congruence)