Get the name field from a plexeme-header.
(plexeme-header->name x) → name
This is an ordinary field accessor created by fty::defprod.
Function:
(defun plexeme-header->name$inline (x) (declare (xargs :guard (plexemep x))) (declare (xargs :guard (equal (plexeme-kind x) :header))) (mbe :logic (b* ((x (and (equal (plexeme-kind x) :header) x))) (header-name-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x))))
Theorem:
(defthm header-namep-of-plexeme-header->name (b* ((name (plexeme-header->name$inline x))) (header-namep name)) :rule-classes :rewrite)
Theorem:
(defthm plexeme-header->name$inline-of-plexeme-fix-x (equal (plexeme-header->name$inline (plexeme-fix x)) (plexeme-header->name$inline x)))
Theorem:
(defthm plexeme-header->name$inline-plexeme-equiv-congruence-on-x (implies (plexeme-equiv x x-equiv) (equal (plexeme-header->name$inline x) (plexeme-header->name$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm plexeme-header->name-when-wrong-kind (implies (not (equal (plexeme-kind x) :header)) (equal (plexeme-header->name x) (header-name-fix nil))))