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