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