Get the subtree field from a vttree-context.
This is an ordinary field accessor created by defprod.
Function:
(defun vttree-context->subtree$inline (x) (declare (xargs :guard (vttree-p x))) (declare (xargs :guard (equal (vttree-kind x) :context))) (let ((__function__ 'vttree-context->subtree)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vttree-kind x) :context) x))) (vttree-fix (cddr x))) :exec (cddr x))))
Theorem:
(defthm vttree-p-of-vttree-context->subtree (b* ((subtree (vttree-context->subtree$inline x))) (vttree-p subtree)) :rule-classes :rewrite)
Theorem:
(defthm vttree-context->subtree$inline-of-vttree-fix-x (equal (vttree-context->subtree$inline (vttree-fix x)) (vttree-context->subtree$inline x)))
Theorem:
(defthm vttree-context->subtree$inline-vttree-equiv-congruence-on-x (implies (vttree-equiv x x-equiv) (equal (vttree-context->subtree$inline x) (vttree-context->subtree$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vttree-context->subtree-when-wrong-kind (implies (not (equal (vttree-kind x) :context)) (equal (vttree-context->subtree x) (vttree-fix nil))))