(cst-%x41-5a-nat abnf::cst) → nat
Function:
(defun cst-%x41-5a-nat (abnf::cst) (declare (xargs :guard (abnf::treep abnf::cst))) (declare (xargs :guard (cst-matchp abnf::cst "%x41-5A"))) (let ((__function__ 'cst-%x41-5a-nat)) (declare (ignorable __function__)) (acl2::lnfix (nth 0 (abnf::tree-leafterm->get abnf::cst)))))
Theorem:
(defthm natp-of-cst-%x41-5a-nat (b* ((nat (cst-%x41-5a-nat abnf::cst))) (natp nat)) :rule-classes :rewrite)
Theorem:
(defthm cst-%x41-5a-nat-of-tree-fix-cst (equal (cst-%x41-5a-nat (abnf::tree-fix abnf::cst)) (cst-%x41-5a-nat abnf::cst)))
Theorem:
(defthm cst-%x41-5a-nat-tree-equiv-congruence-on-cst (implies (abnf::tree-equiv abnf::cst cst-equiv) (equal (cst-%x41-5a-nat abnf::cst) (cst-%x41-5a-nat cst-equiv))) :rule-classes :congruence)