Recognizer for tree-list-tuple3 structures.
(tree-list-tuple3p x) → *
Function:
(defun tree-list-tuple3p (x) (declare (xargs :guard t)) (let ((__function__ 'tree-list-tuple3p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(1st 2nd 3rd))) :exec (fty::alist-with-carsp x '(1st 2nd 3rd))) (b* ((1st (cdr (std::da-nth 0 x))) (2nd (cdr (std::da-nth 1 x))) (3rd (cdr (std::da-nth 2 x)))) (and (tree-listp 1st) (tree-listp 2nd) (tree-listp 3rd))))))
Theorem:
(defthm consp-when-tree-list-tuple3p (implies (tree-list-tuple3p x) (consp x)) :rule-classes :compound-recognizer)