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