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