Get the name field from a proof-tree-relation.
(proof-tree-relation->name x) → name
This is an ordinary field accessor created by fty::defprod.
Function:
(defun proof-tree-relation->name$inline (x) (declare (xargs :guard (proof-treep x))) (declare (xargs :guard (equal (proof-tree-kind x) :relation))) (let ((__function__ 'proof-tree-relation->name)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (proof-tree-kind x) :relation) x))) (str-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm stringp-of-proof-tree-relation->name (b* ((name (proof-tree-relation->name$inline x))) (stringp name)) :rule-classes :rewrite)
Theorem:
(defthm proof-tree-relation->name$inline-of-proof-tree-fix-x (equal (proof-tree-relation->name$inline (proof-tree-fix x)) (proof-tree-relation->name$inline x)))
Theorem:
(defthm proof-tree-relation->name$inline-proof-tree-equiv-congruence-on-x (implies (proof-tree-equiv x x-equiv) (equal (proof-tree-relation->name$inline x) (proof-tree-relation->name$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm proof-tree-relation->name-when-wrong-kind (implies (not (equal (proof-tree-kind x) :relation)) (equal (proof-tree-relation->name x) (str-fix nil))))