• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
        • Base-api
        • Aignet-construction
        • Representation
          • Aignet-impl
          • Node
            • Node-fix
            • Node-p
            • Node-equiv
            • Co-node->fanin
            • Gate-node->fanin1
            • Gate-node->fanin0
            • Stype
            • Nxst-node
            • Node->type
            • Node->regp
            • Xor-node
            • And-node
            • Po-node
              • Po-node->fanin
              • Proper-node-p
              • Reg-node
              • Pi-node
              • Const-node
            • Network
            • Combinational-type
            • Typecode
            • Stypep
          • Aignet-copy-init
          • Aignet-simplify-with-tracking
          • Aignet-simplify-marked-with-tracking
          • Aignet-cnf
          • Aignet-simplify-marked
          • Aignet-complete-copy
          • Aignet-transforms
          • Aignet-eval
          • Semantics
          • Aignet-read-aiger
          • Aignet-write-aiger
          • Aignet-abc-interface
          • Utilities
        • Aig
        • Satlink
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Projects
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Po-node

    Po-node->fanin

    Get the fanin field from a po-node.

    Signature
    (po-node->fanin x) → fanin
    Arguments
    x — Guard (node-p x).
    Returns
    fanin — Type (litp fanin).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: po-node->fanin$inline

    (defun po-node->fanin$inline (x)
      (declare (xargs :guard (node-p x)))
      (declare (xargs :guard (equal (stype x) :po)))
      (let ((__function__ 'po-node->fanin))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (stype x) :po) x)))
               (lit-fix (cadr x)))
             :exec (cadr x))))

    Theorem: litp-of-po-node->fanin

    (defthm litp-of-po-node->fanin
      (b* ((fanin (po-node->fanin$inline x)))
        (litp fanin))
      :rule-classes :type-prescription)

    Theorem: po-node->fanin$inline-of-node-fix-x

    (defthm po-node->fanin$inline-of-node-fix-x
      (equal (po-node->fanin$inline (node-fix x))
             (po-node->fanin$inline x)))

    Theorem: po-node->fanin$inline-node-equiv-congruence-on-x

    (defthm po-node->fanin$inline-node-equiv-congruence-on-x
      (implies (node-equiv x x-equiv)
               (equal (po-node->fanin$inline x)
                      (po-node->fanin$inline x-equiv)))
      :rule-classes :congruence)

    Theorem: po-node->fanin-when-wrong-kind

    (defthm po-node->fanin-when-wrong-kind
      (implies (not (equal (stype x) :po))
               (equal (po-node->fanin x)
                      (lit-fix nil))))