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