Get the instoffset field from a modscope-nested.
(modscope-nested->instoffset x) → instoffset
This is an ordinary field accessor created by defprod.
Function:
(defun modscope-nested->instoffset$inline (x) (declare (xargs :guard (modscope-p x))) (declare (xargs :guard (equal (modscope-kind x) :nested))) (let ((__function__ 'modscope-nested->instoffset)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (modscope-kind x) :nested) x))) (nfix (std::prod-car (std::prod-cdr (cdr x))))) :exec (std::prod-car (std::prod-cdr (cdr x))))))
Theorem:
(defthm natp-of-modscope-nested->instoffset (b* ((instoffset (modscope-nested->instoffset$inline x))) (natp instoffset)) :rule-classes :type-prescription)
Theorem:
(defthm modscope-nested->instoffset$inline-of-modscope-fix-x (equal (modscope-nested->instoffset$inline (modscope-fix x)) (modscope-nested->instoffset$inline x)))
Theorem:
(defthm modscope-nested->instoffset$inline-modscope-equiv-congruence-on-x (implies (modscope-equiv x x-equiv) (equal (modscope-nested->instoffset$inline x) (modscope-nested->instoffset$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm modscope-nested->instoffset-when-wrong-kind (implies (not (equal (modscope-kind x) :nested)) (equal (modscope-nested->instoffset x) (nfix nil))))