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