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