Get the leaves field from a scopetree.
(scopetree->leaves x) → leaves
This is an ordinary field accessor created by defprod.
Function:
(defun scopetree->leaves$inline (x) (declare (xargs :guard (scopetree-p x))) (declare (xargs :guard t)) (let ((__function__ 'scopetree->leaves)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (name-alist-fix (std::prod-car x))) :exec (std::prod-car x))))
Theorem:
(defthm name-alist-p-of-scopetree->leaves (b* ((leaves (scopetree->leaves$inline x))) (name-alist-p leaves)) :rule-classes :rewrite)
Theorem:
(defthm scopetree->leaves$inline-of-scopetree-fix-x (equal (scopetree->leaves$inline (scopetree-fix x)) (scopetree->leaves$inline x)))
Theorem:
(defthm scopetree->leaves$inline-scopetree-equiv-congruence-on-x (implies (scopetree-equiv x x-equiv) (equal (scopetree->leaves$inline x) (scopetree->leaves$inline x-equiv))) :rule-classes :congruence)