Get the scopestack field from a vl-lucidkey.
(vl-lucidkey->scopestack x) → scopestack
This is an ordinary field accessor created by defprod.
Function:
(defun vl-lucidkey->scopestack$inline (x) (declare (xargs :guard (vl-lucidkey-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-lucidkey->scopestack)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-scopestack-fix (std::prod-cdr x))) :exec (std::prod-cdr x))))
Theorem:
(defthm vl-scopestack-p-of-vl-lucidkey->scopestack (b* ((scopestack (vl-lucidkey->scopestack$inline x))) (vl-scopestack-p scopestack)) :rule-classes :rewrite)
Theorem:
(defthm vl-lucidkey->scopestack$inline-of-vl-lucidkey-fix-x (equal (vl-lucidkey->scopestack$inline (vl-lucidkey-fix x)) (vl-lucidkey->scopestack$inline x)))
Theorem:
(defthm vl-lucidkey->scopestack$inline-vl-lucidkey-equiv-congruence-on-x (implies (vl-lucidkey-equiv x x-equiv) (equal (vl-lucidkey->scopestack$inline x) (vl-lucidkey->scopestack$inline x-equiv))) :rule-classes :congruence)