Get the fanin field from a nxst-node.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun nxst-node->fanin$inline (x) (declare (xargs :guard (node-p x))) (declare (xargs :guard (equal (stype x) :nxst))) (let ((__function__ 'nxst-node->fanin)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (stype x) :nxst) x))) (lit-fix (cadr x))) :exec (cadr x))))
Theorem:
(defthm litp-of-nxst-node->fanin (b* ((fanin (nxst-node->fanin$inline x))) (litp fanin)) :rule-classes :type-prescription)
Theorem:
(defthm nxst-node->fanin$inline-of-node-fix-x (equal (nxst-node->fanin$inline (node-fix x)) (nxst-node->fanin$inline x)))
Theorem:
(defthm nxst-node->fanin$inline-node-equiv-congruence-on-x (implies (node-equiv x x-equiv) (equal (nxst-node->fanin$inline x) (nxst-node->fanin$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm nxst-node->fanin-when-wrong-kind (implies (not (equal (stype x) :nxst)) (equal (nxst-node->fanin x) (lit-fix nil))))