Get the get field from a value-character.
(value-character->get x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun value-character->get$inline (x) (declare (xargs :guard (valuep x))) (declare (xargs :guard (equal (value-kind x) :character))) (let ((__function__ 'value-character->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (value-kind x) :character) x))) (acl2::char-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm characterp-of-value-character->get (b* ((get (value-character->get$inline x))) (characterp get)) :rule-classes :rewrite)
Theorem:
(defthm value-character->get$inline-of-value-fix-x (equal (value-character->get$inline (value-fix x)) (value-character->get$inline x)))
Theorem:
(defthm value-character->get$inline-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (value-character->get$inline x) (value-character->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm value-character->get-when-wrong-kind (implies (not (equal (value-kind x) :character)) (equal (value-character->get x) (acl2::char-fix nil))))