• 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
              • Nxst-node->reg
                • Nxst-node->fanin
              • Node->type
              • Node->regp
              • Xor-node
              • And-node
              • Po-node
              • 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
    • Nxst-node

    Nxst-node->reg

    Get the reg field from a nxst-node.

    Signature
    (nxst-node->reg x) → reg
    Arguments
    x — Guard (node-p x).
    Returns
    reg — Type (natp reg).

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

    Definitions and Theorems

    Function: nxst-node->reg$inline

    (defun nxst-node->reg$inline (x)
      (declare (xargs :guard (node-p x)))
      (declare (xargs :guard (equal (stype x) :nxst)))
      (let ((__function__ 'nxst-node->reg))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (stype x) :nxst) x)))
               (nfix (caddr x)))
             :exec (caddr x))))

    Theorem: natp-of-nxst-node->reg

    (defthm natp-of-nxst-node->reg
      (b* ((reg (nxst-node->reg$inline x)))
        (natp reg))
      :rule-classes :type-prescription)

    Theorem: nxst-node->reg$inline-of-node-fix-x

    (defthm nxst-node->reg$inline-of-node-fix-x
      (equal (nxst-node->reg$inline (node-fix x))
             (nxst-node->reg$inline x)))

    Theorem: nxst-node->reg$inline-node-equiv-congruence-on-x

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

    Theorem: nxst-node->reg-when-wrong-kind

    (defthm nxst-node->reg-when-wrong-kind
      (implies (not (equal (stype x) :nxst))
               (equal (nxst-node->reg x) (nfix nil))))