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