Abstract a
(abs-digit cst) → achar
Function:
(defun abs-digit (cst) (declare (xargs :guard (abnf::treep cst))) (declare (xargs :guard (cst-matchp cst "digit"))) (let ((__function__ 'abs-digit)) (declare (ignorable __function__)) (b* ((cst (cst-digit-conc-rep-elem cst)) (nat (cst-%x30-39-nat cst))) (code-char nat))))
Theorem:
(defthm characterp-of-abs-digit (b* ((achar (abs-digit cst))) (characterp achar)) :rule-classes :rewrite)
Theorem:
(defthm abs-digit-of-tree-fix-cst (equal (abs-digit (abnf::tree-fix cst)) (abs-digit cst)))
Theorem:
(defthm abs-digit-tree-equiv-congruence-on-cst (implies (abnf::tree-equiv cst cst-equiv) (equal (abs-digit cst) (abs-digit cst-equiv))) :rule-classes :congruence)