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