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