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