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