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