Get the scope field from a objdesign-auto.
(objdesign-auto->scope x) → scope
This is an ordinary field accessor created by fty::defprod.
Function:
(defun objdesign-auto->scope$inline (x) (declare (xargs :guard (objdesignp x))) (declare (xargs :guard (equal (objdesign-kind x) :auto))) (let ((__function__ 'objdesign-auto->scope)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (objdesign-kind x) :auto) x))) (nfix (std::da-nth 2 (cdr x)))) :exec (std::da-nth 2 (cdr x)))))
Theorem:
(defthm natp-of-objdesign-auto->scope (b* ((scope (objdesign-auto->scope$inline x))) (natp scope)) :rule-classes :rewrite)
Theorem:
(defthm objdesign-auto->scope$inline-of-objdesign-fix-x (equal (objdesign-auto->scope$inline (objdesign-fix x)) (objdesign-auto->scope$inline x)))
Theorem:
(defthm objdesign-auto->scope$inline-objdesign-equiv-congruence-on-x (implies (objdesign-equiv x x-equiv) (equal (objdesign-auto->scope$inline x) (objdesign-auto->scope$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm objdesign-auto->scope-when-wrong-kind (implies (not (equal (objdesign-kind x) :auto)) (equal (objdesign-auto->scope x) (nfix nil))))