(vl-enumbasekind-lucidcheck x ss st ctx) → new-st
Function:
(defun vl-enumbasekind-lucidcheck (x ss st ctx) (declare (xargs :guard (and (vl-enumbasekind-p x) (vl-scopestack-p ss) (vl-lucidstate-p st) (vl-context1-p ctx)))) (declare (xargs :guard t)) (let ((__function__ 'vl-enumbasekind-lucidcheck)) (declare (ignorable __function__)) (b* ((x (vl-enumbasekind-fix x)) (ss (vl-scopestack-fix ss)) (st (vl-lucidstate-fix st))) (if (stringp x) (vl-lucid-mark-simple :used x ss st ctx) st))))
Theorem:
(defthm vl-lucidstate-p-of-vl-enumbasekind-lucidcheck (b* ((new-st (vl-enumbasekind-lucidcheck x ss st ctx))) (vl-lucidstate-p new-st)) :rule-classes :rewrite)
Theorem:
(defthm vl-enumbasekind-lucidcheck-of-vl-enumbasekind-fix-x (equal (vl-enumbasekind-lucidcheck (vl-enumbasekind-fix x) ss st ctx) (vl-enumbasekind-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-enumbasekind-lucidcheck-vl-enumbasekind-equiv-congruence-on-x (implies (vl-enumbasekind-equiv x x-equiv) (equal (vl-enumbasekind-lucidcheck x ss st ctx) (vl-enumbasekind-lucidcheck x-equiv ss st ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-enumbasekind-lucidcheck-of-vl-scopestack-fix-ss (equal (vl-enumbasekind-lucidcheck x (vl-scopestack-fix ss) st ctx) (vl-enumbasekind-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-enumbasekind-lucidcheck-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-enumbasekind-lucidcheck x ss st ctx) (vl-enumbasekind-lucidcheck x ss-equiv st ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-enumbasekind-lucidcheck-of-vl-lucidstate-fix-st (equal (vl-enumbasekind-lucidcheck x ss (vl-lucidstate-fix st) ctx) (vl-enumbasekind-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-enumbasekind-lucidcheck-vl-lucidstate-equiv-congruence-on-st (implies (vl-lucidstate-equiv st st-equiv) (equal (vl-enumbasekind-lucidcheck x ss st ctx) (vl-enumbasekind-lucidcheck x ss st-equiv ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-enumbasekind-lucidcheck-of-vl-context1-fix-ctx (equal (vl-enumbasekind-lucidcheck x ss st (vl-context1-fix ctx)) (vl-enumbasekind-lucidcheck x ss st ctx)))
Theorem:
(defthm vl-enumbasekind-lucidcheck-vl-context1-equiv-congruence-on-ctx (implies (vl-context1-equiv ctx ctx-equiv) (equal (vl-enumbasekind-lucidcheck x ss st ctx) (vl-enumbasekind-lucidcheck x ss st ctx-equiv))) :rule-classes :congruence)