(vl-repeateventcontrol-lucidcheck x ss st ctx) → new-st
Function:
(defun vl-repeateventcontrol-lucidcheck (x ss st ctx) (declare (xargs :guard (and (vl-repeateventcontrol-p x) (vl-scopestack-p ss) (vl-lucidstate-p st) (vl-lucidctx-p ctx)))) (declare (xargs :guard t)) (let ((__function__ 'vl-repeateventcontrol-lucidcheck)) (declare (ignorable __function__)) (b* ((x (vl-repeateventcontrol-fix x)) (ss (vl-scopestack-fix ss)) (st (vl-lucidstate-fix st))) (b* (((vl-repeateventcontrol x)) (st (vl-rhsexpr-lucidcheck x.expr ss st ctx)) (st (vl-eventcontrol-lucidcheck x.ctrl ss st ctx))) st))))
Theorem:
(defthm vl-lucidstate-p-of-vl-repeateventcontrol-lucidcheck (b* ((new-st (vl-repeateventcontrol-lucidcheck x ss st ctx))) (vl-lucidstate-p new-st)) :rule-classes :rewrite)
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-of-vl-repeateventcontrol-fix-x (equal (vl-repeateventcontrol-lucidcheck (vl-repeateventcontrol-fix x) ss st ctx) (vl-repeateventcontrol-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-vl-repeateventcontrol-equiv-congruence-on-x (implies (vl-repeateventcontrol-equiv x x-equiv) (equal (vl-repeateventcontrol-lucidcheck x ss st ctx) (vl-repeateventcontrol-lucidcheck x-equiv ss st ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-of-vl-scopestack-fix-ss (equal (vl-repeateventcontrol-lucidcheck x (vl-scopestack-fix ss) st ctx) (vl-repeateventcontrol-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-repeateventcontrol-lucidcheck x ss st ctx) (vl-repeateventcontrol-lucidcheck x ss-equiv st ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-of-vl-lucidstate-fix-st (equal (vl-repeateventcontrol-lucidcheck x ss (vl-lucidstate-fix st) ctx) (vl-repeateventcontrol-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-vl-lucidstate-equiv-congruence-on-st (implies (vl-lucidstate-equiv st st-equiv) (equal (vl-repeateventcontrol-lucidcheck x ss st ctx) (vl-repeateventcontrol-lucidcheck x ss st-equiv ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-of-vl-lucidctx-fix-ctx (equal (vl-repeateventcontrol-lucidcheck x ss st (vl-lucidctx-fix ctx)) (vl-repeateventcontrol-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-repeateventcontrol-lucidcheck-vl-lucidctx-equiv-congruence-on-ctx (implies (vl-lucidctx-equiv ctx ctx-equiv) (equal (vl-repeateventcontrol-lucidcheck x ss st ctx) (vl-repeateventcontrol-lucidcheck x ss st ctx-equiv))) :rule-classes :congruence)